Function at 0x421940
Capabilities:
Connect to http server
Create http request
Get http content length
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e9ed
mov eax, dword fs:[0]
push eax
sub esp, 0x4cc
mov eax, dword [0x46166c]
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
xor ebx, ebx
mov dword [ebp - 0x4c4], ecx
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 4], 2
push ebx
mov esi, 0xf
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push 0x454939
mov byte [ecx], bl
call fcn.004099d0
mov edi, dword [ebp + 0x34]
mov dword [ebp - 0x4cc], 1
mov eax, edi
cmp edi, 3
jb 0x4219b2
lea eax, [ebx + 3]
cmp dword [ebp + 0x38], 0x10
mov edx, dword [ebp + 0x24]
jae 0x4219be
lea edx, [ebp + 0x24]
mov ecx, 0x455144
call fcn.00405250
cmp eax, ebx
jne 0x421ac7
cmp edi, 3
jb 0x421ac7
xor eax, eax
cmp edi, 3
setne al
cmp eax, ebx
jne 0x421ac7
push ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp dword [ebp + 0x1c], 0x10
mov ecx, dword [ebp + 8]
jae 0x421a01
lea ecx, [ebp + 8]
push ebx
push 0x102
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
push ebx
mov esi, eax
lea eax, [ebp - 0x4c0]
push eax
lea ecx, [ebp - 0x4c8]
push ecx
push 0x20000005
push esi
mov dword [ebp - 0x4c0], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [ebp - 0x4bc]
push edx
push 0x400
lea eax, [ebp - 0x448]
push eax
push esi
mov dword [ebp - 0x4bc], ebx
call edi
mov eax, dword [ebp - 0x4bc]
cmp eax, ebx
jbe 0x421cdc
jmp 0x421a70
mov byte [ebp + eax - 0x448], bl
lea eax, [ebp - 0x448]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x421a80
sub eax, edx
push eax
lea ecx, [ebp - 0x448]
push ecx
mov ecx, dword [ebp - 0x4c4]
call fcn.0040aae0
lea edx, [ebp - 0x4bc]
push edx
push 0x400
lea eax, [ebp - 0x448]
push eax
push esi
mov dword [ebp - 0x4bc], ebx
call edi
mov eax, dword [ebp - 0x4bc]
cmp eax, ebx
ja 0x421a70
jmp 0x421cdc
mov dword [ebp - 0x4a4], esi
mov dword [ebp - 0x4a8], ebx
mov byte [ebp - 0x4b8], bl
mov dword [ebp - 0x488], esi
mov dword [ebp - 0x48c], ebx
mov byte [ebp - 0x49c], bl
mov dword [ebp - 0x46c], esi
mov dword [ebp - 0x470], ebx
mov byte [ebp - 0x480], bl
mov dword [ebp - 0x450], esi
mov dword [ebp - 0x454], ebx
mov byte [ebp - 0x464], bl
lea ecx, [ebp - 0x4b8]
lea edi, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00421dc0
cmp dword [ebp - 0x488], 0x10
mov eax, dword [ebp - 0x49c]
jae 0x421b36
lea eax, [ebp - 0x49c]
push eax
call fcn.0042f0a4
add esp, 4
push ebx
push ebx
push ebx
push 1
mov ecx, 0xc
mov esi, str.Content_Type:_application_x_www_form_urlencoded
lea edi, [ebp - 0x40]
push str.Mozilla_4.0__Compatible__MSIE_6.0__
mov dword [ebp - 0x4c0], eax
mov dword [ebp - 0x4d4], 0x4575fc
mov dword [ebp - 0x4d0], ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, eax
mov eax, dword [ebp - 0x4b8]
mov edi, 0x10
mov dword [ebp - 0x4c8], ecx
cmp dword [ebp - 0x4a4], edi
jae 0x421b95
lea eax, [ebp - 0x4b8]
mov edx, dword [ebp - 0x4c0]
push 1
push ebx
push 3
push 0x454939
push 0x454939
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edx, dword [ebp - 0x4b8]
mov ecx, eax
mov dword [ebp - 0x4c0], ecx
cmp dword [ebp - 0x4a4], edi
jae 0x421bcf
lea edx, [ebp - 0x4b8]
mov eax, dword [ebp - 0x480]
cmp dword [ebp - 0x46c], edi
jae 0x421be3
lea eax, [ebp - 0x480]
push 1
push 0x4000000
lea esi, [ebp - 0x4d4]
push esi
push edx
push str.HTTP_1.0
push eax
push str.POST
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
mov eax, dword [ebp - 0x464]
cmp dword [ebp - 0x450], edi
jae 0x421c1a
lea eax, [ebp - 0x464]
mov ecx, dword [ebp - 0x454]
push ecx
push eax
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [ebp - 0x4bc]
push ecx
push 0x3ff
lea edx, [ebp - 0x448]
push edx
push esi
mov dword [ebp - 0x4bc], ebx
call edi
test eax, eax
je 0x421cb6
mov edi, edi
mov eax, dword [ebp - 0x4bc]
cmp eax, ebx
jbe 0x421cb6
mov byte [ebp + eax - 0x448], bl
lea eax, [ebp - 0x448]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x421c80
mov ecx, dword [ebp - 0x4c4]
sub eax, edx
push eax
lea eax, [ebp - 0x448]
push eax
call fcn.0040aae0
lea ecx, [ebp - 0x4bc]
push ecx
push 0x3ff
lea edx, [ebp - 0x448]
push edx
push esi
call edi
test eax, eax
jne 0x421c60
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov eax, dword [ebp - 0x4c0]
push eax
call esi
mov ecx, dword [ebp - 0x4c8]
push ecx
call esi
lea esi, [ebp - 0x4b8]
call fcn.00421d40
mov esi, 0x10
cmp dword [ebp + 0x1c], esi
jb 0x421cf2
mov edx, dword [ebp + 8]
push edx
call fcn.0042f0d0
add esp, 4
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], esi
jb 0x421d10
mov eax, dword [ebp + 0x24]
push eax
call fcn.0042f0d0
add esp, 4
mov eax, dword [ebp - 0x4c4]
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.0042ed1f
mov esp, ebp
pop ebp
ret 0x38