Function at 0x4039f0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495c4e
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x4a93dc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x10000
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x7c], 0x10000
call fcn.0047faef
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
lea edx, [ebp - 0x114]
push edx
mov dword [ebp - 4], ebx
call fcn.00404a00
push ebx
push ebx
push ebx
push ebx
push 0x49a17c
mov byte [ebp - 4], 1
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [ebp - 0x74], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test esi, esi
je 0x403c2f
mov eax, dword [ebp - 0x6c]
push ebx
push 0x84003000
push ebx
push 0x49a1a2
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
je 0x403c2f
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [ebp - 0x70]
push ecx
push 0x10000
push edi
push ebx
call esi
test eax, eax
je 0x403af8
lea ebx, [ebx]
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x403af8
push 0
push eax
push edi
lea edx, [ebp - 0x114]
push edx
call fcn.00403f80
lea eax, [ebp - 0x70]
push eax
push 0x10000
push edi
push ebx
call esi
test eax, eax
jne 0x403ad0
lea esi, [ebp - 0x68]
lea eax, [ebp - 0x114]
call fcn.00404ae0
mov dword [ebp - 0x6c], eax
lea esi, [ebp - 0x30]
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 2
call fcn.00404ae0
mov ecx, dword [ebp - 0x6c]
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
mov ecx, dword [ecx + 0x10]
jb 0x403b2d
mov eax, dword [eax]
mov esi, dword [ebp - 0x78]
push ecx
push eax
mov ecx, esi
call fcn.00403e50
cmp dword [ebp - 0x1c], 0x10
jb 0x403b4b
mov edx, dword [ebp - 0x30]
push edx
call fcn.00480861
add esp, 4
cmp dword [ebp - 0x54], 0x10
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
jb 0x403b6f
mov eax, dword [ebp - 0x68]
push eax
call fcn.00480861
add esp, 4
mov ecx, dword [esi + 0x10]
mov esi, dword [ebp - 0x74]
mov dword [ebp - 0x6c], ecx
test edi, edi
je 0x403b85
push edi
call fcn.00480b43
add esp, 4
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
je 0x403b92
push ebx
call edi
test esi, esi
je 0x403b99
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0xc4]
mov dword [ebp - 0x74], edx
mov dword [ebp + ecx - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 4
call fcn.00404430
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x114]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0xc4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push ecx
mov dword [ebp - 0xc4], vtable.std::ios_base.0
call fcn.0047f674
add esp, 4
cmp dword [ebp - 0x38], 0x10
jb 0x403c0e
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00480861
add esp, 4
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048036c
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x6c], 0xffffffff
jmp 0x403b78