Function at 0x1002d190
Capabilities:
Check if file exists
Create directory
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100ad4a0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x100d65e8]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x100d65e8]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
cmp dword [ecx + 0x10], 0
jne 0x1002d1d4
xor al, al
jmp 0x1002d499
xor eax, eax
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
call fcn.1000f660
mov dword [esp + 0x78], 0
mov edx, dword [esp + 0x30]
lea ecx, [edx - 1]
cmp edx, ecx
ja 0x1002d225
push str.invalid_string_position
call fcn.1007cf5a
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
cmp esi, 8
lea eax, [esp + 0x20]
cmovae eax, edi
cmp word [eax + ecx*2], 0x5c
je 0x1002d26d
cmp edx, ecx
ja 0x1002d24c
push str.invalid_string_position
call fcn.1007cf5a
cmp esi, 8
lea eax, [esp + 0x20]
cmovae eax, edi
cmp word [eax + ecx*2], 0x2f
je 0x1002d26d
push 1
push 0x100bdb2c
lea ecx, [esp + 0x28]
call fcn.100068c0
lea ecx, [esp + 0x20]
call fcn.1002cd50
test al, al
jne 0x1002d281
xor bh, bh
jmp 0x1002d465
cmp dword [esp + 0x30], 0
je 0x1002d2ae
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x1002d2ae
mov bh, 1
jmp 0x1002d465
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov byte [esp + 0x78], 1
lea edx, [esp + 0x14]
lea ecx, [esp + 0x20]
call fcn.1002cf10
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp esi, edi
jne 0x1002d2eb
xor bh, bh
jmp 0x1002d430
mov bh, 1
lea ecx, [ecx]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
call fcn.1000f660
mov byte [esp + 0x78], 2
cmp dword [esp + 0x4c], 8
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x54]
call fcn.1000fb40
mov byte [esp + 0x78], 3
cmp dword [esp + 0x60], 0
jne 0x1002d351
xor al, al
jmp 0x1002d36c
cmp dword [esp + 0x64], 8
lea eax, [esp + 0x50]
cmovae eax, dword [esp + 0x50]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
sete bl
mov byte [esp + 0x78], 2
cmp dword [esp + 0x64], 8
jb 0x1002d389
push dword [esp + 0x50]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
test bl, bl
je 0x1002d3bf
cmp dword [esp + 0x4c], 8
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1002d3fb
mov byte [esp + 0x78], 1
cmp dword [esp + 0x4c], 8
jb 0x1002d3d7
push dword [esp + 0x38]
call fcn.1007d9ed
add esp, 4
xor eax, eax
add esi, 0x18
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
cmp esi, edi
jne 0x1002d2f0
jmp 0x1002d42c
xor bh, bh
mov byte [esp + 0x78], 1
cmp dword [esp + 0x4c], 8
jb 0x1002d415
push dword [esp + 0x38]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
mov esi, dword [esp + 0x14]
mov byte [esp + 0x78], 0
test esi, esi
je 0x1002d465
push edi
push esi
lea ecx, [esp + 0x1c]
call fcn.1001a980
push esi
call fcn.1007d9ed
add esp, 4
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x34], 8
jb 0x1002d480
push dword [esp + 0x20]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov word [esp + 0x20], ax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov al, bh
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1007e654
mov esp, ebp
pop ebp
ret