Function at 0x14001f120
Capabilities:
Create directory
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x910
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x960], rbx
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x900], rax
mov r13, rdx
mov rdi, rcx
mov qword [rsp + 0xe8], rcx
mov rbx, qword [rdx + 0x10]
cmp qword [rdx + 8], rbx
jbe 0x14001f174
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rsi, qword [r13 + 8]
cmp rsi, qword [r13 + 0x10]
jbe 0x14001f184
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp rsi, rbx
je 0x14001f1e5
mov r12, qword [r13 + 0x10]
mov rcx, r12
sub rcx, rbx
movabs rax, 0x7f807f807f807f81
imul rcx
mov rbp, rdx
sar rbp, 9
mov rax, rbp
shr rax, 0x3f
add rbp, rax
imul rbp, rbp, 0x404
add rbp, rsi
cmp rbx, r12
je 0x14001f1e1
sub rsi, rbx
lea rcx, [rsi + rbx]
mov rdx, rbx
mov r8d, 0x404
call sub.ntdll.dll_memcpy
add rbx, 0x404
cmp rbx, r12
jne 0x14001f1c3
mov qword [r13 + 0x10], rbp
xor r15d, r15d
mov dword [rsp + 0x3c], r15d
cmp qword [rdi + 0x20], 8
jb 0x14001f1fa
mov rcx, qword [rdi + 8]
jmp 0x14001f1fe
lea rcx, [rdi + 8]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
xor edx, edx
lea r9d, [rdx + 2]
lea r8d, [rdx + 3]
call sub.WIMGAPI.DLL_WIMCreateFile
mov rsi, rax
test rax, rax
jne 0x14001f249
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateFile_is_falid__ErrorCode:_d
call fcn.140021570
nop
mov rcx, rdi
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor al, al
jmp 0x14001f655
mov word [rsp + Ordinal_1288], r15w
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_1282]
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void____ptr64]
nop
mov edx, 0x400
lea rcx, [rsp + 0x500]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, [rsp + 0x500]
lea rcx, [rsp + 0x70]
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_PEB_W_Z]
cmp qword [rsp + 0x88], 0
jne 0x14001f2dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetSystemDirectory_falid__ErrorCode:_d
call fcn.140021570
mov rcx, rsi
call sub.WIMGAPI.DLL_WIMCloseHandle
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
mov rcx, rdi
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor al, al
jmp 0x14001f655
lea rdx, str.Temp
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
lea rcx, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae rcx, qword [rsp + 0x78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae rdx, qword [rsp + 0x78]
mov rcx, rsi
call sub.WIMGAPI.DLL_WIMSetTemporaryPath
test eax, eax
jne 0x14001f364
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetTemporaryPath_is_falid__ErrorCode:_d
call fcn.140021570
mov rcx, rsi
call sub.WIMGAPI.DLL_WIMCloseHandle
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
mov rcx, rdi
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor al, al
jmp 0x14001f655
mov rcx, rsi
call sub.WIMGAPI.DLL_WIMGetImageCount
mov r14d, eax
test eax, eax
je 0x14001f635
mov r12d, 1
nop
mov edx, r12d
mov rcx, rsi
call sub.WIMGAPI.DLL_WIMLoadImage
mov rbx, rax
test rax, rax
je 0x14001f5ff
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x38], r15d
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov rcx, rax
call sub.WIMGAPI.DLL_WIMGetImageInformation
test eax, eax
je 0x14001f5c1
lea rcx, [rsp + 0x98]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void____ptr64]
nop
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x98]
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_PEB_W_Z]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call sub.WIMGAPI.DLL_WIMCloseHandle
xor r8d, r8d
lea rdx, str._NAME_
lea rcx, [rsp + 0x98]
call qword [sym.imp.MSVCP80.dll_public:_unsigned_long_long_unsigned___int64____cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const____ptr64__unsigned_long_long_unsigned___int64__const___ptr64]
mov rbp, rax
cmp eax, 0xffffffff
je 0x14001f596
xor r8d, r8d
lea rdx, str.__NAME_
lea rcx, [rsp + 0x98]
call qword [sym.imp.MSVCP80.dll_public:_unsigned_long_long_unsigned___int64____cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const____ptr64__unsigned_long_long_unsigned___int64__const___ptr64]
mov rbx, rax
cmp eax, 0xffffffff
je 0x14001f56b
cmp ebp, eax
jg 0x14001f540
lea rcx, [rsp + 0xc0]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void____ptr64]
nop
lea rdx, str._NAME_
lea rcx, [rsp + 0xc0]
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_PEB_W_Z]
sub ebx, ebp
movsxd r9, ebx
mov rax, qword [rsp + 0xd8]
sub r9, rax
movsxd r8, ebp
add r8, rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x98]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64_____ptr64]
nop
mov rdx, rax
lea rcx, [rsp + 0xc0]
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_AEBV01__Z]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0xf4]
call sub.ntdll.dll_memset
mov dword [rsp + 0xf0], r12d
lea r9, [rsp + 0xc8]
cmp qword [rsp + 0xe0], 8
cmovae r9, qword [rsp + 0xc8]
lea r8, [0x1403b5c74]
mov edx, 0x400
lea rcx, [rsp + 0xf4]
call fcn.140013b00
lea rdx, [rsp + 0xf0]
mov rcx, r13
call fcn.14001e990
nop
lea rcx, [rsp + 0xc0]
call qword [sym.imp.MSVCP80.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 + 0x98]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
add r12d, 1
lea eax, [r12 - 1]
cmp eax, r14d
jb 0x14001f380
jmp 0x14001f635
lea rcx, [rsp + 0x98]
call qword [sym.imp.MSVCP80.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 + 0x70]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
mov rcx, rdi
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
mov al, 1
jmp 0x14001f655
lea rcx, [rsp + 0x98]
call qword [sym.imp.MSVCP80.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 + 0x70]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
mov rcx, rdi
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
mov al, 1
jmp 0x14001f655
lea rcx, [rsp + 0x98]
call qword [sym.imp.MSVCP80.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 + 0x70]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
mov rcx, rdi
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
mov al, 1
jmp 0x14001f655
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetImageInformation_is_falid__ErrorCode:_d
call fcn.140021570
mov rcx, rbx
call sub.WIMGAPI.DLL_WIMCloseHandle
mov rcx, rsi
call sub.WIMGAPI.DLL_WIMCloseHandle
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
mov rcx, rdi
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor al, al
jmp 0x14001f655
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LoadImage_is_falid__ErrorCode:_d
call fcn.140021570
mov rcx, rsi
call sub.WIMGAPI.DLL_WIMCloseHandle
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
mov rcx, rdi
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor al, al
jmp 0x14001f655
mov rcx, rsi
call sub.WIMGAPI.DLL_WIMCloseHandle
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
mov rcx, rdi
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
mov al, 1
mov rcx, qword [rsp + 0x900]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x960]
add rsp, 0x910
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret