Function at 0x408ae0
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418ee8
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 0x408b41
push 1
lea eax, [ebp - 0x14]
push eax
call fcn.00408f50
lea ecx, [ebp - 0x14]
call fcn.004010d0
push dword [edi + 0x18]
call fcn.00409810
add esp, 4
mov dword [edi + 0x18], 0
jmp 0x408d80
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 0x408bda
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004010d0
jmp 0x408cd2
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 0x408cd2
cmp esi, 0xffffffff
je 0x408cd2
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 0x408cd2
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.0040f5f6
mov esi, eax
add esp, 4
test esi, esi
je 0x408cd2
push ebx
push 0
push esi
call fcn.0040fce0
add esp, 0xc
lea eax, [ebp - 0x1c]
push ebx
push esi
sub esp, 8
mov ecx, esp
push eax
call fcn.00401000
call fcn.00409fa0
add esp, 0x10
test al, al
je 0x408cc9
lea ecx, [ebp - 0x1c]
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x408cc9
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.00408db0
lea ecx, [ebp - 0x24]
call fcn.00401450
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004010d0
push esi
call fcn.0040f5f1
add esp, 4
sub esp, 8
mov eax, esp
push 0
push eax
mov ecx, edi
call fcn.00409180
lea ecx, [ebp - 0x24]
call fcn.00401450
xor esi, esi
cmp dword [edi + 4], esi
jbe 0x408d0e
sub esp, 8
mov eax, esp
push 0
push esi
push eax
mov ecx, edi
call fcn.00409020
lea ecx, [ebp - 0x24]
call fcn.00401450
inc esi
cmp esi, dword [edi + 4]
jb 0x408cf0
sub esp, 8
mov eax, esp
push 0
push eax
mov ecx, edi
call fcn.00408f50
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.0040a080
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408d68
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.0040a3b0
push esi
call fcn.00409810
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