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

Disassembly:
mov eax, 0x10144
call fcn.0041a330
mov ecx, dword [0x4423fc]
mov eax, dword [str.Accept:___r_n_r_n]
mov edx, dword [0x442400]
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
mov eax, dword [0x442404]
push esi
lea ecx, [esp + 0x3c]
push 0x84000100
push ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x10160]
push eax
mov eax, dword [esp + 0x10168]
lea edx, [esp + 0x44]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
cmp edi, esi
mov dword [esp + 0x2c], edi
jne 0x40e3dd
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10144
ret
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea edx, [esp + 0x24]
push esi
lea eax, [esp + 0x20]
push edx
push eax
mov ebp, 4
push 0x20000013
push edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], ebp
call ebx
test eax, eax
jne 0x40e417
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x10144
ret
cmp dword [esp + 0x1c], 0x12c
jbe 0x40e431
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x10144
ret
mov ecx, dword [esp + 0x10160]
push 0x4423f4
push ecx
call fcn.0041a6ac
add esp, 8
cmp eax, esi
mov dword [esp + 0x18], eax
jne 0x40e45e
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x10144
ret
lea edx, [esp + 0x28]
push esi
lea eax, [esp + 0x14]
push edx
push eax
push 0x20000005
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x3c], ebp
call ebx
test eax, eax
jne 0x40e481
mov dword [esp + 0x10], esi
mov ebx, 0xa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x154]
push ecx
push 0x4000
push edx
push edi
mov dword [esp + 0x30], eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40e5c2
mov edi, dword [esp + 0x10164]
mov ebp, dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40e5df
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x154]
push ecx
push eax
push 1
push edx
call fcn.0041a542
mov ecx, dword [esp + 0x24]
add esp, 0x10
add esi, ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40e523
test edi, edi
je 0x40e588
lea eax, [esi + esi*4]
xor edx, edx
push 0
lea eax, [eax + eax*4]
shl eax, 2
div ecx
push eax
mov eax, dword [esp + 0x10174]
push 0x402
push eax
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push edi
call ebp
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp edi, eax
je 0x40e588
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], eax
fild qword [esp + 0x30]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], eax
fild qword [esp + 0x48]
sub esp, 8
lea edx, [esp + 0x58]
fmul dword [0x437aa0]
shr ecx, 0xa
fdivp st(1)
fmul dword [0x437a9c]
fstp qword [esp]
push ecx
mov ecx, esi
shr ecx, 0xa
push ecx
push str._d_KB____d_KB____1.1f_KB_s
push edx
call fcn.00419aee
mov ecx, dword [esp + 0x10180]
add esp, 0x18
lea eax, [esp + 0x50]
push eax
push ecx
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push edi
call ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov eax, dword [esp + 0x20]
sub ebx, eax
jne 0x40e59d
mov ebx, 0xa
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x158]
push 0x4000
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40e4be
mov edx, dword [esp + 0x18]
push edx
call fcn.0041a4c5
add esp, 4
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10144
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.0041a35f
push esi
call fcn.0041a4c5
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10144
ret