Function at 0x405da0
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x40d832
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x41401c]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
mov eax, dword [0x41401c]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
xor ebx, ebx
cmp edi, ebx
je 0x405f06
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebp
push edi
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push ebx
push 0x4100e4
lea ecx, [esp + 0x34]
mov dword [esp + 0x5c], ebx
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
mov esi, eax
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp esi, dword [eax]
jne 0x405e25
push edi
call ebp
test eax, eax
jne 0x405e25
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405ef4
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp esi, dword [ecx]
je 0x405ea1
nop
inc esi
push esi
push ebx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
mov byte [esp + 0x54], 1
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x405e56
lea eax, [esp + 0x14]
push eax
call ebp
test eax, eax
jne 0x405e78
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x405e6c
lea eax, [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405ee6
push esi
push 0x4100e4
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x54], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp esi, dword [eax]
jne 0x405e30
push edi
call ebp
test eax, eax
jne 0x405eb4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405ef4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0040cd4c
add esp, 0x48
ret
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x405ec8