Function at 0x408dd0
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419278
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 0x408e31
push 1
lea eax, [ebp - 0x14]
push eax
call fcn.00409240
lea ecx, [ebp - 0x14]
call fcn.004010d0
push dword [edi + 0x18]
call fcn.00409b00
add esp, 4
mov dword [edi + 0x18], 0
jmp 0x409070
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 0x408eca
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004010d0
jmp 0x408fc2
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 0x408fc2
cmp esi, 0xffffffff
je 0x408fc2
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 0x408fc2
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.0040f8e6
mov esi, eax
add esp, 4
test esi, esi
je 0x408fc2
push ebx
push 0
push esi
call fcn.0040ffd0
add esp, 0xc
lea eax, [ebp - 0x1c]
push ebx
push esi
sub esp, 8
mov ecx, esp
push eax
call fcn.00401000
call fcn.0040a290
add esp, 0x10
test al, al
je 0x408fb9
lea ecx, [ebp - 0x1c]
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x408fb9
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.004090a0
lea ecx, [ebp - 0x24]
call fcn.00401450
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004010d0
push esi
call fcn.0040f8e1
add esp, 4
sub esp, 8
mov eax, esp
push 0
push eax
mov ecx, edi
call fcn.00409470
lea ecx, [ebp - 0x24]
call fcn.00401450
xor esi, esi
cmp dword [edi + 4], esi
jbe 0x408ffe
sub esp, 8
mov eax, esp
push 0
push esi
push eax
mov ecx, edi
call fcn.00409310
lea ecx, [ebp - 0x24]
call fcn.00401450
inc esi
cmp esi, dword [edi + 4]
jb 0x408fe0
sub esp, 8
mov eax, esp
push 0
push eax
mov ecx, edi
call fcn.00409240
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.0040a370
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409058
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.0040a6a0
push esi
call fcn.00409b00
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