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

Disassembly:
push 0xffffffffffffffff
push 0x1001b7b9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100263b0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100263b0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, dword [esp + 0x44]
mov ebx, dword [esi + 0x14]
xor ebp, ebp
test ebx, ebx
jbe 0x1000cf6c
cmp ebp, dword [esi + 0x14]
jbe 0x1000ce9e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esi + 0x18], 0x10
lea edi, [esi + 4]
jb 0x1000ceab
mov eax, dword [edi]
jmp 0x1000cead
mov eax, edi
cmp byte [eax + ebp], 0x2f
je 0x1000ced0
cmp ebp, dword [esi + 0x14]
jbe 0x1000cebe
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esi + 0x18], 0x10
jb 0x1000cec6
mov edi, dword [edi]
cmp byte [edi + ebp], 0x5c
jne 0x1000cf61
push ebp
push 0
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
cmp dword [esp + 0x28], 0
je 0x1000cf7d
mov eax, dword [esp + 0x18]
mov edi, 0x10
cmp dword [esp + 0x2c], edi
jae 0x1000cefe
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000cf4b
cmp dword [esp + 0x2c], edi
mov eax, dword [esp + 0x18]
jae 0x1000cf18
lea eax, [esp + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000cf4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000cf4f
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
jmp 0x1000cfce
test al, 0x10
je 0x1000cf32
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
add ebp, 1
cmp ebp, ebx
jb 0x1000ce93
mov ebx, 0x10
cmp dword [esi + 0x18], ebx
lea edi, [esi + 4]
jb 0x1000cf91
mov eax, dword [edi]
jmp 0x1000cf93
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x1000cf6c
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000cfc4
cmp dword [esi + 0x18], ebx
jb 0x1000cfa6
mov edi, dword [edi]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000cfcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000cfcc
xor al, al
jmp 0x1000cfce
test al, 0x10
je 0x1000cf44
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1001a888
add esp, 0x2c
ret