Function at 0x409330
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4251dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
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 0x409394
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.004097d0
lea ecx, [ebp - 0x28]
call fcn.004010d0
push dword [edi + 0x18]
call fcn.0040a0a0
add esp, 4
mov dword [edi + 0x18], 0
jmp 0x4095e8
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
call fcn.004010a0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0
call fcn.00401000
push 0
push 0x41b47c
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00401f10
lea ecx, [ebp - 0x28]
call fcn.004010d0
sub esp, 8
mov ecx, esp
push str.FlashInstall.log
call fcn.00401070
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.004014e0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401000
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00402130
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call esi
cmp eax, 0xffffffff
jne 0x40943b
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004010d0
jmp 0x40953a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004010d0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x18]
call fcn.00402130
push eax
call esi
mov esi, eax
test esi, esi
je 0x40953a
cmp esi, 0xffffffff
je 0x40953a
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 0x40953a
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.00410126
mov esi, eax
add esp, 4
test esi, esi
je 0x40953a
push ebx
push 0
push esi
call fcn.00410810
add esp, 0xc
lea eax, [ebp - 0x18]
push ebx
push esi
sub esp, 8
mov ecx, esp
push eax
call fcn.00401000
call fcn.0040a840
add esp, 0x10
test al, al
je 0x409531
lea ecx, [ebp - 0x18]
call fcn.00402130
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x409531
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
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.00409620
lea ecx, [ebp - 0x20]
call fcn.00401450
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004010d0
push esi
call fcn.00410121
add esp, 4
sub esp, 8
mov eax, esp
push 0
push eax
mov ecx, edi
call fcn.00409a10
lea ecx, [ebp - 0x20]
call fcn.00401450
xor esi, esi
cmp dword [edi + 4], esi
jbe 0x409576
sub esp, 8
mov eax, esp
push 0
push esi
push eax
mov ecx, edi
call fcn.004098b0
lea ecx, [ebp - 0x20]
call fcn.00401450
inc esi
cmp esi, dword [edi + 4]
jb 0x409558
sub esp, 8
mov eax, esp
push 0
push eax
mov ecx, edi
call fcn.004097d0
lea ecx, [ebp - 0x20]
call fcn.00401450
push 1
push 2
sub esp, 8
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00401000
call fcn.0040a940
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4095d0
lea ecx, [ebp - 0x20]
call fcn.00402190
add eax, eax
push eax
lea ecx, [ebp - 0x20]
call fcn.00402130
push eax
push esi
call fcn.0040aca0
push esi
call fcn.0040a0a0
add esp, 0x10
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004010d0
lea ecx, [ebp - 0x20]
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret 8