Function at 0x1000d470
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1010a740
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x10137920]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x10137920]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax + 0x10], esi
je 0x1000d559
push 0xffffffffffffffff
xor ecx, ecx
push esi
mov word [esp + 0x30], cx
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], esi
call fcn.1000b050
mov dword [esp + 0x70], esi
mov ecx, dword [esp + 0x38]
lea eax, [ecx - 1]
cmp ecx, eax
ja 0x1000d4ee
push str.invalid_string_position
call fcn.10080f9c
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x28]
mov edx, ebx
cmp edi, 8
jae 0x1000d501
lea edx, [esp + 0x28]
cmp word [edx + eax*2], 0x5c
je 0x1000d538
cmp ecx, eax
ja 0x1000d516
push str.invalid_string_position
call fcn.10080f9c
mov ecx, ebx
cmp edi, 8
jae 0x1000d521
lea ecx, [esp + 0x28]
cmp word [ecx + eax*2], 0x2f
je 0x1000d538
push 1
push 0x1012329c
lea ecx, [esp + 0x30]
call fcn.10009ff0
lea ecx, [esp + 0x28]
call fcn.1000d020
test al, al
jne 0x1000d560
cmp dword [esp + 0x3c], 8
jb 0x1000d559
mov edx, dword [esp + 0x28]
push edx
call fcn.10065453
add esp, 4
xor al, al
jmp 0x1000d6ce
cmp dword [esp + 0x38], esi
je 0x1000d5a3
mov eax, dword [esp + 0x28]
mov edi, 8
cmp dword [esp + 0x3c], edi
jae 0x1000d579
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
test al, al
je 0x1000d5a3
cmp dword [esp + 0x3c], edi
jb 0x1000d59c
mov eax, dword [esp + 0x28]
push eax
call fcn.10065453
add esp, 4
mov al, 1
jmp 0x1000d6ce
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 1
call fcn.1000d220
mov edi, dword [esp + 0x1c]
add esp, 4
cmp edi, dword [esp + 0x1c]
jne 0x1000d5e8
lea esi, [esp + 0x18]
call fcn.1000f910
lea ecx, [esp + 0x28]
call fcn.1000b180
xor al, al
jmp 0x1000d6ce
mov byte [esp + 0x17], 1
cmp dword [edi + 0x14], 8
jb 0x1000d5f7
mov edx, dword [edi]
jmp 0x1000d5f9
mov edx, edi
xor eax, eax
mov word [esp + 0x44], ax
mov eax, edx
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], esi
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x1000d611
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x4c]
call fcn.1000abb0
cmp dword [esp + 0x54], esi
jne 0x1000d635
xor al, al
jmp 0x1000d650
cmp dword [esp + 0x58], 8
mov eax, dword [esp + 0x44]
jae 0x1000d644
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
test al, al
sete bl
cmp dword [esp + 0x58], 8
jb 0x1000d669
mov ecx, dword [esp + 0x44]
push ecx
call fcn.10065453
add esp, 4
test bl, bl
je 0x1000d685
cmp dword [edi + 0x14], 8
jb 0x1000d677
mov eax, dword [edi]
jmp 0x1000d679
mov eax, edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1000d698
add edi, 0x1c
cmp edi, dword [esp + 0x1c]
jne 0x1000d5ed
mov bl, byte [esp + 0x17]
jmp 0x1000d69a
xor bl, bl
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x1000d6b8
mov edi, dword [esp + 0x1c]
call fcn.1000c860
mov edx, dword [esp + 0x18]
push edx
call fcn.10065453
add esp, 4
cmp dword [esp + 0x3c], 8
jb 0x1000d6cc
mov eax, dword [esp + 0x28]
push eax
call fcn.10065453
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.1006656c
mov esp, ebp
pop ebp
ret