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

Disassembly:
push 0xffffffffffffffff
push 0x402f89
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x406018]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x406018]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [esp + 0x60]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
xor eax, eax
mov dword [esp + 0x58], eax
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp dword [ecx], eax
lea edi, [eax + 1]
je 0x40138c
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push eax
push 0x5c
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char__unsigned_int_const]
mov edx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov esi, eax
cmp dword [edx], esi
je 0x401351
push esi
push 0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
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 + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x4012fe
lea eax, [esp + 0x34]
push eax
call ebx
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
test eax, eax
jne 0x401334
test edi, edi
je 0x401332
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x401322
lea eax, [esp + 0x34]
push 0
push eax
call ebp
test eax, eax
je 0x401332
mov edi, 1
jmp 0x401334
xor edi, edi
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esi + 1]
cmp dword [edx], eax
jne 0x4012c4
jmp 0x40138c
mov eax, dword [esp + 0x18]
mov esi, 0x10
cmp dword [esp + 0x2c], esi
jae 0x401364
lea eax, [esp + 0x18]
push eax
call ebx
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
test eax, eax
jne 0x40138c
test edi, edi
je 0x40138c
cmp dword [esp + 0x2c], esi
mov eax, dword [esp + 0x18]
jae 0x401387
lea eax, [esp + 0x18]
push 0
push eax
call ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x58], 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_]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004025ac
add esp, 0x48
ret 4