Function at 0x4067e0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9a97
mov eax, dword fs:[0]
push eax
sub esp, 0x33c
mov eax, dword [0x4e06b8]
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.00404260
push eax
call fcn.004050f0
add esp, 4
movzx eax, al
test eax, eax
jne 0x40682a
mov al, 1
jmp 0x406b1e
mov byte [ebp - 0xb9], 1
mov ecx, dword [ebp + 8]
call fcn.00404260
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x300]
call fcn.00404bb0
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.00487e90
add esp, 0xc
lea ecx, [ebp - 0x300]
call fcn.00404260
push eax
push 0
call fcn.00420ba0
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.00404bb0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x2c]
push edx
call fcn.00404d30
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.00403090
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00404310
push 1
lea ecx, [ebp - 0xd8]
call fcn.00404260
push eax
mov ecx, dword [ebp + 8]
call fcn.00404260
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406abb
mov ecx, dword [ebp + 0xc]
call fcn.004027c0
movzx ecx, al
test ecx, ecx
je 0x4069f6
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x31c]
call fcn.00404280
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0xc]
call fcn.00404260
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4c5a60
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.00402ea0
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.00403090
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.00404310
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.00404310
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x31c]
call fcn.00404310
jmp 0x406a81
push 0x4c5a64
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x80]
push eax
call fcn.00402ea0
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.00403090
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.00404310
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x80]
call fcn.00404310
push 1
lea ecx, [ebp - 0xd8]
call fcn.00404260
push eax
mov ecx, dword [ebp + 8]
call fcn.00404260
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406aa9
mov byte [ebp - 0xb9], 0
lea ecx, [ebp - 0xd8]
call fcn.00404260
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 4
push 0
lea ecx, [ebp - 0xd8]
call fcn.00404260
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406adc
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.00404310
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.00404310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x300]
call fcn.00404310
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.00482469
mov esp, ebp
pop ebp
ret