Function at 0x525620
Capabilities:
Connect to http server
Create http request
Get http content length
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x525a31
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x20], eax
push 0x525a40
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x5ab4e4], eax
push 0x525a50
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x5ab4ec], eax
push 0x525a68
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x5ab4e8], eax
push 0x10000000
push 0
push 0
push 0
push 0x525a74
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5259ee
mov ecx, 0x524d78
push ecx
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetStatusCallback
mov ecx, eax
mov eax, ecx
xor edx, edx
cmp edx, 0xffffffff
jne 0x5256eb
cmp eax, 0xffffffff
jne 0x5256eb
mov ecx, 0x525a8c
mov dl, 1
mov eax, dword [0x407ec0]
call fcn.0040d954
call fcn.00403e44
add dword [ebp - 0x20], 1
jno 0x5256f6
call fcn.004034f4
push 1
push 0
push 3
push 0
push 0
push 0x50
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 4]
call fcn.00525464
mov eax, dword [ebp - 0x58]
call fcn.00404988
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [0x5ab4e0], eax
cmp dword [0x5ab4e0], 0
jne 0x52574a
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
jne 0x5259ee
push 0xffffffffffffffff
mov eax, dword [0x5ab4e4]
push eax
call sub.kernel32.dll_WaitForSingleObject
push 2
push 0x84000000
push 0
push 0
push 0
push ebp
lea eax, [ebp - 0x5c]
call fcn.0052559c
pop ecx
mov eax, dword [ebp - 0x5c]
call fcn.00404988
push eax
push 0x525aac
mov eax, dword [0x5ab4e0]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [0x5ab4dc], eax
cmp dword [0x5ab4dc], 0
jne 0x5257a5
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
jne 0x5259ee
push 0xffffffffffffffff
mov eax, dword [0x5ab4e8]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0x60]
push eax
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 4]
call fcn.00525464
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0xb
lea edx, [ebp - 0x68]
xor ecx, ecx
mov eax, dword [0x5a7fa8]
call fcn.0040a6f8
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x14]
call fcn.00404560
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.00404788
imul eax, eax, 1
jno 0x5257ee
call fcn.004034f4
test eax, eax
jns 0x5257f7
call fcn.004034ec
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404988
push eax
mov eax, dword [0x5ab4dc]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
jne 0x525820
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
jne 0x5259ee
push 0xffffffffffffffff
mov eax, dword [0x5ab4ec]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 4
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x20000005
mov eax, dword [0x5ab4dc]
push eax
call sub.wininet.dll_HttpQueryInfoA
mov eax, 0x1000
call fcn.00402780
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x54]
mov edx, 0x28
call fcn.0040786c
mov eax, dword [ebp - 0x24]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 8]
call fcn.0041e338
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [0x5ab4f4], eax
mov byte [0x5ab4f0], 0
xor edx, edx
push ebp
push 0x5259a9
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x54]
mov edx, 0x28
call fcn.0040786c
mov dword [ebp - 0x54], 0x28
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0x1000
mov eax, dword [0x5ab4ec]
push eax
call sub.kernel32.dll_ResetEvent
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
push eax
push 8
lea eax, [ebp - 0x54]
push eax
mov eax, dword [0x5ab4dc]
push eax
call sub.wininet.dll_InternetReadFileExA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x525951
add dword [ebp - 0x2c], 1
jae 0x525903
call fcn.004034f4
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
jns 0x52590f
call fcn.004034ec
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, 0x1000
mov eax, dword [ebp - 0x1c]
call fcn.0040786c
add ebx, dword [ebp - 0x3c]
jae 0x525931
call fcn.004034f4
mov eax, dword [ebp - 0x2c]
mov ecx, 0x64
xor edx, edx
div ecx
test edx, edx
jne 0x52596a
cmp dword [ebp + 0x10], 0
je 0x52596a
mov edx, dword [ebp - 0x24]
mov eax, ebx
call dword [ebp + 0x10]
jmp 0x52596a
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
jne 0x52596a
push 0xffffffffffffffff
mov eax, dword [0x5ab4ec]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp dword [ebp - 0x3c], 0
jne 0x525975
cmp ebx, dword [ebp - 0x24]
je 0x525993
cmp byte [0x5ab4f0], 0
jne 0x525993
call dword [ebp + 8]
test al, al
je 0x5258a6
mov dword [0x5ab4f4], 0x666666
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5259b0
mov eax, dword [ebp - 0x1c]
call fcn.004027a0
ret
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0xc]
jle 0x5256eb
call sub.kernel32.dll_GetLastError
xor edx, edx
push edx
push eax
call dword [ebp + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x525a38
lea eax, [ebp - 0x6c]
call fcn.004044c8
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.004044ec
lea eax, [ebp - 0x14]
call fcn.004044c8
ret