Function at 0x415cc9
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], esp
push 0
push 0
push 0
push 0
push 0x13c1e1d
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x415d50
push 6
call fcn.00437971
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], esp
push 0
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x415d8e
push 6
call fcn.00437971
add esp, 4
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0
push 1
mov ebx, 0x9e0
call fcn.0043bb30
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push 0x80000301
push 0
push 4
push 1
mov ebx, 0x334
call fcn.0043bbd0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], esp
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000005
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x415e0a
push 6
call fcn.00437971
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x415e14
cmp dword [ebp - 0xc], 0
jne 0x415eb9
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x1bc
call fcn.0043a660
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x415e4d
push ebx
call fcn.0043795f
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x415e65
add eax, 8
push eax
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x415e85
push 6
call fcn.00437971
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x415e9f
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00437959
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x415eb0
push ebx
call fcn.0043795f
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
jmp 0x41606c
push 0x80000301
push 0
push 0x2000
push 1
mov ebx, 0x1bc
call fcn.0043a660
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x415eee
push ebx
call fcn.0043795f
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x1c]
push eax
push 0x2000
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x415f08
add eax, 8
push eax
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x415f28
push 6
call fcn.00437971
add esp, 4
mov dword [ebp - 0x24], eax
push 0x80000301
push 0
push dword [ebp - 0x1c]
push htons
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x415f48
mov eax, 0x46e1e5
push eax
push 2
mov ebx, 0x1a0
call fcn.0043bc20
add esp, 0x1c
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x20]
mov ecx, 2
call fcn.0040da15
add esp, 8
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x415f84
push ebx
call fcn.0043795f
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x415f98
push ebx
call fcn.0043795f
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push htons
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x415faf
mov eax, 0x46e1e5
push eax
push 1
mov ebx, 0x194
call fcn.0043ad70
add esp, 0x10
mov dword [ebp - 0x2c], eax
push htons
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x415fd8
mov eax, 0x46e1e5
push eax
push 1
mov ebx, 0x194
call fcn.0043ad70
add esp, 0x10
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
fild dword [ebp - 0x28]
fstp qword [ebp - 0x40]
fsub qword [ebp - 0x40]
fstp qword [ebp - 0x48]
mov dword [ebp - 0x4c], esp
fld qword [ebp - 0x48]
call fcn.00401dcc
push eax
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CallWindowProcA]
nop
nop
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x416039
push 6
call fcn.00437971
add esp, 4
push htons
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x41604c
mov eax, 0x46e1e5
push eax
push 1
mov ebx, 0x194
call fcn.0043ad70
add esp, 0x10
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x1c], 0
jne 0x415ef2
cmp dword [ebp - 8], 0
je 0x416098
mov dword [ebp - 0x2c], esp
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x416098
push 6
call fcn.00437971
add esp, 4
cmp dword [ebp - 4], 0
je 0x4160c4
mov dword [ebp - 0x2c], esp
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x4160c4
push 6
call fcn.00437971
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4160de
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00437959
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4160e3
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4160f4
push ebx
call fcn.0043795f
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x416104
push ebx
call fcn.0043795f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc