Function at 0x10001570
Capabilities:
Create directory
Enumerate files on windows

Disassembly:
sub esp, 0x168
mov eax, dword [0x10018040]
xor eax, esp
mov dword [esp + 0x164], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x178]
push edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x100015b6
lea ecx, [eax - 1]
mov eax, dword [esi + 4]
mov dword [esi + 0xc], ecx
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x100015af
push eax
call fcn.10005756
add esp, 4
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x10001596
mov edi, dword [esi]
mov ebp, edi
mov ecx, edi
mov dl, byte [edi]
test dl, dl
je 0x100015d3
inc ecx
cmp dl, 0x5c
mov eax, ecx
cmovne eax, ebp
mov ebp, eax
mov dl, byte [ecx]
test dl, dl
jne 0x100015c2
lea eax, [esp + 0x14]
sub ebp, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
jne 0x10001653
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x1000178e
mov edi, dword [esi]
mov esi, edi
mov ecx, edi
mov dl, byte [edi]
test dl, dl
je 0x10001618
inc ecx
cmp dl, 0x5c
mov eax, ecx
cmovne eax, esi
mov esi, eax
mov dl, byte [ecx]
test dl, dl
jne 0x10001607
sub esi, edi
dec esi
cmp esi, 0x20
jae 0x1000178e
push esi
lea eax, [esp + 0x158]
push edi
push eax
call fcn.10002450
add esp, 0xc
mov byte [esp + esi + 0x154], 0
lea eax, [esp + 0x154]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x1000178e
mov eax, dword [esp + 0x14]
not eax
test al, 0x10
je 0x1000170d
lea ecx, [esp + 0x40]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001668
sub ecx, edx
lea eax, [ecx + ebp]
cmp eax, 0x64
jae 0x1000170d
inc eax
push eax
call fcn.10005771
mov edi, eax
add esp, 4
test edi, edi
je 0x1000170d
push ebp
push dword [esi]
push edi
call fcn.10002450
lea ecx, [esp + 0x4c]
mov edx, ebp
mov eax, ecx
add esp, 0xc
sub edx, eax
add edx, edi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x100016b0
mov eax, dword [esi + 0x10]
cmp dword [esi + 0xc], eax
jne 0x10001701
lea ebx, [eax + eax]
test eax, eax
jne 0x100016d1
mov ebx, 0x10
lea eax, [ebx*4]
push eax
push dword [esi + 4]
call fcn.1000592c
add esp, 8
test eax, eax
jne 0x100016f7
push edi
call fcn.10005756
mov ebx, dword [esp + 0x14]
add esp, 4
jmp 0x1000170d
mov dword [esi + 0x10], ebx
mov ebx, dword [esp + 0x10]
mov dword [esi + 4], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4], edi
inc dword [esi + 0xc]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10001653
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0xc], 0
je 0x1000178e
push str.dont_keep_vanilla
push dword [0x10018988]
call fcn.10001020
add esp, 8
test eax, eax
jne 0x1000178e
lea ebx, [eax + 9]
mov eax, dword [esi + 0x10]
cmp dword [esi + 0xc], eax
jne 0x10001779
lea edi, [eax + eax]
test eax, eax
jne 0x1000175c
mov edi, 0x10
lea eax, [edi*4]
push eax
push dword [esi + 4]
call fcn.1000592c
add esp, 8
test eax, eax
je 0x10001789
mov dword [esi + 4], eax
mov dword [esi + 0x10], edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4], 0
inc dword [esi + 0xc]
sub ebx, 1
jne 0x10001748
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10001851
add esp, 0x168
ret