Function at 0x408e70
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419328
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4241dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x18], 0
mov dword [ebp - 4], 0
je 0x408ed1
push 1
lea eax, [ebp - 0x14]
push eax
call fcn.004092e0
lea ecx, [ebp - 0x14]
call fcn.004010d0
push dword [edi + 0x18]
call fcn.00409ba0
add esp, 4
mov dword [edi + 0x18], 0
jmp 0x409110
lea ecx, [ebp - 0x24]
call fcn.004010a0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00401000
push 0
push 0x41a47c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00401ef0
lea ecx, [ebp - 0x14]
call fcn.004010d0
sub esp, 8
mov ecx, esp
push str.FlashInstall.log
call fcn.00401070
push 0x5c
lea ecx, [ebp - 0x1c]
call fcn.004014e0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401000
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00402110
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call esi
cmp eax, 0xffffffff
jne 0x408f6a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004010d0
jmp 0x409062
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004010d0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x1c]
call fcn.00402110
push eax
call esi
mov esi, eax
test esi, esi
je 0x409062
cmp esi, 0xffffffff
je 0x409062
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x409062
mov eax, ebx
shr eax, 1
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040f986
mov esi, eax
add esp, 4
test esi, esi
je 0x409062
push ebx
push 0
push esi
call fcn.00410070
add esp, 0xc
lea eax, [ebp - 0x1c]
push ebx
push esi
sub esp, 8
mov ecx, esp
push eax
call fcn.00401000
call fcn.0040a330
add esp, 0x10
test al, al
je 0x409059
lea ecx, [ebp - 0x1c]
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x409059
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401070
sub esp, 8
mov eax, esp
push 0
push esi
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00409140
lea ecx, [ebp - 0x24]
call fcn.00401450
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004010d0
push esi
call fcn.0040f981
add esp, 4
sub esp, 8
mov eax, esp
push 0
push eax
mov ecx, edi
call fcn.00409510
lea ecx, [ebp - 0x24]
call fcn.00401450
xor esi, esi
cmp dword [edi + 4], esi
jbe 0x40909e
sub esp, 8
mov eax, esp
push 0
push esi
push eax
mov ecx, edi
call fcn.004093b0
lea ecx, [ebp - 0x24]
call fcn.00401450
inc esi
cmp esi, dword [edi + 4]
jb 0x409080
sub esp, 8
mov eax, esp
push 0
push eax
mov ecx, edi
call fcn.004092e0
lea ecx, [ebp - 0x24]
call fcn.00401450
push 1
push 2
sub esp, 8
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00401000
call fcn.0040a410
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4090f8
lea ecx, [ebp - 0x24]
call fcn.00402170
add eax, eax
push eax
lea ecx, [ebp - 0x24]
call fcn.00402110
push eax
push esi
call fcn.0040a740
push esi
call fcn.00409ba0
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004010d0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.004010d0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8