Function at 0x1005a040
Capabilities:
Create directory
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
sub esp, 0xa5c
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0
push 0
push 0x7fff
call sub.platform.dll_Ordinal_24
mov ebx, eax
add esp, 0x14
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x1005a39c
push 0
push 0
push 0
push 0
push 0x7fff
call sub.platform.dll_Ordinal_24
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1005a09e
push ebx
call sub.platform.dll_Ordinal_27
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa5c
ret
mov ecx, 0x1fff
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1fff
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xa70]
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
push ebx
call ebp
add esp, 0xc
cmp word [ebx + eax*2 - 2], 0x5c
mov ebx, dword [sym.imp.MSVCRT.dll_wcscat]
je 0x1005a0f4
mov edi, dword [esp + 0x10]
push 0x1023256c
push edi
call ebx
add esp, 8
jmp 0x1005a0f8
mov edi, dword [esp + 0x10]
push 0x10266000
push edi
call ebx
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x1005a121
jmp 0x1005a38d
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0xa70]
push edx
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
push esi
call ebp
add eax, 4
add esp, 0xc
cmp eax, 0x7fff
ja 0x1005a382
push esi
call ebp
add esp, 4
cmp word [esi + eax*2 - 2], 0x5c
je 0x1005a15d
push 0x1023256c
push esi
call ebx
add esp, 8
push esi
call ebp
mov edi, eax
lea eax, [esp + 0x4c]
push eax
call ebp
add edi, eax
add esp, 8
cmp edi, 0x7fff
ja 0x1005a3a9
lea ecx, [esp + 0x48]
push ecx
push esi
call ebx
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x274]
lea edx, [esp + 0x274]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0xa7c]
push edi
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [esp + 0x27c]
push eax
call ebp
add esp, 0x14
cmp word [esp + eax*2 + 0x26a], 0x5c
je 0x1005a1d2
lea ecx, [esp + 0x26c]
push 0x1023256c
push ecx
call ebx
add esp, 8
lea edx, [esp + 0x48]
lea eax, [esp + 0x26c]
push edx
push eax
call ebx
mov al, byte [esp + 0x24]
add esp, 8
test al, 0x10
je 0x1005a259
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea ecx, [esp + 0x48]
push 0x10265ffc
push ecx
call edi
add esp, 8
test eax, eax
je 0x1005a33b
lea edx, [esp + 0x48]
push 0x10265ff4
push edx
call edi
add esp, 8
test eax, eax
je 0x1005a33b
lea eax, [esp + 0x26c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x26c]
push ecx
push esi
call fcn.1005a040
add esp, 8
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1005a33b
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [esp + 0x26c]
push edx
push esi
call dword [sym.imp.MSVCRT.dll__wrename]
add esp, 8
test eax, eax
je 0x1005a33b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1005a3d4
mov word [esp + 0x18], 0x30
lea eax, [esp + 0x26c]
push edi
push eax
mov word [esp + 0x22], 0
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea ecx, [esp + 0x274]
push ecx
call ebp
add esp, 0xc
cmp word [esp + eax*2 + 0x26a], 0x5c
je 0x1005a2d7
lea edx, [esp + 0x26c]
push 0x1023256c
push edx
call ebx
add esp, 8
lea eax, [esp + 0x18]
lea ecx, [esp + 0x26c]
push eax
push ecx
call ebx
lea edx, [esp + 0x50]
lea eax, [esp + 0x274]
push edx
push eax
call ebx
mov ecx, dword [0x107ab964]
add esp, 0x10
lea eax, [esp + 0x26c]
mov edx, dword [ecx]
push 0
push eax
call dword [edx + 0x64]
test eax, eax
jne 0x1005a329
mov ax, word [esp + 0x18]
inc ax
cmp ax, 0x39
mov word [esp + 0x18], ax
jb 0x1005a297
jmp 0x1005a33b
lea ecx, [esp + 0x26c]
push ecx
push esi
call dword [sym.imp.MSVCRT.dll__wrename]
add esp, 8
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x1005a11d
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call sub.platform.dll_Ordinal_27
mov ecx, dword [esp + 0x14]
push ecx
call sub.platform.dll_Ordinal_27
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa5c
ret
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call sub.platform.dll_Ordinal_27
push edi
call sub.platform.dll_Ordinal_27
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa5c
ret
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call sub.platform.dll_Ordinal_27
mov eax, dword [esp + 0x14]
push eax
call sub.platform.dll_Ordinal_27
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa5c
ret
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call sub.platform.dll_Ordinal_27
mov edx, dword [esp + 0x14]
push edx
call sub.platform.dll_Ordinal_27
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa5c
ret