Function at 0x420c94
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket
Reference http user-agent string
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x478647
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10dc
call fcn.0046a3d0
mov eax, dword [0x495040]
xor eax, esp
mov dword [esp + 0x10d8], eax
push ebx
push esi
push edi
mov eax, dword [0x495040]
xor eax, esp
push eax
lea eax, [esp + 0x10f0]
mov dword fs:[0], eax
mov edi, ecx
push dword [edi]
mov dword [esp + 0x3c], edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
xor ebx, ebx
cmp eax, ebx
je 0x420cfc
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x420d23
or eax, 0xffffffff
mov ecx, dword [esp + 0x10f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10d8]
xor ecx, esp
call fcn.0045e86d
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [esp + 0x70], vtable.._AVCSocketHolder__1__GetTimeStampByHttp__YAKXZ_.0
mov dword [esp + 0x74], esi
mov dword [esp + 0x10f8], ebx
cmp esi, ebx
je 0x420d4d
cmp esi, 0xffffffff
jne 0x420d5d
push 0xfffffffffffffffe
pop esi
lea ecx, [esp + 0x70]
call fcn.00420c53
mov eax, esi
jmp 0x420cff
push 2
pop eax
mov word [esp + 0xd4], ax
mov eax, dword [esp + 0x14]
push 0x50
mov dword [esp + 0xdc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xd6], ax
push 0x10
lea eax, [esp + 0xd8]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x420d9c
push 0xfffffffffffffffd
jmp 0x420d4f
push dword [edi]
lea eax, [esp + 0xe8]
push dword [edi + 4]
mov edi, 0x1000
push str.GET__s_HTTP_1.1_r_nHost:__hs_r_nConnection:_close_r_nPragma:_no_cache_r_nCache_Control:_no_cache_r_nAccept_Encoding:_gzip__deflate__sdch_r_nAccept_Language:_en_US_zh_CN_q0.8_zh_q0.6_r_nUser_Agent:_Mozilla_5.0__Windows_NT_6.3__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_50.0.2661.102_Safari_537.36_r_n_r_n
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
push ebx
lea eax, [esp + 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0xec]
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x420de7
push 0xfffffffffffffffc
jmp 0x420d4f
push ebx
push edi
lea eax, [esp + 0xec]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
jg 0x420e03
push 0xfffffffffffffffb
jmp 0x420d4f
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrA]
mov byte [esp + eax + 0xe3], 0
push str._r_nDate:
lea eax, [esp + 0xe8]
push eax
call esi
mov edi, eax
cmp edi, ebx
jne 0x420e2d
push 0xfffffffffffffffa
jmp 0x420d4f
push 0x483b0c
add edi, 7
push edi
call esi
cmp eax, ebx
jne 0x420e43
push 0xfffffffffffffff9
jmp 0x420d4f
mov esi, dword [sym.imp.SHLWAPI.dll_StrChrA]
mov byte [eax], 0
jmp 0x420e51
mov byte [eax], 0x20
push 0x2c
push edi
call esi
cmp eax, ebx
jne 0x420e4e
lea eax, [esp + 0x40]
push eax
call fcn.00406728
push 0x4830f0
lea ecx, [esp + 0xac]
mov byte [esp + 0x10fc], 1
call fcn.00402c69
push edi
lea ecx, [esp + 0x7c]
mov byte [esp + 0x10fc], 2
call fcn.00402c69
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0x1104], 3
call fcn.0042155f
add esp, 0xc
push ebx
push 1
lea ecx, [esp + 0x80]
call fcn.00403021
push ebx
push 1
lea ecx, [esp + 0xb0]
mov byte [esp + 0x1100], 1
call fcn.00403021
push dword [esp + 0x4c]
xor eax, eax
mov word [esp + 0x1c], ax
lea edi, [esp + 0x1e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edi, [esp + 0x44]
lea esi, [esp + 0x34]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x7c], 0x483b10
mov dword [esp + 0x80], 0x483b14
mov dword [esp + 0x84], 0x483b18
mov dword [esp + 0x88], 0x483b1c
mov dword [esp + 0x8c], 0x483b20
mov dword [esp + 0x90], 0x483b24
mov dword [esp + 0x94], 0x483b28
mov dword [esp + 0x98], 0x483b2c
mov dword [esp + 0x9c], 0x483b30
mov dword [esp + 0xa0], 0x483b34
mov dword [esp + 0xa4], 0x483b38
mov dword [esp + 0xa8], 0x483b3c
call fcn.004213bf
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
push dword [esp + 0x50]
lea edi, [esp + 0x44]
lea esi, [esp + 0x64]
call fcn.004213bf
test ebx, ebx
je 0x420fab
cmp ebx, dword [esp + 0x60]
je 0x420fb0
call fcn.0045efd1
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x64]
je 0x421198
lea esi, [esp + 0x28]
call fcn.004212c8
mov edi, eax
mov eax, dword [edi + 0x14]
cmp eax, 2
jne 0x421003
cmp word [esp + 0x1e], 0
jne 0x421186
cmp dword [edi + 0x18], 0x10
jb 0x420fe8
mov eax, dword [edi + 4]
jmp 0x420feb
lea eax, [edi + 4]
call fcn.00421638
lea ecx, [eax - 1]
cmp ecx, 0x1e
ja 0x421186
mov word [esp + 0x1e], ax
jmp 0x421081
cmp eax, 3
jne 0x42104d
cmp word [esp + 0x1a], 0
jne 0x421186
xor esi, esi
cmp dword [edi + 0x18], 0x10
jb 0x421021
mov eax, dword [edi + 4]
jmp 0x421024
lea eax, [edi + 4]
push eax
push dword [esp + esi*4 + 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x42103e
inc esi
cmp esi, 0xc
jb 0x421016
jmp 0x421186
inc dword [esp + 0x14]
inc esi
mov word [esp + 0x1a], si
jmp 0x421186
cmp eax, 4
jne 0x42108a
cmp word [esp + 0x18], 0
jne 0x421186
cmp dword [edi + 0x18], 0x10
jb 0x421069
mov eax, dword [edi + 4]
jmp 0x42106c
lea eax, [edi + 4]
call fcn.00421638
cmp eax, 0x7b2
jl 0x421186
mov word [esp + 0x18], ax
inc dword [esp + 0x14]
jmp 0x421186
cmp eax, 8
jne 0x421186
cmp word [esp + 0x20], 0
jne 0x421186
cmp word [esp + 0x22], 0
jne 0x421186
cmp word [esp + 0x24], 0
jne 0x421186
push 2
xor ebx, ebx
push ebx
push edi
lea esi, [esp + 0xb4]
call fcn.004083c0
cmp dword [eax + 0x18], 0x10
jb 0x4210d4
mov eax, dword [eax + 4]
jmp 0x4210d7
add eax, 4
call fcn.00421638
push ebx
push 1
lea ecx, [esp + 0xb0]
mov dword [esp + 0x44], eax
call fcn.00403021
push 2
push 3
push edi
lea esi, [esp + 0xb4]
call fcn.004083c0
cmp dword [eax + 0x18], 0x10
jb 0x42110b
mov eax, dword [eax + 4]
jmp 0x42110e
add eax, 4
call fcn.00421638
push ebx
push 1
lea ecx, [esp + 0xb0]
mov dword [esp + 0x38], eax
call fcn.00403021
push 2
push 6
push edi
lea esi, [esp + 0xb4]
call fcn.004083c0
cmp dword [eax + 0x18], 0x10
jb 0x421142
mov eax, dword [eax + 4]
jmp 0x421145
add eax, 4
call fcn.00421638
push ebx
push 1
lea ecx, [esp + 0xb0]
mov esi, eax
call fcn.00403021
mov eax, dword [esp + 0x3c]
cmp eax, 0x3c
ja 0x421186
mov ecx, dword [esp + 0x30]
cmp ecx, 0x3c
ja 0x421186
cmp esi, 0x3c
ja 0x421186
add dword [esp + 0x14], 3
mov word [esp + 0x20], ax
mov word [esp + 0x22], cx
mov word [esp + 0x24], si
lea esi, [esp + 0x28]
call fcn.004067db
mov ebx, dword [esp + 0x28]
jmp 0x420f90
cmp dword [esp + 0x14], 6
je 0x4211b9
lea esi, [esp + 0x40]
call fcn.00406929
push dword [esp + 0x40]
call fcn.0045e8a6
pop ecx
push 0xfffffffffffffff8
jmp 0x420d4f
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edi, [esp + 0xc6]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 0x7b2
mov word [esp + 0xc4], ax
xor eax, eax
inc eax
mov word [esp + 0xc6], ax
mov word [esp + 0xca], ax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0xc8]
push eax
call esi
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x1c]
push eax
call esi
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x5c]
sbb ecx, dword [esp + 0x6c]
push 0
push 0x989680
push ecx
push eax
call fcn.0046c6b0
mov ecx, dword [esp + 0x38]
lea esi, [esp + 0x40]
mov dword [ecx + 0xc], eax
call fcn.00406929
push dword [esp + 0x40]
call fcn.0045e8a6
xor esi, esi
pop ecx
inc esi
jmp 0x420d50