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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ce48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
call fcn.00401460
push 0
push 0
push 0
push 0
push str.myie
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [edi + 4], eax
jne 0x40156a
mov eax, 0xc9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 8]
push 0
push SysReAllocStringLen
push 0
push 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
test eax, eax
mov dword [edi + 8], eax
jne 0x40159f
mov eax, 0xc9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
lea edx, [ebp - 0x18]
push 4
push edx
mov ebx, 0x30d40
push 2
push eax
mov dword [ebp - 0x18], ebx
call esi
mov edx, dword [edi + 8]
lea ecx, [ebp - 0x18]
push 4
push ecx
push 2
push edx
mov dword [ebp - 0x18], ebx
call esi
mov ecx, dword [edi + 8]
lea eax, [ebp - 0x18]
push 4
push eax
push 8
push ecx
mov dword [ebp - 0x18], ebx
call esi
mov edx, dword [0x43a760]
xor esi, esi
mov dword [ebp + 8], esi
mov dword [ebp - 0x14], edx
mov eax, dword [edi + 0xc]
mov dword [ebp - 4], esi
cmp eax, esi
jne 0x401668
mov ebx, dword [ebp + 0x14]
cmp ebx, esi
je 0x401668
mov eax, dword [ebx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401668
mov ecx, edi
call fcn.004017c0
cmp eax, esi
mov dword [ebp + 8], eax
jg 0x401622
mov dword [ebp + 8], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0x1c]
push eax
push esi
push 0x406
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [ebp + 0x10]
cmp ebx, esi
je 0x401668
mov edx, dword [ebx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401668
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
push str.0____d
push ecx
call fcn.00420acd
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.00421b4d
push 0x3c00
call fcn.004213bc
add esp, 4
mov ebx, eax
mov byte [ebp - 4], 1
cmp dword [edi + 0xc], 1
je 0x401781
mov ecx, dword [edi + 8]
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x3c00
push eax
push ebx
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401798
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x401781
mov edx, dword [ebp + 0xc]
push edx
push 1
push eax
push ebx
call fcn.004121ff
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edi + 0xc]
add esp, 0x10
add esi, ecx
test eax, eax
jne 0x40167b
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40167b
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40167b
mov edx, dword [ebp + 0x14]
push 0
push esi
push 0x402
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40167b
mov ecx, eax
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40167b
lea eax, [esi + esi*4]
mov dword [ebp - 0x20], 0
lea eax, [eax + eax*4]
shl eax, 2
mov dword [ebp - 0x24], eax
fild qword [ebp - 0x24]
fidiv dword [ebp + 8]
call fcn.00412388
mov ecx, dword [ebp + 8]
push eax
push ecx
push esi
lea edx, [ebp - 0x14]
push str._d____d
push edx
call fcn.00420acd
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
add esp, 0x14
push eax
call fcn.00421b4d
jmp 0x40167b
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00401460
push ebx
call fcn.004213e5
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0042167b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10