Function at 0x4696b8
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.004057bc
mov eax, dword [ebp - 8]
call fcn.004057bc
xor eax, eax
push ebp
push 0x4698cd
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.00469520
mov ebx, 0x4698e0
xor esi, esi
push 0
push 0x4698e4
push 0x4698e4
push 0
push 0x4698e8
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.004057cc
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 0x469944
mov eax, dword [ebp - 0x10]
call fcn.004057cc
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 0x4698ab
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.00402f84
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 0x469860
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x180]
call fcn.0040374c
mov edx, 1
lea eax, [ebp - 0x180]
call fcn.00403c08
call fcn.004030e0
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 0x46984c
cmp dword [ebp - 0x34], 0
je 0x46984c
push 0
lea edx, [ebp - 0x581]
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x180]
call fcn.004038a0
call fcn.004030e0
jmp 0x46980c
lea eax, [ebp - 0x180]
call fcn.004038c0
call fcn.004030e0
mov byte [ebp - 0x11], 1
mov eax, ebx
call fcn.00402fa0
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 0x4698b2
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