Function at 0x450510
Capabilities:
Connect to http server
Create http request
Get http content length
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x582904]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [eax], 0
xor esi, esi
movups xmm0, xmmword [str.Content_Type:_application_x_www_form_urlencoded__charset_utf_8_]
push edi
push esi
movups xmmword [ebp - 0x48], xmm0
push esi
movups xmm0, xmmword [0x543608]
push esi
mov dword [ebp - 0x64], eax
xor edi, edi
mov al, byte [0x543638]
movups xmmword [ebp - 0x38], xmm0
push esi
movups xmm0, xmmword [0x543618]
push esi
mov byte [ebp - 8], al
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x78], str.Accept:_
movups xmm0, xmmword [0x543628]
mov dword [ebp - 0x74], esi
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x70], eax
test eax, eax
je 0x450794
push esi
cmp ebx, 2
jne 0x4505bd
push 0x4000000
push 0xf
push dword [ebp - 0x58]
push dword [ebp - 0x4c]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ecx, eax
mov dword [ebp - 0x60], ecx
jmp 0x4505d6
push 0
push 3
push 0
push 0
push 0x50
push dword [ebp - 0x4c]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, eax
mov dword [ebp - 0x60], eax
test ecx, ecx
je 0x45078b
cmp ebx, 2
je 0x450644
push 0
push 0
lea eax, [ebp - 0x78]
mov edx, 0x543650
push eax
push 0
push 0
push dword [ebp - 0x5c]
test ebx, ebx
mov eax, str.POST
cmove eax, edx
push eax
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
mov dword [ebp - 0x4c], ebx
test ebx, ebx
je 0x450780
mov edx, dword [ebp - 0x58]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x5c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x450621
sub ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x48]
push ecx
push edx
push 0xffffffffffffffff
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x450775
jmp 0x450649
mov ebx, ecx
mov dword [ebp - 0x4c], ecx
lea eax, [ebp - 0x68]
mov dword [ebp - 0x6c], 4
push eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x68], esi
push eax
lea eax, [ebp - 0x54]
push eax
push 0x20000005
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x45069f
mov esi, dword [ebp - 0x54]
lea eax, [esi + 1]
push eax
call fcn.0050b551
add esp, 4
mov edi, eax
lea eax, [ebp - 0x50]
push eax
push esi
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [esi + edi], 0
call ebx
jmp 0x450786
push 0
push 0
lea eax, [ebp - 0x54]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x450775
nop word [eax + eax]
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x450775
inc eax
push eax
call fcn.0050b551
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x58], ebx
push eax
push dword [ebp - 0x54]
push ebx
push dword [ebp - 0x4c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x450769
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x450772
mov byte [ebx + eax], 0
mov eax, dword [ebp - 0x50]
inc eax
add eax, esi
push eax
call fcn.0050b551
add esp, 4
mov ebx, eax
test esi, esi
je 0x450720
push esi
push edi
push ebx
call fcn.0050df20
push edi
call fcn.0050b55a
add esp, 0x10
lea ecx, [ebx + esi]
mov byte [ecx], 0
mov eax, dword [ebp - 0x50]
inc eax
push eax
push dword [ebp - 0x58]
push ecx
call fcn.0050df20
push dword [ebp - 0x58]
mov edi, ebx
call fcn.0050b55a
mov ebx, dword [ebp - 0x4c]
lea eax, [ebp - 0x54]
add esi, dword [ebp - 0x50]
add esp, 0x10
push 0
push 0
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x4506c0
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
jmp 0x450786
push ebx
call fcn.0050b55a
add esp, 4
mov ebx, dword [ebp - 0x4c]
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
jmp 0x450786
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x60]
call ebx
push dword [ebp - 0x70]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
call fcn.0050b540
mov esp, ebp
pop ebp
ret