Function at 0x41679d
Capabilities:
Delete directory
Delete file
Get common file path
Move file

Disassembly:
push 0x6c8
mov eax, 0x4b1820
call fcn.00461a91
mov dword [ebp - 0x6d4], ecx
xor eax, eax
mov edx, ecx
mov ebx, eax
mov dword [ebp - 0x6d0], eax
lea ecx, [ebp - 0x658]
mov dword [ebp - 0x6c0], ebx
call fcn.0041618d
xor edi, edi
lea ecx, [ebp - 0x6c8]
mov dword [ebp - 4], edi
call fcn.004057b5
push 0x4cf7e4
lea eax, [ebp - 0x658]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x670]
push eax
call fcn.00403d38
add esp, 0xc
push 3
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00404e0f
lea edx, [ebp - 0x6c8]
mov ecx, eax
call fcn.00416687
pop ecx
lea ecx, [ebp - 0x670]
call fcn.00405118
lea ecx, [ebp - 0x6c8]
mov byte [ebp - 4], 3
call fcn.00403c9f
lea ecx, [ebp - 0x6c8]
mov esi, eax
call fcn.00403c8e
push esi
lea ecx, [ebp - 0x6bc]
mov eax, dword [eax]
push dword [eax]
call fcn.00405e36
jmp 0x416a97
push 0x4cf78c
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x688]
push eax
call fcn.00403d38
mov esi, eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x6bc]
add eax, 8
push eax
call fcn.00404348
add eax, 0x2c
push eax
lea eax, [ebp - 0x640]
push esi
push eax
call fcn.00403de8
add esp, 0x1c
lea ecx, [ebp - 0x688]
mov byte [ebp - 4], 7
call fcn.00405118
push 0x208
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.00464590
add esp, 0xc
lea eax, [ebp - 0x420]
lea ecx, [ebp - 0x640]
push 0x104
push eax
call fcn.00404e0f
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
dec eax
cmp eax, 0x102
ja 0x4168f2
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x640]
call fcn.0040f8b1
mov eax, dword [ebp - 0x6bc]
add eax, 8
push eax
call fcn.00404348
pop ecx
lea ecx, [ebp - 0x640]
test byte [eax], 0x10
je 0x416931
call fcn.00404e0f
mov ecx, eax
call fcn.0041679d
test al, al
jne 0x416a7e
lea ecx, [ebp - 0x640]
call fcn.00405118
jmp 0x416aee
call fcn.00404e0f
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
test eax, eax
jne 0x416a7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x416a7e
push 0x208
lea eax, [ebp - 0x628]
push edi
push eax
call fcn.00464590
add esp, 0xc
lea eax, [ebp - 0x628]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x41699f
cmp eax, 0x104
jae 0x41699f
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x6b8]
call fcn.00404d2c
or ebx, 1
jmp 0x4169b4
lea eax, [ebp - 0x658]
push eax
lea ecx, [ebp - 0x6a0]
call fcn.00405d78
or ebx, 2
push eax
lea ecx, [ebp - 0x670]
mov dword [ebp - 0x6c0], ebx
call fcn.00404415
test bl, 2
je 0x4169df
and ebx, 0xfffffffd
lea ecx, [ebp - 0x6a0]
mov dword [ebp - 0x6c0], ebx
call fcn.00405118
mov dword [ebp - 4], 7
test bl, 1
je 0x4169ff
and ebx, 0xfffffffe
lea ecx, [ebp - 0x6b8]
mov dword [ebp - 0x6c0], ebx
call fcn.00405118
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00464590
mov eax, dword [ebp - 0x6bc]
add eax, 8
push eax
call fcn.00404348
add esp, 0x10
lea ecx, [ebp - 0x218]
add eax, 0x2c
push ecx
push edi
push eax
lea ecx, [ebp - 0x670]
call fcn.00404e0f
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x640]
call fcn.00404e0f
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 4
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x670]
call fcn.00405118
lea ecx, [ebp - 0x640]
call fcn.00405118
mov eax, dword [ebp - 0x6bc]
mov eax, dword [eax]
mov dword [ebp - 0x6bc], eax
lea ecx, [ebp - 0x6c8]
mov byte [ebp - 4], 4
call fcn.00403c9f
lea ecx, [ebp - 0x6c8]
mov esi, eax
call fcn.00403c8e
push esi
lea ecx, [ebp - 0x6cc]
push dword [eax]
call fcn.00405e36
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x6bc]
cmp eax, dword [ebp - 0x6cc]
jne 0x416855
push dword [ebp - 0x6d4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
mov byte [ebp - 0x6d0], al
lea ecx, [ebp - 0x6c8]
call fcn.00405772
lea ecx, [ebp - 0x658]
call fcn.00405118
mov al, byte [ebp - 0x6d0]
call fcn.00461a3b
ret