Function at 0x4083ac
Capabilities:
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
add esp, 0xfffff8c8
push esi
push edi
mov esi, 0x4ad4dc
lea edi, [ebp - 0x42c]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4ad8dc
lea edi, [ebp - 0x530]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov dword [ebp - 4], eax
mov esi, 0x4ad9e0
lea edi, [ebp - 0x634]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4adae4
lea edi, [ebp - 0x738]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
mov dword [ebp - 0xc], edx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
xor eax, eax
mov dword [ebp - 0x14], eax
xor edx, edx
mov dword [ebp - 0x18], edx
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
xor eax, eax
mov dword [ebp - 0x20], eax
xor edx, edx
mov dword [ebp - 0x24], edx
push dword [ebp + 8]
lea ecx, [ebp - 0x42c]
push ecx
call fcn.00484884
add esp, 8
push 0x4ae060
lea eax, [ebp - 0x42c]
push eax
call fcn.004849c5
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40847b
push str.http:__
call fcn.004848b4
pop ecx
add dword [ebp - 8], eax
push dword [ebp - 8]
lea edx, [ebp - 0x42c]
push edx
call fcn.00484884
add esp, 8
push 0x4ae070
lea ecx, [ebp - 0x42c]
push ecx
call fcn.004849c5
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4084e4
lea eax, [ebp - 0x42c]
mov edx, dword [ebp - 8]
sub edx, eax
push edx
lea ecx, [ebp - 0x42c]
push ecx
lea eax, [ebp - 0x530]
push eax
call fcn.00484ab4
add esp, 0xc
lea edx, [ebp - 0x42c]
mov ecx, dword [ebp - 8]
sub ecx, edx
mov byte [ebp + ecx - 0x530], 0
inc dword [ebp - 8]
push dword [ebp - 8]
lea eax, [ebp - 0x42c]
push eax
call fcn.00484884
add esp, 8
jmp 0x4084eb
xor eax, eax
jmp 0x40883f
push 0x4ae072
lea edx, [ebp - 0x530]
push edx
call fcn.004849c5
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408523
mov ecx, dword [ebp - 8]
mov byte [ecx], 0
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
call fcn.0048b6e4
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x408530
mov dword [ebp - 4], 0x50
lea edx, [ebp - 0x42c]
push edx
lea ecx, [ebp - 0x634]
push ecx
call fcn.00484884
add esp, 8
push dword [ebp + 0xc]
call fcn.004848b4
pop ecx
test eax, eax
jbe 0x408567
push dword [ebp + 0xc]
lea eax, [ebp - 0x738]
push eax
call fcn.00484884
add esp, 8
jmp 0x4085ae
push 0x2f
lea edx, [ebp - 0x42c]
push edx
call fcn.004849b9
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408598
inc dword [ebp - 8]
push dword [ebp - 8]
lea ecx, [ebp - 0x738]
push ecx
call fcn.00484884
add esp, 8
jmp 0x4085ae
lea eax, [ebp - 0x634]
push eax
lea edx, [ebp - 0x738]
push edx
call fcn.00484884
add esp, 8
push 0x4ae074
lea ecx, [ebp - 0x738]
push ecx
call fcn.004867cc
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x408816
push 0x1001
call fcn.00484114
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x408816
push 0
push 0x2710
push dword [ebp - 4]
lea eax, [ebp - 0x530]
push eax
call fcn.004077b4
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x408816
lea edx, [ebp - 0x530]
push edx
call fcn.00407b60
pop ecx
test eax, eax
je 0x408642
lea ecx, [ebp - 0x530]
push ecx
lea eax, [ebp - 0x634]
push eax
push str.GET___s_HTTP_1.1_r_nConnection:_Close_r_nHost:__s_r_nPragma:_no_cache_r_nAccept:_image_gif__image_x_xbitmap__image_jpeg__image_pjpeg__image_png____r_nAccept_Language:_en_r_nAccept_Charset:_iso_8859_1__utf_8_r_n_r_n
lea edx, [ebp - 0x42c]
push edx
call fcn.00487f0c
add esp, 0x10
jmp 0x40865d
lea ecx, [ebp - 0x634]
push ecx
push str.GET___s_HTTP_1.1_r_nConnection:_Close_r_nPragma:_no_cache_r_nAccept:_image_gif__image_x_xbitmap__image_jpeg__image_pjpeg__image_png____r_nAccept_Language:_en_r_nAccept_Charset:_iso_8859_1__utf_8_r_n_r_n
lea eax, [ebp - 0x42c]
push eax
call fcn.00487f0c
add esp, 0xc
push 0
lea edx, [ebp - 0x42c]
push edx
call fcn.004848b4
pop ecx
push eax
lea ecx, [ebp - 0x42c]
push ecx
push dword [ebp - 0x14]
call sub.WSOCK32.DLL_send
jmp 0x4087f9
push 0
push 0x1000
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call sub.WSOCK32.DLL_recv
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jle 0x408816
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov byte [edx + eax], 0
cmp dword [ebp - 0x24], 0
jne 0x4087d5
push 0x10
push dword [ebp - 0xc]
lea ecx, [ebp - 0x42c]
push ecx
call fcn.00484ab4
add esp, 0xc
mov byte [ebp - 0x41c], 0
push str.200_OK
lea eax, [ebp - 0x42c]
push eax
call fcn.004849c5
add esp, 8
test eax, eax
je 0x408816
push 0x4ae20b
push dword [ebp - 0xc]
call fcn.004849c5
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40871a
mov edx, dword [ebp - 8]
mov byte [edx], 0
push str._r_n_r_n
call fcn.004848b4
pop ecx
add dword [ebp - 8], eax
jmp 0x40874b
push 0x4ae215
push dword [ebp - 0xc]
call fcn.004849c5
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408816
mov ecx, dword [ebp - 8]
mov byte [ecx], 0
push 0x4ae218
call fcn.004848b4
pop ecx
add dword [ebp - 8], eax
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0xc]
sub dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 0x1c], edx
push dword [ebp - 0x10]
push dword [ebp - 0x20]
push 1
push dword [ebp - 8]
call fcn.00486be4
add esp, 0x10
push 0x4ae21b
push dword [ebp - 0xc]
call fcn.004849c5
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4087b6
push str.Content_Length:
call fcn.004848b4
pop ecx
add dword [ebp - 8], eax
jmp 0x4087a0
inc dword [ebp - 8]
mov ecx, dword [ebp - 8]
movsx eax, byte [ecx]
cmp eax, 0x20
je 0x40879d
mov edx, dword [ebp - 8]
movsx ecx, byte [edx]
cmp ecx, 9
je 0x40879d
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
call fcn.0048b6e4
pop ecx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.00404748
jmp 0x4087f9
mov edx, dword [ebp - 0x20]
add dword [ebp - 0x1c], edx
push dword [ebp - 0x10]
push dword [ebp - 0x20]
push 1
push dword [ebp - 0xc]
call fcn.00486be4
add esp, 0x10
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.00404748
push 0x2710
push 0x4ae202
push dword [ebp - 0x14]
call fcn.004070cc
add esp, 0xc
test eax, eax
jge 0x408681
cmp dword [ebp - 0xc], 0
je 0x408825
push dword [ebp - 0xc]
call fcn.00484124
pop ecx
cmp dword [ebp - 0x10], 0
je 0x408834
push dword [ebp - 0x10]
call fcn.00486460
pop ecx
push dword [ebp - 0x14]
call sub.WSOCK32.DLL_closesocket
mov eax, dword [ebp - 0x24]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8