Function at 0x484e90
Capabilities:
Check if file exists
Delete directory
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e5d3
mov eax, dword fs:[0]
push eax
sub esp, 0x4ec
mov eax, dword [0x4b701c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4ac], ecx
mov dword [ebp - 0x4f0], 0
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00408140
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x484f05
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 0x4ac]
add ecx, 8
call fcn.004044d0
mov ecx, dword [ebp - 0x4ac]
mov dword [ecx + 4], 2
lea ecx, [ebp + 8]
call fcn.00408140
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x48515a
lea ecx, [ebp - 0x4a4]
call fcn.00427370
mov byte [ebp - 4], 1
push 0x4a2448
lea edx, [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.004241bc
add esp, 4
mov dword [ebp - 0x4bc], eax
mov edx, dword [ebp - 0x4bc]
mov dword [ebp - 0x4c0], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4c0]
call fcn.00408140
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00427590
mov dword [ebp - 0x4c4], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004087f0
cmp dword [ebp - 0x4c4], 0
je 0x4850bd
lea ecx, [ebp - 0x4a4]
call fcn.004274e0
test eax, eax
jne 0x4850aa
lea eax, [ebp - 0x4dc]
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00427400
mov dword [ebp - 0x4c8], eax
mov ecx, dword [ebp - 0x4c8]
mov dword [ebp - 0x4d0], ecx
mov byte [ebp - 4], 3
push 0x4a2444
lea edx, [ebp + 8]
lea ecx, [ebp - 0x40]
call fcn.004241bc
add esp, 4
mov dword [ebp - 0x4cc], eax
mov edx, dword [ebp - 0x4cc]
mov dword [ebp - 0x4d4], edx
mov byte [ebp - 4], 4
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x4f4], esp
mov ecx, dword [ebp - 0x4d0]
call fcn.00416490
push eax
mov edx, dword [ebp - 0x4d4]
mov ecx, esi
call fcn.00424a23
add esp, 4
mov ecx, dword [ebp - 0x4ac]
call fcn.00484e90
mov dword [ebp - 0x4d8], eax
cmp dword [ebp - 0x4d8], 0
jne 0x48503b
mov dword [ebp - 0x4b4], 1
jmp 0x485045
mov dword [ebp - 0x4b4], 0
mov al, byte [ebp - 0x4b4]
mov byte [ebp - 0x4a5], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.004087f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4dc]
call fcn.00417340
movzx ecx, byte [ebp - 0x4a5]
test ecx, ecx
je 0x4850aa
mov dword [ebp - 0x4e0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4a4]
call fcn.004273b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004087f0
mov eax, dword [ebp - 0x4e0]
jmp 0x4851fd
lea ecx, [ebp - 0x4a4]
call fcn.004276f0
test eax, eax
jne 0x484f8a
mov dword [ebp - 0x4b8], 0
lea ecx, [ebp + 8]
call fcn.00408140
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x485116
push 4
push 0
lea ecx, [ebp + 8]
call fcn.00408140
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x4f8], eax
lea edx, [ebp + 8]
push edx
mov ecx, dword [ebp - 0x4ac]
add ecx, 8
call fcn.004044d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x4ac]
mov dword [ecx + 4], eax
jmp 0x485120
mov dword [ebp - 0x4b8], 1
mov edx, dword [ebp - 0x4b8]
mov dword [ebp - 0x4e4], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4a4]
call fcn.004273b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004087f0
mov eax, dword [ebp - 0x4e4]
jmp 0x4851fd
lea ecx, [ebp + 8]
call fcn.00408140
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x4b0], eax
cmp dword [ebp - 0x4b0], 0
jne 0x485191
push 4
push 0
lea ecx, [ebp + 8]
call fcn.00408140
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x4b0], eax
cmp dword [ebp - 0x4b0], 0
jne 0x4851bb
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 0x4ac]
add ecx, 8
call fcn.004044d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x4ac]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x4b0]
mov dword [ebp - 0x4e8], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004087f0
mov eax, dword [ebp - 0x4e8]
jmp 0x4851fd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453c11
mov esp, ebp
pop ebp
ret 0x18