Function at 0x10018f20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100debcd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10122064]
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 dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100190e2
mov esi, dword [ebp + 0x18]
test esi, esi
jne 0x10018f7b
xor bl, bl
jmp 0x100190e4
mov ecx, dword [ebp + 0x1c]
lea edi, [ebp + 8]
mov edx, dword [ebp + 8]
lea eax, [ebp + 8]
cmp ecx, 0x10
cmovae edi, edx
add edi, esi
cmp ecx, 0x10
cmovae eax, edx
cmp eax, edi
je 0x10018fb6
nop dword [eax]
cmp byte [eax], 0x2f
jne 0x10018fa8
mov byte [eax], 0x5c
inc eax
cmp eax, edi
jne 0x10018fa0
mov esi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 8]
xor edi, edi
nop dword [eax + eax]
cmp ecx, 0x10
lea ebx, [ebp + 8]
cmovae ebx, edx
cmp edi, esi
jae 0x10018fe8
mov eax, esi
sub eax, edi
push eax
lea eax, [ebx + edi]
push 0x5c
push eax
call fcn.1008d520
add esp, 0xc
test eax, eax
je 0x10018fe8
sub eax, ebx
jmp 0x10018feb
or eax, 0xffffffff
cmp eax, 0xffffffff
mov dword [ebp - 0x28], 0
mov edi, esi
mov dword [ebp - 0x18], 0
cmovne edi, eax
mov dword [ebp - 0x14], 0xf
cmp esi, edi
lea eax, [ebp + 8]
mov ecx, edi
cmovb ecx, esi
cmp dword [ebp + 0x1c], 0x10
push ecx
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push eax
call fcn.1001de90
cmp dword [ebp - 0x18], 0
je 0x10019059
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10019059
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.100a0ed0
add esp, 4
test eax, eax
jne 0x100190a5
mov eax, dword [ebp - 0x14]
inc edi
cmp eax, 0x10
jb 0x10019093
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
cmp eax, 0x1000
jb 0x10019089
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10017080
mov eax, dword [ebp - 0x30]
add esp, 8
mov ecx, dword [ebp - 0x2c]
push eax
push ecx
call fcn.1008ab90
add esp, 8
mov esi, dword [ebp + 0x18]
cmp edi, esi
jae 0x100190e2
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 8]
jmp 0x10018fc0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100190de
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x100190d4
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10017080
mov eax, dword [ebp - 0x2c]
add esp, 8
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.1008ab90
add esp, 8
xor bl, bl
jmp 0x100190e4
mov bl, 1
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x1001911d
mov ecx, dword [ebp + 8]
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x10019113
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10017080
mov eax, dword [ebp - 0x2c]
add esp, 8
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.1008ab90
add esp, 8
mov al, bl
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.1008a020
mov esp, ebp
pop ebp
ret