	.file	"1075390.c"
	.intel_syntax noprefix
	.text
	.local	g_psFirst
	.comm	g_psFirst,8,8
	.local	g_uCacheCount
	.comm	g_uCacheCount,4,4
	.data
	.align 4
	.type	g_bCacheEnabled, @object
	.size	g_bCacheEnabled, 4
g_bCacheEnabled:
	.long	1
	.local	g_sDnsSrvAddr
	.comm	g_sDnsSrvAddr,128,32
	.local	g_sSocksAddr
	.comm	g_sSocksAddr,128,32
	.local	g_sCritSect
	.comm	g_sCritSect,40,32
	.local	g_hSockUdp
	.comm	g_hSockUdp,4,4
	.local	g_uaUsrPwd
	.comm	g_uaUsrPwd,8,8
	.local	g_iUsrPwdLen
	.comm	g_iUsrPwdLen,4,4
	.local	g_iHttpProxyConnectLen
	.comm	g_iHttpProxyConnectLen,4,4
	.local	g_caHttpProxyConnect
	.comm	g_caHttpProxyConnect,300,32
	.local	g_bConsole
	.comm	g_bConsole,4,4
	.local	g_pLogFile
	.comm	g_pLogFile,8,8
	.section	.rodata
	.align 8
.LC0:
	.string	"%u-%02u-%02u %02u:%02u:%02u   "
	.text
	.type	OutputToLog, @function
OutputToLog:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 256
	mov	DWORD PTR -4340[rbp], edi
	mov	QWORD PTR -4352[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L2
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L2:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR g_bConsole[rip]
	test	eax, eax
	je	.L3
	mov	eax, DWORD PTR -4340[rbp]
	and	eax, 4
	test	eax, eax
	jne	.L4
.L3:
	mov	rax, QWORD PTR g_pLogFile[rip]
	test	rax, rax
	je	.L19
.L4:
	mov	eax, DWORD PTR -4340[rbp]
	and	eax, 1
	test	eax, eax
	je	.L6
	mov	BYTE PTR -4288[rbp], 10
	mov	DWORD PTR -4336[rbp], 1
	jmp	.L7
.L6:
	mov	DWORD PTR -4336[rbp], 0
.L7:
	mov	eax, DWORD PTR -4340[rbp]
	and	eax, 2
	test	eax, eax
	je	.L8
	lea	rax, -4328[rbp]
	mov	rdi, rax
	call	time@PLT
	cmp	rax, -1
	je	.L20
	lea	rax, -4328[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	QWORD PTR -4320[rbp], rax
	cmp	QWORD PTR -4320[rbp], 0
	je	.L21
	mov	rax, QWORD PTR -4320[rbp]
	mov	r8d, DWORD PTR [rax]
	mov	rax, QWORD PTR -4320[rbp]
	mov	edi, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -4320[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -4320[rbp]
	mov	r9d, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -4320[rbp]
	mov	eax, DWORD PTR 16[rax]
	lea	r10d, 1[rax]
	mov	rax, QWORD PTR -4320[rbp]
	mov	eax, DWORD PTR 20[rax]
	lea	edx, 1900[rax]
	mov	eax, DWORD PTR -4336[rbp]
	cdqe
	mov	esi, 4096
	sub	rsi, rax
	mov	eax, DWORD PTR -4336[rbp]
	cdqe
	lea	r11, -4288[rbp]
	add	rax, r11
	sub	rsp, 8
	push	r8
	push	rdi
	push	rcx
	mov	r8d, r10d
	mov	ecx, edx
	lea	rdx, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	add	rsp, 32
	mov	DWORD PTR -4332[rbp], eax
	cmp	DWORD PTR -4332[rbp], 0
	js	.L22
	mov	eax, DWORD PTR -4332[rbp]
	add	DWORD PTR -4336[rbp], eax
.L8:
	mov	DWORD PTR -4312[rbp], 16
	mov	DWORD PTR -4308[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -4304[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -4296[rbp], rax
	mov	eax, DWORD PTR -4336[rbp]
	cdqe
	mov	edx, 4096
	mov	rsi, rdx
	sub	rsi, rax
	mov	eax, DWORD PTR -4336[rbp]
	cdqe
	lea	rdx, -4288[rbp]
	lea	rdi, [rdx+rax]
	lea	rdx, -4312[rbp]
	mov	rax, QWORD PTR -4352[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	call	vsnprintf@PLT
	mov	DWORD PTR -4332[rbp], eax
	cmp	DWORD PTR -4332[rbp], 0
	js	.L23
	mov	eax, DWORD PTR -4336[rbp]
	add	DWORD PTR -4332[rbp], eax
	mov	eax, DWORD PTR -4332[rbp]
	cmp	eax, 4095
	jbe	.L14
	mov	BYTE PTR -193[rbp], 0
	mov	DWORD PTR -4332[rbp], 4095
.L14:
	mov	eax, DWORD PTR g_bConsole[rip]
	test	eax, eax
	je	.L15
	mov	eax, DWORD PTR -4340[rbp]
	and	eax, 4
	test	eax, eax
	je	.L15
	mov	rdx, QWORD PTR stdout[rip]
	lea	rax, -4288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L15:
	mov	rax, QWORD PTR g_pLogFile[rip]
	test	rax, rax
	je	.L1
	mov	rcx, QWORD PTR g_pLogFile[rip]
	mov	eax, DWORD PTR -4332[rbp]
	movsx	rdx, eax
	lea	rax, -4288[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	jmp	.L1
.L19:
	nop
	jmp	.L1
.L20:
	nop
	jmp	.L1
.L21:
	nop
	jmp	.L1
.L22:
	nop
	jmp	.L1
.L23:
	nop
.L1:
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	OutputToLog, .-OutputToLog
	.section	.rodata
.LC1:
	.string	"ab"
.LC2:
	.string	"wb"
	.align 8
.LC3:
	.string	"Failed to open log file \"%s\": %s"
.LC4:
	.string	"\n\n"
.LC5:
	.string	"DNS2PROXY log opened"
	.text
	.type	OpenLogFile, @function
OpenLogFile:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	cmp	DWORD PTR -12[rbp], 0
	je	.L25
	lea	rax, .LC1[rip]
	jmp	.L26
.L25:
	lea	rax, .LC2[rip]
.L26:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	fopen@PLT
	mov	QWORD PTR g_pLogFile[rip], rax
	mov	rax, QWORD PTR g_pLogFile[rip]
	test	rax, rax
	jne	.L27
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC3[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	jmp	.L30
.L27:
	cmp	DWORD PTR -12[rbp], 0
	je	.L29
	mov	rax, QWORD PTR g_pLogFile[rip]
	mov	rdi, rax
	call	ftell@PLT
	test	rax, rax
	je	.L29
	mov	rax, QWORD PTR g_pLogFile[rip]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
.L29:
	mov	rax, QWORD PTR g_pLogFile[rip]
	mov	esi, 0
	mov	rdi, rax
	call	setbuf@PLT
	lea	rsi, .LC5[rip]
	mov	edi, 2
	mov	eax, 0
	call	OutputToLog
.L30:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	OpenLogFile, .-OpenLogFile
	.section	.rodata
	.align 8
.LC6:
	.string	"\nDNS2PROXY (free software, use parameter /? to display help)"
	.text
	.type	OpenConsole, @function
OpenConsole:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR g_bConsole[rip]
	test	eax, eax
	jne	.L34
	mov	DWORD PTR g_bConsole[rip], 1
	mov	rax, QWORD PTR stdout[rip]
	mov	esi, 0
	mov	rdi, rax
	call	setbuf@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L31
.L34:
	nop
.L31:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	OpenConsole, .-OpenConsole
	.section	.rodata
	.align 8
.LC7:
	.string	"Creating new thread has failed: error code %d"
	.text
	.globl	ThreadCreate
	.type	ThreadCreate, @function
ThreadCreate:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L36
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	lea	rsi, .LC7[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	mov	eax, 0
	jmp	.L38
.L36:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pthread_detach@PLT
	mov	eax, 1
.L38:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	ThreadCreate, .-ThreadCreate
	.type	GetAddrLen, @function
GetAddrLen:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 2
	jne	.L41
	mov	eax, 16
	jmp	.L42
.L41:
	mov	eax, 28
.L42:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	GetAddrLen, .-GetAddrLen
	.type	SendAnswer, @function
SendAnswer:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 152[rax]
	cmp	al, 4
	je	.L44
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 152[rax]
	movzx	ebx, al
	mov	rax, QWORD PTR -24[rbp]
	lea	r12, 24[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	edx, ax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rsi, 2[rax]
	mov	eax, DWORD PTR g_hSockUdp[rip]
	mov	r9d, ebx
	mov	r8, r12
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	jmp	.L46
.L44:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	eax, ax
	add	eax, 2
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	edi, eax
	call	close@PLT
.L46:
	nop
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	SendAnswer, .-SendAnswer
	.type	RemoveEntry, @function
RemoveEntry:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	cmp	DWORD PTR -28[rbp], -1
	je	.L48
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
.L48:
	cmp	DWORD PTR -32[rbp], 0
	je	.L49
	lea	rdi, g_sCritSect[rip]
	call	pthread_mutex_lock@PLT
.L49:
	lea	rax, g_psFirst[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR g_psFirst[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L50
.L53:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jne	.L51
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR g_uCacheCount[rip]
	sub	eax, 1
	mov	DWORD PTR g_uCacheCount[rip], eax
	jmp	.L52
.L51:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
.L50:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L53
.L52:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 152[rax]
	cmp	al, 4
	jne	.L54
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	edi, eax
	call	close@PLT
.L54:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	cmp	DWORD PTR -32[rbp], 0
	je	.L56
	lea	rdi, g_sCritSect[rip]
	call	pthread_mutex_unlock@PLT
.L56:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	RemoveEntry, .-RemoveEntry
	.section	.rodata
	.align 8
.LC8:
	.string	"Invalid DNS answer detected while calculating TTL"
	.text
	.type	InvalidEntryErrorOutput, @function
InvalidEntryErrorOutput:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, .LC8[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	InvalidEntryErrorOutput, .-InvalidEntryErrorOutput
	.type	CalculateTimeToLive, @function
CalculateTimeToLive:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 16[rax]
	cmp	rax, -1
	jne	.L60
	mov	eax, 1
	jmp	.L81
.L60:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 8[rax]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	WORD PTR -44[rbp], ax
	cmp	WORD PTR -44[rbp], 12
	ja	.L62
	mov	eax, 0
	call	InvalidEntryErrorOutput
	jmp	.L81
.L62:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, 2
	mov	QWORD PTR -24[rbp], rax
	movzx	edx, WORD PTR -44[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	WORD PTR -46[rbp], ax
	add	QWORD PTR -24[rbp], 12
	jmp	.L63
.L68:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jb	.L64
	mov	eax, 0
	call	InvalidEntryErrorOutput
	jmp	.L81
.L64:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -47[rbp], al
	cmp	BYTE PTR -47[rbp], 0
	je	.L83
	cmp	BYTE PTR -47[rbp], -65
	jbe	.L67
	add	QWORD PTR -24[rbp], 1
	jmp	.L66
.L67:
	movzx	eax, BYTE PTR -47[rbp]
	add	rax, 1
	add	QWORD PTR -24[rbp], rax
	jmp	.L68
.L83:
	nop
.L66:
	add	QWORD PTR -24[rbp], 5
	sub	WORD PTR -46[rbp], 1
.L63:
	cmp	WORD PTR -46[rbp], 0
	jne	.L68
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	time@PLT
	cmp	rax, -1
	jne	.L69
	mov	eax, 1
	jmp	.L81
.L69:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -40[rbp], eax
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rax], rdx
.L74:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jb	.L70
	mov	eax, 0
	call	InvalidEntryErrorOutput
	jmp	.L81
.L70:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -47[rbp], al
	cmp	BYTE PTR -47[rbp], 0
	je	.L84
	cmp	BYTE PTR -47[rbp], -65
	jbe	.L73
	add	QWORD PTR -24[rbp], 1
	jmp	.L72
.L73:
	movzx	eax, BYTE PTR -47[rbp]
	add	rax, 1
	add	QWORD PTR -24[rbp], rax
	jmp	.L74
.L84:
	nop
.L72:
	add	QWORD PTR -24[rbp], 5
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, 4
	cmp	QWORD PTR -24[rbp], rax
	jbe	.L75
	mov	eax, 0
	call	InvalidEntryErrorOutput
	jmp	.L81
.L75:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	ntohl@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jle	.L76
	mov	eax, DWORD PTR -40[rbp]
	sub	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jg	.L77
	mov	eax, 0
	jmp	.L81
.L77:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	htonl@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L78
.L76:
	cmp	DWORD PTR -36[rbp], 0
	jns	.L78
	mov	eax, 0
	jmp	.L81
.L78:
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, 6
	cmp	QWORD PTR -24[rbp], rax
	jbe	.L79
	mov	eax, 0
	call	InvalidEntryErrorOutput
	jmp	.L81
.L79:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	WORD PTR -42[rbp], ax
	movzx	eax, WORD PTR -42[rbp]
	add	eax, 6
	cdqe
	add	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jbe	.L80
	mov	eax, 0
	call	InvalidEntryErrorOutput
	jmp	.L81
.L80:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jb	.L74
	mov	eax, 1
.L81:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L82
	call	__stack_chk_fail@PLT
.L82:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	CalculateTimeToLive, .-CalculateTimeToLive
	.section	.rodata
	.align 8
.LC9:
	.string	"Receiving from SOCKS server has failed: %s"
	.align 8
.LC10:
	.string	"The SOCKS server has closed the connection unexpectedly"
	.text
	.type	ReceiveBytes, @function
ReceiveBytes:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	DWORD PTR -16[rbp], 0
.L91:
	mov	edx, DWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, [rcx+rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	je	.L86
	cmp	DWORD PTR -12[rbp], 0
	je	.L87
	jmp	.L92
.L86:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	lea	rsi, .LC9[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	mov	eax, 0
	jmp	.L89
.L87:
	lea	rsi, .LC10[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	mov	eax, 0
	jmp	.L89
.L92:
	mov	eax, DWORD PTR -12[rbp]
	sub	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	jne	.L90
	mov	eax, 1
	jmp	.L89
.L90:
	mov	eax, DWORD PTR -12[rbp]
	add	DWORD PTR -16[rbp], eax
	jmp	.L91
.L89:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	ReceiveBytes, .-ReceiveBytes
	.section	.rodata
.LC11:
	.string	"Invalid amount of sent bytes"
	.align 8
.LC12:
	.string	"Sending to HTTP proxy has failed: %s"
	.align 8
.LC13:
	.string	"The HTTP proxy has closed the connection unexpectedly"
	.align 8
.LC14:
	.string	"Receiving from HTTP proxy has failed: %s"
.LC15:
	.string	"\r\n\r\n"
	.align 8
.LC16:
	.string	"Connecting DNS server has failed: %s"
	.align 8
.LC17:
	.string	"Invalid answer from HTTP proxy"
	.align 8
.LC18:
	.string	"DNS server answered before request"
	.text
	.type	HandleHttpProxy, @function
HandleHttpProxy:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	eax, DWORD PTR g_iHttpProxyConnectLen[rip]
	movsx	rdx, eax
	mov	eax, DWORD PTR -36[rbp]
	mov	ecx, 0
	lea	rsi, g_caHttpProxyConnect[rip]
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR g_iHttpProxyConnectLen[rip]
	cmp	DWORD PTR -28[rbp], eax
	je	.L94
	cmp	DWORD PTR -28[rbp], -1
	jne	.L95
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	jmp	.L96
.L95:
	lea	rax, .LC11[rip]
.L96:
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	lea	rsi, .LC12[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	mov	eax, 0
	jmp	.L97
.L94:
	mov	DWORD PTR -32[rbp], 0
.L110:
	mov	eax, 2000
	sub	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, [rcx+rax]
	mov	eax, DWORD PTR -36[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jg	.L98
	cmp	DWORD PTR -28[rbp], -1
	jne	.L99
	lea	rsi, .LC13[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	jmp	.L100
.L99:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	lea	rsi, .LC14[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
.L100:
	mov	eax, 0
	jmp	.L97
.L98:
	mov	eax, DWORD PTR -28[rbp]
	add	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 3
	jle	.L113
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 72
	je	.L103
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 84
	je	.L103
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	cmp	al, 84
	je	.L103
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	cmp	al, 80
	jne	.L104
.L103:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L114
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 4
	mov	QWORD PTR -24[rbp], rax
	jmp	.L106
.L107:
	add	QWORD PTR -24[rbp], 1
.L106:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	ja	.L107
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L104
	add	QWORD PTR -24[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	atoi@PLT
	cmp	eax, 200
	je	.L115
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 13
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	lea	rsi, .LC16[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	mov	eax, 0
	jmp	.L97
.L104:
	lea	rsi, .LC17[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	mov	eax, 0
	jmp	.L97
.L113:
	nop
	jmp	.L110
.L114:
	nop
	jmp	.L110
.L115:
	nop
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L111
	lea	rsi, .LC18[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	mov	eax, 0
	jmp	.L97
.L111:
	mov	eax, 1
.L97:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	HandleHttpProxy, .-HandleHttpProxy
	.section	.rodata
	.align 8
.LC19:
	.string	"Creating a TCP socket has failed: %s"
	.align 8
.LC20:
	.string	"Connecting the SOCKS server has failed: %s"
	.align 8
.LC21:
	.string	"Sending to SOCKS server has failed: %s"
	.align 8
.LC22:
	.string	"The SOCKS server has answered with a SOCKS version number unequal to 5"
	.align 8
.LC23:
	.string	"The SOCKS server does not support user/password authentication"
	.align 8
.LC24:
	.string	"The SOCKS server wants an authentication"
	.align 8
.LC25:
	.string	"The SOCKS server authentication has failed (error code %u)"
	.align 8
.LC26:
	.string	"Connecting through SOCKS server has failed: %s"
	.align 8
.LC27:
	.string	"Unexpected answer from SOCKS server"
	.align 8
.LC28:
	.string	"Connection not allowed by ruleset"
.LC29:
	.string	"Network unreachable"
.LC30:
	.string	"Host unreachable"
	.align 8
.LC31:
	.string	"Connection refused by destination host"
.LC32:
	.string	"TTL expired"
	.align 8
.LC33:
	.string	"Command not supported / protocol error"
.LC34:
	.string	"Address type not supported"
	.align 8
.LC35:
	.string	"Sending through SOCKS server has failed: %s"
	.align 8
.LC36:
	.string	"Server has closed the connection unexpectedly"
	.align 8
.LC37:
	.string	"Broken answer from DNS server: %s"
	.align 8
.LC38:
	.string	"Answer from DNS server too long!"
	.align 8
.LC39:
	.string	"Answer from DNS server too short!"
	.text
	.type	DnsThread, @function
DnsThread:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	lea	r11, -65536[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -65576[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -65576[rbp]
	mov	QWORD PTR -65544[rbp], rax
	movzx	eax, WORD PTR g_sSocksAddr[rip]
	movzx	eax, ax
	mov	edx, 6
	mov	esi, 1
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -65560[rbp], eax
	cmp	DWORD PTR -65560[rbp], -1
	jne	.L117
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	QWORD PTR -65552[rbp], rax
	mov	rax, QWORD PTR -65552[rbp]
	mov	rdx, rax
	lea	rsi, .LC19[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	mov	edx, DWORD PTR g_bCacheEnabled[rip]
	mov	ecx, DWORD PTR -65560[rbp]
	mov	rax, QWORD PTR -65544[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	RemoveEntry
	mov	eax, 0
	jmp	.L174
.L117:
	lea	rdi, g_sSocksAddr[rip]
	call	GetAddrLen
	mov	edx, eax
	mov	eax, DWORD PTR -65560[rbp]
	lea	rsi, g_sSocksAddr[rip]
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	jne	.L119
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	QWORD PTR -65552[rbp], rax
	mov	rax, QWORD PTR -65552[rbp]
	mov	rdx, rax
	lea	rsi, .LC20[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	mov	edx, DWORD PTR g_bCacheEnabled[rip]
	mov	ecx, DWORD PTR -65560[rbp]
	mov	rax, QWORD PTR -65544[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	RemoveEntry
	mov	eax, 0
	jmp	.L174
.L119:
	mov	eax, DWORD PTR g_iHttpProxyConnectLen[rip]
	test	eax, eax
	je	.L120
	lea	rdx, -65536[rbp]
	mov	eax, DWORD PTR -65560[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	HandleHttpProxy
	test	eax, eax
	jne	.L121
	mov	edx, DWORD PTR g_bCacheEnabled[rip]
	mov	ecx, DWORD PTR -65560[rbp]
	mov	rax, QWORD PTR -65544[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	RemoveEntry
	mov	eax, 0
	jmp	.L174
.L120:
	lea	rax, -65536[rbp]
	mov	BYTE PTR [rax], 5
	lea	rax, -65536[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 1
	mov	rax, QWORD PTR g_uaUsrPwd[rip]
	test	rax, rax
	je	.L122
	mov	edx, 2
	jmp	.L123
.L122:
	mov	edx, 0
.L123:
	lea	rax, -65536[rbp]
	add	rax, 2
	mov	BYTE PTR [rax], dl
	lea	rsi, -65536[rbp]
	mov	eax, DWORD PTR -65560[rbp]
	mov	ecx, 0
	mov	edx, 3
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -65564[rbp], eax
	cmp	DWORD PTR -65564[rbp], 3
	je	.L124
	cmp	DWORD PTR -65564[rbp], -1
	jne	.L125
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	jmp	.L126
.L125:
	lea	rax, .LC11[rip]
.L126:
	mov	QWORD PTR -65552[rbp], rax
	mov	rax, QWORD PTR -65552[rbp]
	mov	rdx, rax
	lea	rsi, .LC21[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	mov	edx, DWORD PTR g_bCacheEnabled[rip]
	mov	ecx, DWORD PTR -65560[rbp]
	mov	rax, QWORD PTR -65544[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	RemoveEntry
	mov	eax, 0
	jmp	.L174
.L124:
	lea	rax, -65536[rbp]
	add	rax, 16
	mov	ecx, DWORD PTR -65560[rbp]
	mov	rdx, rax
	mov	esi, 2
	mov	edi, ecx
	call	ReceiveBytes
	test	eax, eax
	jne	.L127
	mov	edx, DWORD PTR g_bCacheEnabled[rip]
	mov	ecx, DWORD PTR -65560[rbp]
	mov	rax, QWORD PTR -65544[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	RemoveEntry
	mov	eax, 0
	jmp	.L174
.L127:
	lea	rax, -65536[rbp]
	add	rax, 16
	movzx	eax, BYTE PTR [rax]
	cmp	al, 5
	jne	.L128
	lea	rax, -65536[rbp]
	add	rax, 17
	movzx	edx, BYTE PTR [rax]
	lea	rax, -65536[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	je	.L129
.L128:
	lea	rax, -65536[rbp]
	add	rax, 16
	movzx	eax, BYTE PTR [rax]
	cmp	al, 5
	je	.L130
	lea	rsi, .LC22[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	jmp	.L131
.L130:
	mov	rax, QWORD PTR g_uaUsrPwd[rip]
	test	rax, rax
	je	.L132
	lea	rsi, .LC23[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	jmp	.L131
.L132:
	lea	rsi, .LC24[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
.L131:
	mov	edx, DWORD PTR g_bCacheEnabled[rip]
	mov	ecx, DWORD PTR -65560[rbp]
	mov	rax, QWORD PTR -65544[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	RemoveEntry
	mov	eax, 0
	jmp	.L174
.L129:
	mov	rax, QWORD PTR g_uaUsrPwd[rip]
	test	rax, rax
	je	.L133
	mov	eax, DWORD PTR g_iUsrPwdLen[rip]
	movsx	rdx, eax
	mov	rsi, QWORD PTR g_uaUsrPwd[rip]
	mov	eax, DWORD PTR -65560[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -65564[rbp], eax
	mov	eax, DWORD PTR g_iUsrPwdLen[rip]
	cmp	DWORD PTR -65564[rbp], eax
	je	.L134
	cmp	DWORD PTR -65564[rbp], -1
	jne	.L135
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	jmp	.L136
.L135:
	lea	rax, .LC11[rip]
.L136:
	mov	QWORD PTR -65552[rbp], rax
	mov	rax, QWORD PTR -65552[rbp]
	mov	rdx, rax
	lea	rsi, .LC21[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	mov	edx, DWORD PTR g_bCacheEnabled[rip]
	mov	ecx, DWORD PTR -65560[rbp]
	mov	rax, QWORD PTR -65544[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	RemoveEntry
	mov	eax, 0
	jmp	.L174
.L134:
	lea	rax, -65536[rbp]
	add	rax, 16
	mov	ecx, DWORD PTR -65560[rbp]
	mov	rdx, rax
	mov	esi, 2
	mov	edi, ecx
	call	ReceiveBytes
	test	eax, eax
	jne	.L137
	mov	edx, DWORD PTR g_bCacheEnabled[rip]
	mov	ecx, DWORD PTR -65560[rbp]
	mov	rax, QWORD PTR -65544[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	RemoveEntry
	mov	eax, 0
	jmp	.L174
.L137:
	lea	rax, -65536[rbp]
	add	rax, 17
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L133
	lea	rax, -65536[rbp]
	add	rax, 17
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edx, eax
	lea	rsi, .LC25[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	mov	edx, DWORD PTR g_bCacheEnabled[rip]
	mov	ecx, DWORD PTR -65560[rbp]
	mov	rax, QWORD PTR -65544[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	RemoveEntry
	mov	eax, 0
	jmp	.L174
.L133:
	lea	rax, -65536[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 1
	lea	rax, -65536[rbp]
	add	rax, 2
	mov	BYTE PTR [rax], 0
	movzx	eax, WORD PTR g_sDnsSrvAddr[rip]
	movzx	eax, ax
	test	eax, eax
	je	.L138
	cmp	eax, 2
	je	.L139
	jmp	.L176
.L138:
	lea	rax, -65536[rbp]
	add	rax, 3
	mov	BYTE PTR [rax], 3
	lea	rax, g_sDnsSrvAddr[rip]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -65564[rbp], eax
	lea	rax, -65536[rbp]
	add	rax, 4
	mov	edx, DWORD PTR -65564[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -65564[rbp]
	movsx	rdx, eax
	lea	rax, g_sDnsSrvAddr[rip+8]
	mov	rcx, QWORD PTR [rax]
	lea	rax, -65536[rbp]
	add	rax, 5
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	lea	rax, g_sDnsSrvAddr[rip]
	mov	edx, DWORD PTR -65564[rbp]
	movsx	rdx, edx
	lea	rcx, 5[rdx]
	lea	rdx, -65536[rbp]
	add	rdx, rcx
	movzx	eax, WORD PTR 2[rax]
	mov	WORD PTR [rdx], ax
	mov	eax, DWORD PTR -65564[rbp]
	add	eax, 7
	mov	DWORD PTR -65568[rbp], eax
	jmp	.L141
.L139:
	lea	rax, -65536[rbp]
	add	rax, 3
	mov	BYTE PTR [rax], 1
	lea	rdx, g_sDnsSrvAddr[rip]
	lea	rax, -65536[rbp]
	add	rax, 4
	mov	edx, DWORD PTR 4[rdx]
	mov	DWORD PTR [rax], edx
	lea	rax, g_sDnsSrvAddr[rip]
	movzx	eax, WORD PTR 2[rax]
	mov	WORD PTR -65528[rbp], ax
	mov	DWORD PTR -65568[rbp], 10
	jmp	.L141
.L176:
	lea	rax, -65536[rbp]
	add	rax, 3
	mov	BYTE PTR [rax], 4
	lea	rdx, g_sDnsSrvAddr[rip+8]
	lea	rax, -65536[rbp]
	add	rax, 4
	mov	rcx, QWORD PTR [rdx]
	mov	rbx, QWORD PTR 8[rdx]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	lea	rax, g_sDnsSrvAddr[rip]
	movzx	eax, WORD PTR 2[rax]
	mov	WORD PTR -65516[rbp], ax
	mov	DWORD PTR -65568[rbp], 22
.L141:
	mov	eax, DWORD PTR -65568[rbp]
	movsx	rdx, eax
	lea	rsi, -65536[rbp]
	mov	eax, DWORD PTR -65560[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -65564[rbp], eax
	mov	eax, DWORD PTR -65564[rbp]
	cmp	eax, DWORD PTR -65568[rbp]
	je	.L142
	cmp	DWORD PTR -65564[rbp], -1
	jne	.L143
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	jmp	.L144
.L143:
	lea	rax, .LC11[rip]
.L144:
	mov	QWORD PTR -65552[rbp], rax
	mov	rax, QWORD PTR -65552[rbp]
	mov	rdx, rax
	lea	rsi, .LC26[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	mov	edx, DWORD PTR g_bCacheEnabled[rip]
	mov	ecx, DWORD PTR -65560[rbp]
	mov	rax, QWORD PTR -65544[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	RemoveEntry
	mov	eax, 0
	jmp	.L174
.L142:
	lea	rdx, -65536[rbp]
	mov	eax, DWORD PTR -65560[rbp]
	mov	esi, 5
	mov	edi, eax
	call	ReceiveBytes
	test	eax, eax
	jne	.L145
	mov	edx, DWORD PTR g_bCacheEnabled[rip]
	mov	ecx, DWORD PTR -65560[rbp]
	mov	rax, QWORD PTR -65544[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	RemoveEntry
	mov	eax, 0
	jmp	.L174
.L145:
	lea	rax, -65536[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 5
	jne	.L146
	lea	rax, -65536[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L146
	lea	rax, -65536[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	je	.L147
	lea	rax, -65536[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	cmp	al, 3
	je	.L147
	lea	rax, -65536[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	cmp	al, 4
	je	.L147
.L146:
	lea	rax, .LC27[rip]
	mov	QWORD PTR -65552[rbp], rax
	lea	rax, -65536[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 5
	jne	.L179
	lea	rax, -65536[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cmp	eax, 8
	ja	.L148
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L150[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L150[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L150:
	.long	.L148-.L150
	.long	.L148-.L150
	.long	.L156-.L150
	.long	.L155-.L150
	.long	.L154-.L150
	.long	.L153-.L150
	.long	.L152-.L150
	.long	.L151-.L150
	.long	.L149-.L150
	.text
.L156:
	lea	rax, .LC28[rip]
	mov	QWORD PTR -65552[rbp], rax
	jmp	.L148
.L155:
	lea	rax, .LC29[rip]
	mov	QWORD PTR -65552[rbp], rax
	jmp	.L148
.L154:
	lea	rax, .LC30[rip]
	mov	QWORD PTR -65552[rbp], rax
	jmp	.L148
.L153:
	lea	rax, .LC31[rip]
	mov	QWORD PTR -65552[rbp], rax
	jmp	.L148
.L152:
	lea	rax, .LC32[rip]
	mov	QWORD PTR -65552[rbp], rax
	jmp	.L148
.L151:
	lea	rax, .LC33[rip]
	mov	QWORD PTR -65552[rbp], rax
	jmp	.L148
.L149:
	lea	rax, .LC34[rip]
	mov	QWORD PTR -65552[rbp], rax
	jmp	.L148
.L179:
	nop
.L148:
	mov	rax, QWORD PTR -65552[rbp]
	mov	rdx, rax
	lea	rsi, .LC26[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	mov	edx, DWORD PTR g_bCacheEnabled[rip]
	mov	ecx, DWORD PTR -65560[rbp]
	mov	rax, QWORD PTR -65544[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	RemoveEntry
	mov	eax, 0
	jmp	.L174
.L147:
	lea	rax, -65536[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cmp	eax, 1
	je	.L157
	cmp	eax, 4
	je	.L158
	jmp	.L177
.L157:
	mov	DWORD PTR -65564[rbp], 5
	jmp	.L160
.L158:
	mov	DWORD PTR -65564[rbp], 17
	jmp	.L160
.L177:
	lea	rax, -65536[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	eax, 2
	mov	DWORD PTR -65564[rbp], eax
.L160:
	mov	ecx, DWORD PTR -65564[rbp]
	lea	rdx, -65536[rbp]
	mov	eax, DWORD PTR -65560[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	ReceiveBytes
	test	eax, eax
	jne	.L121
	mov	edx, DWORD PTR g_bCacheEnabled[rip]
	mov	ecx, DWORD PTR -65560[rbp]
	mov	rax, QWORD PTR -65544[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	RemoveEntry
	mov	eax, 0
	jmp	.L174
.L121:
	mov	rax, QWORD PTR -65544[rbp]
	movzx	eax, WORD PTR 154[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	eax, ax
	add	eax, 2
	mov	DWORD PTR -65568[rbp], eax
	mov	eax, DWORD PTR -65568[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -65544[rbp]
	lea	rsi, 154[rax]
	mov	eax, DWORD PTR -65560[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -65564[rbp], eax
	mov	eax, DWORD PTR -65564[rbp]
	cmp	eax, DWORD PTR -65568[rbp]
	je	.L161
	cmp	DWORD PTR -65564[rbp], -1
	jne	.L162
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	jmp	.L163
.L162:
	lea	rax, .LC11[rip]
.L163:
	mov	QWORD PTR -65552[rbp], rax
	mov	rax, QWORD PTR -65552[rbp]
	mov	rdx, rax
	lea	rsi, .LC35[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	mov	edx, DWORD PTR g_bCacheEnabled[rip]
	mov	ecx, DWORD PTR -65560[rbp]
	mov	rax, QWORD PTR -65544[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	RemoveEntry
	mov	eax, 0
	jmp	.L174
.L161:
	mov	DWORD PTR -65568[rbp], 0
.L170:
	mov	eax, DWORD PTR -65568[rbp]
	cdqe
	mov	edx, 65508
	sub	rdx, rax
	mov	eax, DWORD PTR -65568[rbp]
	cdqe
	lea	rcx, -65536[rbp]
	lea	rsi, [rcx+rax]
	mov	eax, DWORD PTR -65560[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -65556[rbp], eax
	cmp	DWORD PTR -65556[rbp], 0
	jg	.L164
	cmp	DWORD PTR -65556[rbp], -1
	jne	.L165
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	jmp	.L166
.L165:
	lea	rax, .LC36[rip]
.L166:
	mov	QWORD PTR -65552[rbp], rax
	mov	rax, QWORD PTR -65552[rbp]
	mov	rdx, rax
	lea	rsi, .LC37[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	mov	edx, DWORD PTR g_bCacheEnabled[rip]
	mov	ecx, DWORD PTR -65560[rbp]
	mov	rax, QWORD PTR -65544[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	RemoveEntry
	mov	eax, 0
	jmp	.L174
.L164:
	mov	eax, DWORD PTR -65556[rbp]
	add	DWORD PTR -65568[rbp], eax
	cmp	DWORD PTR -65568[rbp], 1
	jle	.L167
	movzx	eax, WORD PTR -65536[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	eax, ax
	add	eax, 2
	mov	DWORD PTR -65564[rbp], eax
	mov	eax, DWORD PTR -65568[rbp]
	cmp	eax, DWORD PTR -65564[rbp]
	jge	.L180
.L167:
	mov	eax, DWORD PTR -65568[rbp]
	cmp	eax, 65507
	jbe	.L170
	lea	rsi, .LC38[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	mov	edx, DWORD PTR g_bCacheEnabled[rip]
	mov	ecx, DWORD PTR -65560[rbp]
	mov	rax, QWORD PTR -65544[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	RemoveEntry
	mov	eax, 0
	jmp	.L174
.L180:
	nop
	cmp	DWORD PTR -65568[rbp], 4
	jg	.L171
	lea	rsi, .LC39[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	mov	edx, DWORD PTR g_bCacheEnabled[rip]
	mov	ecx, DWORD PTR -65560[rbp]
	mov	rax, QWORD PTR -65544[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	RemoveEntry
	mov	eax, 0
	jmp	.L174
.L171:
	mov	eax, DWORD PTR -65560[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR g_bCacheEnabled[rip]
	test	eax, eax
	je	.L172
	lea	rdi, g_sCritSect[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR -65564[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -65544[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	eax, DWORD PTR -65564[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -65544[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rcx, -65536[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -65544[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -65544[rbp]
	movzx	eax, WORD PTR 156[rax]
	mov	WORD PTR [rdx], ax
	mov	edi, 0
	call	time@PLT
	mov	rdx, QWORD PTR -65544[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR -65544[rbp]
	mov	rdi, rax
	call	SendAnswer
	lea	rdi, g_sCritSect[rip]
	call	pthread_mutex_unlock@PLT
	jmp	.L173
.L172:
	mov	rax, QWORD PTR -65544[rbp]
	lea	rdx, -65536[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -65544[rbp]
	mov	rdi, rax
	call	SendAnswer
	mov	rax, QWORD PTR -65544[rbp]
	mov	rdi, rax
	call	free@PLT
.L173:
	mov	eax, 0
.L174:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L175
	call	__stack_chk_fail@PLT
.L175:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	DnsThread, .-DnsThread
	.section	.rodata
.LC40:
	.string	"%3u %s"
	.text
	.type	HandleDnsRequest, @function
HandleDnsRequest:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	QWORD PTR -72[rbp], rdx
	mov	DWORD PTR -64[rbp], ecx
	lea	rdi, g_sCritSect[rip]
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR g_psFirst[rip]
	mov	QWORD PTR -32[rbp], rax
.L197:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L182
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	add	rax, 156
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 16[rax], -1
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	eax, DWORD PTR -64[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR 152[rax], dl
	mov	edx, DWORD PTR -64[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, 24[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	eax, DWORD PTR -60[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	WORD PTR 154[rdx], ax
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 154
	lea	rcx, 2[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rdx, QWORD PTR g_psFirst[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR g_bCacheEnabled[rip]
	test	eax, eax
	je	.L183
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR g_psFirst[rip], rax
.L183:
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, DnsThread[rip]
	call	ThreadCreate
	test	eax, eax
	je	.L184
	mov	eax, DWORD PTR g_uCacheCount[rip]
	add	eax, 1
	mov	DWORD PTR g_uCacheCount[rip], eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 12
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	jmp	.L185
.L189:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -41[rbp], al
	cmp	BYTE PTR -41[rbp], 0
	jne	.L186
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 13[rax]
	mov	eax, DWORD PTR g_uCacheCount[rip]
	mov	rcx, rdx
	mov	edx, eax
	lea	rsi, .LC40[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	jmp	.L190
.L186:
	cmp	BYTE PTR -41[rbp], -65
	ja	.L198
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR [rax], 46
	movzx	eax, BYTE PTR -41[rbp]
	add	rax, 1
	add	QWORD PTR -40[rbp], rax
.L185:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jb	.L189
	jmp	.L191
.L184:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR g_psFirst[rip], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L191
.L198:
	nop
.L190:
	jmp	.L191
.L182:
	mov	eax, DWORD PTR -60[rbp]
	mov	ebx, eax
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, WORD PTR 154[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	cmp	bx, ax
	jne	.L192
	mov	eax, DWORD PTR -60[rbp]
	sub	eax, 2
	cdqe
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, 154
	lea	rsi, 4[rdx]
	mov	rdx, QWORD PTR -56[rbp]
	lea	rcx, 2[rdx]
	mov	rdx, rax
	mov	rdi, rcx
	call	memcmp@PLT
	test	eax, eax
	jne	.L192
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L193
	mov	eax, DWORD PTR -64[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR 152[rax], dl
	mov	edx, DWORD PTR -64[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, 24[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	CalculateTimeToLive
	test	eax, eax
	jne	.L194
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -56[rbp]
	movzx	edx, WORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	WORD PTR 156[rax], dx
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, DnsThread[rip]
	call	ThreadCreate
	test	eax, eax
	jne	.L199
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 0
	mov	esi, -1
	mov	rdi, rax
	call	RemoveEntry
	jmp	.L199
.L194:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, WORD PTR [rax]
	mov	WORD PTR [rdx], ax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	SendAnswer
	jmp	.L199
.L193:
	mov	rax, QWORD PTR -56[rbp]
	movzx	edx, WORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	WORD PTR 156[rax], dx
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR 152[rax]
	cmp	al, 4
	jne	.L196
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	edi, eax
	call	close@PLT
.L196:
	mov	eax, DWORD PTR -64[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR 152[rax], dl
	mov	edx, DWORD PTR -64[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, 24[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	jmp	.L199
.L192:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L197
.L199:
	nop
.L191:
	lea	rdi, g_sCritSect[rip]
	call	pthread_mutex_unlock@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	HandleDnsRequest, .-HandleDnsRequest
	.section	.rodata
	.align 8
.LC41:
	.string	"\nBinding on %s, UDP port %s has failed: %s\n"
	.align 8
.LC42:
	.string	"Binding on %s, TCP port %s has failed: %s"
	.text
	.type	OutputBindError, @function
OutputBindError:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 320
	mov	DWORD PTR -308[rbp], edi
	mov	QWORD PTR -320[rbp], rsi
	mov	DWORD PTR -312[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	QWORD PTR -296[rbp], rax
	mov	eax, DWORD PTR -308[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -320[rbp]
	mov	rdi, rax
	call	GetAddrLen
	mov	esi, eax
	lea	rcx, -288[rbp]
	lea	rdx, -272[rbp]
	mov	rax, QWORD PTR -320[rbp]
	sub	rsp, 8
	push	3
	mov	r9d, 16
	mov	r8, rcx
	mov	ecx, 256
	mov	rdi, rax
	call	getnameinfo@PLT
	add	rsp, 16
	test	eax, eax
	je	.L201
	lea	rax, -272[rbp]
	movabs	rsi, 2336936577129475701
	movabs	rdi, 32496501869798497
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	lea	rax, -288[rbp]
	movabs	rsi, 31093567915781749
	mov	QWORD PTR [rax], rsi
.L201:
	cmp	DWORD PTR -312[rbp], 0
	je	.L202
	mov	eax, 0
	call	OpenConsole
	mov	rcx, QWORD PTR -296[rbp]
	lea	rdx, -288[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L205
.L202:
	mov	rcx, QWORD PTR -296[rbp]
	lea	rdx, -288[rbp]
	lea	rax, -272[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC42[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
.L205:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L204
	call	__stack_chk_fail@PLT
.L204:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	OutputBindError, .-OutputBindError
	.section	.rodata
	.align 8
.LC43:
	.string	"Listening on TCP socket has failed: %s"
	.align 8
.LC44:
	.string	"Accepting new connection on TCP socket has failed: %s"
.LC45:
	.string	"DNS request on TCP broken: %s"
	.text
	.type	TcpThread, @function
TcpThread:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -65536[rsp]
.LPSRL1:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL1
	sub	rsp, 192
	mov	QWORD PTR -65720[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -65720[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edx, 6
	mov	esi, 1
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -65696[rbp], eax
	cmp	DWORD PTR -65696[rbp], -1
	jne	.L207
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	QWORD PTR -65688[rbp], rax
	mov	rax, QWORD PTR -65688[rbp]
	mov	rdx, rax
	lea	rsi, .LC19[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	mov	eax, 0
	jmp	.L219
.L207:
	mov	rax, QWORD PTR -65720[rbp]
	mov	rdi, rax
	call	GetAddrLen
	mov	edx, eax
	mov	rcx, QWORD PTR -65720[rbp]
	mov	eax, DWORD PTR -65696[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L209
	mov	rcx, QWORD PTR -65720[rbp]
	mov	eax, DWORD PTR -65696[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	OutputBindError
	mov	eax, 0
	jmp	.L219
.L209:
	mov	eax, DWORD PTR -65696[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	cmp	eax, -1
	jne	.L210
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	QWORD PTR -65688[rbp], rax
	mov	eax, DWORD PTR -65696[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -65688[rbp]
	mov	rdx, rax
	lea	rsi, .LC43[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	mov	eax, 0
	jmp	.L219
.L210:
	mov	DWORD PTR -65704[rbp], 128
	lea	rdx, -65704[rbp]
	lea	rcx, -65680[rbp]
	mov	eax, DWORD PTR -65696[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -65708[rbp], eax
	mov	eax, DWORD PTR -65708[rbp]
	cmp	eax, -1
	jne	.L211
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	QWORD PTR -65688[rbp], rax
	mov	rax, QWORD PTR -65688[rbp]
	mov	rdx, rax
	lea	rsi, .LC44[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	nop
	mov	eax, DWORD PTR -65696[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	jmp	.L219
.L211:
	mov	DWORD PTR -65700[rbp], 0
.L218:
	mov	eax, DWORD PTR -65700[rbp]
	cdqe
	mov	edx, 65538
	sub	rdx, rax
	mov	eax, DWORD PTR -65700[rbp]
	cdqe
	lea	rcx, -65552[rbp]
	lea	rsi, [rcx+rax]
	mov	eax, DWORD PTR -65708[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -65692[rbp], eax
	cmp	DWORD PTR -65692[rbp], 0
	jg	.L213
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	QWORD PTR -65688[rbp], rax
	mov	eax, DWORD PTR -65708[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -65688[rbp]
	mov	rdx, rax
	lea	rsi, .LC45[rip]
	mov	edi, 7
	mov	eax, 0
	call	OutputToLog
	jmp	.L214
.L213:
	mov	eax, DWORD PTR -65692[rbp]
	add	DWORD PTR -65700[rbp], eax
	cmp	DWORD PTR -65700[rbp], 1
	jle	.L218
	movzx	eax, WORD PTR -65552[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	WORD PTR -65710[rbp], ax
	movzx	eax, WORD PTR -65710[rbp]
	add	eax, 2
	cmp	DWORD PTR -65700[rbp], eax
	jg	.L218
	cmp	WORD PTR -65710[rbp], 12
	jbe	.L216
	movzx	esi, WORD PTR -65710[rbp]
	lea	rax, -65552[rbp]
	add	rax, 2
	lea	rdx, -65708[rbp]
	mov	ecx, 4
	mov	rdi, rax
	call	HandleDnsRequest
	jmp	.L214
.L216:
	mov	eax, DWORD PTR -65708[rbp]
	mov	edi, eax
	call	close@PLT
.L214:
	jmp	.L210
.L219:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L220
	call	__stack_chk_fail@PLT
.L220:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	TcpThread, .-TcpThread
	.section	.rodata
	.align 8
.LC46:
	.string	"\nInvalid address '%s' and port '%s' specified for %s!\n"
	.align 8
.LC47:
	.string	"\nAddress '%s' and port '%s' specified for %s too long for internal storage!\n"
	.text
	.type	ParseIpAndPort, @function
ParseIpAndPort:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 152
	.cfi_offset 3, -24
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	QWORD PTR -136[rbp], rdx
	mov	QWORD PTR -144[rbp], rcx
	mov	QWORD PTR -152[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -144[rbp]
	mov	esi, 46
	mov	rdi, rax
	call	strchr@PLT
	test	rax, rax
	je	.L222
	mov	rax, QWORD PTR -144[rbp]
	mov	esi, 58
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -96[rbp], rax
	cmp	QWORD PTR -96[rbp], 0
	je	.L223
	mov	rax, QWORD PTR -96[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 1
	mov	QWORD PTR -136[rbp], rax
	jmp	.L223
.L222:
	mov	rax, QWORD PTR -144[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 91
	jne	.L223
	add	QWORD PTR -144[rbp], 1
	mov	rax, QWORD PTR -144[rbp]
	mov	esi, 93
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -96[rbp], rax
	cmp	QWORD PTR -96[rbp], 0
	je	.L223
	mov	rax, QWORD PTR -96[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 58
	jne	.L223
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 2
	mov	QWORD PTR -136[rbp], rax
.L223:
	lea	rax, -80[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -76[rbp], 0
	mov	eax, DWORD PTR -116[rbp]
	or	eax, 1028
	mov	DWORD PTR -80[rbp], eax
	lea	rcx, -104[rbp]
	lea	rdx, -80[rbp]
	mov	rsi, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], 0
	je	.L224
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	rdx, QWORD PTR -152[rbp]
	mov	DWORD PTR 4[rdx], eax
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, -1
	je	.L225
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	atoi@PLT
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	rdx, QWORD PTR -152[rbp]
	mov	WORD PTR 2[rdx], ax
	mov	rax, QWORD PTR -152[rbp]
	movzx	eax, WORD PTR 2[rax]
	test	ax, ax
	je	.L225
	mov	rax, QWORD PTR -152[rbp]
	mov	WORD PTR [rax], 2
	mov	eax, 1
	jmp	.L229
.L225:
	lea	rax, g_sDnsSrvAddr[rip]
	cmp	QWORD PTR -152[rbp], rax
	jne	.L227
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 255
	ja	.L227
	cmp	QWORD PTR -88[rbp], 0
	je	.L227
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	atoi@PLT
	movzx	eax, ax
	lea	rbx, g_sDnsSrvAddr[rip]
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR 2[rbx], ax
	lea	rax, g_sDnsSrvAddr[rip]
	movzx	eax, WORD PTR 2[rax]
	test	ax, ax
	je	.L227
	mov	WORD PTR g_sDnsSrvAddr[rip], 0
	lea	rdx, g_sDnsSrvAddr[rip+8]
	mov	rax, QWORD PTR -144[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -88[rbp]
	lea	rdx, g_sDnsSrvAddr[rip]
	movzx	eax, al
	mov	DWORD PTR 4[rdx], eax
	mov	eax, 1
	jmp	.L229
.L227:
	mov	eax, 0
	call	OpenConsole
	mov	rcx, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L229
.L224:
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 128
	jbe	.L228
	mov	eax, 0
	call	OpenConsole
	mov	rcx, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC47[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L229
.L228:
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -104[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	eax, 1
.L229:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L230
	call	__stack_chk_fail@PLT
.L230:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	ParseIpAndPort, .-ParseIpAndPort
	.section	.rodata
.LC48:
	.string	"CONNECT "
.LC49:
	.string	"%s:%u"
.LC50:
	.string	" HTTP/1.0\r\n\r\n"
	.text
	.type	CreateHttpProxyConnectCommand, @function
CreateHttpProxyConnectCommand:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edx, 8
	lea	rsi, .LC48[rip]
	lea	rdi, g_caHttpProxyConnect[rip]
	call	memcpy@PLT
	mov	DWORD PTR g_iHttpProxyConnectLen[rip], 8
	movzx	eax, WORD PTR g_sDnsSrvAddr[rip]
	test	ax, ax
	jne	.L232
	lea	rax, g_sDnsSrvAddr[rip]
	movzx	eax, WORD PTR 2[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	edx, ax
	lea	rax, g_sDnsSrvAddr[rip+8]
	mov	rax, QWORD PTR [rax]
	mov	ecx, DWORD PTR g_iHttpProxyConnectLen[rip]
	movsx	rcx, ecx
	lea	rsi, g_caHttpProxyConnect[rip]
	lea	rdi, [rcx+rsi]
	mov	ecx, edx
	mov	rdx, rax
	lea	rsi, .LC49[rip]
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jg	.L233
	mov	eax, 0
	jmp	.L234
.L233:
	mov	edx, DWORD PTR g_iHttpProxyConnectLen[rip]
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	mov	DWORD PTR g_iHttpProxyConnectLen[rip], eax
	jmp	.L235
.L232:
	movzx	eax, WORD PTR g_sDnsSrvAddr[rip]
	cmp	ax, 10
	jne	.L236
	mov	eax, DWORD PTR g_iHttpProxyConnectLen[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR g_iHttpProxyConnectLen[rip], edx
	cdqe
	lea	rdx, g_caHttpProxyConnect[rip]
	mov	BYTE PTR [rax+rdx], 91
.L236:
	mov	eax, DWORD PTR g_iHttpProxyConnectLen[rip]
	cdqe
	lea	rdx, g_caHttpProxyConnect[rip]
	lea	rbx, [rax+rdx]
	lea	rdi, g_sDnsSrvAddr[rip]
	call	GetAddrLen
	lea	rdx, -30[rbp]
	sub	rsp, 8
	push	3
	mov	r9d, 6
	mov	r8, rdx
	mov	ecx, 128
	mov	rdx, rbx
	mov	esi, eax
	lea	rdi, g_sDnsSrvAddr[rip]
	call	getnameinfo@PLT
	add	rsp, 16
	test	eax, eax
	je	.L237
	mov	eax, 0
	jmp	.L234
.L237:
	mov	eax, DWORD PTR g_iHttpProxyConnectLen[rip]
	cdqe
	lea	rdx, g_caHttpProxyConnect[rip]
	add	rax, rdx
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	eax, DWORD PTR g_iHttpProxyConnectLen[rip]
	add	eax, edx
	mov	DWORD PTR g_iHttpProxyConnectLen[rip], eax
	movzx	eax, WORD PTR g_sDnsSrvAddr[rip]
	cmp	ax, 10
	jne	.L238
	mov	eax, DWORD PTR g_iHttpProxyConnectLen[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR g_iHttpProxyConnectLen[rip], edx
	cdqe
	lea	rdx, g_caHttpProxyConnect[rip]
	mov	BYTE PTR [rax+rdx], 93
.L238:
	mov	eax, DWORD PTR g_iHttpProxyConnectLen[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR g_iHttpProxyConnectLen[rip], edx
	cdqe
	lea	rdx, g_caHttpProxyConnect[rip]
	mov	BYTE PTR [rax+rdx], 58
	lea	rax, -30[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR g_iHttpProxyConnectLen[rip]
	cdqe
	lea	rcx, g_caHttpProxyConnect[rip]
	add	rcx, rax
	lea	rax, -30[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	edx, DWORD PTR g_iHttpProxyConnectLen[rip]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	mov	DWORD PTR g_iHttpProxyConnectLen[rip], eax
.L235:
	mov	eax, DWORD PTR g_iHttpProxyConnectLen[rip]
	cdqe
	lea	rdx, g_caHttpProxyConnect[rip]
	add	rax, rdx
	mov	edx, 13
	lea	rsi, .LC50[rip]
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR g_iHttpProxyConnectLen[rip]
	add	eax, 13
	mov	DWORD PTR g_iHttpProxyConnectLen[rip], eax
	mov	eax, 1
.L234:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L239
	call	__stack_chk_fail@PLT
.L239:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	CreateHttpProxyConnectCommand, .-CreateHttpProxyConnectCommand
	.section	.rodata
.LC51:
	.string	"127.0.0.1"
.LC52:
	.string	"23333"
.LC53:
	.string	"SOCKS server"
.LC54:
	.string	"1.1.1.1"
.LC55:
	.string	"53"
.LC56:
	.string	"DNS server"
.LC57:
	.string	"5533"
.LC58:
	.string	"listening"
	.align 8
.LC59:
	.ascii	"\nDNS2SOCKS tunnels DNS requests via SOCKS5 and caches the a"
	.ascii	"nswers.\n\n\nUsage:\n\nDNS2PROXY [/?] [/t] [/d] [/q] [/l[a]:"
	.ascii	"FilePath] [/u:User /p:Password]\n          [Socks5ServerIP[:"
	.ascii	"Port]] [DNSServerIPorName[:Port]] [ListenIP[:Port]]\n\n/?   "
	.ascii	"         to view this help\n/t            to use a HTTP prox"
	.ascii	"y instead of a SOCKS server\n              (here: Socks5Serv"
	.ascii	"erIP = HttpProxyIP, no support for /u and /p)\n/d           "
	.ascii	" to disable the cache\n/q            to suppress the text ou"
	.ascii	"tput\n/l:FilePath   to create a new log file \"FilePath\"\n/"
	.ascii	"la:FilePath  to create a new log file or append to the exist"
	.ascii	"ing \"FilePath\"\n/u:User"
	.string	"       user name if your SOCKS server uses user/password authentication\n/p:Password   password if your SOCKS server uses user/password authentication\n\nDefault Socks5ServerIP:Port = %s:%s\nDefault DNSServerIPorName:Port = %s:%s\nDefault ListenIP:Port = %s:%s\n"
	.align 8
.LC60:
	.string	"\nPassword specified but no user!"
	.align 8
.LC61:
	.string	"\nUser specified but no password!"
	.align 8
.LC62:
	.string	"\nAuthentication not supported for HTTP proxy!"
.LC63:
	.string	"\nUser exceeds 255 characters!"
	.align 8
.LC64:
	.string	"\nPassword exceeds 255 characters!"
	.align 8
.LC65:
	.string	"\nFailed to create CONNECT command!"
	.align 8
.LC66:
	.string	"\nCreating a UDP socket has failed: %s\n"
.LC67:
	.string	"%hu"
.LC68:
	.string	"enabled"
.LC69:
	.string	"disabled"
.LC70:
	.string	"HTTP proxy  "
	.align 8
.LC71:
	.string	"%s %s port %s\nDNS server   %s port %s\nlistening on %s port %s\ncache %s\nauthentication %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	lea	r11, -65536[rsp]
.LPSRL2:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL2
	sub	rsp, 224
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -65764[rbp], edi
	mov	QWORD PTR -65776[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, g_sSocksAddr[rip]
	mov	QWORD PTR -65664[rbp], rax
	lea	rax, .LC51[rip]
	mov	QWORD PTR -65656[rbp], rax
	lea	rax, .LC52[rip]
	mov	QWORD PTR -65648[rbp], rax
	lea	rax, .LC53[rip]
	mov	QWORD PTR -65640[rbp], rax
	mov	DWORD PTR -65632[rbp], 0
	lea	rax, g_sDnsSrvAddr[rip]
	mov	QWORD PTR -65624[rbp], rax
	lea	rax, .LC54[rip]
	mov	QWORD PTR -65616[rbp], rax
	lea	rax, .LC55[rip]
	mov	QWORD PTR -65608[rbp], rax
	lea	rax, .LC56[rip]
	mov	QWORD PTR -65600[rbp], rax
	mov	DWORD PTR -65592[rbp], 0
	lea	rax, sAddr.0[rip]
	mov	QWORD PTR -65584[rbp], rax
	lea	rax, .LC51[rip]
	mov	QWORD PTR -65576[rbp], rax
	lea	rax, .LC57[rip]
	mov	QWORD PTR -65568[rbp], rax
	lea	rax, .LC58[rip]
	mov	QWORD PTR -65560[rbp], rax
	mov	DWORD PTR -65552[rbp], 1
	mov	DWORD PTR -65736[rbp], 0
	mov	DWORD PTR -65740[rbp], 0
	mov	DWORD PTR -65744[rbp], 0
	mov	QWORD PTR -65704[rbp], 0
	mov	QWORD PTR -65728[rbp], 0
	mov	QWORD PTR -65720[rbp], 0
	mov	rax, QWORD PTR -65776[rbp]
	add	rax, 8
	mov	QWORD PTR -65712[rbp], rax
	jmp	.L241
.L264:
	mov	rax, QWORD PTR -65712[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -65672[rbp], rax
	mov	rax, QWORD PTR -65672[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L242
	mov	rax, QWORD PTR -65672[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L243
.L242:
	mov	rax, QWORD PTR -65672[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 68
	cmp	eax, 49
	ja	.L261
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L246[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L246[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L246:
	.long	.L251-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L250-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L249-.L246
	.long	.L248-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L247-.L246
	.long	.L245-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L251-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L250-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L249-.L246
	.long	.L248-.L246
	.long	.L261-.L246
	.long	.L261-.L246
	.long	.L247-.L246
	.long	.L245-.L246
	.text
.L251:
	mov	rax, QWORD PTR -65672[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L294
	mov	DWORD PTR g_bCacheEnabled[rip], 0
	jmp	.L253
.L248:
	mov	rax, QWORD PTR -65672[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L295
	mov	DWORD PTR -65736[rbp], 1
	jmp	.L253
.L250:
	cmp	QWORD PTR -65704[rbp], 0
	jne	.L296
	mov	rax, QWORD PTR -65672[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	cmp	al, 97
	je	.L256
	mov	rax, QWORD PTR -65672[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	cmp	al, 65
	jne	.L257
.L256:
	mov	eax, 1
	jmp	.L258
.L257:
	mov	eax, 0
.L258:
	mov	DWORD PTR -65740[rbp], eax
	mov	eax, DWORD PTR -65740[rbp]
	add	eax, 2
	movsx	rdx, eax
	mov	rax, QWORD PTR -65672[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 58
	jne	.L296
	mov	eax, DWORD PTR -65740[rbp]
	cdqe
	lea	rdx, 3[rax]
	mov	rax, QWORD PTR -65672[rbp]
	add	rax, rdx
	mov	QWORD PTR -65704[rbp], rax
	jmp	.L253
.L245:
	cmp	QWORD PTR -65728[rbp], 0
	jne	.L297
	mov	rax, QWORD PTR -65672[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	cmp	al, 58
	jne	.L297
	mov	rax, QWORD PTR -65672[rbp]
	add	rax, 3
	mov	QWORD PTR -65728[rbp], rax
	jmp	.L253
.L249:
	cmp	QWORD PTR -65720[rbp], 0
	jne	.L298
	mov	rax, QWORD PTR -65672[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	cmp	al, 58
	jne	.L298
	mov	rax, QWORD PTR -65672[rbp]
	add	rax, 3
	mov	QWORD PTR -65720[rbp], rax
	jmp	.L253
.L247:
	mov	DWORD PTR g_iHttpProxyConnectLen[rip], 1
	jmp	.L253
.L294:
	nop
	jmp	.L261
.L295:
	nop
	jmp	.L261
.L296:
	nop
	jmp	.L261
.L297:
	nop
	jmp	.L261
.L298:
	nop
	jmp	.L261
.L243:
	mov	eax, DWORD PTR -65744[rbp]
	cmp	eax, 2
	ja	.L261
	mov	eax, DWORD PTR -65744[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 65648
	mov	rdi, QWORD PTR [rax]
	mov	eax, DWORD PTR -65744[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 65632
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -65744[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 65624
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR -65744[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 65616
	mov	eax, DWORD PTR [rax]
	mov	rcx, QWORD PTR -65672[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	ParseIpAndPort
	test	eax, eax
	jne	.L262
	mov	eax, 1
	jmp	.L292
.L262:
	add	DWORD PTR -65744[rbp], 1
	jmp	.L253
.L261:
	mov	eax, 0
	call	OpenConsole
	sub	rsp, 8
	lea	rax, .LC57[rip]
	push	rax
	lea	r9, .LC51[rip]
	lea	r8, .LC55[rip]
	lea	rcx, .LC54[rip]
	lea	rdx, .LC52[rip]
	lea	rsi, .LC51[rip]
	lea	rdi, .LC59[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	mov	eax, 1
	jmp	.L292
.L253:
	add	QWORD PTR -65712[rbp], 8
.L241:
	sub	DWORD PTR -65764[rbp], 1
	cmp	DWORD PTR -65764[rbp], 0
	jne	.L264
	cmp	QWORD PTR -65720[rbp], 0
	je	.L265
	cmp	QWORD PTR -65728[rbp], 0
	jne	.L265
	mov	eax, 0
	call	OpenConsole
	lea	rdi, .LC60[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L292
.L265:
	cmp	QWORD PTR -65720[rbp], 0
	jne	.L266
	cmp	QWORD PTR -65728[rbp], 0
	je	.L266
	mov	eax, 0
	call	OpenConsole
	lea	rdi, .LC61[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L292
.L266:
	mov	eax, DWORD PTR g_iHttpProxyConnectLen[rip]
	test	eax, eax
	je	.L267
	cmp	QWORD PTR -65720[rbp], 0
	je	.L267
	mov	eax, 0
	call	OpenConsole
	lea	rdi, .LC62[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L292
.L267:
	cmp	QWORD PTR -65728[rbp], 0
	je	.L268
	mov	rax, QWORD PTR -65728[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -65696[rbp], rax
	cmp	QWORD PTR -65696[rbp], 255
	jbe	.L269
	mov	eax, 0
	call	OpenConsole
	lea	rdi, .LC63[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L292
.L269:
	mov	rax, QWORD PTR -65720[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -65688[rbp], rax
	cmp	QWORD PTR -65688[rbp], 255
	jbe	.L271
	mov	eax, 0
	call	OpenConsole
	lea	rdi, .LC64[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L292
.L268:
	mov	QWORD PTR -65696[rbp], 0
	mov	QWORD PTR -65688[rbp], 0
	jmp	.L271
.L273:
	mov	eax, DWORD PTR -65744[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 65648
	mov	r8, QWORD PTR [rax]
	mov	eax, DWORD PTR -65744[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 65640
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -65744[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 65632
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -65744[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 2
	add	rax, rsi
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 65624
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR -65744[rbp]
	movsx	rdi, eax
	mov	rax, rdi
	sal	rax, 2
	add	rax, rdi
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 65616
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	ParseIpAndPort
	test	eax, eax
	jne	.L272
	mov	eax, 1
	jmp	.L292
.L272:
	add	DWORD PTR -65744[rbp], 1
.L271:
	mov	eax, DWORD PTR -65744[rbp]
	cmp	eax, 2
	jbe	.L273
	mov	eax, DWORD PTR g_iHttpProxyConnectLen[rip]
	test	eax, eax
	je	.L274
	mov	eax, 0
	call	CreateHttpProxyConnectCommand
	test	eax, eax
	jne	.L274
	mov	eax, 0
	call	OpenConsole
	lea	rdi, .LC65[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L292
.L274:
	movzx	eax, WORD PTR sAddr.0[rip]
	movzx	eax, ax
	mov	edx, 17
	mov	esi, 2
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR g_hSockUdp[rip], eax
	mov	eax, DWORD PTR g_hSockUdp[rip]
	cmp	eax, -1
	jne	.L275
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	QWORD PTR -65680[rbp], rax
	mov	eax, 0
	call	OpenConsole
	mov	rax, QWORD PTR -65680[rbp]
	mov	rsi, rax
	lea	rdi, .LC66[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L292
.L275:
	lea	rdi, sAddr.0[rip]
	call	GetAddrLen
	mov	edx, eax
	mov	eax, DWORD PTR g_hSockUdp[rip]
	lea	rsi, sAddr.0[rip]
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L276
	mov	eax, DWORD PTR g_hSockUdp[rip]
	mov	edx, 1
	lea	rsi, sAddr.0[rip]
	mov	edi, eax
	call	OutputBindError
	mov	eax, 1
	jmp	.L292
.L276:
	cmp	DWORD PTR -65736[rbp], 0
	jne	.L277
	mov	eax, 0
	call	OpenConsole
.L277:
	lea	rbx, -65536[rbp]
	add	rbx, 256
	lea	rdi, g_sSocksAddr[rip]
	call	GetAddrLen
	mov	esi, eax
	lea	rax, -65536[rbp]
	sub	rsp, 8
	push	3
	mov	r9d, 256
	mov	r8, rbx
	mov	ecx, 256
	mov	rdx, rax
	lea	rdi, g_sSocksAddr[rip]
	call	getnameinfo@PLT
	add	rsp, 16
	test	eax, eax
	je	.L278
	lea	rax, -65536[rbp]
	movabs	rbx, 2336936577129475701
	movabs	rsi, 32496501869798497
	mov	QWORD PTR [rax], rbx
	mov	QWORD PTR 8[rax], rsi
	lea	rax, -65536[rbp]
	add	rax, 256
	movabs	rbx, 31093567915781749
	mov	QWORD PTR [rax], rbx
.L278:
	movzx	eax, WORD PTR g_sDnsSrvAddr[rip]
	test	ax, ax
	jne	.L279
	lea	rax, g_sDnsSrvAddr[rip+8]
	mov	rdx, QWORD PTR [rax]
	lea	rax, -65536[rbp]
	add	rax, 512
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, g_sDnsSrvAddr[rip]
	movzx	eax, WORD PTR 2[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	edx, ax
	lea	rax, -65536[rbp]
	add	rax, 768
	lea	rsi, .LC67[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L280
.L279:
	lea	r12, -65536[rbp]
	add	r12, 768
	lea	rbx, -65536[rbp]
	add	rbx, 512
	lea	rdi, g_sDnsSrvAddr[rip]
	call	GetAddrLen
	sub	rsp, 8
	push	3
	mov	r9d, 256
	mov	r8, r12
	mov	ecx, 256
	mov	rdx, rbx
	mov	esi, eax
	lea	rdi, g_sDnsSrvAddr[rip]
	call	getnameinfo@PLT
	add	rsp, 16
	test	eax, eax
	je	.L280
	lea	rax, -65536[rbp]
	add	rax, 512
	movabs	rbx, 2336936577129475701
	movabs	rsi, 32496501869798497
	mov	QWORD PTR [rax], rbx
	mov	QWORD PTR 8[rax], rsi
	lea	rax, -65536[rbp]
	add	rax, 768
	movabs	rbx, 31093567915781749
	mov	QWORD PTR [rax], rbx
.L280:
	lea	r12, -65536[rbp]
	add	r12, 1280
	lea	rbx, -65536[rbp]
	add	rbx, 1024
	lea	rdi, sAddr.0[rip]
	call	GetAddrLen
	sub	rsp, 8
	push	3
	mov	r9d, 256
	mov	r8, r12
	mov	ecx, 256
	mov	rdx, rbx
	mov	esi, eax
	lea	rdi, sAddr.0[rip]
	call	getnameinfo@PLT
	add	rsp, 16
	test	eax, eax
	je	.L281
	lea	rax, -65536[rbp]
	add	rax, 1024
	movabs	rbx, 2336936577129475701
	movabs	rsi, 32496501869798497
	mov	QWORD PTR [rax], rbx
	mov	QWORD PTR 8[rax], rsi
	lea	rax, -65536[rbp]
	add	rax, 1280
	movabs	rbx, 31093567915781749
	mov	QWORD PTR [rax], rbx
.L281:
	cmp	QWORD PTR -65728[rbp], 0
	je	.L282
	lea	r9, .LC68[rip]
	jmp	.L283
.L282:
	lea	r9, .LC69[rip]
.L283:
	mov	eax, DWORD PTR g_bCacheEnabled[rip]
	test	eax, eax
	je	.L284
	lea	r8, .LC68[rip]
	jmp	.L285
.L284:
	lea	r8, .LC69[rip]
.L285:
	lea	rcx, -65536[rbp]
	add	rcx, 1280
	lea	rdx, -65536[rbp]
	add	rdx, 1024
	lea	rax, -65536[rbp]
	add	rax, 768
	lea	rdi, -65536[rbp]
	add	rdi, 512
	lea	rsi, -65536[rbp]
	add	rsi, 256
	mov	r10d, DWORD PTR g_iHttpProxyConnectLen[rip]
	test	r10d, r10d
	je	.L286
	lea	r10, .LC70[rip]
	jmp	.L287
.L286:
	lea	r10, .LC53[rip]
.L287:
	lea	r11, -65536[rbp]
	sub	rsp, 8
	push	r9
	push	r8
	push	rcx
	push	rdx
	push	rax
	mov	r9, rdi
	mov	r8, rsi
	mov	rcx, r11
	mov	rdx, r10
	lea	rsi, .LC71[rip]
	mov	edi, 5
	mov	eax, 0
	call	OutputToLog
	add	rsp, 48
	mov	esi, 0
	lea	rdi, g_sCritSect[rip]
	call	pthread_mutex_init@PLT
	cmp	QWORD PTR -65704[rbp], 0
	je	.L288
	mov	edx, DWORD PTR -65740[rbp]
	mov	rax, QWORD PTR -65704[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	OpenLogFile
.L288:
	cmp	QWORD PTR -65728[rbp], 0
	je	.L289
	mov	rax, QWORD PTR -65696[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -65688[rbp]
	add	eax, edx
	add	eax, 3
	mov	DWORD PTR g_iUsrPwdLen[rip], eax
	mov	eax, DWORD PTR g_iUsrPwdLen[rip]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR g_uaUsrPwd[rip], rax
	mov	rax, QWORD PTR g_uaUsrPwd[rip]
	mov	BYTE PTR [rax], 1
	mov	rax, QWORD PTR g_uaUsrPwd[rip]
	add	rax, 1
	mov	rdx, QWORD PTR -65696[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR g_uaUsrPwd[rip]
	lea	rcx, 2[rax]
	mov	rdx, QWORD PTR -65696[rbp]
	mov	rax, QWORD PTR -65728[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rdx, QWORD PTR g_uaUsrPwd[rip]
	mov	rax, QWORD PTR -65696[rbp]
	add	rax, 2
	add	rax, rdx
	mov	rdx, QWORD PTR -65688[rbp]
	mov	BYTE PTR [rax], dl
	mov	rdx, QWORD PTR g_uaUsrPwd[rip]
	mov	rax, QWORD PTR -65696[rbp]
	add	rax, 3
	lea	rcx, [rdx+rax]
	mov	rdx, QWORD PTR -65688[rbp]
	mov	rax, QWORD PTR -65720[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
.L289:
	lea	rsi, sAddr.0[rip]
	lea	rdi, TcpThread[rip]
	call	ThreadCreate
.L291:
	mov	DWORD PTR -65748[rbp], 128
	mov	eax, DWORD PTR g_hSockUdp[rip]
	lea	rdx, -65748[rbp]
	lea	rsi, -65536[rbp]
	mov	r9, rdx
	lea	r8, sAddr.0[rip]
	mov	ecx, 0
	mov	edx, 65508
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -65732[rbp], eax
	cmp	DWORD PTR -65732[rbp], 12
	jle	.L291
	mov	edx, DWORD PTR -65748[rbp]
	mov	esi, DWORD PTR -65732[rbp]
	lea	rax, -65536[rbp]
	mov	ecx, edx
	lea	rdx, sAddr.0[rip]
	mov	rdi, rax
	call	HandleDnsRequest
	jmp	.L291
.L292:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L293
	call	__stack_chk_fail@PLT
.L293:
	lea	rsp, -16[rbp]
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.local	sAddr.0
	.comm	sAddr.0,128,32
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"1075390.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"127.0.0.1\000"
	.align	2
.LC1:
	.ascii	"23333\000"
	.align	2
.LC2:
	.ascii	"SOCKS server\000"
	.align	2
.LC3:
	.ascii	"1.1.1.1\000"
	.align	2
.LC4:
	.ascii	"53\000"
	.align	2
.LC5:
	.ascii	"DNS server\000"
	.align	2
.LC6:
	.ascii	"5533\000"
	.align	2
.LC7:
	.ascii	"listening\000"
	.text
	.local	g_psFirst
	.comm	g_psFirst,4,4
	.local	g_uCacheCount
	.comm	g_uCacheCount,4,4
	.data
	.align	2
	.type	g_bCacheEnabled, %object
	.size	g_bCacheEnabled, 4
g_bCacheEnabled:
	.word	1
	.local	g_sDnsSrvAddr
	.comm	g_sDnsSrvAddr,128,4
	.local	g_sSocksAddr
	.comm	g_sSocksAddr,128,4
	.local	g_sCritSect
	.comm	g_sCritSect,24,4
	.local	g_hSockUdp
	.comm	g_hSockUdp,4,4
	.local	g_uaUsrPwd
	.comm	g_uaUsrPwd,4,4
	.local	g_iUsrPwdLen
	.comm	g_iUsrPwdLen,4,4
	.local	g_iHttpProxyConnectLen
	.comm	g_iHttpProxyConnectLen,4,4
	.local	g_caHttpProxyConnect
	.comm	g_caHttpProxyConnect,300,4
	.local	g_bConsole
	.comm	g_bConsole,4,4
	.local	g_pLogFile
	.comm	g_pLogFile,4,4
	.section	.rodata
	.align	2
.LC9:
	.ascii	"%u-%02u-%02u %02u:%02u:%02u   \000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	OutputToLog, %function
OutputToLog:
	@ args = 4, pretend = 12, frame = 4128
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r1, r2, r3}
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #4096
	sub	sp, sp, #56
	sub	r3, fp, #4096
	sub	r3, r3, #16
	str	r0, [r3, #-28]
	sub	r3, fp, #4096
	sub	r3, r3, #16
	mov	r2, r3
	ldr	r3, [fp, #4]
	str	r3, [r2, #-32]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	mov	r3,#0
	ldr	r3, .L23+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	sub	r3, fp, #4096
	sub	r3, r3, #16
	ldr	r3, [r3, #-28]
	and	r3, r3, #4
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r3, .L23+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L18
.L3:
	sub	r3, fp, #4096
	sub	r3, r3, #16
	ldr	r3, [r3, #-28]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L5
	sub	r3, fp, #4096
	sub	r3, r3, #16
	mov	r2, #10
	strb	r2, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #16
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-16]
	b	.L6
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #16
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-16]
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #16
	ldr	r3, [r3, #-28]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L7
	sub	r3, fp, #4096
	sub	r3, r3, #16
	sub	r3, r3, #20
	mov	r0, r3
	bl	time
	mov	r3, r0
	cmn	r3, #1
	beq	.L19
	sub	r3, fp, #4096
	sub	r3, r3, #16
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #16
	sub	r3, r3, #20
	mov	r0, r3
	bl	localtime
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #16
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	beq	.L20
	sub	r3, fp, #4096
	sub	r3, r3, #16
	ldr	r2, [r3, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #16
	sub	r3, r3, #4
	add	r4, r3, r2
	sub	r3, fp, #4096
	sub	r3, r3, #16
	ldr	r3, [r3, #-16]
	rsb	r5, r3, #4096
	sub	r3, fp, #4096
	sub	r3, r3, #16
	ldr	r3, [r3, #-8]
	ldr	r3, [r3, #20]
	add	r3, r3, #1888
	add	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #16
	ldr	r2, [r2, #-8]
	ldr	r2, [r2, #16]
	add	r2, r2, #1
	sub	r1, fp, #4096
	sub	r1, r1, #16
	ldr	r1, [r1, #-8]
	ldr	r1, [r1, #12]
	sub	r0, fp, #4096
	sub	r0, r0, #16
	ldr	r0, [r0, #-8]
	ldr	r0, [r0, #8]
	sub	ip, fp, #4096
	sub	ip, ip, #16
	ldr	ip, [ip, #-8]
	ldr	ip, [ip, #4]
	sub	lr, fp, #4096
	sub	lr, lr, #16
	ldr	lr, [lr, #-8]
	ldr	lr, [lr]
	sub	r6, fp, #4096
	sub	r6, r6, #16
	str	lr, [sp, #16]
	str	ip, [sp, #12]
	str	r0, [sp, #8]
	str	r1, [sp, #4]
	str	r2, [sp]
	ldr	r2, .L23+12
	mov	r1, r5
	mov	r0, r4
	bl	snprintf
	str	r0, [r6, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #16
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	blt	.L21
	sub	r3, fp, #4096
	sub	r3, r3, #16
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #16
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #16
	ldr	r2, [r2, #-16]
	ldr	r3, [r3, #-12]
	add	r3, r2, r3
	str	r3, [r1, #-16]
.L7:
	add	r3, fp, #8
	sub	r2, fp, #4096
	sub	r2, r2, #16
	str	r3, [r2, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #16
	ldr	r2, [r3, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #16
	sub	r3, r3, #4
	add	r0, r3, r2
	sub	r3, fp, #4096
	sub	r3, r3, #16
	ldr	r3, [r3, #-16]
	rsb	r1, r3, #4096
	sub	r3, fp, #4096
	sub	r3, r3, #16
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #16
	sub	r2, fp, #4096
	sub	r2, r2, #16
	ldr	r3, [r3, #-20]
	ldr	r2, [r2, #-32]
	bl	vsnprintf
	str	r0, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #16
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	blt	.L22
	sub	r3, fp, #4096
	sub	r3, r3, #16
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #16
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #16
	ldr	r2, [r2, #-12]
	ldr	r3, [r3, #-16]
	add	r3, r2, r3
	str	r3, [r1, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #16
	ldr	r3, [r3, #-12]
	cmp	r3, #4096
	bcc	.L13
	sub	r3, fp, #4096
	sub	r3, r3, #16
	mov	r2, #0
	strb	r2, [r3, #4091]
	sub	r3, fp, #4096
	sub	r3, r3, #16
	mov	r2, r3
	ldr	r3, .L23+16
	str	r3, [r2, #-12]
.L13:
	ldr	r3, .L23+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	sub	r3, fp, #4096
	sub	r3, r3, #16
	ldr	r3, [r3, #-28]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L23+20
	ldr	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #16
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	fputs
.L14:
	ldr	r3, .L23+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L1
	sub	r3, fp, #4096
	sub	r3, r3, #16
	ldr	r2, [r3, #-12]
	ldr	r3, .L23+8
	ldr	r3, [r3]
	sub	r0, fp, #4096
	sub	r0, r0, #16
	sub	r0, r0, #4
	mov	r1, #1
	bl	fwrite
	b	.L1
.L18:
	nop
	b	.L1
.L19:
	nop
	b	.L1
.L20:
	nop
	b	.L1
.L21:
	nop
	b	.L1
.L22:
	nop
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, lr}
	add	sp, sp, #12
	bx	lr
.L24:
	.align	2
.L23:
	.word	.LC10
	.word	g_bConsole
	.word	g_pLogFile
	.word	.LC9
	.word	4095
	.word	stdout
	.size	OutputToLog, .-OutputToLog
	.section	.rodata
	.align	2
.LC11:
	.ascii	"ab\000"
	.align	2
.LC12:
	.ascii	"wb\000"
	.align	2
.LC13:
	.ascii	"Failed to open log file \"%s\": %s\000"
	.align	2
.LC14:
	.ascii	"\012\012\000"
	.align	2
.LC15:
	.ascii	"DNS2PROXY log opened\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	OpenLogFile, %function
OpenLogFile:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L26
	ldr	r3, .L32
	b	.L27
.L26:
	ldr	r3, .L32+4
.L27:
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	fopen
	mov	r3, r0
	ldr	r2, .L32+8
	str	r3, [r2]
	ldr	r3, .L32+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L28
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-8]
	ldr	r1, .L32+12
	mov	r0, #7
	bl	OutputToLog
	b	.L31
.L28:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L30
	ldr	r3, .L32+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	ftell
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r3, .L32+8
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L32+16
	bl	fwrite
.L30:
	ldr	r3, .L32+8
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	setbuf
	ldr	r1, .L32+20
	mov	r0, #2
	bl	OutputToLog
.L31:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC11
	.word	.LC12
	.word	g_pLogFile
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	OpenLogFile, .-OpenLogFile
	.section	.rodata
	.align	2
.LC16:
	.ascii	"\012DNS2PROXY (free software, use parameter /? to d"
	.ascii	"isplay help)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	OpenConsole, %function
OpenConsole:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L38
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L37
	ldr	r3, .L38
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L38+4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	setbuf
	ldr	r0, .L38+8
	bl	puts
	pop	{fp, pc}
.L37:
	nop
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	g_bConsole
	.word	stdout
	.word	.LC16
	.size	OpenConsole, .-OpenConsole
	.section	.rodata
	.align	2
.LC17:
	.ascii	"Creating new thread has failed: error code %d\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ThreadCreate
	.syntax unified
	.arm
	.fpu softvfp
	.type	ThreadCreate, %function
ThreadCreate:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #16
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L41
	ldr	r2, [fp, #-12]
	ldr	r1, .L45+4
	mov	r0, #7
	bl	OutputToLog
	mov	r3, #0
	b	.L43
.L41:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	pthread_detach
	mov	r3, #1
.L43:
	ldr	r2, .L45
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L44
	bl	__stack_chk_fail
.L44:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC18
	.word	.LC17
	.size	ThreadCreate, .-ThreadCreate
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetAddrLen, %function
GetAddrLen:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3]
	cmp	r3, #2
	bne	.L48
	mov	r3, #16
	b	.L49
.L48:
	mov	r3, #28
.L49:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	GetAddrLen, .-GetAddrLen
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	SendAnswer, %function
SendAnswer:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #140]	@ zero_extendqisi2
	cmp	r3, #4
	beq	.L51
	ldr	r3, .L54
	ldr	r4, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	add	r5, r3, #2
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldrh	r3, [r3]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #12
	ldr	r2, [fp, #-16]
	ldrb	r2, [r2, #140]	@ zero_extendqisi2
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #0
	mov	r2, r1
	mov	r1, r5
	mov	r0, r4
	bl	sendto
	b	.L53
.L51:
	ldr	r3, [fp, #-16]
	ldr	r4, [r3, #12]
	ldr	r3, [fp, #-16]
	ldr	r5, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldrh	r3, [r3]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	add	r3, r3, #2
	mov	r2, r3
	mov	r3, #0
	mov	r1, r5
	mov	r0, r4
	bl	send
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	close
.L53:
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L55:
	.align	2
.L54:
	.word	g_hSockUdp
	.size	SendAnswer, .-SendAnswer
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	RemoveEntry, %function
RemoveEntry:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L57
	ldr	r0, [fp, #-20]
	bl	close
.L57:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L58
	ldr	r0, .L66
	bl	pthread_mutex_lock
.L58:
	ldr	r3, .L66+4
	str	r3, [fp, #-12]
	ldr	r3, .L66+4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L59
.L62:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L60
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	ldr	r3, .L66+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L66+8
	str	r3, [r2]
	b	.L61
.L60:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L59:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L62
.L61:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #140]	@ zero_extendqisi2
	cmp	r3, #4
	bne	.L63
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	close
.L63:
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L65
	ldr	r0, .L66
	bl	pthread_mutex_unlock
.L65:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	g_sCritSect
	.word	g_psFirst
	.word	g_uCacheCount
	.size	RemoveEntry, .-RemoveEntry
	.section	.rodata
	.align	2
.LC19:
	.ascii	"Invalid DNS answer detected while calculating TTL\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	InvalidEntryErrorOutput, %function
InvalidEntryErrorOutput:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L70
	mov	r0, #7
	bl	OutputToLog
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC19
	.size	InvalidEntryErrorOutput, .-InvalidEntryErrorOutput
	.section	.rodata
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CalculateTimeToLive, %function
CalculateTimeToLive:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	ldr	r3, .L98
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #8]
	cmn	r3, #1
	bne	.L73
	mov	r3, #1
	b	.L94
.L73:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	ldrh	r3, [r3]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	strh	r3, [fp, #-32]	@ movhi
	ldrh	r3, [fp, #-32]
	cmp	r3, #12
	bhi	.L75
	bl	InvalidEntryErrorOutput
	mov	r3, r0
	b	.L94
.L75:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	add	r3, r3, #2
	str	r3, [fp, #-24]
	ldrh	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldrh	r3, [r3]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	strh	r3, [fp, #-34]	@ movhi
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	str	r3, [fp, #-24]
	b	.L76
.L81:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bcc	.L77
	bl	InvalidEntryErrorOutput
	mov	r3, r0
	b	.L94
.L77:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]
	strb	r3, [fp, #-35]
	ldrb	r3, [fp, #-35]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L96
	ldrb	r3, [fp, #-35]	@ zero_extendqisi2
	cmp	r3, #191
	bls	.L80
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L79
.L80:
	ldrb	r3, [fp, #-35]	@ zero_extendqisi2
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	b	.L81
.L96:
	nop
.L79:
	ldr	r3, [fp, #-24]
	add	r3, r3, #5
	str	r3, [fp, #-24]
	ldrh	r3, [fp, #-34]	@ movhi
	sub	r3, r3, #1
	strh	r3, [fp, #-34]	@ movhi
.L76:
	ldrh	r3, [fp, #-34]
	cmp	r3, #0
	bne	.L81
	sub	r3, fp, #28
	mov	r0, r3
	bl	time
	mov	r3, r0
	cmn	r3, #1
	bne	.L82
	mov	r3, #1
	b	.L94
.L82:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #8]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-40]
	str	r2, [r3, #8]
.L87:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bcc	.L83
	bl	InvalidEntryErrorOutput
	mov	r3, r0
	b	.L94
.L83:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]
	strb	r3, [fp, #-35]
	ldrb	r3, [fp, #-35]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L97
	ldrb	r3, [fp, #-35]	@ zero_extendqisi2
	cmp	r3, #191
	bls	.L86
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L85
.L86:
	ldrb	r3, [fp, #-35]	@ zero_extendqisi2
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	b	.L87
.L97:
	nop
.L85:
	ldr	r3, [fp, #-24]
	add	r3, r3, #5
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #4
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bls	.L88
	bl	InvalidEntryErrorOutput
	mov	r3, r0
	b	.L94
.L88:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r0, r3
	bl	ntohl
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L89
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L90
	mov	r3, #0
	b	.L94
.L90:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	htonl
	mov	r2, r0
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	b	.L91
.L89:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L91
	mov	r3, #0
	b	.L94
.L91:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #6
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bls	.L92
	bl	InvalidEntryErrorOutput
	mov	r3, r0
	b	.L94
.L92:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldrh	r3, [r3]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	strh	r3, [fp, #-30]	@ movhi
	ldrh	r3, [fp, #-30]
	add	r3, r3, #6
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bls	.L93
	bl	InvalidEntryErrorOutput
	mov	r3, r0
	b	.L94
.L93:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bcc	.L87
	mov	r3, #1
.L94:
	ldr	r2, .L98
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L95
	bl	__stack_chk_fail
.L95:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L99:
	.align	2
.L98:
	.word	.LC20
	.size	CalculateTimeToLive, .-CalculateTimeToLive
	.section	.rodata
	.align	2
.LC21:
	.ascii	"Receiving from SOCKS server has failed: %s\000"
	.align	2
.LC22:
	.ascii	"The SOCKS server has closed the connection unexpect"
	.ascii	"edly\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ReceiveBytes, %function
ReceiveBytes:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-16]
.L106:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-16]
	add	r1, r2, r3
	mov	r3, #0
	ldr	r2, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	recv
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	beq	.L101
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L102
	b	.L107
.L101:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, .L108
	mov	r0, #7
	bl	OutputToLog
	mov	r3, #0
	b	.L104
.L102:
	ldr	r1, .L108+4
	mov	r0, #7
	bl	OutputToLog
	mov	r3, #0
	b	.L104
.L107:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-28]
	sub	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L105
	mov	r3, #1
	b	.L104
.L105:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	b	.L106
.L104:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L109:
	.align	2
.L108:
	.word	.LC21
	.word	.LC22
	.size	ReceiveBytes, .-ReceiveBytes
	.section	.rodata
	.align	2
.LC23:
	.ascii	"Invalid amount of sent bytes\000"
	.align	2
.LC24:
	.ascii	"Sending to HTTP proxy has failed: %s\000"
	.align	2
.LC25:
	.ascii	"The HTTP proxy has closed the connection unexpected"
	.ascii	"ly\000"
	.align	2
.LC26:
	.ascii	"Receiving from HTTP proxy has failed: %s\000"
	.align	2
.LC27:
	.ascii	"\015\012\015\012\000"
	.align	2
.LC28:
	.ascii	"Connecting DNS server has failed: %s\000"
	.align	2
.LC29:
	.ascii	"Invalid answer from HTTP proxy\000"
	.align	2
.LC30:
	.ascii	"DNS server answered before request\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	HandleHttpProxy, %function
HandleHttpProxy:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L133
	ldr	r3, [r3]
	mov	r2, r3
	mov	r3, #0
	ldr	r1, .L133+4
	ldr	r0, [fp, #-32]
	bl	send
	str	r0, [fp, #-16]
	ldr	r3, .L133
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	beq	.L111
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L112
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	b	.L113
.L112:
	ldr	r3, .L133+8
.L113:
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, .L133+12
	mov	r0, #7
	bl	OutputToLog
	mov	r3, #0
	b	.L114
.L111:
	mov	r3, #0
	str	r3, [fp, #-20]
.L127:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-36]
	add	r1, r2, r3
	ldr	r3, [fp, #-20]
	rsb	r3, r3, #2000
	mov	r2, r3
	mov	r3, #0
	ldr	r0, [fp, #-32]
	bl	recv
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L115
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L116
	ldr	r1, .L133+16
	mov	r0, #7
	bl	OutputToLog
	b	.L117
.L116:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, .L133+20
	mov	r0, #7
	bl	OutputToLog
.L117:
	mov	r3, #0
	b	.L114
.L115:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	ble	.L130
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #72
	beq	.L120
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #84
	beq	.L120
	ldr	r3, [fp, #-36]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #84
	beq	.L120
	ldr	r3, [fp, #-36]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #80
	bne	.L121
.L120:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r1, .L133+24
	ldr	r0, [fp, #-36]
	bl	strstr
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L131
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	str	r3, [fp, #-24]
	b	.L123
.L124:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L123:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bhi	.L124
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L121
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	atoi
	mov	r3, r0
	cmp	r3, #200
	beq	.L132
	mov	r1, #13
	ldr	r0, [fp, #-24]
	bl	strchr
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, .L133+28
	mov	r0, #7
	bl	OutputToLog
	mov	r3, #0
	b	.L114
.L121:
	ldr	r1, .L133+32
	mov	r0, #7
	bl	OutputToLog
	mov	r3, #0
	b	.L114
.L130:
	nop
	b	.L127
.L131:
	nop
	b	.L127
.L132:
	nop
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L128
	ldr	r1, .L133+36
	mov	r0, #7
	bl	OutputToLog
	mov	r3, #0
	b	.L114
.L128:
	mov	r3, #1
.L114:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L134:
	.align	2
.L133:
	.word	g_iHttpProxyConnectLen
	.word	g_caHttpProxyConnect
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.size	HandleHttpProxy, .-HandleHttpProxy
	.section	.rodata
	.align	2
.LC31:
	.ascii	"Creating a TCP socket has failed: %s\000"
	.align	2
.LC32:
	.ascii	"Connecting the SOCKS server has failed: %s\000"
	.align	2
.LC33:
	.ascii	"Sending to SOCKS server has failed: %s\000"
	.align	2
.LC34:
	.ascii	"The SOCKS server has answered with a SOCKS version "
	.ascii	"number unequal to 5\000"
	.align	2
.LC35:
	.ascii	"The SOCKS server does not support user/password aut"
	.ascii	"hentication\000"
	.align	2
.LC36:
	.ascii	"The SOCKS server wants an authentication\000"
	.align	2
.LC37:
	.ascii	"The SOCKS server authentication has failed (error c"
	.ascii	"ode %u)\000"
	.align	2
.LC38:
	.ascii	"Connecting through SOCKS server has failed: %s\000"
	.align	2
.LC39:
	.ascii	"Unexpected answer from SOCKS server\000"
	.align	2
.LC40:
	.ascii	"Connection not allowed by ruleset\000"
	.align	2
.LC41:
	.ascii	"Network unreachable\000"
	.align	2
.LC42:
	.ascii	"Host unreachable\000"
	.align	2
.LC43:
	.ascii	"Connection refused by destination host\000"
	.align	2
.LC44:
	.ascii	"TTL expired\000"
	.align	2
.LC45:
	.ascii	"Command not supported / protocol error\000"
	.align	2
.LC46:
	.ascii	"Address type not supported\000"
	.align	2
.LC47:
	.ascii	"Sending through SOCKS server has failed: %s\000"
	.align	2
.LC48:
	.ascii	"Server has closed the connection unexpectedly\000"
	.align	2
.LC49:
	.ascii	"Broken answer from DNS server: %s\000"
	.align	2
.LC50:
	.ascii	"Answer from DNS server too long!\000"
	.align	2
.LC51:
	.ascii	"Answer from DNS server too short!\000"
	.align	2
.LC52:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	DnsThread, %function
DnsThread:
	@ args = 0, pretend = 0, frame = 65544
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #65536
	sub	sp, sp, #12
	sub	r3, fp, #65536
	sub	r3, r3, #12
	str	r0, [r3, #-4]
	ldr	r3, .L200
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-4]
	str	r3, [r2, #-4084]
	ldr	r3, .L200+4
	ldrh	r3, [r3]
	mov	r0, r3
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #6
	mov	r1, #1
	bl	socket
	str	r0, [r4, #-4080]
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r3, [r3, #-4080]
	cmn	r3, #1
	bne	.L136
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	strerror
	str	r0, [r4]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r3]
	ldr	r1, .L200+8
	mov	r0, #7
	bl	OutputToLog
	ldr	r3, .L200+120
	ldr	r3, [r3]
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-4080]
	ldr	r0, [r0, #-4084]
	bl	RemoveEntry
	mov	r3, #0
	b	.L193
.L136:
	ldr	r0, .L200+4
	bl	GetAddrLen
	mov	r3, r0
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L200+4
	ldr	r0, [r0, #-4080]
	bl	connect
	mov	r3, r0
	cmn	r3, #1
	bne	.L138
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	strerror
	str	r0, [r4]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r3]
	ldr	r1, .L200+12
	mov	r0, #7
	bl	OutputToLog
	ldr	r3, .L200+120
	ldr	r3, [r3]
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-4080]
	ldr	r0, [r0, #-4084]
	bl	RemoveEntry
	mov	r3, #0
	b	.L193
.L138:
	ldr	r3, .L200+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L139
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-4080]
	bl	HandleHttpProxy
	mov	r3, r0
	cmp	r3, #0
	bne	.L140
	ldr	r3, .L200+120
	ldr	r3, [r3]
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-4080]
	ldr	r0, [r0, #-4084]
	bl	RemoveEntry
	mov	r3, #0
	b	.L193
.L139:
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	mov	r2, #5
	strb	r2, [r3]
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #1
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, .L200+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L141
	mov	r2, #2
	b	.L142
.L141:
	mov	r2, #0
.L142:
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #2
	strb	r2, [r3]
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #65280
	sub	r1, r1, #12
	sub	r1, r1, #232
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	mov	r2, #3
	ldr	r0, [r0, #-4080]
	bl	send
	str	r0, [r4, #-4088]
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r3, [r3, #-4088]
	cmp	r3, #3
	beq	.L143
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r3, [r3, #-4088]
	cmn	r3, #1
	bne	.L144
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	b	.L145
.L144:
	ldr	r3, .L200+24
.L145:
	sub	r2, fp, #65536
	sub	r2, r2, #12
	str	r3, [r2]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r3]
	ldr	r1, .L200+28
	mov	r0, #7
	bl	OutputToLog
	ldr	r3, .L200+120
	ldr	r3, [r3]
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-4080]
	ldr	r0, [r0, #-4084]
	bl	RemoveEntry
	mov	r3, #0
	b	.L193
.L143:
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #16
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	mov	r1, #2
	ldr	r0, [r0, #-4080]
	bl	ReceiveBytes
	mov	r3, r0
	cmp	r3, #0
	bne	.L146
	ldr	r3, .L200+120
	ldr	r3, [r3]
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-4080]
	ldr	r0, [r0, #-4084]
	bl	RemoveEntry
	mov	r3, #0
	b	.L193
.L146:
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #16
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #5
	bne	.L147
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #17
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L148
.L147:
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #16
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #5
	beq	.L149
	ldr	r1, .L200+32
	mov	r0, #7
	bl	OutputToLog
	b	.L150
.L149:
	ldr	r3, .L200+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L151
	ldr	r1, .L200+36
	mov	r0, #7
	bl	OutputToLog
	b	.L150
.L151:
	ldr	r1, .L200+40
	mov	r0, #7
	bl	OutputToLog
.L150:
	ldr	r3, .L200+120
	ldr	r3, [r3]
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-4080]
	ldr	r0, [r0, #-4084]
	bl	RemoveEntry
	mov	r3, #0
	b	.L193
.L148:
	ldr	r3, .L200+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L152
	ldr	r3, .L200+20
	ldr	r1, [r3]
	ldr	r3, .L200+44
	ldr	r3, [r3]
	mov	r2, r3
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	ldr	r0, [r0, #-4080]
	bl	send
	str	r0, [r4, #-4088]
	ldr	r3, .L200+44
	ldr	r3, [r3]
	sub	r2, fp, #61440
	sub	r2, r2, #12
	ldr	r2, [r2, #-4088]
	cmp	r2, r3
	beq	.L153
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r3, [r3, #-4088]
	cmn	r3, #1
	bne	.L154
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	b	.L155
.L154:
	ldr	r3, .L200+24
.L155:
	sub	r2, fp, #65536
	sub	r2, r2, #12
	str	r3, [r2]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r3]
	ldr	r1, .L200+28
	mov	r0, #7
	bl	OutputToLog
	ldr	r3, .L200+120
	ldr	r3, [r3]
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-4080]
	ldr	r0, [r0, #-4084]
	bl	RemoveEntry
	mov	r3, #0
	b	.L193
.L153:
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #16
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	mov	r1, #2
	ldr	r0, [r0, #-4080]
	bl	ReceiveBytes
	mov	r3, r0
	cmp	r3, #0
	bne	.L156
	ldr	r3, .L200+120
	ldr	r3, [r3]
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-4080]
	ldr	r0, [r0, #-4084]
	bl	RemoveEntry
	mov	r3, #0
	b	.L193
.L156:
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #17
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L152
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #17
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L200+48
	mov	r0, #7
	bl	OutputToLog
	ldr	r3, .L200+120
	ldr	r3, [r3]
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-4080]
	ldr	r0, [r0, #-4084]
	bl	RemoveEntry
	mov	r3, #0
	b	.L193
.L152:
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #1
	mov	r2, #1
	strb	r2, [r3]
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #2
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L200+52
	ldrh	r3, [r3]
	cmp	r3, #0
	beq	.L157
	cmp	r3, #2
	beq	.L158
	b	.L195
.L157:
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #3
	mov	r2, #3
	strb	r2, [r3]
	ldr	r3, .L200+52
	ldr	r3, [r3, #4]
	sub	r2, fp, #61440
	sub	r2, r2, #12
	str	r3, [r2, #-4088]
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #4
	sub	r2, fp, #61440
	sub	r2, r2, #12
	ldr	r2, [r2, #-4088]
	and	r2, r2, #255
	strb	r2, [r3]
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #5
	ldr	r2, .L200+56
	ldr	r1, [r2]
	sub	r2, fp, #61440
	sub	r2, r2, #12
	ldr	r2, [r2, #-4088]
	mov	r0, r3
	bl	memcpy
	ldr	r1, .L200+52
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r3, [r3, #-4088]
	add	r2, r3, #5
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, r2
	ldrh	r2, [r1, #2]
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r3, [r3, #-4088]
	add	r3, r3, #7
	str	r3, [r2, #-4092]
	b	.L160
.L158:
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #3
	mov	r2, #1
	strb	r2, [r3]
	ldr	r2, .L200+52
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #4
	ldr	r2, [r2, #4]
	str	r2, [r3]
	ldr	r3, .L200+52
	ldrh	r2, [r3, #2]
	sub	r3, fp, #61440
	sub	r3, r3, #12
	sub	r3, r3, #4064
	sub	r3, r3, #8
	strh	r2, [r3, #8]	@ movhi
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #10
	str	r3, [r2, #-4092]
	b	.L160
.L195:
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #3
	mov	r2, #4
	strb	r2, [r3]
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #4
	ldr	r1, .L200+56
	mov	r2, #16
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L200+52
	ldrh	r2, [r3, #2]
	sub	r3, fp, #61440
	sub	r3, r3, #12
	sub	r3, r3, #4064
	sub	r3, r3, #8
	strh	r2, [r3, #20]	@ movhi
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #22
	str	r3, [r2, #-4092]
.L160:
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r2, [r3, #-4092]
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #65280
	sub	r1, r1, #12
	sub	r1, r1, #232
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	ldr	r0, [r0, #-4080]
	bl	send
	str	r0, [r4, #-4088]
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r2, [r2, #-4088]
	ldr	r3, [r3, #-4092]
	cmp	r2, r3
	beq	.L161
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r3, [r3, #-4088]
	cmn	r3, #1
	bne	.L162
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	b	.L163
.L162:
	ldr	r3, .L200+24
.L163:
	sub	r2, fp, #65536
	sub	r2, r2, #12
	str	r3, [r2]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r3]
	ldr	r1, .L200+60
	mov	r0, #7
	bl	OutputToLog
	ldr	r3, .L200+120
	ldr	r3, [r3]
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-4080]
	ldr	r0, [r0, #-4084]
	bl	RemoveEntry
	mov	r3, #0
	b	.L193
.L161:
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	mov	r1, #5
	ldr	r0, [r0, #-4080]
	bl	ReceiveBytes
	mov	r3, r0
	cmp	r3, #0
	bne	.L164
	ldr	r3, .L200+120
	ldr	r3, [r3]
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-4080]
	ldr	r0, [r0, #-4084]
	bl	RemoveEntry
	mov	r3, #0
	b	.L193
.L164:
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #5
	bne	.L165
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L165
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L166
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #3
	beq	.L166
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #4
	beq	.L166
.L165:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L200+64
	str	r3, [r2]
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #5
	bne	.L198
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #2
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L167
.L169:
	.word	.L175
	.word	.L174
	.word	.L173
	.word	.L172
	.word	.L171
	.word	.L170
	.word	.L168
.L175:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L200+68
	str	r3, [r2]
	b	.L167
.L174:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L200+72
	str	r3, [r2]
	b	.L167
.L173:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L200+76
	str	r3, [r2]
	b	.L167
.L172:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L200+80
	str	r3, [r2]
	b	.L167
.L171:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L200+84
	str	r3, [r2]
	b	.L167
.L170:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L200+88
	str	r3, [r2]
	b	.L167
.L168:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L200+92
	str	r3, [r2]
	b	.L167
.L198:
	nop
.L167:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r3]
	ldr	r1, .L200+60
	mov	r0, #7
	bl	OutputToLog
	ldr	r3, .L200+120
	ldr	r3, [r3]
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-4080]
	ldr	r0, [r0, #-4084]
	bl	RemoveEntry
	mov	r3, #0
	b	.L193
.L166:
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L176
	cmp	r3, #4
	beq	.L177
	b	.L196
.L176:
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #5
	str	r3, [r2, #-4088]
	b	.L179
.L177:
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #17
	str	r3, [r2, #-4088]
	b	.L179
.L196:
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, fp, #61440
	sub	r2, r2, #12
	add	r3, r3, #2
	str	r3, [r2, #-4088]
.L179:
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r1, [r3, #-4088]
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r0, [r0, #-4080]
	bl	ReceiveBytes
	mov	r3, r0
	cmp	r3, #0
	bne	.L140
	ldr	r3, .L200+120
	ldr	r3, [r3]
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-4080]
	ldr	r0, [r0, #-4084]
	bl	RemoveEntry
	mov	r3, #0
	b	.L193
.L140:
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r3, [r3, #-4084]
	ldrh	r3, [r3, #142]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	sub	r2, fp, #61440
	sub	r2, r2, #12
	add	r3, r3, #2
	str	r3, [r2, #-4092]
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r3, [r3, #-4084]
	add	r1, r3, #142
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r2, [r3, #-4092]
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	ldr	r0, [r0, #-4080]
	bl	send
	str	r0, [r4, #-4088]
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r2, [r2, #-4088]
	ldr	r3, [r3, #-4092]
	cmp	r2, r3
	beq	.L180
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r3, [r3, #-4088]
	cmn	r3, #1
	bne	.L181
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	b	.L182
.L181:
	ldr	r3, .L200+24
.L182:
	sub	r2, fp, #65536
	sub	r2, r2, #12
	str	r3, [r2]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r3]
	ldr	r1, .L200+96
	mov	r0, #7
	bl	OutputToLog
	ldr	r3, .L200+120
	ldr	r3, [r3]
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-4080]
	ldr	r0, [r0, #-4084]
	bl	RemoveEntry
	mov	r3, #0
	b	.L193
.L180:
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4092]
.L189:
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r2, [r3, #-4092]
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	add	r1, r3, r2
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r3, [r3, #-4092]
	rsb	r2, r3, #65280
	add	r2, r2, #228
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	ldr	r0, [r0, #-4080]
	bl	recv
	str	r0, [r4, #-4076]
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r3, [r3, #-4076]
	cmp	r3, #0
	bgt	.L183
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r3, [r3, #-4076]
	cmn	r3, #1
	bne	.L184
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	b	.L185
.L184:
	ldr	r3, .L200+100
.L185:
	sub	r2, fp, #65536
	sub	r2, r2, #12
	str	r3, [r2]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r3]
	ldr	r1, .L200+104
	mov	r0, #7
	bl	OutputToLog
	ldr	r3, .L200+120
	ldr	r3, [r3]
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-4080]
	ldr	r0, [r0, #-4084]
	bl	RemoveEntry
	mov	r3, #0
	b	.L193
.L183:
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r2, [r2, #-4092]
	ldr	r3, [r3, #-4076]
	add	r3, r2, r3
	str	r3, [r1, #-4092]
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r3, [r3, #-4092]
	cmp	r3, #1
	ble	.L186
	sub	r3, fp, #61440
	sub	r3, r3, #12
	sub	r3, r3, #4064
	sub	r3, r3, #8
	ldrh	r3, [r3]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	sub	r2, fp, #61440
	sub	r2, r2, #12
	add	r3, r3, #2
	str	r3, [r2, #-4088]
	sub	r3, fp, #61440
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r2, [r2, #-4092]
	ldr	r3, [r3, #-4088]
	cmp	r2, r3
	bge	.L199
.L186:
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r3, [r3, #-4092]
	ldr	r2, .L200+108
	cmp	r3, r2
	bls	.L189
	ldr	r1, .L200+112
	mov	r0, #7
	bl	OutputToLog
	ldr	r3, .L200+120
	ldr	r3, [r3]
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-4080]
	ldr	r0, [r0, #-4084]
	bl	RemoveEntry
	mov	r3, #0
	b	.L193
.L201:
	.align	2
.L200:
	.word	.LC52
	.word	g_sSocksAddr
	.word	.LC31
	.word	.LC32
	.word	g_iHttpProxyConnectLen
	.word	g_uaUsrPwd
	.word	.LC23
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	g_iUsrPwdLen
	.word	.LC37
	.word	g_sDnsSrvAddr
	.word	g_sDnsSrvAddr+8
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	65507
	.word	.LC50
	.word	.LC51
	.word	g_bCacheEnabled
	.word	g_sCritSect
	.word	.LC52
.L199:
	nop
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r3, [r3, #-4092]
	cmp	r3, #4
	bgt	.L190
	ldr	r1, .L200+116
	mov	r0, #7
	bl	OutputToLog
	ldr	r3, .L200+120
	ldr	r3, [r3]
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #61440
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-4080]
	ldr	r0, [r0, #-4084]
	bl	RemoveEntry
	mov	r3, #0
	b	.L193
.L190:
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r0, [r3, #-4080]
	bl	close
	ldr	r3, .L200+120
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L191
	ldr	r0, .L200+124
	bl	pthread_mutex_lock
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r3, [r3, #-4088]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r3, [r3, #-4084]
	str	r2, [r3, #4]
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r3, [r3, #-4084]
	ldr	r0, [r3, #4]
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r2, [r3, #-4088]
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r3, [r3, #-4084]
	ldr	r3, [r3, #4]
	add	r3, r3, #2
	sub	r2, fp, #61440
	sub	r2, r2, #12
	ldr	r2, [r2, #-4084]
	ldrh	r2, [r2, #144]
	strh	r2, [r3]	@ movhi
	mov	r0, #0
	bl	time
	mov	r2, r0
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r3, [r3, #-4084]
	str	r2, [r3, #8]
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r0, [r3, #-4084]
	bl	SendAnswer
	ldr	r0, .L200+124
	bl	pthread_mutex_unlock
	b	.L192
.L191:
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r2, [r3, #-4084]
	sub	r3, fp, #65280
	sub	r3, r3, #12
	sub	r3, r3, #232
	str	r3, [r2, #4]
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r0, [r3, #-4084]
	bl	SendAnswer
	sub	r3, fp, #61440
	sub	r3, r3, #12
	ldr	r0, [r3, #-4084]
	bl	free
.L192:
	mov	r3, #0
.L193:
	ldr	r2, .L200+128
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L194
	bl	__stack_chk_fail
.L194:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	DnsThread, .-DnsThread
	.section	.rodata
	.align	2
.LC53:
	.ascii	"%3u %s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	HandleDnsRequest, %function
HandleDnsRequest:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r0, .L221
	bl	pthread_mutex_lock
	ldr	r3, .L221+4
	ldr	r3, [r3]
	str	r3, [fp, #-20]
.L218:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L203
	ldr	r3, [fp, #-36]
	add	r3, r3, #144
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mvn	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-44]
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3, #140]
	ldr	r3, [fp, #-20]
	add	r3, r3, #12
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-20]
	strh	r2, [r3, #142]	@ movhi
	ldr	r3, [fp, #-20]
	add	r3, r3, #142
	add	r3, r3, #2
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L221+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, .L221+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L204
	ldr	r2, .L221+4
	ldr	r3, [fp, #-20]
	str	r3, [r2]
.L204:
	ldr	r1, [fp, #-20]
	ldr	r0, .L221+12
	bl	ThreadCreate
	mov	r3, r0
	cmp	r3, #0
	beq	.L205
	ldr	r3, .L221+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L221+16
	str	r3, [r2]
	ldr	r3, [fp, #-32]
	add	r3, r3, #12
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	b	.L206
.L210:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]
	strb	r3, [fp, #-25]
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L207
	ldr	r3, .L221+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #13
	ldr	r1, .L221+20
	mov	r0, #7
	bl	OutputToLog
	b	.L211
.L207:
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #191
	bhi	.L219
	ldr	r3, [fp, #-24]
	mov	r2, #46
	strb	r2, [r3]
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
.L206:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bcc	.L210
	b	.L212
.L205:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, .L221+4
	str	r3, [r2]
	ldr	r0, [fp, #-20]
	bl	free
	b	.L212
.L219:
	nop
.L211:
	b	.L212
.L203:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #16
	lsr	r4, r3, #16
	ldr	r3, [fp, #-20]
	ldrh	r3, [r3, #142]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	cmp	r4, r3
	bne	.L213
	ldr	r3, [fp, #-32]
	add	r0, r3, #2
	ldr	r3, [fp, #-20]
	add	r3, r3, #142
	add	r1, r3, #4
	ldr	r3, [fp, #-36]
	sub	r3, r3, #2
	mov	r2, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L213
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L214
	ldr	r3, [fp, #-44]
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3, #140]
	ldr	r3, [fp, #-20]
	add	r3, r3, #12
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	memcpy
	ldr	r0, [fp, #-20]
	bl	CalculateTimeToLive
	mov	r3, r0
	cmp	r3, #0
	bne	.L215
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	ldrh	r2, [r3]
	ldr	r3, [fp, #-20]
	strh	r2, [r3, #144]	@ movhi
	ldr	r1, [fp, #-20]
	ldr	r0, .L221+12
	bl	ThreadCreate
	mov	r3, r0
	cmp	r3, #0
	bne	.L220
	mov	r2, #0
	mvn	r1, #0
	ldr	r0, [fp, #-20]
	bl	RemoveEntry
	b	.L220
.L215:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	add	r3, r3, #2
	ldr	r2, [fp, #-32]
	ldrh	r2, [r2]
	strh	r2, [r3]	@ movhi
	ldr	r0, [fp, #-20]
	bl	SendAnswer
	b	.L220
.L214:
	ldr	r3, [fp, #-32]
	ldrh	r2, [r3]
	ldr	r3, [fp, #-20]
	strh	r2, [r3, #144]	@ movhi
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3, #140]	@ zero_extendqisi2
	cmp	r3, #4
	bne	.L217
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	close
.L217:
	ldr	r3, [fp, #-44]
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3, #140]
	ldr	r3, [fp, #-20]
	add	r3, r3, #12
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	memcpy
	b	.L220
.L213:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	b	.L218
.L220:
	nop
.L212:
	ldr	r0, .L221
	bl	pthread_mutex_unlock
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L222:
	.align	2
.L221:
	.word	g_sCritSect
	.word	g_psFirst
	.word	g_bCacheEnabled
	.word	DnsThread
	.word	g_uCacheCount
	.word	.LC53
	.size	HandleDnsRequest, .-HandleDnsRequest
	.section	.rodata
	.align	2
.LC54:
	.ascii	"unknown address\000"
	.align	2
.LC55:
	.ascii	"unknown\000"
	.align	2
.LC56:
	.ascii	"\012Binding on %s, UDP port %s has failed: %s\012\000"
	.align	2
.LC57:
	.ascii	"Binding on %s, TCP port %s has failed: %s\000"
	.align	2
.LC58:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	OutputBindError, %function
OutputBindError:
	@ args = 0, pretend = 0, frame = 296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #312
	str	r0, [fp, #-288]
	str	r1, [fp, #-292]
	str	r2, [fp, #-296]
	ldr	r3, .L229
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	str	r0, [fp, #-284]
	ldr	r0, [fp, #-288]
	bl	close
	ldr	r0, [fp, #-292]
	bl	GetAddrLen
	mov	r1, r0
	sub	r2, fp, #264
	mov	r3, #3
	str	r3, [sp, #8]
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #280
	str	r3, [sp]
	mov	r3, #256
	ldr	r0, [fp, #-292]
	bl	getnameinfo
	mov	r3, r0
	cmp	r3, #0
	beq	.L224
	sub	r3, fp, #264
	ldr	r2, .L229+4
	mov	ip, r3
	mov	r3, r2
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #280
	ldr	r2, .L229+8
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
.L224:
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	beq	.L225
	bl	OpenConsole
	sub	r2, fp, #280
	sub	r1, fp, #264
	ldr	r3, [fp, #-284]
	ldr	r0, .L229+12
	bl	printf
	b	.L228
.L225:
	sub	r1, fp, #280
	sub	r2, fp, #264
	ldr	r3, [fp, #-284]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L229+16
	mov	r0, #7
	bl	OutputToLog
.L228:
	nop
	ldr	r3, .L229
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L227
	bl	__stack_chk_fail
.L227:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L230:
	.align	2
.L229:
	.word	.LC58
	.word	.LC54
	.word	.LC55
	.word	.LC56
	.word	.LC57
	.size	OutputBindError, .-OutputBindError
	.section	.rodata
	.align	2
.LC59:
	.ascii	"Listening on TCP socket has failed: %s\000"
	.align	2
.LC60:
	.ascii	"Accepting new connection on TCP socket has failed: "
	.ascii	"%s\000"
	.align	2
.LC61:
	.ascii	"DNS request on TCP broken: %s\000"
	.align	2
.LC62:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	TcpThread, %function
TcpThread:
	@ args = 0, pretend = 0, frame = 65712
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #65536
	sub	sp, sp, #180
	sub	r3, fp, #65536
	sub	r3, r3, #12
	str	r0, [r3, #-172]
	ldr	r3, .L246
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-172]
	ldrh	r3, [r3]
	mov	r0, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #6
	mov	r1, #1
	bl	socket
	str	r0, [r4, #-148]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-148]
	cmn	r3, #1
	bne	.L232
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	strerror
	str	r0, [r4, #-140]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r3, #-140]
	ldr	r1, .L246+4
	mov	r0, #7
	bl	OutputToLog
	mov	r3, #0
	b	.L244
.L232:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r0, [r3, #-172]
	bl	GetAddrLen
	mov	r3, r0
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-172]
	ldr	r0, [r0, #-148]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L234
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, #0
	ldr	r1, [r1, #-172]
	ldr	r0, [r3, #-148]
	bl	OutputBindError
	mov	r3, #0
	b	.L244
.L234:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r1, #5
	ldr	r0, [r3, #-148]
	bl	listen
	mov	r3, r0
	cmn	r3, #1
	bne	.L235
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	strerror
	str	r0, [r4, #-140]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r0, [r3, #-148]
	bl	close
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r3, #-140]
	ldr	r1, .L246+8
	mov	r0, #7
	bl	OutputToLog
	mov	r3, #0
	b	.L244
.L235:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #128
	str	r3, [r2, #-156]
	sub	r2, fp, #65536
	sub	r2, r2, #12
	sub	r2, r2, #156
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #136
	sub	r1, fp, #65536
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-148]
	bl	accept
	mov	r3, r0
	sub	r2, fp, #65536
	sub	r2, r2, #12
	str	r3, [r2, #-160]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-160]
	cmn	r3, #1
	bne	.L236
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	strerror
	str	r0, [r4, #-140]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r3, #-140]
	ldr	r1, .L246+12
	mov	r0, #7
	bl	OutputToLog
	nop
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r0, [r3, #-148]
	bl	close
	mov	r3, #0
	b	.L244
.L236:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-152]
.L243:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r0, [r3, #-160]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r3, #-152]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #8
	add	r1, r3, r2
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-152]
	rsb	r2, r3, #65536
	add	r2, r2, #2
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	mov	r3, #0
	bl	recv
	str	r0, [r4, #-144]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-144]
	cmp	r3, #0
	bgt	.L238
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	strerror
	str	r0, [r4, #-140]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-160]
	mov	r0, r3
	bl	close
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r3, #-140]
	ldr	r1, .L246+16
	mov	r0, #7
	bl	OutputToLog
	b	.L239
.L238:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r2, #-152]
	ldr	r3, [r3, #-144]
	add	r3, r2, r3
	str	r3, [r1, #-152]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-152]
	cmp	r3, #1
	ble	.L243
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrh	r3, [r3, #-8]
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	strh	r3, [r4, #-162]	@ movhi
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrh	r3, [r3, #-162]
	add	r3, r3, #2
	sub	r2, fp, #65536
	sub	r2, r2, #12
	ldr	r2, [r2, #-152]
	cmp	r2, r3
	bgt	.L243
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrh	r3, [r3, #-162]
	cmp	r3, #12
	bls	.L241
	sub	r0, fp, #65536
	sub	r0, r0, #12
	sub	r0, r0, #8
	add	r0, r0, #2
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrh	r1, [r3, #-162]
	sub	r2, fp, #65536
	sub	r2, r2, #12
	sub	r2, r2, #160
	mov	r3, #4
	bl	HandleDnsRequest
	b	.L239
.L241:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-160]
	mov	r0, r3
	bl	close
.L239:
	b	.L235
.L244:
	ldr	r2, .L246
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L245
	bl	__stack_chk_fail
.L245:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L247:
	.align	2
.L246:
	.word	.LC62
	.word	.LC31
	.word	.LC59
	.word	.LC60
	.word	.LC61
	.size	TcpThread, .-TcpThread
	.section	.rodata
	.align	2
.LC63:
	.ascii	"\012Invalid address '%s' and port '%s' specified fo"
	.ascii	"r %s!\012\000"
	.align	2
.LC64:
	.ascii	"\012Address '%s' and port '%s' specified for %s too"
	.ascii	" long for internal storage!\012\000"
	.align	2
.LC65:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ParseIpAndPort, %function
ParseIpAndPort:
	@ args = 4, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #84
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-88]
	ldr	r3, .L258
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r1, #46
	ldr	r0, [fp, #-84]
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	beq	.L249
	mov	r1, #58
	ldr	r0, [fp, #-84]
	bl	strchr
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L250
	ldr	r3, [fp, #-60]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-80]
	b	.L250
.L249:
	ldr	r3, [fp, #-84]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #91
	bne	.L250
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
	mov	r1, #93
	ldr	r0, [fp, #-84]
	bl	strchr
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L250
	ldr	r3, [fp, #-60]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L250
	ldr	r3, [fp, #-60]
	add	r3, r3, #2
	str	r3, [fp, #-80]
.L250:
	sub	r3, fp, #48
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-72]
	orr	r3, r3, #1024
	orr	r3, r3, #4
	str	r3, [fp, #-48]
	sub	r3, fp, #64
	sub	r2, fp, #48
	ldr	r1, [fp, #-80]
	ldr	r0, [fp, #-84]
	bl	getaddrinfo
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L251
	ldr	r0, [fp, #-84]
	bl	inet_addr
	mov	r2, r0
	ldr	r3, [fp, #-88]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-88]
	ldr	r3, [r3, #4]
	cmn	r3, #1
	beq	.L252
	ldr	r0, [fp, #-80]
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-88]
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-88]
	ldrh	r3, [r3, #2]
	cmp	r3, #0
	beq	.L252
	ldr	r3, [fp, #-88]
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r3, #1
	b	.L256
.L252:
	ldr	r3, [fp, #-88]
	ldr	r2, .L258+4
	cmp	r3, r2
	bne	.L254
	ldr	r0, [fp, #-84]
	bl	strlen
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #255
	bhi	.L254
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L254
	ldr	r0, [fp, #-80]
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r4, .L258+4
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [r4, #2]	@ movhi
	ldr	r3, .L258+4
	ldrh	r3, [r3, #2]
	cmp	r3, #0
	beq	.L254
	ldr	r3, .L258+4
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r2, .L258+8
	ldr	r3, [fp, #-84]
	str	r3, [r2]
	ldr	r3, [fp, #-52]
	and	r2, r3, #255
	ldr	r3, .L258+4
	str	r2, [r3, #4]
	mov	r3, #1
	b	.L256
.L254:
	bl	OpenConsole
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-80]
	ldr	r1, [fp, #-84]
	ldr	r0, .L258+12
	bl	printf
	mov	r3, #0
	b	.L256
.L251:
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #16]
	cmp	r3, #128
	bls	.L255
	bl	OpenConsole
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-80]
	ldr	r1, [fp, #-84]
	ldr	r0, .L258+16
	bl	printf
	mov	r3, #0
	b	.L256
.L255:
	ldr	r3, [fp, #-64]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-88]
	bl	memcpy
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	freeaddrinfo
	mov	r3, #1
.L256:
	ldr	r2, .L258
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L257
	bl	__stack_chk_fail
.L257:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L259:
	.align	2
.L258:
	.word	.LC65
	.word	g_sDnsSrvAddr
	.word	g_sDnsSrvAddr+8
	.word	.LC63
	.word	.LC64
	.size	ParseIpAndPort, .-ParseIpAndPort
	.section	.rodata
	.align	2
.LC66:
	.ascii	"CONNECT \000"
	.align	2
.LC67:
	.ascii	"%s:%u\000"
	.align	2
.LC68:
	.ascii	" HTTP/1.0\015\012\015\012\000"
	.align	2
.LC69:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CreateHttpProxyConnectCommand, %function
CreateHttpProxyConnectCommand:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	ldr	r3, .L269
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r2, #8
	ldr	r1, .L269+4
	ldr	r0, .L269+8
	bl	memcpy
	ldr	r3, .L269+12
	mov	r2, #8
	str	r2, [r3]
	ldr	r3, .L269+16
	ldrh	r3, [r3]
	cmp	r3, #0
	bne	.L261
	ldr	r3, .L269+12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, .L269+8
	add	r4, r2, r3
	ldr	r3, .L269+20
	ldr	r5, [r3]
	ldr	r3, .L269+16
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L269+24
	mov	r0, r4
	bl	sprintf
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bgt	.L262
	mov	r3, #0
	b	.L263
.L262:
	ldr	r3, .L269+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, .L269+12
	str	r3, [r2]
	b	.L264
.L261:
	ldr	r3, .L269+16
	ldrh	r3, [r3]
	cmp	r3, #10
	bne	.L265
	ldr	r3, .L269+12
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L269+12
	str	r2, [r1]
	ldr	r2, .L269+8
	mov	r1, #91
	strb	r1, [r2, r3]
.L265:
	ldr	r0, .L269+16
	bl	GetAddrLen
	mov	r1, r0
	ldr	r3, .L269+12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, .L269+8
	add	r2, r2, r3
	mov	r3, #3
	str	r3, [sp, #8]
	mov	r3, #6
	str	r3, [sp, #4]
	sub	r3, fp, #24
	str	r3, [sp]
	mov	r3, #128
	ldr	r0, .L269+16
	bl	getnameinfo
	mov	r3, r0
	cmp	r3, #0
	beq	.L266
	mov	r3, #0
	b	.L263
.L266:
	ldr	r3, .L269+12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, .L269+8
	add	r3, r2, r3
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L269+12
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L269+12
	str	r3, [r2]
	ldr	r3, .L269+16
	ldrh	r3, [r3]
	cmp	r3, #10
	bne	.L267
	ldr	r3, .L269+12
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L269+12
	str	r2, [r1]
	ldr	r2, .L269+8
	mov	r1, #93
	strb	r1, [r2, r3]
.L267:
	ldr	r3, .L269+12
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L269+12
	str	r2, [r1]
	ldr	r2, .L269+8
	mov	r1, #58
	strb	r1, [r2, r3]
	sub	r3, fp, #24
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, .L269+12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, .L269+8
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	sub	r1, fp, #24
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L269+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, .L269+12
	str	r3, [r2]
.L264:
	ldr	r3, .L269+12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, .L269+8
	add	r3, r2, r3
	mov	r2, #13
	ldr	r1, .L269+28
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L269+12
	ldr	r3, [r3]
	add	r3, r3, #13
	ldr	r2, .L269+12
	str	r3, [r2]
	mov	r3, #1
.L263:
	ldr	r2, .L269
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L268
	bl	__stack_chk_fail
.L268:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L270:
	.align	2
.L269:
	.word	.LC69
	.word	.LC66
	.word	g_caHttpProxyConnect
	.word	g_iHttpProxyConnectLen
	.word	g_sDnsSrvAddr
	.word	g_sDnsSrvAddr+8
	.word	.LC67
	.word	.LC68
	.size	CreateHttpProxyConnectCommand, .-CreateHttpProxyConnectCommand
	.section	.rodata
	.align	2
.LC71:
	.ascii	"\012DNS2SOCKS tunnels DNS requests via SOCKS5 and c"
	.ascii	"aches the answers.\012\012\012Usage:\012\012DNS2PRO"
	.ascii	"XY [/?] [/t] [/d] [/q] [/l[a]:FilePath] [/u:User /p"
	.ascii	":Password]\012          [Socks5ServerIP[:Port]] [DN"
	.ascii	"SServerIPorName[:Port]] [ListenIP[:Port]]\012\012/?"
	.ascii	"            to view this help\012/t            to u"
	.ascii	"se a HTTP proxy instead of a SOCKS server\012      "
	.ascii	"        (here: Socks5ServerIP = HttpProxyIP, no sup"
	.ascii	"port for /u and /p)\012/d            to disable the"
	.ascii	" cache\012/q            to suppress the text output"
	.ascii	"\012/l:FilePath   to create a new log file \"FilePa"
	.ascii	"th\"\012/la:FilePath  to create a new log file or a"
	.ascii	"ppend to the existing \"FilePath\"\012/u:User      "
	.ascii	" user name if your SOCKS server uses user/password "
	.ascii	"authentication\012/p:Password   password if your SO"
	.ascii	"CKS server uses user/password authentication\012\012"
	.ascii	"Default Socks5ServerIP:Port = %s:%s\012Default DNSS"
	.ascii	"erverIPorName:Port = %s:%s\012Default ListenIP:Port"
	.ascii	" = %s:%s\012\000"
	.align	2
.LC72:
	.ascii	"\012Password specified but no user!\000"
	.align	2
.LC73:
	.ascii	"\012User specified but no password!\000"
	.align	2
.LC74:
	.ascii	"\012Authentication not supported for HTTP proxy!\000"
	.align	2
.LC75:
	.ascii	"\012User exceeds 255 characters!\000"
	.align	2
.LC76:
	.ascii	"\012Password exceeds 255 characters!\000"
	.align	2
.LC77:
	.ascii	"\012Failed to create CONNECT command!\000"
	.align	2
.LC78:
	.ascii	"\012Creating a UDP socket has failed: %s\012\000"
	.align	2
.LC79:
	.ascii	"%hu\000"
	.align	2
.LC80:
	.ascii	"HTTP proxy  \000"
	.align	2
.LC81:
	.ascii	"enabled\000"
	.align	2
.LC82:
	.ascii	"disabled\000"
	.align	2
.LC83:
	.ascii	"%s %s port %s\012DNS server   %s port %s\012listeni"
	.ascii	"ng on %s port %s\012cache %s\012authentication %s\012"
	.ascii	"\000"
	.align	2
.LC70:
	.word	g_sSocksAddr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	0
	.word	g_sDnsSrvAddr
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	0
	.word	sAddr.7294
	.word	.LC0
	.word	.LC6
	.word	.LC7
	.word	1
	.align	2
.LC84:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 65632
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #65536
	sub	sp, sp, #132
	sub	r3, fp, #65536
	sub	r3, r3, #20
	str	r0, [r3, #-92]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	str	r1, [r3, #-96]
	ldr	r3, .L331
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r2, .L331+4
	sub	ip, r3, #36
	mov	lr, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-52]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-56]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-60]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-72]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-84]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-80]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-96]
	add	r3, r3, #4
	str	r3, [r2, #-76]
	b	.L272
.L295:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-76]
	ldr	r3, [r3]
	str	r3, [r2, #-40]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L273
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L274
.L273:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-40]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #68
	cmp	r3, #49
	ldrls	pc, [pc, r3, asl #2]
	b	.L325
.L277:
	.word	.L282
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L281
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L280
	.word	.L279
	.word	.L325
	.word	.L325
	.word	.L278
	.word	.L276
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L282
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L281
	.word	.L325
	.word	.L325
	.word	.L325
	.word	.L280
	.word	.L279
	.word	.L325
	.word	.L325
	.word	.L278
	.word	.L276
.L282:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-40]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L326
	ldr	r3, .L331+8
	mov	r2, #0
	str	r2, [r3]
	b	.L284
.L279:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-40]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L327
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-52]
	b	.L284
.L281:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-72]
	cmp	r3, #0
	bne	.L328
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-40]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #97
	beq	.L287
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-40]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #65
	bne	.L288
.L287:
	mov	r3, #1
	b	.L289
.L288:
	mov	r3, #0
.L289:
	sub	r2, fp, #65536
	sub	r2, r2, #20
	str	r3, [r2, #-56]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-56]
	add	r3, r3, #2
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-40]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L328
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-56]
	add	r3, r3, #3
	sub	r2, fp, #65536
	sub	r2, r2, #20
	mov	r1, r2
	sub	r2, fp, #65536
	sub	r2, r2, #20
	ldr	r2, [r2, #-40]
	add	r3, r2, r3
	str	r3, [r1, #-72]
	b	.L284
.L276:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-84]
	cmp	r3, #0
	bne	.L329
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-40]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L329
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-40]
	add	r3, r3, #3
	str	r3, [r2, #-84]
	b	.L284
.L280:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-80]
	cmp	r3, #0
	bne	.L330
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-40]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L330
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-40]
	add	r3, r3, #3
	str	r3, [r2, #-80]
	b	.L284
.L278:
	ldr	r3, .L331+12
	mov	r2, #1
	str	r2, [r3]
	b	.L284
.L326:
	nop
	b	.L325
.L327:
	nop
	b	.L325
.L328:
	nop
	b	.L325
.L329:
	nop
	b	.L325
.L330:
	nop
	b	.L325
.L274:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-60]
	cmp	r3, #2
	bhi	.L292
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r1, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r2, [r3, #-60]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	r3, r3, #20
	ldr	r0, [r3]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r1, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r2, [r3, #-60]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	r3, r3, #24
	ldr	r1, [r3]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	ip, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r2, [r3, #-60]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, ip, r3
	sub	r3, r3, #28
	ldr	ip, [r3]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	lr, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r2, [r3, #-60]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, lr, r3
	sub	r3, r3, #36
	ldr	r3, [r3]
	sub	r2, fp, #65536
	sub	r2, r2, #20
	str	r3, [sp]
	ldr	r3, [r2, #-40]
	mov	r2, ip
	bl	ParseIpAndPort
	mov	r3, r0
	cmp	r3, #0
	bne	.L293
	mov	r3, #1
	b	.L323
.L293:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-60]
	add	r3, r3, #1
	str	r3, [r2, #-60]
	b	.L284
.L325:
	nop
.L292:
	bl	OpenConsole
	ldr	r3, .L331+16
	str	r3, [sp, #8]
	ldr	r3, .L331+20
	str	r3, [sp, #4]
	ldr	r3, .L331+24
	str	r3, [sp]
	ldr	r3, .L331+28
	ldr	r2, .L331+32
	ldr	r1, .L331+20
	ldr	r0, .L331+36
	bl	printf
	mov	r3, #1
	b	.L323
.L284:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-76]
	add	r3, r3, #4
	str	r3, [r2, #-76]
.L272:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-92]
	sub	r3, r3, #1
	str	r3, [r2, #-92]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-92]
	cmp	r3, #0
	bne	.L295
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-80]
	cmp	r3, #0
	beq	.L296
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-84]
	cmp	r3, #0
	bne	.L296
	bl	OpenConsole
	ldr	r0, .L331+40
	bl	puts
	mov	r3, #1
	b	.L323
.L296:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-80]
	cmp	r3, #0
	bne	.L297
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-84]
	cmp	r3, #0
	beq	.L297
	bl	OpenConsole
	ldr	r0, .L331+44
	bl	puts
	mov	r3, #1
	b	.L323
.L297:
	ldr	r3, .L331+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L298
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-80]
	cmp	r3, #0
	beq	.L298
	bl	OpenConsole
	ldr	r0, .L331+48
	bl	puts
	mov	r3, #1
	b	.L323
.L298:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-84]
	cmp	r3, #0
	beq	.L299
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r0, [r3, #-84]
	bl	strlen
	str	r0, [r4, #-68]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-68]
	cmp	r3, #255
	bls	.L300
	bl	OpenConsole
	ldr	r0, .L331+52
	bl	puts
	mov	r3, #1
	b	.L323
.L300:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r0, [r3, #-80]
	bl	strlen
	str	r0, [r4, #-64]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-64]
	cmp	r3, #255
	bls	.L302
	bl	OpenConsole
	ldr	r0, .L331+56
	bl	puts
	mov	r3, #1
	b	.L323
.L299:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-68]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-64]
	b	.L302
.L304:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r1, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r2, [r3, #-60]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	r3, r3, #20
	ldr	r0, [r3]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r1, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r2, [r3, #-60]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	r3, r3, #24
	ldr	r1, [r3]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	ip, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r2, [r3, #-60]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, ip, r3
	sub	r3, r3, #28
	ldr	ip, [r3]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	lr, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r2, [r3, #-60]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, lr, r3
	sub	r3, r3, #32
	ldr	lr, [r3]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r2, [r3, #-60]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r4, r3
	sub	r3, r3, #36
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	bl	ParseIpAndPort
	mov	r3, r0
	cmp	r3, #0
	bne	.L303
	mov	r3, #1
	b	.L323
.L303:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-60]
	add	r3, r3, #1
	str	r3, [r2, #-60]
.L302:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-60]
	cmp	r3, #2
	bls	.L304
	ldr	r3, .L331+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L305
	bl	CreateHttpProxyConnectCommand
	mov	r3, r0
	cmp	r3, #0
	bne	.L305
	bl	OpenConsole
	ldr	r0, .L331+60
	bl	puts
	mov	r3, #1
	b	.L323
.L305:
	ldr	r3, .L331+64
	ldrh	r3, [r3]
	mov	r2, #17
	mov	r1, #2
	mov	r0, r3
	bl	socket
	mov	r3, r0
	ldr	r2, .L331+68
	str	r3, [r2]
	ldr	r3, .L331+68
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L306
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	sub	r2, fp, #65536
	sub	r2, r2, #20
	mov	r4, r2
	mov	r0, r3
	bl	strerror
	str	r0, [r4, #-44]
	bl	OpenConsole
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r1, [r3, #-44]
	ldr	r0, .L331+72
	bl	printf
	mov	r3, #1
	b	.L323
.L306:
	ldr	r3, .L331+68
	ldr	r4, [r3]
	ldr	r0, .L331+64
	bl	GetAddrLen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L331+64
	mov	r0, r4
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L307
	ldr	r3, .L331+68
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, .L331+64
	mov	r0, r3
	bl	OutputBindError
	mov	r3, #1
	b	.L323
.L307:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-52]
	cmp	r3, #0
	bne	.L308
	bl	OpenConsole
.L308:
	ldr	r0, .L331+76
	bl	GetAddrLen
	mov	r1, r0
	sub	r3, fp, #65280
	sub	r3, r3, #20
	sub	r3, r3, #232
	add	r3, r3, #256
	sub	r2, fp, #65280
	sub	r2, r2, #20
	sub	r2, r2, #232
	mov	r0, #3
	str	r0, [sp, #8]
	mov	r0, #256
	str	r0, [sp, #4]
	str	r3, [sp]
	mov	r3, #256
	ldr	r0, .L331+76
	bl	getnameinfo
	mov	r3, r0
	cmp	r3, #0
	beq	.L309
	sub	r3, fp, #65280
	sub	r3, r3, #20
	sub	r3, r3, #232
	ldr	r2, .L331+80
	mov	ip, r3
	mov	r3, r2
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #65280
	sub	r3, r3, #20
	sub	r3, r3, #232
	add	r3, r3, #256
	ldr	r2, .L331+84
	mov	r0, r3
	mov	r1, r2
	mov	r3, #8
	mov	r2, r3
	bl	memcpy
.L309:
	ldr	r3, .L331+88
	ldrh	r3, [r3]
	cmp	r3, #0
	bne	.L310
	sub	r3, fp, #65280
	sub	r3, r3, #20
	sub	r3, r3, #232
	add	r3, r3, #512
	ldr	r2, .L331+92
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r4, fp, #65280
	sub	r4, r4, #20
	sub	r4, r4, #232
	add	r4, r4, #768
	ldr	r3, .L331+88
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L331+96
	mov	r0, r4
	bl	sprintf
	b	.L311
.L310:
	ldr	r0, .L331+88
	bl	GetAddrLen
	mov	r1, r0
	sub	r2, fp, #65280
	sub	r2, r2, #20
	sub	r2, r2, #232
	add	r2, r2, #512
	sub	r3, fp, #65280
	sub	r3, r3, #20
	sub	r3, r3, #232
	add	r3, r3, #768
	mov	r0, #3
	str	r0, [sp, #8]
	mov	r0, #256
	str	r0, [sp, #4]
	str	r3, [sp]
	mov	r3, #256
	ldr	r0, .L331+88
	bl	getnameinfo
	mov	r3, r0
	cmp	r3, #0
	beq	.L311
	sub	r3, fp, #65280
	sub	r3, r3, #20
	sub	r3, r3, #232
	add	r3, r3, #512
	ldr	r2, .L331+80
	mov	r0, r3
	mov	r1, r2
	mov	r3, #16
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #65280
	sub	r3, r3, #20
	sub	r3, r3, #232
	add	r3, r3, #768
	ldr	r2, .L331+84
	mov	r0, r3
	mov	r1, r2
	mov	r3, #8
	mov	r2, r3
	bl	memcpy
.L311:
	ldr	r0, .L331+64
	bl	GetAddrLen
	mov	r1, r0
	sub	r2, fp, #65280
	sub	r2, r2, #20
	sub	r2, r2, #232
	add	r2, r2, #1024
	sub	r3, fp, #65280
	sub	r3, r3, #20
	sub	r3, r3, #232
	add	r3, r3, #1280
	mov	r0, #3
	str	r0, [sp, #8]
	mov	r0, #256
	str	r0, [sp, #4]
	str	r3, [sp]
	mov	r3, #256
	ldr	r0, .L331+64
	bl	getnameinfo
	mov	r3, r0
	cmp	r3, #0
	beq	.L312
	sub	r3, fp, #65280
	sub	r3, r3, #20
	sub	r3, r3, #232
	add	r3, r3, #1024
	ldr	r2, .L331+80
	mov	r0, r3
	mov	r1, r2
	mov	r3, #16
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #65280
	sub	r3, r3, #20
	sub	r3, r3, #232
	add	r3, r3, #1280
	ldr	r2, .L331+84
	mov	r0, r3
	mov	r1, r2
	mov	r3, #8
	mov	r2, r3
	bl	memcpy
.L312:
	ldr	r3, .L331+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L313
	ldr	r6, .L331+100
	b	.L314
.L313:
	ldr	r6, .L331+104
.L314:
	sub	r3, fp, #65280
	sub	r3, r3, #20
	sub	r3, r3, #232
	add	r3, r3, #256
	sub	r2, fp, #65280
	sub	r2, r2, #20
	sub	r2, r2, #232
	add	r2, r2, #512
	sub	r1, fp, #65280
	sub	r1, r1, #20
	sub	r1, r1, #232
	add	r1, r1, #768
	sub	r0, fp, #65280
	sub	r0, r0, #20
	sub	r0, r0, #232
	add	r0, r0, #1024
	sub	ip, fp, #65280
	sub	ip, ip, #20
	sub	ip, ip, #232
	add	ip, ip, #1280
	ldr	lr, .L331+8
	ldr	lr, [lr]
	cmp	lr, #0
	beq	.L315
	ldr	r4, .L331+108
	b	.L316
.L315:
	ldr	r4, .L331+112
.L316:
	sub	lr, fp, #65536
	sub	lr, lr, #20
	ldr	lr, [lr, #-84]
	cmp	lr, #0
	beq	.L317
	ldr	r5, .L331+108
	b	.L318
.L317:
	ldr	r5, .L331+112
.L318:
	sub	lr, fp, #65280
	sub	lr, lr, #20
	sub	lr, lr, #232
	str	r5, [sp, #24]
	str	r4, [sp, #20]
	str	ip, [sp, #16]
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, r6
	ldr	r1, .L331+116
	mov	r0, #5
	bl	OutputToLog
	mov	r1, #0
	ldr	r0, .L331+120
	bl	pthread_mutex_init
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-72]
	cmp	r3, #0
	beq	.L319
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r1, [r2, #-56]
	ldr	r0, [r3, #-72]
	bl	OpenLogFile
.L319:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-84]
	cmp	r3, #0
	beq	.L320
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r2, [r2, #-68]
	ldr	r3, [r3, #-64]
	add	r3, r2, r3
	add	r3, r3, #3
	mov	r2, r3
	ldr	r3, .L331+124
	str	r2, [r3]
	ldr	r3, .L331+124
	ldr	r3, [r3]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L331+128
	str	r2, [r3]
	ldr	r3, .L331+128
	ldr	r3, [r3]
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, .L331+128
	ldr	r3, [r3]
	add	r3, r3, #1
	sub	r2, fp, #65536
	sub	r2, r2, #20
	ldr	r2, [r2, #-68]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, .L331+128
	ldr	r3, [r3]
	add	r3, r3, #2
	sub	r2, fp, #65536
	sub	r2, r2, #20
	sub	r1, fp, #65536
	sub	r1, r1, #20
	ldr	r2, [r2, #-68]
	ldr	r1, [r1, #-84]
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L331+128
	ldr	r2, [r3]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-68]
	add	r3, r3, #2
	add	r3, r2, r3
	sub	r2, fp, #65536
	sub	r2, r2, #20
	ldr	r2, [r2, #-64]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, .L331+128
	ldr	r2, [r3]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-68]
	add	r3, r3, #3
	add	r3, r2, r3
	sub	r2, fp, #65536
	sub	r2, r2, #20
	sub	r1, fp, #65536
	sub	r1, r1, #20
	ldr	r2, [r2, #-64]
	ldr	r1, [r1, #-80]
	mov	r0, r3
	bl	memcpy
.L320:
	ldr	r1, .L331+64
	ldr	r0, .L331+132
	bl	ThreadCreate
.L322:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #128
	str	r3, [r2, #-88]
	ldr	r3, .L331+68
	ldr	r0, [r3]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r4, r3
	sub	r1, fp, #65280
	sub	r1, r1, #20
	sub	r1, r1, #232
	sub	r3, fp, #65536
	sub	r3, r3, #20
	sub	r3, r3, #88
	str	r3, [sp, #4]
	ldr	r3, .L331+64
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, .L331+136
	bl	recvfrom
	str	r0, [r4, #-48]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-48]
	cmp	r3, #12
	ble	.L322
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-88]
	sub	r2, fp, #65536
	sub	r2, r2, #20
	mov	r1, r2
	sub	r0, fp, #65280
	sub	r0, r0, #20
	sub	r0, r0, #232
	ldr	r2, .L331+64
	ldr	r1, [r1, #-48]
	bl	HandleDnsRequest
	b	.L322
.L323:
	ldr	r2, .L331
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L324
	bl	__stack_chk_fail
.L324:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L332:
	.align	2
.L331:
	.word	.LC84
	.word	.LC70
	.word	g_bCacheEnabled
	.word	g_iHttpProxyConnectLen
	.word	.LC6
	.word	.LC0
	.word	.LC4
	.word	.LC3
	.word	.LC1
	.word	.LC71
	.word	.LC72
	.word	.LC73
	.word	.LC74
	.word	.LC75
	.word	.LC76
	.word	.LC77
	.word	sAddr.7294
	.word	g_hSockUdp
	.word	.LC78
	.word	g_sSocksAddr
	.word	.LC54
	.word	.LC55
	.word	g_sDnsSrvAddr
	.word	g_sDnsSrvAddr+8
	.word	.LC79
	.word	.LC80
	.word	.LC2
	.word	.LC81
	.word	.LC82
	.word	.LC83
	.word	g_sCritSect
	.word	g_iUsrPwdLen
	.word	g_uaUsrPwd
	.word	TcpThread
	.word	65508
	.size	main, .-main
	.local	sAddr.7294
	.comm	sAddr.7294,128,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
