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

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14025a030]
xor rax, rsp
mov qword [rsp + 0x168], rax
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x24], ebp
mov dword [rsp + 0x20], 0x78
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x24]
lea rdx, [0x1401b83e0]
lea rcx, [rsp + 0x38]
call fcn.140001d10
nop
cmp qword [rbx + 0x50], 8
jb 0x140009aa4
mov rcx, qword [rbx + 0x38]
jmp 0x140009aa8
lea rcx, [rbx + 0x38]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140009ace
cmp qword [rbx + 0x50], 8
jb 0x140009abf
mov rdx, qword [rbx + 0x38]
jmp 0x140009ac3
lea rdx, [rbx + 0x38]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov rcx, qword [rbx + 0x20]
sub rcx, qword [rbx + 0x18]
movabs r15, 0x6666666666666667
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140009d06
mov rdi, rbp
nop dword [rax]
cmp rbp, rdx
jb 0x140009b0b
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rax, qword [rbx + 0x18]
cmp qword [rdi + rax + 0x20], 8
jb 0x140009b1e
mov rcx, qword [rdi + rax + 8]
jmp 0x140009b23
lea rcx, [rdi + rax + 8]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140009cda
mov rcx, qword [0x140260548]
test rcx, rcx
je 0x140009cb9
mov rax, qword [rcx]
mov edx, 0xfa0
call qword [rax + 0x10]
test eax, eax
je 0x140009cb9
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_int____ptr64]
nop
call qword [sym.imp.MSVCP90.dll_public:_static_class_std::locale_const____ptr64___cdecl_std::locale::classic_void_]
mov r8, rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x50]
lea rdx, [rsp + 0x28]
call qword [sym.imp.MSVCP90.dll_public:_class_std::locale___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::imbue_class_std::locale_const____ptr64____ptr64]
lea rcx, [rsp + 0x28]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::locale::destructor_void____ptr64]
cmp qword [rbx + 0x50], 8
jb 0x140009ba3
mov r14, qword [rbx + 0x38]
jmp 0x140009ba7
lea r14, [rbx + 0x38]
cmp qword [rbx + 0x78], 8
jb 0x140009bb4
mov r13, qword [rbx + 0x60]
jmp 0x140009bb8
lea r13, [rbx + 0x60]
mov rcx, qword [rbx + 0x20]
sub rcx, qword [rbx + 0x18]
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbp, rdx
jb 0x140009bdf
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rax, qword [rbx + 0x18]
cmp qword [rdi + rax + 0x20], 8
jb 0x140009bf2
mov r12, qword [rdi + rax + 8]
jmp 0x140009bf7
lea r12, [rdi + rax + 8]
lea rdx, [0x1401b83e0]
lea rcx, [rsp + 0x50]
call fcn.140002150
mov rcx, rax
lea rdx, str.File
call fcn.1400023c0
mov rcx, rax
mov rdx, r12
call fcn.140002150
mov rcx, rax
lea rdx, str._is_missing__lets_extract_extension_from
call fcn.1400023c0
mov rcx, rax
mov rdx, r13
call fcn.140002150
mov rcx, rax
lea rdx, [0x1401b8430]
call fcn.1400023c0
mov rcx, rax
mov rdx, r14
call fcn.140002150
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::str_void____ptr64]
nop
lea r8, [rsp + 0x148]
cmp qword [rsp + 0x160], 8
cmovae r8, qword [rsp + 0x148]
mov rcx, qword [0x140260548]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x158]
mov edx, 0xfa0
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x140]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void____ptr64]
lea rdx, [rbx + 0x30]
lea rcx, [rsp + 0x140]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64____ptr64]
lea rcx, [rbx + 0x58]
mov r8b, 1
mov rdx, rax
call fcn.1400c0390
inc rbp
add rdi, 0x28
mov rcx, qword [rbx + 0x20]
sub rcx, qword [rbx + 0x18]
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbp, rdx
jb 0x140009b00
lea rcx, [rsp + 0x38]
call fcn.140001e50
nop
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.140155650
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret