Function at 0x408d30
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4191c8
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 0x408d91
push 1
lea eax, [ebp - 0x14]
push eax
call fcn.004091a0
lea ecx, [ebp - 0x14]
call fcn.004010d0
push dword [edi + 0x18]
call fcn.00409a60
add esp, 4
mov dword [edi + 0x18], 0
jmp 0x408fd0
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 0x408e2a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004010d0
jmp 0x408f22
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 0x408f22
cmp esi, 0xffffffff
je 0x408f22
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 0x408f22
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.0040f856
mov esi, eax
add esp, 4
test esi, esi
je 0x408f22
push ebx
push 0
push esi
call fcn.0040ff40
add esp, 0xc
lea eax, [ebp - 0x1c]
push ebx
push esi
sub esp, 8
mov ecx, esp
push eax
call fcn.00401000
call fcn.0040a1f0
add esp, 0x10
test al, al
je 0x408f19
lea ecx, [ebp - 0x1c]
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x408f19
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.00409000
lea ecx, [ebp - 0x24]
call fcn.00401450
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004010d0
push esi
call fcn.0040f851
add esp, 4
sub esp, 8
mov eax, esp
push 0
push eax
mov ecx, edi
call fcn.004093d0
lea ecx, [ebp - 0x24]
call fcn.00401450
xor esi, esi
cmp dword [edi + 4], esi
jbe 0x408f5e
sub esp, 8
mov eax, esp
push 0
push esi
push eax
mov ecx, edi
call fcn.00409270
lea ecx, [ebp - 0x24]
call fcn.00401450
inc esi
cmp esi, dword [edi + 4]
jb 0x408f40
sub esp, 8
mov eax, esp
push 0
push eax
mov ecx, edi
call fcn.004091a0
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.0040a2d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408fb8
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.0040a600
push esi
call fcn.00409a60
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