Function at 0x4066a0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3877
mov eax, dword fs:[0]
push eax
sub esp, 0x33c
mov eax, dword [0x4eb690]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.00404180
push eax
call fcn.00404fc0
add esp, 4
movzx eax, al
test eax, eax
jne 0x4066ea
mov al, 1
jmp 0x4069de
mov byte [ebp - 0xb9], 1
mov ecx, dword [ebp + 8]
call fcn.00404180
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x300]
call fcn.00404a80
mov dword [ebp - 4], 0
xor ecx, ecx
mov word [ebp - 0x2e4], cx
push 0x206
push 0
lea edx, [ebp - 0x2e2]
push edx
call fcn.0048e940
add esp, 0xc
lea ecx, [ebp - 0x300]
call fcn.00404180
push eax
push 0
call fcn.00420bb0
add esp, 4
push edx
push eax
push str.Tmp_I64d__s
lea eax, [ebp - 0x2e4]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea ecx, [ebp - 0x2e4]
push ecx
lea ecx, [ebp - 0xb8]
call fcn.00404a80
mov byte [ebp - 4], 1
lea edx, [ebp - 0x2c]
push edx
call fcn.00404c00
add esp, 4
mov dword [ebp - 0x324], eax
mov eax, dword [ebp - 0x324]
mov dword [ebp - 0x328], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb8]
push ecx
mov edx, dword [ebp - 0x328]
push edx
lea eax, [ebp - 0xd8]
push eax
call fcn.00403050
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00404230
push 1
lea ecx, [ebp - 0xd8]
call fcn.00404180
push eax
mov ecx, dword [ebp + 8]
call fcn.00404180
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40697b
mov ecx, dword [ebp + 0xc]
call fcn.0040d0b0
movzx ecx, al
test ecx, ecx
je 0x4068b6
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x31c]
call fcn.004041a0
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0xc]
call fcn.00404180
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4d0ee4
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.00402e60
add esp, 0xc
mov dword [ebp - 0x32c], eax
mov edx, dword [ebp - 0x32c]
mov dword [ebp - 0x330], edx
mov byte [ebp - 4], 6
lea eax, [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0x330]
push ecx
lea edx, [ebp - 0x64]
push edx
call fcn.00403050
add esp, 0xc
mov dword [ebp - 0x334], eax
mov eax, dword [ebp - 0x334]
mov dword [ebp - 0x338], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x338]
push ecx
lea ecx, [ebp - 0xd8]
call fcn.00402670
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x64]
call fcn.00404230
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.00404230
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x31c]
call fcn.00404230
jmp 0x406941
push 0x4d0ee8
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x80]
push eax
call fcn.00402e60
add esp, 0xc
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 0x33c]
mov dword [ebp - 0x340], ecx
mov byte [ebp - 4], 8
lea edx, [ebp - 0xb8]
push edx
mov eax, dword [ebp - 0x340]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call fcn.00403050
add esp, 0xc
mov dword [ebp - 0x344], eax
mov edx, dword [ebp - 0x344]
mov dword [ebp - 0x348], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x348]
push eax
lea ecx, [ebp - 0xd8]
call fcn.00402670
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x9c]
call fcn.00404230
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x80]
call fcn.00404230
push 1
lea ecx, [ebp - 0xd8]
call fcn.00404180
push eax
mov ecx, dword [ebp + 8]
call fcn.00404180
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406969
mov byte [ebp - 0xb9], 0
lea ecx, [ebp - 0xd8]
call fcn.00404180
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 4
push 0
lea ecx, [ebp - 0xd8]
call fcn.00404180
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40699c
mov byte [ebp - 0xb9], 0
mov cl, byte [ebp - 0xb9]
mov byte [ebp - 0x31d], cl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd8]
call fcn.00404230
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.00404230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x300]
call fcn.00404230
mov al, byte [ebp - 0x31d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048a346
mov esp, ebp
pop ebp
ret