Function at 0x401130
Capabilities:
Delete file
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x413c
call fcn.0040e7e0
mov eax, dword [0x435110]
mov ecx, dword [0x429990]
mov edx, dword [0x429994]
mov dword [esp + 0x4138], eax
mov eax, dword [str.Accept:___r_n_r_n]
push ebx
push esi
mov esi, dword [0x4340b8]
push edi
mov dword [esp + 0x28], eax
mov eax, dword [0x429998]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
xor eax, eax
mov ecx, 0x1000
lea edi, [esp + 0x140]
rep stosd dword es:[edi], eax
mov ecx, 0xffffeb46
sub ecx, esi
xor esi, esi
push esi
mov dword [esp + 0x34], edx
push 0x84000100
lea edx, [esp + 0x30]
push edx
mov dword [str._r_____r____], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
lea eax, [esp + 0x34]
push eax
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
cmp edi, esi
mov dword [esp + 0x20], edi
jne 0x4011e1
mov eax, 1
mov ecx, dword [esp + 0x4144]
call fcn.0040e7cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4340b4]
mov eax, dword [0x4340b0]
sub eax, ecx
mov ecx, dword [str._r_____r____]
lea edx, [eax + ecx + 0xd52]
mov eax, dword [ebp + 0x10]
push 0x429988
push eax
mov dword [0x4340a8], edx
call fcn.0040e732
add esp, 8
cmp eax, esi
mov dword [esp + 0x10], eax
jne 0x401232
mov eax, 2
mov ecx, dword [esp + 0x4144]
call fcn.0040e7cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4340bc]
mov ecx, dword [0x4340b4]
mov ebx, dword [0x4340c4]
push esi
sub ecx, eax
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x20]
push eax
sub ecx, ebx
push 0x20000005
add ecx, 0x1e45
push edi
mov dword [0x4340ac], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x40127e
mov dword [esp + 0x18], esi
mov ecx, dword [0x4340ac]
mov eax, dword [0x4340c0]
mov ebx, dword [str._r_____r____]
sub ecx, eax
sub ecx, ebx
add ecx, 0x19b8
mov dword [0x4340b0], ecx
mov ebx, 0xa
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x4340ac]
mov edx, dword [0x4340c8]
mov dword [esp + 0x1c], eax
mov eax, dword [0x4340b0]
sub edx, ecx
lea ecx, [edx + eax - 0x3bd6]
lea edx, [esp + 0xc]
push edx
push 0x4000
lea eax, [esp + 0x148]
push eax
push edi
mov dword [0x4340b4], ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40154c
mov edi, dword [ebp + 0x14]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401556
mov ecx, dword [ebp + 0xc]
push str..txt
push ecx
call fcn.0040e650
add esp, 8
test eax, eax
jne 0x401328
mov edx, dword [ebp + 0xc]
push str..TXT
push edx
call fcn.0040e650
add esp, 8
test eax, eax
je 0x40137b
lea eax, [esp + 0x140]
push 0x429974
push eax
call fcn.0040e650
add esp, 8
test eax, eax
jne 0x401612
lea ecx, [esp + 0x140]
push str.VersionURL
push ecx
call fcn.0040e650
add esp, 8
test eax, eax
jne 0x40137b
lea edx, [esp + 0x140]
push 0x42995c
push edx
call fcn.0040e650
add esp, 8
test eax, eax
je 0x401612
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x148]
push 1
push edx
call fcn.0040e5f6
mov eax, dword [str._r_____r____]
mov ecx, dword [0x4340ac]
mov edx, dword [0x4340b8]
add ecx, eax
lea eax, [edx + ecx - 0x3770]
add esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
add esp, 0x10
test ecx, ecx
mov dword [0x4340b8], eax
je 0x4013ed
test edi, edi
je 0x4013ed
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 dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x18]
test esi, esi
mov dword [esp + 0x14], esi
fild dword [esp + 0x14]
jge 0x4013ff
fadd dword [0x429958]
test ebx, ebx
mov dword [esp + 0x14], ebx
fild dword [esp + 0x14]
jge 0x401411
fadd dword [0x429958]
fmul dword [0x429954]
mov edx, dword [0x4340a8]
mov ebx, dword [0x4340b0]
fdivp st(1)
mov eax, dword [0x4340bc]
sub edx, ebx
test edi, edi
lea edx, [eax + edx - 0x3845]
mov dword [0x4340bc], edx
fmul dword [0x429950]
je 0x4014d2
mov eax, ecx
sub eax, esi
test eax, eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
jge 0x40145d
fadd dword [0x429958]
fdiv st(1)
sub esp, 0x20
test ecx, ecx
mov dword [esp + 0x34], ecx
fmul dword [0x429950]
fstp qword [esp + 0x18]
fstp qword [esp + 0x10]
fild dword [esp + 0x34]
jge 0x401482
fadd qword [0x429948]
test esi, esi
fmul qword [0x429940]
mov dword [esp + 0x34], esi
fstp qword [esp + 8]
fild dword [esp + 0x34]
jge 0x40149e
fadd qword [0x429948]
fmul qword [0x429940]
lea ecx, [esp + 0x58]
fstp qword [esp]
push 0x4298f8
push ecx
call fcn.0040e497
mov eax, dword [ebp + 0x18]
add esp, 0x28
lea edx, [esp + 0x38]
push edx
push eax
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x4014d4
fstp st(0)
mov ecx, dword [0x4340c8]
mov edx, dword [0x4340bc]
mov eax, dword [0x4340ac]
add ecx, edx
lea ecx, [ecx + eax - 0x13ee]
mov dword [0x4340c0], ecx
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, eax
sub ebx, dword [esp + 0x1c]
jne 0x401507
mov ebx, 0xa
mov ecx, dword [0x4340ac]
mov edx, dword [0x4340c8]
mov eax, dword [0x4340b0]
sub edx, ecx
lea ecx, [edx + eax - 0x3bd6]
lea edx, [esp + 0xc]
push edx
push 0x4000
lea eax, [esp + 0x148]
mov dword [0x4340b4], ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4012f2
mov edx, dword [esp + 0x10]
push edx
jmp 0x401617
mov edi, dword [0x4340c0]
mov eax, dword [0x4340ac]
mov edx, dword [0x4340a8]
sub eax, edi
mov edi, dword [esp + 0x10]
sub eax, edx
sub eax, 0x184b
push edi
mov dword [0x4340c4], eax
call fcn.0040e43e
push edi
call fcn.0040e28d
mov edi, dword [ebp + 0xc]
push str..txt
push edi
call fcn.0040e650
add esp, 0x10
test eax, eax
jne 0x4015d6
push str..TXT
push edi
call fcn.0040e650
add esp, 8
test eax, eax
jne 0x4015d6
cmp esi, 0x14000
jae 0x4015fd
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 3
mov ecx, dword [esp + 0x4144]
call fcn.0040e7cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xa
jae 0x4015fd
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 3
mov ecx, dword [esp + 0x4144]
call fcn.0040e7cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [esp + 0x4144]
call fcn.0040e7cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.0040e28d
mov ecx, dword [esp + 0x4148]
add esp, 4
mov eax, 3
call fcn.0040e7cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret