Function at 0x14001abe0
Capabilities:
Create directory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x340
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x330], rax
mov r12, r9
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
mov byte [rsp + 0x130], 0
xor edx, edx
mov r8d, Ordinal_512
lea rcx, [rsp + 0x131]
call sub.ntdll.dll_memset
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov r8d, reloc.MFC80U.DLL_Ordinal_512
lea rdx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void____ptr64]
nop
lea rcx, [rsp + 0x90]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void____ptr64]
nop
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0xe0]
call qword [reloc.MSVCP80.dll___4__basic_string_DU__char_traits_D_std__V__allocator_D_2__std__QEAAAEAV01_PEBD_Z]
mov r8, qword [sym.imp.MSVCP80.dll_unsigned_long_long_unsigned___int64__const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov r8, qword [r8]
lea rdx, [0x1403b5ba0]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.MSVCP80.dll_public:_unsigned_long_long_unsigned___int64____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_last_of_char_const____ptr64__unsigned_long_long_unsigned___int64__const___ptr64]
lea r9, [rax + 1]
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64_____ptr64]
nop
mov rdx, rax
lea rcx, [rsp + 0x90]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
lea rdx, [0x1403b5ba4]
lea rcx, [rsp + 0x90]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const____ptr64____ptr64]
lea rcx, [rsp + 0x98]
cmp qword [rsp + 0xb0], 0x10
cmovae rcx, qword [rsp + 0x98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rdx, str.WindowsToGo.log
lea rcx, [rsp + 0x90]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const____ptr64____ptr64]
lea rbx, [rsp + 0x98]
cmp qword [rsp + 0xb0], 0x10
cmovae rbx, qword [rsp + 0x98]
mov edx, reloc.MFC80U.DLL_Ordinal_512
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14001ad6f
mov r9, rbx
lea r8, [0x1403b6474]
mov edx, reloc.MFC80U.DLL_Ordinal_512
lea rcx, [0x140c458a0]
call fcn.140015300
mov byte [0x140c45898], 1
mov byte [0x140c45677], 1
lea rcx, [rsp + 0xb8]
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 r8d, 2
mov rdx, rsi
lea rcx, [rsp + 0xb8]
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__::assign_wchar_t_const____ptr64__unsigned_long_long_unsigned___int64_____ptr64]
mov rbx, qword [rsp + 0xd0]
xor r8d, r8d
lea rdx, [0x1403b5bbc]
lea rcx, [rsp + 0xb8]
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_first_of_wchar_t_const____ptr64__unsigned_long_long_unsigned___int64__const___ptr64]
lea rcx, [rbx - 1]
cmp rax, rcx
jne 0x14001ade6
mov rdx, qword [rsp + 0xd0]
add rdx, 0xffffffffffffffff
lea rcx, [rsp + 0xb8]
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__::resize_unsigned_long_long_unsigned___int64_____ptr64]
lea rcx, [rsp + 0x108]
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, rdi
lea rcx, [rsp + 0x40]
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_wchar_t_const____ptr64____ptr64]
mov r8d, 1
lea rdx, [rsp + 0x108]
mov rcx, rax
call fcn.1400208e0
test al, al
jne 0x14001ae99
lea rcx, [0x1403b5bc0]
call fcn.140021620
mov rdx, rdi
lea rcx, str.WimFilePath:_s
call fcn.140021620
mov rdx, rsi
lea rcx, str.Volume:_s
call fcn.140021620
mov rdx, rbp
lea rcx, str.BcdbootPath:_s
call fcn.140021620
nop
lea rcx, [rsp + 0x108]
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 + 0xb8]
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 + 0x90]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0xe0]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
xor al, al
jmp 0x14001afaa
mov qword [0x140c44868], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x40]
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64____ptr64]
mov rbx, rax
mov rdx, rdi
lea rcx, [rsp + 0x68]
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_wchar_t_const____ptr64____ptr64]
nop
mov ecx, dword [rsp + 0x398]
mov dword [rsp + 0x20], ecx
mov r9, qword [rsp + 0x390]
mov r8, r12
mov rdx, rbx
mov rcx, rax
call fcn.14001f720
test al, al
jne 0x14001af6d
lea rcx, str.ImageX::Apply_failed_
call fcn.140021620
mov rdx, rdi
lea rcx, str.WimFilePath:_s
call fcn.140021620
mov rdx, rsi
lea rcx, str.Volume:_s
call fcn.140021620
mov rdx, rbp
lea rcx, str.BcdbootPath:_s
call fcn.140021620
nop
lea rcx, [rsp + 0x108]
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 + 0xb8]
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 + 0x90]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0xe0]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
xor al, al
jmp 0x14001afaa
lea rcx, [rsp + 0x108]
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 + 0xb8]
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 + 0x90]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0xe0]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov al, 1
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.140161080
add rsp, 0x340
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret