Function at 0x54f308
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x54f311
mov eax, dword [ebp - 4]
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10048], ebx
mov dword [ebp - 0x10040], ebx
mov dword [ebp - 0x10044], ebx
mov dword [ebp - 0x1003c], ebx
mov dword [ebp - 0x10038], ebx
mov dword [ebp - 0x10034], ebx
mov dword [ebp - 0x10030], ebx
mov dword [ebp - 0x10024], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x54f756
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebx], eax
push 0
call sub.kernel32.dll_SetLastError
mov eax, esi
call fcn.00404cac
push 0
push 0
push 0
push 0
push 0x54f76c
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x54f3e6
call sub.kernel32.dll_GetLastError_1
mov dword [ebx], eax
lea eax, [ebp - 0x10024]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x1002c], eax
mov byte [ebp - 0x10028], 0
lea edx, [ebp - 0x1002c]
xor ecx, ecx
mov eax, 0x54f7b4
call fcn.0040c1cc
mov ecx, dword [ebp - 0x10024]
mov dl, 1
mov eax, dword [0x409b18]
call fcn.0040ed28
call fcn.0040464c
xor eax, eax
push ebp
push 0x54f726
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 0
push 0x1bb
mov eax, edi
call fcn.00405178
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x54f463
call sub.kernel32.dll_GetLastError_1
mov dword [ebx], eax
lea eax, [ebp - 0x10030]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x1002c], eax
mov byte [ebp - 0x10028], 0
lea edx, [ebp - 0x1002c]
xor ecx, ecx
mov eax, 0x54f7d4
call fcn.0040c1cc
mov ecx, dword [ebp - 0x10030]
mov dl, 1
mov eax, dword [0x409b18]
call fcn.0040ed28
call fcn.0040464c
xor eax, eax
push ebp
push 0x54f708
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x800000
push 0
push 0x54f7f0
push 0x54f7f4
mov eax, dword [ebp - 4]
call fcn.00405178
push eax
push 0x54f800
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x54f4ea
call sub.kernel32.dll_GetLastError_1
mov dword [ebx], eax
lea eax, [ebp - 0x10034]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x1002c], eax
mov byte [ebp - 0x10028], 0
lea edx, [ebp - 0x1002c]
xor ecx, ecx
mov eax, 0x54f80c
call fcn.0040c1cc
mov ecx, dword [ebp - 0x10034]
mov dl, 1
mov eax, dword [0x409b18]
call fcn.0040ed28
call fcn.0040464c
xor eax, eax
push ebp
push 0x54f6ea
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
jne 0x54f553
call sub.kernel32.dll_GetLastError_1
mov dword [ebx], eax
lea eax, [ebp - 0x10038]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x1002c], eax
mov byte [ebp - 0x10028], 0
lea edx, [ebp - 0x1002c]
xor ecx, ecx
mov eax, 0x54f830
call fcn.0040c1cc
mov ecx, dword [ebp - 0x10038]
mov dl, 1
mov eax, dword [0x409b18]
call fcn.0040ed28
call fcn.0040464c
mov dword [ebp - 0x18], 4
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push 0x20000013
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
jne 0x54f5c3
call sub.kernel32.dll_GetLastError_1
mov dword [ebx], eax
lea eax, [ebp - 0x1003c]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x1002c], eax
mov byte [ebp - 0x10028], 0
lea edx, [ebp - 0x1002c]
xor ecx, ecx
mov eax, 0x54f854
call fcn.0040c1cc
mov ecx, dword [ebp - 0x1003c]
mov dl, 1
mov eax, dword [0x409b18]
call fcn.0040ed28
call fcn.0040464c
cmp dword [ebp - 8], 0xc8
jne 0x54f68d
xor eax, eax
push ebp
push 0x54f686
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0x10000
cmp dword [ebp - 0x20], 0x10000
jne 0x54f678
lea eax, [ebp - 0x10020]
xor ecx, ecx
mov edx, 0x10000
call fcn.0040359c
lea eax, [ebp - 0x20]
push eax
push 0x10000
lea eax, [ebp - 0x10020]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x54f66b
cmp dword [ebp - 0x20], 0
jbe 0x54f66b
lea eax, [ebp - 0x10040]
push eax
lea eax, [ebp - 0x10044]
lea edx, [ebp - 0x10020]
mov ecx, 0x10000
call fcn.00404d9c
mov eax, dword [ebp - 0x10044]
mov ecx, dword [ebp - 0x20]
mov edx, 1
call fcn.004051d8
mov edx, dword [ebp - 0x10040]
mov eax, esi
call fcn.00404f88
mov dword [ebp - 0x20], 0x10000
cmp dword [ebp - 0x20], 0x10000
je 0x54f5f2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54f6d3
ret
call sub.kernel32.dll_GetLastError_1
mov dword [ebx], eax
lea eax, [ebp - 0x10048]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x1002c], eax
mov byte [ebp - 0x10028], 0
lea edx, [ebp - 0x1002c]
xor ecx, ecx
mov eax, 0x54f874
call fcn.0040c1cc
mov ecx, dword [ebp - 0x10048]
mov dl, 1
mov eax, dword [0x409b18]
call fcn.0040ed28
call fcn.0040464c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54f6f1
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret