Function at 0x1005d500
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a8
mov eax, dword [0x103440b4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
push 0
lea eax, [ebp - 0x310]
push eax
call fcn.10252510
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x680], ecx
lea edx, [ebp - 0x310]
mov dword [ebp - 0x664], edx
mov eax, dword [ebp - 0x664]
mov dword [ebp - 0x6a0], eax
mov ecx, dword [ebp - 0x680]
mov dl, byte [ecx]
mov byte [ebp - 0x659], dl
mov eax, dword [ebp - 0x664]
mov cl, byte [ebp - 0x659]
mov byte [eax], cl
mov edx, dword [ebp - 0x680]
add edx, 1
mov dword [ebp - 0x680], edx
mov eax, dword [ebp - 0x664]
add eax, 1
mov dword [ebp - 0x664], eax
cmp byte [ebp - 0x659], 0
jne 0x1005d54a
push 0x102fc504
lea ecx, [ebp - 0x310]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [ebp - 0x658]
push edx
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x68c], eax
cmp dword [ebp - 0x68c], 0xffffffff
jne 0x1005d5c9
xor al, al
jmp 0x1005d948
mov byte [ebp - 0x65c], 1
mov dword [ebp - 0x66c], 0x102fc508
lea ecx, [ebp - 0x62c]
mov dword [ebp - 0x668], ecx
mov edx, dword [ebp - 0x668]
mov al, byte [edx]
mov byte [ebp - 0x65d], al
mov ecx, dword [ebp - 0x66c]
cmp al, byte [ecx]
jne 0x1005d644
cmp byte [ebp - 0x65d], 0
je 0x1005d638
mov edx, dword [ebp - 0x668]
mov al, byte [edx + 1]
mov byte [ebp - 0x65e], al
mov ecx, dword [ebp - 0x66c]
cmp al, byte [ecx + 1]
jne 0x1005d644
add dword [ebp - 0x668], 2
add dword [ebp - 0x66c], 2
cmp byte [ebp - 0x65e], 0
jne 0x1005d5e6
mov dword [ebp - 0x690], 0
jmp 0x1005d64f
sbb edx, edx
or edx, 1
mov dword [ebp - 0x690], edx
mov eax, dword [ebp - 0x690]
mov dword [ebp - 0x698], eax
cmp dword [ebp - 0x698], 0
je 0x1005d6fc
mov dword [ebp - 0x674], 0x102fc50c
lea ecx, [ebp - 0x62c]
mov dword [ebp - 0x670], ecx
mov edx, dword [ebp - 0x670]
mov al, byte [edx]
mov byte [ebp - 0x65f], al
mov ecx, dword [ebp - 0x674]
cmp al, byte [ecx]
jne 0x1005d6dc
cmp byte [ebp - 0x65f], 0
je 0x1005d6d0
mov edx, dword [ebp - 0x670]
mov al, byte [edx + 1]
mov byte [ebp - 0x660], al
mov ecx, dword [ebp - 0x674]
cmp al, byte [ecx + 1]
jne 0x1005d6dc
add dword [ebp - 0x670], 2
add dword [ebp - 0x674], 2
cmp byte [ebp - 0x660], 0
jne 0x1005d67e
mov dword [ebp - 0x694], 0
jmp 0x1005d6e7
sbb edx, edx
or edx, 1
mov dword [ebp - 0x694], edx
mov eax, dword [ebp - 0x694]
mov dword [ebp - 0x69c], eax
cmp dword [ebp - 0x69c], 0
jne 0x1005d701
jmp 0x1005d90f
push 0x104
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.10252510
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ebp - 0x684], edx
lea eax, [ebp - 0x108]
mov dword [ebp - 0x678], eax
mov ecx, dword [ebp - 0x678]
mov dword [ebp - 0x6a4], ecx
mov edx, dword [ebp - 0x684]
mov al, byte [edx]
mov byte [ebp - 0x65a], al
mov ecx, dword [ebp - 0x678]
mov dl, byte [ebp - 0x65a]
mov byte [ecx], dl
mov eax, dword [ebp - 0x684]
add eax, 1
mov dword [ebp - 0x684], eax
mov ecx, dword [ebp - 0x678]
add ecx, 1
mov dword [ebp - 0x678], ecx
cmp byte [ebp - 0x65a], 0
jne 0x1005d738
lea edx, [ebp - 0x62c]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, dword [ebp - 0x658]
and ecx, 0x10
je 0x1005d7b4
lea edx, [ebp - 0x108]
push edx
call fcn.1005d500
add esp, 4
mov byte [ebp - 0x65c], al
jmp 0x1005d90f
push 0x104
push 0
lea eax, [ebp - 0x518]
push eax
call fcn.10252510
add esp, 0xc
lea ecx, [ebp - 0x518]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.10252510
add esp, 0xc
lea eax, [ebp - 0x518]
mov dword [ebp - 0x688], eax
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x67c], ecx
mov edx, dword [ebp - 0x67c]
mov dword [ebp - 0x6a8], edx
mov eax, dword [ebp - 0x688]
mov cl, byte [eax]
mov byte [ebp - 0x65b], cl
mov edx, dword [ebp - 0x67c]
mov al, byte [ebp - 0x65b]
mov byte [edx], al
mov ecx, dword [ebp - 0x688]
add ecx, 1
mov dword [ebp - 0x688], ecx
mov edx, dword [ebp - 0x67c]
add edx, 1
mov dword [ebp - 0x67c], edx
cmp byte [ebp - 0x65b], 0
jne 0x1005d816
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x1005d8a9
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1005d8a7
push 4
push 0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x1005d90f
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x414]
push ecx
call fcn.10071010
add esp, 8
push 0x102fc510
lea edx, [ebp - 0x414]
push edx
call fcn.10071030
add esp, 8
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x1005d8fe
push 4
push 0
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x1005d90f
push 4
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [ebp - 0x658]
push ecx
mov edx, dword [ebp - 0x68c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1005d5d0
mov eax, dword [ebp - 0x68c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov al, byte [ebp - 0x65c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5dee
mov esp, ebp
pop ebp
ret