Function at 0x40fc10
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x426602
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, dword [esp + 0x34]
test esi, esi
je 0x40fe6d
cmp word [esi], 0
je 0x40fe6d
push esi
call fcn.0040f270
add esp, 4
test al, al
je 0x40fc5e
mov al, 1
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov al, byte [esp + 0x34]
push 0
lea ecx, [esp + 8]
mov byte [esp + 8], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 4]
push eax
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x2c], 0
test ecx, ecx
je 0x40fcc5
push 0
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_short_int____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::at_unsigned_int_]
mov ecx, dword [esp + 0xc]
lea edx, [eax + ecx*2]
cmp eax, edx
je 0x40fcc5
cmp word [eax], 0x5c
jne 0x40fcbe
mov word [eax], 0x2f
mov ecx, dword [esp + 0xc]
add eax, 2
cmp eax, edx
jne 0x40fcaf
lea esi, [ecx - 1]
cmp ecx, esi
jb 0x40fceb
mov eax, dword [esp + 8]
test eax, eax
je 0x40fceb
lea ecx, [esp + 4]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Freeze_void_]
mov ecx, dword [esp + 8]
lea eax, [ecx + esi*2]
mov ecx, dword [esp + 0xc]
jmp 0x40fcf0
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
cmp word [eax], 0x2f
push edi
jne 0x40fd63
lea esi, [ecx - 1]
mov edi, 1
cmp ecx, esi
jae 0x40fd09
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xran_void_]
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Split_void_]
mov eax, dword [esp + 0x10]
sub eax, esi
cmp eax, 1
jae 0x40fd24
mov edi, eax
test edi, edi
jbe 0x40fd63
mov ecx, dword [esp + 0xc]
lea edx, [esi + edi]
sub eax, edi
lea edx, [ecx + edx*2]
lea ecx, [ecx + esi*2]
push eax
push edx
push ecx
call fcn.00401030
mov esi, dword [esp + 0x1c]
add esp, 0xc
sub esi, edi
lea ecx, [esp + 8]
push 0
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x40fd63
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], esi
mov word [eax + esi*2], 0
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
push 1
lea edx, [esp + 0x3c]
mov dword [esp + 0x3c], 0x2f
mov eax, dword [ecx]
lea ecx, [esp + 0xc]
push eax
push edx
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::rfind_unsigned_short_int_const___unsigned_int__unsigned_int_const]
cmp eax, 0xffffffff
pop edi
je 0x40fe37
push eax
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::substr_unsigned_int__unsigned_int_]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x2c], 1
test eax, eax
jne 0x40fdb3
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call fcn.0040fc10
add esp, 4
test al, al
je 0x40fe11
mov eax, dword [esp + 8]
test eax, eax
jne 0x40fdcd
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40fe11
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov al, 1
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40fe37
mov al, byte [ecx - 1]
test al, al
je 0x40fe2b
cmp al, 0xff
je 0x40fe2b
dec al
mov byte [ecx - 1], al
jmp 0x40fe37
add ecx, 0xfffffffe
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x40fe6d
mov al, byte [ecx - 1]
test al, al
je 0x40fe61
cmp al, 0xff
je 0x40fe61
dec al
pop esi
mov byte [ecx - 1], al
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
add ecx, 0xfffffffe
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x24]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret