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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc289
mov eax, dword fs:[0]
push eax
sub esp, 0x4ec
mov eax, dword [0x62a3b4]
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.00403f32
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5ae395
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 0x4ac]
add ecx, 8
call fcn.004065d3
mov ecx, dword [ebp - 0x4ac]
mov dword [ecx + 4], 2
lea ecx, [ebp + 8]
call fcn.00403f32
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x5ae5ee
lea ecx, [ebp - 0x4a4]
call fcn.004bdcc0
mov byte [ebp - 4], 1
push 0x5f8214
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.0044a2d9
add esp, 0xc
mov dword [ebp - 0x4bc], eax
mov ecx, dword [ebp - 0x4bc]
mov dword [ebp - 0x4c0], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4c0]
call fcn.00403f32
push eax
lea ecx, [ebp - 0x4a4]
call fcn.004bdee0
mov dword [ebp - 0x4c4], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00403fae
cmp dword [ebp - 0x4c4], 0
je 0x5ae551
lea ecx, [ebp - 0x4a4]
call fcn.004bde30
test eax, eax
jne 0x5ae53e
lea edx, [ebp - 0x4dc]
push edx
lea ecx, [ebp - 0x4a4]
call fcn.004bdd50
mov dword [ebp - 0x4c8], eax
mov eax, dword [ebp - 0x4c8]
mov dword [ebp - 0x4d0], eax
mov byte [ebp - 4], 3
push 0x5f8210
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.0044a2d9
add esp, 0xc
mov dword [ebp - 0x4cc], eax
mov eax, dword [ebp - 0x4cc]
mov dword [ebp - 0x4d4], eax
mov byte [ebp - 4], 4
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x4f4], esp
mov ecx, dword [ebp - 0x4d0]
call fcn.0041f757
push eax
mov ecx, dword [ebp - 0x4d4]
push ecx
push esi
call fcn.0044a32b
add esp, 0xc
mov ecx, dword [ebp - 0x4ac]
call fcn.005ae320
mov dword [ebp - 0x4d8], eax
cmp dword [ebp - 0x4d8], 0
jne 0x5ae4cf
mov dword [ebp - 0x4b4], 1
jmp 0x5ae4d9
mov dword [ebp - 0x4b4], 0
mov dl, byte [ebp - 0x4b4]
mov byte [ebp - 0x4a5], dl
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.00403fae
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4dc]
call fcn.0040b035
movzx eax, byte [ebp - 0x4a5]
test eax, eax
je 0x5ae53e
mov dword [ebp - 0x4e0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4a4]
call fcn.004bdd00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403fae
mov eax, dword [ebp - 0x4e0]
jmp 0x5ae691
lea ecx, [ebp - 0x4a4]
call fcn.004be040
test eax, eax
jne 0x5ae41c
mov dword [ebp - 0x4b8], 0
lea ecx, [ebp + 8]
call fcn.00403f32
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x5ae5aa
push 4
push 0
lea ecx, [ebp + 8]
call fcn.00403f32
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x4f8], eax
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x4ac]
add ecx, 8
call fcn.004065d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x4ac]
mov dword [edx + 4], eax
jmp 0x5ae5b4
mov dword [ebp - 0x4b8], 1
mov eax, dword [ebp - 0x4b8]
mov dword [ebp - 0x4e4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4a4]
call fcn.004bdd00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403fae
mov eax, dword [ebp - 0x4e4]
jmp 0x5ae691
lea ecx, [ebp + 8]
call fcn.00403f32
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x4b0], eax
cmp dword [ebp - 0x4b0], 0
jne 0x5ae625
push 4
push 0
lea ecx, [ebp + 8]
call fcn.00403f32
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x4b0], eax
cmp dword [ebp - 0x4b0], 0
jne 0x5ae64f
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x4ac]
add ecx, 8
call fcn.004065d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x4ac]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x4b0]
mov dword [ebp - 0x4e8], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403fae
mov eax, dword [ebp - 0x4e8]
jmp 0x5ae691
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00542357
mov esp, ebp
pop ebp
ret 0x18