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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57659e
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b5b98
lea ecx, [edi + 8]
lea eax, [ebp + 8]
cmp ecx, eax
je 0x4b5b91
push 0xffffffffffffffff
push 0
push eax
call fcn.0040759d
mov dword [edi + 4], 2
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4b5d97
mov eax, 0x5c
mov dword [ebp - 0x30], 0
mov word [ebp - 0x34], ax
mov dword [ebp - 0x2c], 0
push 0x5aa5a8
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0044551b
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x4b5bee
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x48c]
call fcn.004b3fe0
mov byte [ebp - 4], 1
mov esi, eax
cmp dword [ebp - 0x14], 8
jb 0x4b5c11
push dword [ebp - 0x28]
call fcn.005363a4
add esp, 4
test esi, esi
je 0x4b5d27
mov ecx, dword [ebp - 0x2c]
lea esp, [esp]
xor edx, edx
test ecx, ecx
je 0x4b5c5e
mov eax, dword [ebp - 0x48c]
shr eax, 4
and eax, 1
je 0x4b5c5e
cmp word [ebp - 0x460], 0x2e
jne 0x4b5c5e
mov ax, word [ebp - 0x45e]
test ax, ax
je 0x4b5c59
cmp ax, 0x2e
jne 0x4b5c5e
cmp word [ebp - 0x45c], dx
jne 0x4b5c5e
mov edx, 1
test edx, edx
jne 0x4b5d01
lea eax, [ebp - 0x494]
push eax
lea ecx, [ebp - 0x48c]
call fcn.004b3e80
mov esi, eax
push 0x594350
lea eax, [ebp + 8]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0044551b
sub esp, 0xc
mov byte [ebp - 4], 4
mov ecx, esp
push dword [esi]
push eax
push ecx
call fcn.00445586
add esp, 0xc
mov ecx, edi
call fcn.004b5b30
test eax, eax
sete bl
cmp dword [ebp - 0x14], 8
jb 0x4b5cc2
push dword [ebp - 0x28]
call fcn.005363a4
add esp, 4
mov byte [ebp - 4], 1
xor eax, eax
mov edx, dword [ebp - 0x494]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b5cfa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x4b5d72
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4b5d27
test ecx, ecx
je 0x4b5d27
lea ecx, [ebp - 0x48c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jne 0x4b5c20
xor esi, esi
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4b5d76
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 4
cmovae eax, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [edi + 8]
lea eax, [ebp + 8]
cmp ecx, eax
je 0x4b5d67
push 0xffffffffffffffff
push esi
push eax
call fcn.0040759d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
jmp 0x4b5d7b
xor esi, esi
jmp 0x4b5d7b
mov esi, 1
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0
test eax, eax
je 0x4b5de6
cmp eax, 0xffffffff
je 0x4b5de6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4b5de6
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x4b5de6
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 4
cmovae eax, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
test esi, esi
jne 0x4b5de6
lea ecx, [edi + 8]
lea eax, [ebp + 8]
cmp ecx, eax
je 0x4b5ddd
push 0xffffffffffffffff
push esi
push eax
call fcn.0040759d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [ebp + 0x1c], 8
jb 0x4b5df7
push dword [ebp + 8]
call fcn.005363a4
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret 0x18