Function at 0x41fddd
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 0x47734a
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10dc
call fcn.004690d0
mov eax, dword [0x493040]
xor eax, esp
mov dword [esp + 0x10d8], eax
push ebx
push esi
push edi
mov eax, dword [0x493040]
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 0x41fe45
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x41fe6c
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.0045d55f
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 0x41fe96
cmp esi, 0xffffffff
jne 0x41fea6
push 0xfffffffffffffffe
pop esi
lea ecx, [esp + 0x70]
call fcn.0041fd9c
mov eax, esi
jmp 0x41fe48
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 0x41fee5
push 0xfffffffffffffffd
jmp 0x41fe98
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 0x41ff30
push 0xfffffffffffffffc
jmp 0x41fe98
push ebx
push edi
lea eax, [esp + 0xec]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
jg 0x41ff4c
push 0xfffffffffffffffb
jmp 0x41fe98
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 0x41ff76
push 0xfffffffffffffffa
jmp 0x41fe98
push 0x48113c
add edi, 7
push edi
call esi
cmp eax, ebx
jne 0x41ff8c
push 0xfffffffffffffff9
jmp 0x41fe98
mov esi, dword [sym.imp.SHLWAPI.dll_StrChrA]
mov byte [eax], 0
jmp 0x41ff9a
mov byte [eax], 0x20
push 0x2c
push edi
call esi
cmp eax, ebx
jne 0x41ff97
lea eax, [esp + 0x40]
push eax
call fcn.0040da47
push 0x480738
lea ecx, [esp + 0xac]
mov byte [esp + 0x10fc], 1
call fcn.00402c6a
push edi
lea ecx, [esp + 0x7c]
mov byte [esp + 0x10fc], 2
call fcn.00402c6a
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.004206c2
add esp, 0xc
push ebx
push 1
lea ecx, [esp + 0x80]
call fcn.00403022
push ebx
push 1
lea ecx, [esp + 0xb0]
mov byte [esp + 0x1100], 1
call fcn.00403022
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], 0x481140
mov dword [esp + 0x80], 0x481144
mov dword [esp + 0x84], 0x481148
mov dword [esp + 0x88], 0x48114c
mov dword [esp + 0x8c], 0x481150
mov dword [esp + 0x90], 0x481154
mov dword [esp + 0x94], 0x481158
mov dword [esp + 0x98], 0x48115c
mov dword [esp + 0x9c], 0x481160
mov dword [esp + 0xa0], 0x481164
mov dword [esp + 0xa4], 0x481168
mov dword [esp + 0xa8], 0x48116c
call fcn.00420502
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.00420502
test ebx, ebx
je 0x4200f4
cmp ebx, dword [esp + 0x60]
je 0x4200f9
call fcn.0045dcc3
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x64]
je 0x4202e1
lea esi, [esp + 0x28]
call fcn.00420434
mov edi, eax
mov eax, dword [edi + 0x14]
cmp eax, 2
jne 0x42014c
cmp word [esp + 0x1e], 0
jne 0x4202cf
cmp dword [edi + 0x18], 0x10
jb 0x420131
mov eax, dword [edi + 4]
jmp 0x420134
lea eax, [edi + 4]
call fcn.0042079b
lea ecx, [eax - 1]
cmp ecx, 0x1e
ja 0x4202cf
mov word [esp + 0x1e], ax
jmp 0x4201ca
cmp eax, 3
jne 0x420196
cmp word [esp + 0x1a], 0
jne 0x4202cf
xor esi, esi
cmp dword [edi + 0x18], 0x10
jb 0x42016a
mov eax, dword [edi + 4]
jmp 0x42016d
lea eax, [edi + 4]
push eax
push dword [esp + esi*4 + 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x420187
inc esi
cmp esi, 0xc
jb 0x42015f
jmp 0x4202cf
inc dword [esp + 0x14]
inc esi
mov word [esp + 0x1a], si
jmp 0x4202cf
cmp eax, 4
jne 0x4201d3
cmp word [esp + 0x18], 0
jne 0x4202cf
cmp dword [edi + 0x18], 0x10
jb 0x4201b2
mov eax, dword [edi + 4]
jmp 0x4201b5
lea eax, [edi + 4]
call fcn.0042079b
cmp eax, 0x7b2
jl 0x4202cf
mov word [esp + 0x18], ax
inc dword [esp + 0x14]
jmp 0x4202cf
cmp eax, 8
jne 0x4202cf
cmp word [esp + 0x20], 0
jne 0x4202cf
cmp word [esp + 0x22], 0
jne 0x4202cf
cmp word [esp + 0x24], 0
jne 0x4202cf
push 2
xor ebx, ebx
push ebx
push edi
lea esi, [esp + 0xb4]
call fcn.00407b24
cmp dword [eax + 0x18], 0x10
jb 0x42021d
mov eax, dword [eax + 4]
jmp 0x420220
add eax, 4
call fcn.0042079b
push ebx
push 1
lea ecx, [esp + 0xb0]
mov dword [esp + 0x44], eax
call fcn.00403022
push 2
push 3
push edi
lea esi, [esp + 0xb4]
call fcn.00407b24
cmp dword [eax + 0x18], 0x10
jb 0x420254
mov eax, dword [eax + 4]
jmp 0x420257
add eax, 4
call fcn.0042079b
push ebx
push 1
lea ecx, [esp + 0xb0]
mov dword [esp + 0x38], eax
call fcn.00403022
push 2
push 6
push edi
lea esi, [esp + 0xb4]
call fcn.00407b24
cmp dword [eax + 0x18], 0x10
jb 0x42028b
mov eax, dword [eax + 4]
jmp 0x42028e
add eax, 4
call fcn.0042079b
push ebx
push 1
lea ecx, [esp + 0xb0]
mov esi, eax
call fcn.00403022
mov eax, dword [esp + 0x3c]
cmp eax, 0x3c
ja 0x4202cf
mov ecx, dword [esp + 0x30]
cmp ecx, 0x3c
ja 0x4202cf
cmp esi, 0x3c
ja 0x4202cf
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.0040e1ea
mov ebx, dword [esp + 0x28]
jmp 0x4200d9
cmp dword [esp + 0x14], 6
je 0x420302
lea esi, [esp + 0x40]
call fcn.00406419
push dword [esp + 0x40]
call fcn.0045d598
pop ecx
push 0xfffffffffffffff8
jmp 0x41fe98
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.0046b3b0
mov ecx, dword [esp + 0x38]
lea esi, [esp + 0x40]
mov dword [ecx + 0xc], eax
call fcn.00406419
push dword [esp + 0x40]
call fcn.0045d598
xor esi, esi
pop ecx
inc esi
jmp 0x41fe99