Function at 0x4b675c
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, 0xffffff8c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], 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 0x4b6b8c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x24], eax
push 0x4b6b9c
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4d5af0], eax
push 0x4b6bac
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4d5af8], eax
push 0x4b6bc4
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4d5af4], eax
push 0x10000000
push 0
push 0
push 0
push 0x4b6bd0
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4b6b44
mov ecx, 0x4b6520
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 0x4b682a
cmp eax, 0xffffffff
jne 0x4b682a
mov ecx, 0x4b6be8
mov dl, 1
mov eax, dword [0x40742c]
call fcn.0040cb14
call fcn.00403b10
add dword [ebp - 0x24], 1
jno 0x4b6835
call fcn.004032c4
push 1
push 0
push 3
push 0
push 0
push 0x50
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.004b65a0
mov eax, dword [ebp - 0x5c]
call fcn.00404664
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [0x4d5aec], eax
cmp dword [0x4d5aec], 0
jne 0x4b6889
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
jne 0x4b6b44
push 0xffffffffffffffff
mov eax, dword [0x4d5af0]
push eax
call sub.kernel32.dll_WaitForSingleObject
push 2
push 0x84000000
push 0
push 0
push 0
push ebp
lea eax, [ebp - 0x60]
call fcn.004b66d8
pop ecx
mov eax, dword [ebp - 0x60]
call fcn.00404664
push eax
push 0x4b6c08
mov eax, dword [0x4d5aec]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [0x4d5ae8], eax
cmp dword [0x4d5ae8], 0
jne 0x4b68e4
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
jne 0x4b6b44
push 0xffffffffffffffff
mov eax, dword [0x4d5af4]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0x64]
push eax
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 4]
call fcn.004b65a0
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, dword [0x4d2cd4]
call fcn.00409ad0
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x14]
call fcn.0040422c
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.00404464
imul eax, eax, 1
jno 0x4b692d
call fcn.004032c4
test eax, eax
jns 0x4b6936
call fcn.004032bc
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404664
push eax
mov eax, dword [0x4d5ae8]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
jne 0x4b695f
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
jne 0x4b6b44
push 0xffffffffffffffff
mov eax, dword [0x4d5af8]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 4
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x20000005
mov eax, dword [0x4d5ae8]
push eax
call sub.wininet.dll_HttpQueryInfoA
mov eax, 0x1000
call fcn.00402718
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x58]
mov edx, 0x28
call fcn.00406e48
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 8]
call fcn.00408eb8
mov eax, dword [ebp - 0x74]
call fcn.00408d1c
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x416e0c]
call fcn.0041bb98
mov dword [ebp - 0x20], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [0x4d5b00], eax
mov byte [0x4d5afc], 0
xor edx, edx
push ebp
push 0x4b6b05
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x58]
mov edx, 0x28
call fcn.00406e48
mov dword [ebp - 0x58], 0x28
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0x1000
mov eax, dword [0x4d5af8]
push eax
call sub.kernel32.dll_ResetEvent
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
push eax
push 8
lea eax, [ebp - 0x58]
push eax
mov eax, dword [0x4d5ae8]
push eax
call sub.wininet.dll_InternetReadFileExA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4b6aa5
add dword [ebp - 0x30], 1
jae 0x4b6a5d
call fcn.004032c4
mov ecx, dword [ebp - 0x40]
test ecx, ecx
jns 0x4b6a69
call fcn.004032bc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, 0x1000
mov eax, dword [ebp - 0x1c]
call fcn.00406e48
add ebx, dword [ebp - 0x40]
jae 0x4b6a8b
call fcn.004032c4
mov eax, dword [ebp - 0x30]
mov ecx, 3
xor edx, edx
div ecx
test edx, edx
jne 0x4b6abe
mov edx, dword [ebp - 0x28]
mov eax, ebx
call dword [ebp + 0x10]
jmp 0x4b6abe
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
jne 0x4b6abe
push 0xffffffffffffffff
mov eax, dword [0x4d5af8]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp dword [ebp - 0x40], 0
jne 0x4b6ac9
cmp ebx, dword [ebp - 0x28]
je 0x4b6ae7
cmp byte [0x4d5afc], 0
jne 0x4b6ae7
call dword [ebp + 8]
test al, al
je 0x4b6a00
mov dword [0x4d5b00], 0x666666
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6b0c
mov eax, dword [ebp - 0x1c]
call fcn.00402738
mov eax, dword [ebp - 0x20]
call fcn.00403384
ret
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0xc]
jle 0x4b682a
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 0x4b6b93
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.004041b8
lea eax, [ebp - 0x64]
mov edx, 3
call fcn.004041b8
lea eax, [ebp - 0x14]
call fcn.00404194
ret