Function at 0x41d160
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 0x4407ed
mov eax, dword fs:[0]
push eax
sub esp, 0x4cc
mov eax, dword [0x45066c]
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 0x4457f5
mov byte [ecx], bl
call fcn.004088e0
mov edi, dword [ebp + 0x34]
mov dword [ebp - 0x4cc], 1
mov eax, edi
cmp edi, 3
jb 0x41d1d2
lea eax, [ebx + 3]
cmp dword [ebp + 0x38], 0x10
mov edx, dword [ebp + 0x24]
jae 0x41d1de
lea edx, [ebp + 0x24]
mov ecx, 0x445ef8
call fcn.00404140
cmp eax, ebx
jne 0x41d2e7
cmp edi, 3
jb 0x41d2e7
xor eax, eax
cmp edi, 3
setne al
cmp eax, ebx
jne 0x41d2e7
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 0x41d221
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 0x41d4fc
jmp 0x41d290
mov byte [ebp + eax - 0x448], bl
lea eax, [ebp - 0x448]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41d2a0
sub eax, edx
push eax
lea ecx, [ebp - 0x448]
push ecx
mov ecx, dword [ebp - 0x4c4]
call fcn.004099f0
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 0x41d290
jmp 0x41d4fc
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.0041d560
cmp dword [ebp - 0x488], 0x10
mov eax, dword [ebp - 0x49c]
jae 0x41d356
lea eax, [ebp - 0x49c]
push eax
call fcn.004233c4
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], 0x4483b4
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 0x41d3b5
lea eax, [ebp - 0x4b8]
mov edx, dword [ebp - 0x4c0]
push 1
push ebx
push 3
push 0x4457f5
push 0x4457f5
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 0x41d3ef
lea edx, [ebp - 0x4b8]
mov eax, dword [ebp - 0x480]
cmp dword [ebp - 0x46c], edi
jae 0x41d403
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 0x41d43a
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 0x41d4d6
mov edi, edi
mov eax, dword [ebp - 0x4bc]
cmp eax, ebx
jbe 0x41d4d6
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 0x41d4a0
mov ecx, dword [ebp - 0x4c4]
sub eax, edx
push eax
lea eax, [ebp - 0x448]
push eax
call fcn.004099f0
lea ecx, [ebp - 0x4bc]
push ecx
push 0x3ff
lea edx, [ebp - 0x448]
push edx
push esi
call edi
test eax, eax
jne 0x41d480
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.00415ae0
mov esi, 0x10
cmp dword [ebp + 0x1c], esi
jb 0x41d512
mov edx, dword [ebp + 8]
push edx
call fcn.004233f0
add esp, 4
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], esi
jb 0x41d530
mov eax, dword [ebp + 0x24]
push eax
call fcn.004233f0
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.0042304b
mov esp, ebp
pop ebp
ret 0x38