Function at 0x401080
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4029b9
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [esp + 0x38]
xor ebx, ebx
cmp esi, ebx
je 0x40125d
mov al, byte [esp + 0x38]
push ebp
push edi
push ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4010fb
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], ebx
lea esi, [eax - 1]
cmp eax, esi
ja 0x401110
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xran_void_]
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x14]
cmp byte [eax + esi], 0x5c
je 0x401170
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, 1
ja 0x40113c
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov edx, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x14]
lea esi, [edx + 1]
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
mov eax, dword [esp + 0x14]
je 0x401170
mov ecx, dword [esp + 0x18]
mov byte [ecx + eax], 0x5c
add ecx, eax
push esi
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor esi, esi
mov edi, edx
cmp edi, ebx
jle 0x40122b
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40118c
mov edx, dword [esp + 0x18]
cmp edx, esi
jb 0x4011c1
cmp eax, ebx
je 0x4011c1
mov cl, byte [eax - 1]
cmp cl, bl
je 0x4011b0
cmp cl, 0xff
je 0x4011b0
push ebx
push edx
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4011bc
mov byte [eax - 1], 0xff
mov eax, dword [esp + 0x14]
lea ecx, [eax + esi]
jmp 0x4011c7
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [ecx], 0x5c
jne 0x401222
push esi
lea edx, [esp + 0x24]
push ebx
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.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_]
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x4011e9
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ebx
push eax
call ebp
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x401212
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x401209
cmp al, 0xff
je 0x401209
dec al
mov byte [ecx], al
jmp 0x401212
push ecx
call fcn.00402780
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
inc esi
cmp esi, edi
jl 0x401188
pop edi
cmp eax, ebx
pop ebp
je 0x40125d
mov cl, byte [eax - 1]
cmp cl, bl
je 0x401253
cmp cl, 0xff
je 0x401253
dec cl
pop esi
mov byte [eax - 1], cl
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
dec eax
push eax
call fcn.00402780
add esp, 4
mov ecx, dword [esp + 0x28]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret