Function at 0x40f415
Capabilities:
Delete file
Get file size

Disassembly:
push 0xc8
mov eax, 0x43719d
call fcn.004226b6
mov ebx, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebx + 0x20]
mov dword [ebp - 0x58], esi
call fcn.004111b2
and dword [ebx + 0x38], 0
lea ecx, [ebx + 0x40]
call fcn.00404266
test esi, esi
je 0x40f447
mov dword [ebx + 0x38], esi
mov eax, dword [ebx + 0x10]
xor edi, edi
mov dword [ebx + 0x70], esi
mov eax, dword [eax + 8]
mov dword [ebp - 0x50], eax
test eax, eax
jle 0x40f52c
mov ecx, dword [ebx + 0x10]
push edi
add ecx, 4
call fcn.004094de
mov al, byte [eax + 0x69]
test al, al
je 0x40f4cf
mov ecx, dword [ebx + 0x10]
push edi
add ecx, 4
call fcn.004094de
push edi
mov eax, dword [eax + 0x60]
test eax, eax
je 0x40f48f
mov ecx, ebx
call fcn.0040f201
mov ecx, eax
jmp 0x40f4d2
mov ecx, dword [ebx + 0x10]
add ecx, 4
call fcn.004094de
mov edx, dword [eax + 0x10]
cmp edx, 1
jne 0x40f4c1
lea ecx, [eax + 0x2c]
push ecx
push dword [eax + 0x28]
add eax, 0xc
mov ecx, ebx
push eax
call fcn.0040f360
push 2
pop ecx
test al, al
push 5
pop eax
cmovne ecx, eax
jmp 0x40f4d2
xor ecx, ecx
inc ecx
cmp edx, 2
push 3
pop eax
cmove ecx, eax
jmp 0x40f4d2
push 7
pop ecx
cmp ecx, 2
jne 0x40f51f
mov ecx, dword [ebx + 0x10]
push edi
add ecx, 4
call fcn.004094de
mov esi, eax
call fcn.0040219e
push eax
lea ecx, [ebp - 0x38]
call fcn.00401fe1
and dword [ebp - 4], 0
lea ecx, [esi + 0x2c]
push ecx
push ecx
push edi
lea eax, [ebp - 0x38]
push eax
push dword [esi + 0x28]
lea eax, [esi + 0xc]
push eax
lea ecx, [ebx + 0x1c]
call fcn.00410c40
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00402471
inc edi
cmp edi, dword [ebp - 0x50]
jl 0x40f45d
mov esi, dword [ebp - 0x58]
call fcn.0040219e
push eax
lea ecx, [ebp - 0x44]
call fcn.00401fe1
xor eax, eax
inc eax
mov dword [ebp - 4], eax
test esi, esi
je 0x40f5b0
mov ecx, dword [ebx + 0x10]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004093db
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov edi, dword [ebp - 0x44]
lea eax, [edx - 0x10]
lea ecx, [edi - 0x10]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
cmp eax, ecx
je 0x40f59f
cmp dword [ecx + 0xc], 0
jl 0x40f590
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x40f590
mov ecx, dword [ebp - 0x50]
call fcn.00404f5e
mov ecx, dword [ebp - 0x4c]
mov edi, eax
call fcn.00402471
add edi, 0x10
mov dword [ebp - 0x44], edi
jmp 0x40f59f
push dword [edx - 0xc]
lea ecx, [ebp - 0x44]
push edx
call fcn.004026cf
mov edi, dword [ebp - 0x44]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00402471
jmp 0x40f5b3
mov edi, dword [ebp - 0x44]
lea ecx, [ebx + 0x20]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x50], edx
test esi, esi
je 0x40f5d0
mov eax, dword [esi]
mov ecx, esi
push 0
push edx
call dword [eax + 4]
mov edx, dword [ebp - 0x50]
lea ecx, [ebx + 0x20]
xor eax, eax
mov dword [ebp - 0x54], eax
test edx, edx
jle 0x40fb29
push eax
call fcn.00409655
mov dword [ebp - 0x48], eax
test esi, esi
je 0x40f67b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c]
test al, al
jne 0x40fadd
call fcn.0040219e
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401fe1
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 4
mov ecx, dword [ebx + 0x10]
add ecx, 4
push dword [eax + 0x14]
call fcn.004094de
cmp dword [edi - 4], 1
mov esi, eax
jle 0x40f636
push dword [edi - 0xc]
lea ecx, [ebp - 0x44]
call fcn.00402489
mov edi, dword [ebp - 0x44]
mov ecx, esi
call fcn.0040466c
push eax
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.00408430
mov esi, dword [ebp - 0x5c]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x40f662
push dword [esi - 0xc]
lea ecx, [ebp - 0x5c]
call fcn.00402489
mov esi, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
push 0
push 9
push esi
mov eax, dword [ecx]
call dword [eax + 0x28]
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 1
call fcn.00402471
cmp byte [0x44fccc], 0
je 0x40f6f6
call fcn.0040219e
push eax
lea ecx, [ebp - 0x60]
call fcn.00401fe1
push 5
pop eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebx + 0x10]
add ecx, 4
push dword [eax + 0x14]
call fcn.004094de
push str.Starting_download_of:
mov esi, dword [eax]
call fcn.00425b9b
pop ecx
push eax
push str.Starting_download_of:
lea ecx, [ebp - 0x60]
call fcn.00404e09
test esi, esi
je 0x40f6d9
push esi
call fcn.00425b9b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x60]
call fcn.00404e09
lea eax, [ebp - 0x60]
mov ecx, 0x44fc98
push eax
call fcn.004117dd
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x60]
lea ecx, [ecx - 0x10]
call fcn.00402471
mov esi, dword [ebp - 0x54]
lea ecx, [ebx + 0x1c]
push esi
call fcn.00410df2
push esi
lea ecx, [ebx + 0x20]
call fcn.00409655
cmp dword [eax + 0x10], 0
jne 0x40f9d8
cmp byte [0x44fccc], 0
je 0x40f763
call fcn.0040219e
push eax
lea ecx, [ebp - 0x68]
call fcn.00401fe1
mov esi, str.Download_completed_succesfully.
mov byte [ebp - 4], 6
push esi
call fcn.00425b9b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x68]
call fcn.00404e09
lea eax, [ebp - 0x68]
mov ecx, 0x44fc98
push eax
call fcn.004117dd
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x68]
lea ecx, [ecx - 0x10]
call fcn.00402471
mov esi, dword [ebp - 0x48]
lea edx, [ebx + 0x1c]
lea ecx, [ebp - 0x40]
lea eax, [esi + 0x18]
push eax
push esi
call fcn.00410f82
pop ecx
pop ecx
mov byte [ebp - 4], 7
mov eax, dword [ebx + 0x10]
cmp dword [eax + 0x38], 2
je 0x40f799
push 5
pop ecx
cmp dword [eax + 0x38], ecx
je 0x40f799
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebx + 0x40]
call fcn.004042a2
xor eax, eax
cmp dword [esi + 4], eax
je 0x40f7f0
push eax
push 0x80
push 3
push eax
push eax
push 0x80000000
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f7ca
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40f7e4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x4c], eax
test esi, esi
je 0x40f7e4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
cmp dword [esi + 4], eax
jne 0x40f8ee
mov ecx, dword [ebx + 0x10]
push dword [esi + 0x14]
add ecx, 4
call fcn.004094de
mov esi, dword [eax + 0x24]
mov dword [ebp - 0x48], esi
cmp dword [esi - 0xc], 0
je 0x40f872
push ecx
push ecx
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x34]
call fcn.00419e7b
pop ecx
pop ecx
test al, al
je 0x40f8ee
mov al, byte [ebp - 0x34]
mov byte [ebp - 0x39], al
test al, al
je 0x40f872
lea eax, [ebp - 0x34]
mov dword [ebp - 0x4c], eax
movzx esi, word [esi]
mov eax, esi
push 5
lea ecx, [eax - 0x41]
add eax, 0x20
movzx edx, ax
mov eax, esi
pop esi
cmp cx, si
cmova edx, eax
movsx eax, byte [ebp - 0x39]
movzx ecx, dx
cmp eax, ecx
jne 0x40f8ee
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
add esi, 2
inc eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], eax
mov al, byte [eax]
mov byte [ebp - 0x39], al
test al, al
jne 0x40f831
cmp byte [0x44fccc], 0
je 0x40f8bc
call fcn.0040219e
push eax
lea ecx, [ebp - 0x38]
call fcn.00401fe1
mov esi, str.Downloaded_file_was_accepted.
mov byte [ebp - 4], 8
push esi
call fcn.00425b9b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.00404e09
lea eax, [ebp - 0x38]
mov ecx, 0x44fc98
push eax
call fcn.004117dd
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00402471
push dword [ebp - 0x54]
lea ecx, [ebx + 0x20]
call fcn.00409655
mov ecx, dword [ebx + 0x10]
add ecx, 4
mov eax, dword [eax + 0x14]
push eax
call fcn.004094de
mov byte [eax + 0x68], 1
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00402471
jmp 0x40fac6
mov eax, dword [ebp - 0x40]
cmp dword [eax - 4], 1
jle 0x40f905
push dword [eax - 0xc]
lea ecx, [ebp - 0x40]
call fcn.00402489
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
push dword [ebp - 0x40]
call fcn.00423f5c
pop ecx
pop ecx
test eax, eax
jne 0x40f921
or eax, 0xffffffff
jmp 0x40f926
sub eax, dword [ebp - 0x40]
sar eax, 1
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040812e
lea edx, [ebx + 0x1c]
mov byte [ebp - 4], 9
mov ecx, eax
call fcn.004077b8
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x70]
lea ecx, [ecx - 0x10]
call fcn.00402471
cmp byte [0x44fccc], 0
je 0x40f99e
call fcn.0040219e
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401fe1
mov esi, str.Downloaded_file_was_rejected._Invalid_size_or_MD5_.
mov byte [ebp - 4], 0xa
push esi
call fcn.00425b9b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x6c]
call fcn.00404e09
lea eax, [ebp - 0x6c]
mov ecx, 0x44fc98
push eax
call fcn.004117dd
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x6c]
lea ecx, [ecx - 0x10]
call fcn.00402471
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x40f8da
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x74]
call fcn.004073a9
push 0
mov byte [ebp - 4], 0xb
mov ecx, esi
mov edx, dword [esi]
push 0xe0000022
push dword [eax]
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x74]
lea ecx, [ecx - 0x10]
call fcn.00402471
jmp 0x40f8da
cmp byte [0x44fccc], 0
je 0x40fa5e
mov edx, dword [ebx + 0x3c]
push ecx
lea ecx, [ebp - 0x78]
call fcn.00411ea7
pop ecx
mov esi, eax
mov byte [ebp - 4], 0xc
call fcn.0040219e
push eax
lea ecx, [ebp - 0x64]
call fcn.00401fe1
mov byte [ebp - 4], 0xd
mov esi, dword [esi]
push str.Download_failed._Error:
call fcn.00425b9b
pop ecx
push eax
push str.Download_failed._Error:
lea ecx, [ebp - 0x64]
call fcn.00404e09
test esi, esi
je 0x40fa36
push esi
call fcn.00425b9b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x64]
call fcn.00404e09
lea eax, [ebp - 0x64]
mov ecx, 0x44fc98
push eax
call fcn.004117dd
mov ecx, dword [ebp - 0x64]
lea ecx, [ecx - 0x10]
call fcn.00402471
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x78]
lea ecx, [ecx - 0x10]
call fcn.00402471
push dword [ebp - 0x54]
mov esi, dword [ebx + 0x10]
lea ecx, [ebx + 0x20]
call fcn.00409655
lea ecx, [esi + 4]
mov eax, dword [eax + 0x14]
push eax
call fcn.004094de
push eax
lea ecx, [ebp - 0xd0]
call fcn.00409733
push 0
push 0x445ac0
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0xe
call fcn.004044df
test eax, eax
js 0x40fab7
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x40fab7
mov eax, dword [ecx]
push 0
push 0xe0000024
push dword [ebp - 0xd0]
call dword [eax + 0x24]
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 1
call fcn.00404c02
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp eax, dword [ebp - 0x50]
jge 0x40fb29
mov esi, dword [ebp - 0x58]
lea ecx, [ebx + 0x20]
jmp 0x40f5dd
cmp byte [0x44fccc], 0
je 0x40fb29
call fcn.0040219e
push eax
lea ecx, [ebp - 0x38]
call fcn.00401fe1
push 3
pop eax
mov esi, str.Download_was_canceled.
mov byte [ebp - 4], al
push esi
call fcn.00425b9b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.00404e09
lea eax, [ebp - 0x38]
mov ecx, 0x44fc98
push eax
call fcn.004117dd
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00402471
lea ecx, [edi - 0x10]
call fcn.00402471
xor eax, eax
call fcn.00422671
ret 4