Function at 0x408330
Capabilities:
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014c
call fcn.00419b20
mov eax, dword [str.Accept:___r_n_r_n]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x44c674]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x44c678]
mov dword [ebp - 0xc], edx
mov eax, dword [0x44c67c]
mov dword [ebp - 8], eax
push 0
push 0x84000100
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x1002c], eax
cmp dword [ebp - 0x1002c], 0
jne 0x40839c
mov eax, 1
jmp 0x4085ee
push 0x44c680
mov edx, dword [ebp + 0x10]
push edx
call fcn.00419ab4
add esp, 8
mov dword [ebp - 0x10034], eax
cmp dword [ebp - 0x10034], 0
jne 0x4083c6
mov eax, 2
jmp 0x4085ee
mov dword [ebp - 0x10020], 0
mov dword [ebp - 0x1001c], 4
mov dword [ebp - 0x10028], 0
push 0
lea eax, [ebp - 0x1001c]
push eax
lea ecx, [ebp - 0x10020]
push ecx
push 0x20000005
mov edx, dword [ebp - 0x1002c]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x408414
mov dword [ebp - 0x10020], 0
mov dword [ebp - 4], 0xa
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [ebp - 0x10030], eax
lea eax, [ebp - 0x10024]
push eax
push 0x4000
lea ecx, [ebp - 0x10018]
push ecx
mov edx, dword [ebp - 0x1002c]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x408464
mov eax, dword [ebp - 0x10034]
push eax
call fcn.00419a06
add esp, 4
mov eax, 3
jmp 0x4085ee
cmp dword [ebp - 0x10024], 0
jne 0x408472
jmp 0x4085ce
mov ecx, dword [ebp - 0x10034]
push ecx
mov edx, dword [ebp - 0x10024]
push edx
push 1
lea eax, [ebp - 0x10018]
push eax
call fcn.004198cd
add esp, 0x10
mov ecx, dword [ebp - 0x10028]
add ecx, dword [ebp - 0x10024]
mov dword [ebp - 0x10028], ecx
cmp dword [ebp - 0x10020], 0
je 0x4084e3
cmp dword [ebp + 0x14], 0
je 0x4084e3
push 0
mov eax, dword [ebp - 0x10028]
imul eax, eax, 0x64
xor edx, edx
div dword [ebp - 0x10020]
push eax
push 0x402
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [ebp - 0x10038], 0
mov edx, dword [ebp - 0x10028]
mov dword [ebp - 0x10144], edx
mov dword [ebp - 0x10140], 0
fild qword [ebp - 0x10144]
fstp dword [ebp - 0x10038]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1014c], eax
mov dword [ebp - 0x10148], 0
fild qword [ebp - 0x1014c]
fdiv dword [0x43e84c]
fdivr dword [ebp - 0x10038]
fst dword [ebp - 0x10038]
fdiv dword [0x43e848]
fstp dword [ebp - 0x10038]
cmp dword [ebp + 0x14], 0
je 0x40859f
fld dword [ebp - 0x10038]
sub esp, 8
fstp qword [esp]
mov ecx, dword [ebp - 0x10020]
shr ecx, 0xa
push ecx
mov edx, dword [ebp - 0x10028]
shr edx, 0xa
push edx
push str._d_KB____d_KB____1.1f_KB_s
lea eax, [ebp - 0x1013c]
push eax
call fcn.0041987b
add esp, 0x18
lea ecx, [ebp - 0x1013c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x10030]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x4085c1
mov dword [ebp - 4], 0xa
mov eax, 1
test eax, eax
jne 0x408427
mov ecx, dword [ebp - 0x10034]
push ecx
call fcn.00419715
add esp, 4
mov edx, dword [ebp - 0x10034]
push edx
call fcn.00419a06
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret