Function at 0x4a9fa0
Capabilities:
Connect to http server
Create http request
Get http content length
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 4]
xor ebx, ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], ebx
call fcn.004a9e20
test eax, eax
jne 0x4a9fd9
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp + 0x10]
push edi
test edx, edx
je 0x4a9ff7
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a9fe6
sub ecx, edi
sar ecx, 1
jne 0x4a9ffc
mov edx, str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1_
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov edi, dword [ebp - 4]
mov dword [ebp - 0x20], edx
test edx, edx
je 0x4aa1e8
mov edi, dword [ebp - 0x14]
mov eax, 0x50
push 0
push 0
push 3
push 0
test edi, edi
mov dword [ebp + 8], 0x1bb
push 0
cmovne eax, dword [ebp + 8]
movzx eax, ax
push eax
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4aa1d9
mov edx, dword [ebp + 0x14]
test edi, edi
mov eax, 0x84000100
mov ecx, 0x84800100
cmovne eax, ecx
mov dword [ebp + 8], eax
test edx, edx
je 0x4aa083
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4aa072
sub ecx, edi
sar ecx, 1
jne 0x4aa085
xor edx, edx
push 0
push dword [ebp + 8]
push 0
push edx
push 0
push dword [ebp - 4]
push 0x5cf414
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp + 8], eax
test eax, eax
je 0x4aa1ce
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4aa1c1
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], 1
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x1c], 4
push eax
push 0x20000005
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edi, dword [ebp + 0x18]
test eax, eax
jne 0x4aa104
mov dword [ebp - 8], ebx
test edi, edi
je 0x4aa104
mov eax, dword [edi]
push 0
push 0
push 1
push 1
push edi
call dword [eax + 0x18]
push 1
push 0x1389
call fcn.0052b766
mov esi, eax
add esp, 8
test esi, esi
je 0x4aa1c1
lea eax, [ebp - 0x10]
push eax
push 0x1388
push esi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4aa1c1
nop dword [eax + eax]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4aa1a8
add ebx, ecx
lea eax, [ebx + 0x1389]
push eax
push esi
call fcn.0052b771
mov esi, eax
add esp, 8
test esi, esi
je 0x4aa1a5
test edi, edi
je 0x4aa17b
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4aa17b
mov eax, dword [edi]
cmp ebx, ecx
push 0
push 0
push ecx
cmova ecx, ebx
push ecx
push edi
call dword [eax + 0x18]
lea eax, [ebp - 0x10]
push eax
push 0x1388
lea eax, [esi + ebx]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x4aa140
push dword [ebp + 8]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
jmp 0x4aa1d4
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4aa1c1
test esi, esi
je 0x4aa1c1
push dword [ebp + 0xc]
push ebx
push esi
call fcn.004a9dd0
mov dword [ebp - 0x18], 1
push dword [ebp + 8]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
jmp 0x4aa1d4
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x14]
call edi
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4aa1f5
push ecx
call fcn.0051f847
add esp, 4
test edi, edi
je 0x4aa202
push edi
call fcn.0051f847
add esp, 4
pop edi
test esi, esi
je 0x4aa210
push esi
call fcn.0051f847
add esp, 4
mov eax, dword [ebp - 0x18]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14