Function at 0x423101
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 0x47ab25
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10dc
call fcn.0046c7f0
mov eax, dword [0x498040]
xor eax, esp
mov dword [esp + 0x10d8], eax
push ebx
push esi
push edi
mov eax, dword [0x498040]
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 0x423169
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x423190
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.00460c7e
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 0x4231ba
cmp esi, 0xffffffff
jne 0x4231ca
push 0xfffffffffffffffe
pop esi
lea ecx, [esp + 0x70]
call fcn.004230c0
mov eax, esi
jmp 0x42316c
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 0x423209
push 0xfffffffffffffffd
jmp 0x4231bc
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 0x423254
push 0xfffffffffffffffc
jmp 0x4231bc
push ebx
push edi
lea eax, [esp + 0xec]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
jg 0x423270
push 0xfffffffffffffffb
jmp 0x4231bc
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 0x42329a
push 0xfffffffffffffffa
jmp 0x4231bc
push 0x485b3c
add edi, 7
push edi
call esi
cmp eax, ebx
jne 0x4232b0
push 0xfffffffffffffff9
jmp 0x4231bc
mov esi, dword [sym.imp.SHLWAPI.dll_StrChrA]
mov byte [eax], 0
jmp 0x4232be
mov byte [eax], 0x20
push 0x2c
push edi
call esi
cmp eax, ebx
jne 0x4232bb
lea eax, [esp + 0x40]
push eax
call fcn.00421e49
push 0x485160
lea ecx, [esp + 0xac]
mov byte [esp + 0x10fc], 1
call fcn.00402d14
push edi
lea ecx, [esp + 0x7c]
mov byte [esp + 0x10fc], 2
call fcn.00402d14
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.00423996
add esp, 0xc
push ebx
push 1
lea ecx, [esp + 0x80]
call fcn.004030c2
push ebx
push 1
lea ecx, [esp + 0xb0]
mov byte [esp + 0x1100], 1
call fcn.004030c2
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], 0x485b40
mov dword [esp + 0x80], 0x485b44
mov dword [esp + 0x84], 0x485b48
mov dword [esp + 0x88], 0x485b4c
mov dword [esp + 0x8c], 0x485b50
mov dword [esp + 0x90], 0x485b54
mov dword [esp + 0x94], 0x485b58
mov dword [esp + 0x98], 0x485b5c
mov dword [esp + 0x9c], 0x485b60
mov dword [esp + 0xa0], 0x485b64
mov dword [esp + 0xa4], 0x485b68
mov dword [esp + 0xa8], 0x485b6c
call fcn.00406f20
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.00406f20
test ebx, ebx
je 0x423418
cmp ebx, dword [esp + 0x60]
je 0x42341d
call fcn.004613e3
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x64]
je 0x423605
lea esi, [esp + 0x28]
call fcn.00406a0f
mov edi, eax
mov eax, dword [edi + 0x14]
cmp eax, 2
jne 0x423470
cmp word [esp + 0x1e], 0
jne 0x4235f3
cmp dword [edi + 0x18], 0x10
jb 0x423455
mov eax, dword [edi + 4]
jmp 0x423458
lea eax, [edi + 4]
call fcn.00423a6f
lea ecx, [eax - 1]
cmp ecx, 0x1e
ja 0x4235f3
mov word [esp + 0x1e], ax
jmp 0x4234ee
cmp eax, 3
jne 0x4234ba
cmp word [esp + 0x1a], 0
jne 0x4235f3
xor esi, esi
cmp dword [edi + 0x18], 0x10
jb 0x42348e
mov eax, dword [edi + 4]
jmp 0x423491
lea eax, [edi + 4]
push eax
push dword [esp + esi*4 + 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4234ab
inc esi
cmp esi, 0xc
jb 0x423483
jmp 0x4235f3
inc dword [esp + 0x14]
inc esi
mov word [esp + 0x1a], si
jmp 0x4235f3
cmp eax, 4
jne 0x4234f7
cmp word [esp + 0x18], 0
jne 0x4235f3
cmp dword [edi + 0x18], 0x10
jb 0x4234d6
mov eax, dword [edi + 4]
jmp 0x4234d9
lea eax, [edi + 4]
call fcn.00423a6f
cmp eax, 0x7b2
jl 0x4235f3
mov word [esp + 0x18], ax
inc dword [esp + 0x14]
jmp 0x4235f3
cmp eax, 8
jne 0x4235f3
cmp word [esp + 0x20], 0
jne 0x4235f3
cmp word [esp + 0x22], 0
jne 0x4235f3
cmp word [esp + 0x24], 0
jne 0x4235f3
push 2
xor ebx, ebx
push ebx
push edi
lea esi, [esp + 0xb4]
call fcn.0040a645
cmp dword [eax + 0x18], 0x10
jb 0x423541
mov eax, dword [eax + 4]
jmp 0x423544
add eax, 4
call fcn.00423a6f
push ebx
push 1
lea ecx, [esp + 0xb0]
mov dword [esp + 0x44], eax
call fcn.004030c2
push 2
push 3
push edi
lea esi, [esp + 0xb4]
call fcn.0040a645
cmp dword [eax + 0x18], 0x10
jb 0x423578
mov eax, dword [eax + 4]
jmp 0x42357b
add eax, 4
call fcn.00423a6f
push ebx
push 1
lea ecx, [esp + 0xb0]
mov dword [esp + 0x38], eax
call fcn.004030c2
push 2
push 6
push edi
lea esi, [esp + 0xb4]
call fcn.0040a645
cmp dword [eax + 0x18], 0x10
jb 0x4235af
mov eax, dword [eax + 4]
jmp 0x4235b2
add eax, 4
call fcn.00423a6f
push ebx
push 1
lea ecx, [esp + 0xb0]
mov esi, eax
call fcn.004030c2
mov eax, dword [esp + 0x3c]
cmp eax, 0x3c
ja 0x4235f3
mov ecx, dword [esp + 0x30]
cmp ecx, 0x3c
ja 0x4235f3
cmp esi, 0x3c
ja 0x4235f3
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.00406a37
mov ebx, dword [esp + 0x28]
jmp 0x4233fd
cmp dword [esp + 0x14], 6
je 0x423626
lea esi, [esp + 0x40]
call fcn.00406ea6
push dword [esp + 0x40]
call fcn.00460cb7
pop ecx
push 0xfffffffffffffff8
jmp 0x4231bc
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.0046ead0
mov ecx, dword [esp + 0x38]
lea esi, [esp + 0x40]
mov dword [ecx + 0xc], eax
call fcn.00406ea6
push dword [esp + 0x40]
call fcn.00460cb7
xor esi, esi
pop ecx
inc esi
jmp 0x4231bd