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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41be7b
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x425008]
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
mov dword [ebp - 0x20], edx
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0
test eax, eax
je 0x404636
mov dword [eax], 0
test ebx, ebx
je 0x404640
mov dword [ebx], 0
push 0
push 0
push 0
push 1
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x4048af
cmp edi, 0xffffffff
je 0x4048af
push 0
push 0
push 3
push 0
push 0
push 0x50
push esi
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x404874
cmp eax, 0xffffffff
je 0x404874
push 0
push 0
push 0
push 0
push str.HTTP_1.1
push dword [ebp - 0x20]
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
je 0x404834
cmp esi, 0xffffffff
je 0x404834
push dword [ebp + 0x14]
push dword [ebp - 0x34]
push 0x5d
push str.Accept:_application_octet_stream_r_nContent_Type:_application_octet_stream_r_nConnection:_close_r_n
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x404716
push str.__14____4__
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x93
push 0x4225d3
push ecx
call fcn.00401290
add esp, 4
push eax
call fcn.004025a0
add esp, 0x18
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x30]
call esi
push edi
call esi
mov eax, dword [ebp - 0x2c]
jmp 0x40490d
lea eax, [ebp - 0x38]
mov byte [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 0x13], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x40], 0xa
push eax
push 0x13
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push esi
movq qword [ebp - 0x1b], xmm0
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x40478f
push str.__15____4__
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x9b
push 0x4225d3
push ecx
call fcn.00401290
add esp, 4
push eax
call fcn.004025a0
add esp, 0x18
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x30]
call esi
push edi
call esi
mov eax, dword [ebp - 0x2c]
jmp 0x40490d
lea eax, [ebp - 0x1c]
push eax
call fcn.0040b146
add esp, 4
mov dword [ebp - 0x2c], eax
test ebx, ebx
je 0x40480f
cmp dword [ebp - 0x28], 0
je 0x40480f
push 0x400
xor edi, edi
call fcn.0040997c
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x20]
push eax
push 0x400
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x404803
mov edi, edi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x404828
add edi, eax
lea eax, [edi + 0x400]
push eax
push ebx
call fcn.0040b168
add esp, 8
mov ebx, eax
lea eax, [ebp - 0x20]
push eax
push 0x400
lea eax, [ebx + edi]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4047d0
push ebx
call fcn.00409944
add esp, 4
mov edi, dword [ebp - 0x24]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x30]
call esi
push edi
call esi
mov eax, dword [ebp - 0x2c]
jmp 0x40490d
mov eax, dword [ebp - 0x28]
mov dword [eax], edi
mov eax, dword [ebp - 0x3c]
mov dword [eax], ebx
jmp 0x40480c
push str.__13____4__
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x8e
push 0x4225d3
push ecx
call fcn.00401290
add esp, 4
push eax
call fcn.004025a0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x18
push dword [ebp - 0x30]
call esi
push edi
call esi
mov eax, dword [ebp - 0x2c]
jmp 0x40490d
push 0x50
push esi
push str.__12____10__http:___s:_d__4__
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x88
push 0x4225d3
push ecx
call fcn.00401290
add esp, 4
push eax
call fcn.004025a0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x20
push edi
call esi
mov eax, dword [ebp - 0x2c]
jmp 0x40490d
mov esi, dword [0x428d1c]
test esi, esi
jne 0x4048ea
push 0xc8
call fcn.0040aff1
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x4048db
mov ecx, eax
call fcn.00401420
mov esi, eax
jmp 0x4048dd
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [0x428d1c], esi
push str.__11____4__
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x82
push 0x4225d3
push esi
call fcn.004025a0
add esp, 0x18
xor eax, eax
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.00409264
mov esp, ebp
pop ebp
ret