Function at 0x42f6a9
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xccc
push ebx
push esi
lea eax, [ebp + 8]
push edi
push eax
mov edi, 0x400
lea eax, [ebp - 0xb3c]
push edi
push eax
lea eax, [ebp - 0x73c]
push pe_nt_image_headers32
push eax
lea eax, [ebp - 0x3c]
push 0x14
push eax
mov ebx, ecx
push dword [ebp + 8]
call fcn.0042f5c6
lea eax, [ebp - 0x3c]
push str.HTTP
push eax
call fcn.0046e1d0
pop ecx
test eax, eax
pop ecx
jne 0x42f753
lea eax, [ebp - 0xccc]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x42f753
push eax
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x42f753
push dword [ebp + 8]
mov word [ebp - 0x28], 2
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x26], ax
lea eax, [ebp - 0x73c]
push eax
mov ecx, ebx
call fcn.0042f55a
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push 0x10
push eax
push esi
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x42f75b
push 1
pop eax
jmp 0x42fa70
cmp byte [ebp - 0xb3c], 0
jne 0x42f777
push edi
lea eax, [ebp - 0xb3c]
push 0x4afb04
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x10], 0
mov edi, str.GET
je 0x42f787
mov edi, str.POST
push edi
push esi
mov ecx, ebx
call fcn.0042f572
lea eax, [ebp - 0x63c]
push edi
push eax
call fcn.0046d4a0
pop ecx
lea eax, [ebp - 0xb3c]
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0042f572
lea eax, [ebp - 0xb3c]
push eax
lea eax, [ebp - 0x63c]
push eax
call fcn.0046d4b0
pop ecx
mov edi, str._HTTP_1.0_r_n
pop ecx
push edi
push esi
mov ecx, ebx
call fcn.0042f572
lea eax, [ebp - 0x63c]
push edi
push eax
call fcn.0046d4b0
pop ecx
mov edi, str.Accept:_image_gif__image_x_xbitmap__image_jpeg__image_pjpeg__application_vnd.ms_excel__application_msword__application_vnd.ms_powerpoint____r_n
pop ecx
push edi
push esi
mov ecx, ebx
call fcn.0042f572
lea eax, [ebp - 0x63c]
push edi
push eax
call fcn.0046d4b0
pop ecx
mov edi, str.Accept_Language:_en_us_r_n
pop ecx
push edi
push esi
mov ecx, ebx
call fcn.0042f572
lea eax, [ebp - 0x63c]
push edi
push eax
call fcn.0046d4b0
pop ecx
mov edi, str.Accept_Encoding:_gzip__deflate_r_n
pop ecx
push edi
push esi
mov ecx, ebx
call fcn.0042f572
lea eax, [ebp - 0x63c]
push edi
push eax
call fcn.0046d4b0
pop ecx
mov edi, str.User_Agent:_Mozilla_4.0_r_n
pop ecx
push edi
push esi
mov ecx, ebx
call fcn.0042f572
lea eax, [ebp - 0x63c]
push edi
push eax
call fcn.0046d4b0
cmp dword [ebp + 0x14], 0
pop ecx
pop ecx
je 0x42f896
push dword [ebp + 0x14]
lea eax, [ebp - 0x23c]
push str.Content_Length:__ld_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x23c]
mov ecx, ebx
push eax
push esi
call fcn.0042f572
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x63c]
push eax
call fcn.0046d4b0
pop ecx
pop ecx
mov edi, str.Host:
mov ecx, ebx
push edi
push esi
call fcn.0042f572
lea eax, [ebp - 0x63c]
push edi
push eax
call fcn.0046d4b0
pop ecx
lea eax, [ebp - 0x73c]
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0042f572
lea eax, [ebp - 0x73c]
push eax
lea eax, [ebp - 0x63c]
push eax
call fcn.0046d4b0
pop ecx
mov edi, 0x4ae23c
pop ecx
push edi
push esi
mov ecx, ebx
call fcn.0042f572
lea eax, [ebp - 0x63c]
push edi
push eax
call fcn.0046d4b0
mov eax, dword [ebp + 0xc]
pop ecx
test eax, eax
pop ecx
je 0x42f91a
cmp byte [eax], 0
je 0x42f91a
push eax
push esi
mov ecx, ebx
call fcn.0042f572
push dword [ebp + 0xc]
lea eax, [ebp - 0x63c]
push eax
call fcn.0046d4b0
pop ecx
pop ecx
push edi
push esi
mov ecx, ebx
call fcn.0042f572
lea eax, [ebp - 0x63c]
push edi
push eax
call fcn.0046d4b0
mov edi, dword [ebp + 0x10]
pop ecx
test edi, edi
pop ecx
je 0x42f962
cmp dword [ebp + 0x14], 0
je 0x42f962
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WSOCK32.dll_send]
mov eax, dword [ebp + 0x14]
push edi
and byte [edi + eax], 0
lea eax, [ebp - 0x63c]
push eax
call fcn.0046d4b0
pop ecx
pop ecx
lea eax, [ebp - 0x63c]
push eax
call fcn.0046d3d0
shl eax, 2
push eax
call fcn.0046e926
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
lea ecx, [ebp - 0x63c]
push ecx
push eax
call fcn.0046d4a0
add esp, 0x10
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.0042f4b4
and dword [ebp + 0x14], 0
and dword [ebp + 0xc], 0
mov edi, dword [sym.imp.WSOCK32.dll_recv]
push 0
lea eax, [ebp - 0x23c]
push 1
push eax
push esi
call edi
test eax, eax
jge 0x42f9be
mov dword [ebp + 0xc], 1
cmp byte [ebp - 0x23c], 0xa
je 0x42f9d5
cmp byte [ebp - 0x23c], 0xd
je 0x42f9e6
inc dword [ebp + 0x14]
jmp 0x42f9e6
cmp dword [ebp + 0x14], 0
jne 0x42f9e2
mov dword [ebp + 0xc], 1
and dword [ebp + 0x14], 0
push dword [ebp - 0x23c]
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.0042f4f9
cmp dword [ebp + 0xc], 0
je 0x42f9a5
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x18]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x14]
mov ecx, ebx
and byte [eax], 0
lea eax, [ebp - 0xc]
push eax
call fcn.0042f4b4
push 0
lea eax, [ebp - 0x23c]
push 0x1ff
push eax
push esi
call edi
test eax, eax
mov dword [ebp + 0x14], eax
jl 0x42fa50
and byte [ebp + eax - 0x23c], 0
push eax
lea eax, [ebp - 0x23c]
mov ecx, ebx
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042f51e
cmp dword [ebp + 0x14], 0
jg 0x42fa17
mov eax, dword [ebp - 8]
push esi
and byte [eax], 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x18]
sub edx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call dword [sym.imp.WSOCK32.dll_closesocket]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14