Function at 0x403cfc
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov eax, 0x4054fc
call fcn.004050b0
sub esp, 0x34
mov eax, dword [0x408010]
push ebx
xor ebx, ebx
push esi
push edi
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], ebx
xor esi, esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x38], eax
cmp dword [ebp + 0xc], ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0x28], ebx
je 0x403d64
lea eax, [ebp - 0x40]
push str.POST
push eax
call sub.MSVCRT.dll_strcpy
mov edi, str.Content_Type:_application_x_www_form_urlencoded
pop ecx
mov eax, edi
pop ecx
test eax, eax
je 0x403d58
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push eax
lea ecx, [ebp - 0x20]
call fcn.0040298a
jmp 0x403d74
lea eax, [ebp - 0x40]
push 0x40847c
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
cmp dword [ebp + 0xc], ebx
je 0x403d85
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
pop ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call fcn.00403bed
add esp, 0x10
test eax, eax
jne 0x403da8
mov byte [ebp + 0xf], bl
jmp 0x403eec
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.1__.NET_CLR_2.0.50727_
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x34], eax
je 0x403ee6
mov ecx, dword [ebp - 0x24]
push ebx
neg ecx
sbb ecx, ecx
push ebx
and ecx, 0x16b
push 3
push ebx
add ecx, 0x50
push ebx
push ecx
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [ebp - 0x30], eax
je 0x403ed1
cmp dword [ebp - 0x24], ebx
mov eax, 0x84000100
je 0x403dfd
mov eax, 0x84800100
push ebx
push eax
push ebx
lea eax, [ebp - 0x40]
push dword [ebp + 8]
push ebx
push dword [ebp - 0x18]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
je 0x403ec8
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
push dword [ebp + 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, ebx
je 0x403ebf
push 1
push 0x1389
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x403ebf
lea eax, [ebp - 0x2c]
push eax
push 0x1388
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
call edi
test eax, eax
je 0x403ea0
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jbe 0x403ea0
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 0x1389
push eax
push esi
call dword [sym.imp.MSVCRT.dll_realloc]
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x403ebf
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x14]
add eax, esi
push 0x1388
push eax
push dword [ebp + 8]
jmp 0x403e64
cmp esi, ebx
je 0x403ebf
mov eax, dword [ebp - 0x14]
push esi
push esi
mov byte [esi + eax], bl
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040298a
mov byte [ebp - 0xd], 1
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x30]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, ebx
je 0x403ee6
push esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov al, byte [ebp - 0xd]
mov byte [ebp + 0xf], al
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0040291f
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040291f
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0040291f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040291f
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret