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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10144
call fcn.0040b4d0
mov eax, dword [0x42e9bc]
mov edx, dword [0x425b28]
push ebx
push esi
push edi
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x425b24]
mov dword [esp + 0x1014c], eax
mov eax, dword [str.Accept:___r_n_r_n]
xor esi, esi
push esi
mov dword [esp + 0x10038], ecx
mov dword [esp + 0x10034], eax
mov eax, dword [0x425b2c]
push 0x84000100
lea ecx, [esp + 0x10038]
push ecx
mov dword [esp + 0x10044], edx
mov dword [esp + 0x10048], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x1003c]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
cmp edi, esi
mov dword [esp + 0x20], edi
jne 0x407a96
mov eax, 1
mov ecx, dword [esp + 0x1014c]
call fcn.0040b4bc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, dword [ebp + 0x10]
push 0x425b1c
push edx
call fcn.0040cadd
add esp, 8
cmp eax, esi
mov dword [esp + 0x14], eax
jne 0x407ac9
mov eax, 2
mov ecx, dword [esp + 0x1014c]
call fcn.0040b4bc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x20000005
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x38], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x407af4
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 0xa
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edi, dword [ebp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [esp + 0x28], eax
nop
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
push 0x4000
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x407c9e
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x407c74
mov edx, dword [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x38]
push 1
push eax
call fcn.0040c35c
add esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
add esp, 0x10
test ecx, ecx
je 0x407b86
test edi, edi
je 0x407b86
mov eax, esi
imul eax, eax, 0x64
xor edx, edx
div ecx
mov ecx, dword [ebp + 0x1c]
push 0
push eax
push 0x402
push ecx
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push edi
call ebx
mov ecx, dword [esp + 0xc]
test esi, esi
mov dword [esp + 0x10], esi
fild dword [esp + 0x10]
jge 0x407b98
fadd dword [0x425b18]
mov edx, dword [esp + 0x18]
fild dword [esp + 0x18]
test edx, edx
jge 0x407baa
fadd dword [0x425b18]
test edi, edi
fmul dword [0x425b14]
fdivp st(1)
fmul dword [0x425b10]
je 0x407c4d
mov eax, ecx
sub eax, esi
test eax, eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
jge 0x407bd6
fadd dword [0x425b18]
fdiv st(1)
sub esp, 0x20
test ecx, ecx
mov dword [esp + 0x30], ecx
fmul dword [0x425b10]
fstp qword [esp + 0x18]
fstp qword [esp + 0x10]
fild dword [esp + 0x30]
jge 0x407bfb
fadd qword [0x425b08]
test esi, esi
fmul qword [0x425b00]
mov dword [esp + 0x30], esi
fstp qword [esp + 8]
fild dword [esp + 0x30]
jge 0x407c17
fadd qword [0x425b08]
fmul qword [0x425b00]
lea ecx, [esp + 0x10060]
fstp qword [esp]
push 0x425ab8
push ecx
call fcn.0040ca29
mov eax, dword [ebp + 0x18]
add esp, 0x28
lea edx, [esp + 0x10040]
push edx
push eax
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push edi
call ebx
jmp 0x407c4f
fstp st(0)
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
jne 0x407c67
mov dword [esp + 0x18], 0xa
mov ecx, dword [esp + 0x2c]
cmp dword [ecx], 0
je 0x407b10
mov esi, dword [esp + 0x14]
push esi
call fcn.0040c1ac
push esi
call fcn.0040c55e
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x1014c]
call fcn.0040b4bc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, dword [esp + 0x14]
push edx
call fcn.0040c55e
mov ecx, dword [esp + 0x10150]
add esp, 4
mov eax, 3
call fcn.0040b4bc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18