Function at 0x40eca0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a36a
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x4c5cd8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe0], 0
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004098f0
mov dword [ebp - 0xe4], eax
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xe0]
or edx, 1
mov dword [ebp - 0xe0], edx
mov ecx, dword [ebp - 0xe8]
call fcn.00401f30
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40ed41
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40ed41
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x40ed41
mov dword [ebp - 0xec], 0
jmp 0x40ed4b
mov dword [ebp - 0xec], 1
mov al, byte [ebp - 0xec]
mov byte [ebp - 0x2d], al
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xe0]
and ecx, 1
je 0x40ed75
and dword [ebp - 0xe0], 0xfffffffe
lea ecx, [ebp - 0x4c]
call fcn.00401100
movzx edx, byte [ebp - 0x2d]
test edx, edx
je 0x40ed84
mov al, 1
jmp 0x40efa8
push str..removed
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.00412aa0
add esp, 8
mov dword [ebp - 0xf0], eax
mov edx, dword [ebp - 0xf0]
mov dword [ebp - 0xf4], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x84]
push ecx
call fcn.00411160
add esp, 0xc
mov dword [ebp - 0xf8], eax
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xfc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.00412ad0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84]
call fcn.00401100
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x68]
call fcn.00401100
lea eax, [ebp - 0x2c]
push eax
call fcn.0040eca0
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x40ef11
lea edx, [ebp - 0xa4]
push edx
lea ecx, [ebp - 0x2c]
call fcn.004098f0
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x104], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xe0]
or ecx, 2
mov dword [ebp - 0xe0], ecx
mov ecx, dword [ebp - 0x104]
call fcn.00401f30
push eax
lea edx, [ebp - 0xc0]
push edx
mov ecx, dword [ebp + 8]
call fcn.004098f0
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 4], 7
mov ecx, dword [ebp - 0xe0]
or ecx, 4
mov dword [ebp - 0xe0], ecx
mov ecx, dword [ebp - 0x10c]
call fcn.00401f30
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40ef11
push 4
push 0
lea edx, [ebp - 0xdc]
push edx
lea ecx, [ebp - 0x2c]
call fcn.004098f0
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x114], eax
mov dword [ebp - 4], 8
mov ecx, dword [ebp - 0xe0]
or ecx, 8
mov dword [ebp - 0xe0], ecx
mov ecx, dword [ebp - 0x114]
call fcn.00401f30
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40ef11
mov dword [ebp - 0x118], 1
jmp 0x40ef1b
mov dword [ebp - 0x118], 0
mov dl, byte [ebp - 0x118]
mov byte [ebp - 0x85], dl
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0xe0]
and eax, 8
je 0x40ef4b
and dword [ebp - 0xe0], 0xfffffff7
lea ecx, [ebp - 0xdc]
call fcn.00401100
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0xe0]
and ecx, 4
je 0x40ef6f
and dword [ebp - 0xe0], 0xfffffffb
lea ecx, [ebp - 0xc0]
call fcn.00401100
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0xe0]
and edx, 2
je 0x40ef93
and dword [ebp - 0xe0], 0xfffffffd
lea ecx, [ebp - 0xa4]
call fcn.00401100
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00443bc0
mov al, byte [ebp - 0x85]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00480438
mov esp, ebp
pop ebp
ret