Function at 0x46ac74
Capabilities:
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
add esp, 0xfffffa7c
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405584
mov eax, dword [ebp - 8]
call fcn.00405584
xor eax, eax
push ebp
push 0x46ae89
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x24], 0x7530
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0046aadc
mov ebx, 0x46ae9c
xor esi, esi
push 0
push 0x46aea0
push 0x46aea0
push 0
push 0x46aea4
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x18], eax
push 0
push 0
push 3
push 0
push 0
movzx eax, word [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405594
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x1c], eax
push 0
push esi
push 0
push 0
push 0x46af00
mov eax, dword [ebp - 0x10]
call fcn.00405594
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x46ae67
push dword fs:[edx]
mov dword fs:[edx], esp
push 4
lea eax, [ebp - 0x24]
push eax
push 2
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
lea eax, [ebp - 0x24]
push eax
push 8
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_HttpSendRequestA
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0x400
mov eax, dword [ebp - 0x2c]
call fcn.00402f2c
mov ebx, eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push 5
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_HttpQueryInfoA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x46ae1c
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x180]
call fcn.004036f0
mov edx, 1
lea eax, [ebp - 0x180]
call fcn.00403bb4
call fcn.00403088
lea eax, [ebp - 0x34]
push eax
push 0x401
lea eax, [ebp - 0x581]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x46ae08
cmp dword [ebp - 0x34], 0
je 0x46ae08
push 0
lea edx, [ebp - 0x581]
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x180]
call fcn.0040386c
call fcn.00403088
jmp 0x46adc8
lea eax, [ebp - 0x180]
call fcn.0040388c
call fcn.00403088
mov byte [ebp - 0x11], 1
mov eax, ebx
call fcn.00402f48
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ae6e
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetCloseHandle
ret