Function at 0x49df0c
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa70
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x590], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.004057bc
mov eax, dword [ebp - 8]
call fcn.004057bc
xor eax, eax
push ebp
push 0x49e150
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.004727f8
push 0
push 0x49e164
push 0x49e164
push 0
push 0x49e168
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x18], eax
push 0
push 0x80000000
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004057cc
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x49e123
push dword fs:[eax]
mov dword fs:[eax], 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
mov byte [ebp - 0x31], al
lea eax, [ebp - 0x590]
mov edx, ebx
call fcn.00405534
mov eax, dword [ebp - 0x590]
xor edx, edx
call fcn.00409ef4
mov dword [ebp - 0x3c], eax
cmp byte [ebp - 0x31], 0
je 0x49e0d8
xor esi, esi
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x188]
call fcn.0040374c
mov edx, 1
lea eax, [ebp - 0x188]
call fcn.00403c08
call fcn.004030e0
jmp 0x49e0a7
lea eax, [ebp - 0x38]
push eax
push 0x401
lea eax, [ebp - 0x589]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x49e0ad
cmp dword [ebp - 0x38], 0
je 0x49e0ad
push 0
lea edx, [ebp - 0x589]
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x188]
call fcn.004038a0
call fcn.004030e0
add esi, dword [ebp - 0x38]
cmp byte [edi + 0xd], 0
je 0x49e066
lea eax, [ebp - 0x188]
call fcn.004038c0
call fcn.004030e0
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x3c]
cdq
cmp edx, dword [esp + 4]
jne 0x49e0d0
cmp eax, dword [esp]
pop edx
pop eax
jne 0x49e0d8
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 0x49e12a
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