Function at 0x417290
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 0x437c8d
mov eax, dword fs:[0]
push eax
sub esp, 0x4cc
mov eax, dword [0x44666c]
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 0x43c7f1
mov byte [ecx], bl
call fcn.00408af0
mov edi, dword [ebp + 0x34]
mov dword [ebp - 0x4cc], 1
mov eax, edi
cmp edi, 3
jb 0x417302
lea eax, [ebx + 3]
cmp dword [ebp + 0x38], 0x10
mov edx, dword [ebp + 0x24]
jae 0x41730e
lea edx, [ebp + 0x24]
mov ecx, 0x43cfc4
call fcn.004047b0
cmp eax, ebx
jne 0x417417
cmp edi, 3
jb 0x417417
xor eax, eax
cmp edi, 3
setne al
cmp eax, ebx
jne 0x417417
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 0x417351
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 0x41762c
jmp 0x4173c0
mov byte [ebp + eax - 0x448], bl
lea eax, [ebp - 0x448]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4173d0
sub eax, edx
push eax
lea ecx, [ebp - 0x448]
push ecx
mov ecx, dword [ebp - 0x4c4]
call fcn.00409c20
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 0x4173c0
jmp 0x41762c
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.00417710
cmp dword [ebp - 0x488], 0x10
mov eax, dword [ebp - 0x49c]
jae 0x417486
lea eax, [ebp - 0x49c]
push eax
call fcn.0041d494
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], 0x43e31c
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 0x4174e5
lea eax, [ebp - 0x4b8]
mov edx, dword [ebp - 0x4c0]
push 1
push ebx
push 3
push 0x43c7f1
push 0x43c7f1
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 0x41751f
lea edx, [ebp - 0x4b8]
mov eax, dword [ebp - 0x480]
cmp dword [ebp - 0x46c], edi
jae 0x417533
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 0x41756a
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 0x417606
mov edi, edi
mov eax, dword [ebp - 0x4bc]
cmp eax, ebx
jbe 0x417606
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 0x4175d0
mov ecx, dword [ebp - 0x4c4]
sub eax, edx
push eax
lea eax, [ebp - 0x448]
push eax
call fcn.00409c20
lea ecx, [ebp - 0x4bc]
push ecx
push 0x3ff
lea edx, [ebp - 0x448]
push edx
push esi
call edi
test eax, eax
jne 0x4175b0
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.00417690
mov esi, 0x10
cmp dword [ebp + 0x1c], esi
jb 0x417642
mov edx, dword [ebp + 8]
push edx
call fcn.0041d4c0
add esp, 4
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], esi
jb 0x417660
mov eax, dword [ebp + 0x24]
push eax
call fcn.0041d4c0
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.0041d129
mov esp, ebp
pop ebp
ret 0x38