Function at 0x426e39
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Initialize winsock library
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
push 0xffffffffffffffff
push 0x466f36
mov eax, dword fs:[0]
push eax
mov eax, 0x192fc
call fcn.00438820
mov eax, dword [0x483e68]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x19300], eax
mov dword [ebp - 0x19304], ebx
push 0x46bb7c
lea ecx, [ebp - 0x1902c]
mov dword [ebp - 4], ebx
call fcn.00402446
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x19064]
push str.GET_http:__
push eax
mov byte [ebp - 4], 1
mov byte [ebp - 0x19010], bl
call fcn.00424e0a
push str.__HTTP_1.1_r_n
push eax
lea eax, [ebp - 0x19048]
push eax
mov byte [ebp - 4], 2
call fcn.00424e74
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x1902c]
mov byte [ebp - 4], 3
call fcn.00402179
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x19048]
call fcn.00401713
push ebx
push edi
lea ecx, [ebp - 0x19064]
mov byte [ebp - 4], 1
call fcn.00401713
mov esi, str.Accept:_text_html__application_xhtmlxml____r_n
push esi
call fcn.00435c90
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1902c]
call fcn.00402475
mov esi, str.Accept_Language:_zh_CN_r_n
push esi
call fcn.00435c90
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1902c]
call fcn.00402475
mov esi, str.User_Agent:_Mozilla_5.0__Windows_NT_6.1__WOW64__Trident_7.0__rv:11.0__like_Gecko_r_n
push esi
call fcn.00435c90
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1902c]
call fcn.00402475
mov esi, str.Accept_Encoding:_gzip__deflate_r_n
push esi
call fcn.00435c90
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1902c]
call fcn.00402475
lea eax, [ebp + 0xc]
push eax
push str.Host:
lea eax, [ebp - 0x19048]
push eax
call fcn.00424e0a
mov esi, 0x46b8cc
push esi
push eax
lea eax, [ebp - 0x19064]
push eax
mov byte [ebp - 4], 4
call fcn.00424e74
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x1902c]
mov byte [ebp - 4], 5
call fcn.00402179
push ebx
push edi
lea ecx, [ebp - 0x19064]
call fcn.00401713
push ebx
push edi
lea ecx, [ebp - 0x19048]
mov byte [ebp - 4], 1
call fcn.00401713
mov edi, str.DNT:_1_r_n
push edi
call fcn.00435c90
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1902c]
call fcn.00402475
mov edi, str.Connection:_Keep_Alive_r_n
push edi
call fcn.00435c90
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1902c]
call fcn.00402475
push esi
call fcn.00435c90
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1902c]
call fcn.00402475
cmp dword [ebp - 0x19018], 0x10
mov esi, dword [ebp - 0x1901c]
mov eax, dword [ebp - 0x1902c]
jae 0x427020
lea eax, [ebp - 0x1902c]
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 0x19304], eax
mov eax, dword [ebp + 0xc]
jae 0x427032
lea eax, [ebp + 0xc]
mov dword [ebp - 0x192fc], eax
lea eax, [ebp - 0x192f8]
push eax
mov edi, 0x101
push edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42705e
cmp word [ebp - 0x192f8], di
je 0x4270a9
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x46bb7c
mov ecx, dword [ebp - 0x19300]
call fcn.00402446
push ebx
push 1
lea ecx, [ebp - 0x1902c]
call fcn.00401713
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.00401713
mov eax, dword [ebp - 0x19300]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00435805
leave
ret 0x20
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x42705e
push dword [ebp - 0x192fc]
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
jne 0x4270d5
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x427058
push 2
pop ecx
mov word [ebp - 0x1903c], cx
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 8
mov dword [ebp - 0x19038], eax
lea eax, [ebp - 0x19034]
push ebx
push eax
call fcn.004374f0
add esp, 0xc
push 0x50
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1903a], ax
push 0x10
lea eax, [ebp - 0x1903c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4270cc
push ebx
push esi
push dword [ebp - 0x19304]
push edi
call dword [sym.imp.WS2_32.dll_send]
lea eax, [ebp - 0x19010]
test eax, eax
je 0x4271dd
lea eax, [ebp - 0x19304]
test eax, eax
je 0x4271dd
lea esi, [ebp - 0x19010]
mov dword [ebp - 0x192fc], 0x18fff
lea eax, [ebp - 0x19308]
push eax
push ebx
push ebx
lea eax, [ebp - 0x19168]
push eax
push edi
mov dword [ebp - 0x19164], edi
mov dword [ebp - 0x19168], 1
mov dword [ebp - 0x19308], 0xa
mov dword [ebp - 0x19304], 0x3e8
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4271cc
lea eax, [ebp - 0x19168]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42715d
push ebx
push dword [ebp - 0x192fc]
push esi
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
jle 0x4271d2
add esi, eax
sub dword [ebp - 0x192fc], eax
jne 0x42715d
jmp 0x4271d2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea eax, [ebp - 0x11]
sub eax, dword [ebp - 0x192fc]
mov byte [eax], bl
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [ebp - 0x19010]
push eax
jmp 0x427063