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

Disassembly:
mov r11, rsp
push r12
sub rsp, 0xa00
mov qword [rsp + 0xf0], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x14025a030]
xor rax, rsp
mov qword [rsp + 0x9f0], rax
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], 0x78
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x30]
lea rdx, str._Monitor::WatchmanGuard::InstallHiddenScript_
lea rcx, [r11 - 0x8e8]
call fcn.140001d10
nop
mov rcx, rsi
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__::clear_void____ptr64]
lea r12, vtable.SpeedBit::Utils::StackBufferEx_1024_.0
mov qword [rsp + 0x3c0], r12
mov qword [rsp + 0x7c8], rbx
mov qword [rsp + 0x7d0], rbx
lea rcx, [rsp + 0x3c0]
call fcn.140043560
test eax, eax
jne 0x140043826
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rax, str.Monitor::WatchmanGuard::GetHiddenScript
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x100], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x100]
call sub.MSVCR90.dll__CxxThrowException
lea rax, [rsp + 0x7e0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea edx, [r9 + 0x22]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x140043882
mov dword [rsp + 0x40], 0x57
lea rax, str.SHGetFolderPathW_CommonAppData_
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x110], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x110]
call sub.MSVCR90.dll__CxxThrowException
mov rcx, qword [0x140260548]
test rcx, rcx
je 0x14004398c
mov rax, qword [rcx]
mov edx, 0x7d0
call qword [rax + 0x10]
test eax, eax
je 0x14004398c
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x230]
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 rcx, qword [rsp + 0x230]
movsxd rdx, dword [rcx + 4]
lea rcx, [rsp + rdx + 0x230]
mov r8, rax
lea rdx, [rsp + 0x68]
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 + 0x68]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::locale::destructor_void____ptr64]
lea rdx, str._Monitor::WatchmanGuard::InstallHiddenScript_
lea rcx, [rsp + 0x230]
call fcn.140002150
lea rdx, str.Common_App_path:
mov rcx, rax
call fcn.140002150
lea rdx, [rsp + 0x7e0]
mov rcx, rax
call fcn.140002150
lea rdx, [rsp + 0x398]
lea rcx, [rsp + 0x230]
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 + 0x3a0]
cmp qword [rsp + 0x3b8], 8
cmovae r8, qword [rsp + 0x3a0]
mov rcx, qword [0x140260548]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x3b0]
mov edx, 0x7d0
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x398]
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 + 0x230]
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, [rsp + 0x7e0]
lea rcx, [rsp + 0x348]
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_wchar_t_const____ptr64____ptr64]
nop
lea rdx, [0x1401b8374]
lea rcx, [rsp + 0x348]
call qword [sym.imp.MSVCP90.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 rdx, str.SearchModule
lea rcx, [rsp + 0x348]
call qword [sym.imp.MSVCP90.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]
mov rcx, qword [0x140260548]
test rcx, rcx
je 0x140043ae7
mov rax, qword [rcx]
mov edx, 0x7d0
call qword [rax + 0x10]
test eax, eax
je 0x140043ae7
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x140]
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 rcx, qword [rsp + 0x140]
movsxd r8, dword [rcx + 4]
lea rcx, [rsp + r8 + 0x140]
mov r8, rax
lea rdx, [rsp + 0x40]
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 + 0x40]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::locale::destructor_void____ptr64]
lea rdx, str._Monitor::WatchmanGuard::InstallHiddenScript_
lea rcx, [rsp + 0x140]
call fcn.140002150
lea rdx, str.SearchModule
mov rcx, rax
call fcn.140002150
lea rdx, str._directory:
mov rcx, rax
call fcn.140002150
lea rdx, [rsp + 0x348]
mov rcx, rax
call qword [sym.imp.MSVCP90.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::operator___wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64_]
lea rdx, [rsp + 0x320]
lea rcx, [rsp + 0x140]
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 + 0x328]
cmp qword [rsp + 0x340], 8
cmovae r8, qword [rsp + 0x328]
mov rcx, qword [0x140260548]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x338]
mov edx, 0x7d0
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x320]
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 + 0x140]
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 rcx, [rsp + 0x350]
cmp qword [rsp + 0x368], 8
cmovae rcx, qword [rsp + 0x350]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140043b52
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140043b52
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
lea rax, str.CreateDirectory
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0xe0], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0xe0]
call sub.MSVCR90.dll__CxxThrowException
lea rdx, [rsp + 0x348]
lea rcx, [rsp + 0x370]
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]
nop
lea rdx, [0x1401b8374]
lea rcx, [rsp + 0x370]
call qword [sym.imp.MSVCP90.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 rdx, str.smhe.js
lea rcx, [rsp + 0x370]
call qword [sym.imp.MSVCP90.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 + 0x3c0]
mov rax, qword [rsp + 0x3c0]
call qword [rax + 0x38]
mov rdi, rax
lea rcx, [rsp + 0x3c0]
mov rdx, qword [rsp + 0x3c0]
call qword [rdx + 0x10]
mov r9, rax
lea rdx, [rsp + 0x378]
cmp qword [rsp + 0x390], 8
cmovae rdx, qword [rsp + 0x378]
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x70], rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x78], rax
mov rax, qword [sym.imp.KERNEL32.dll_CopyFileA]
mov qword [rsp + 0x80], rax
mov rax, qword [sym.imp.KERNEL32.dll_CopyFileW]
mov qword [rsp + 0x88], rax
mov rax, qword [sym.imp.KERNEL32.dll_MoveFileA]
mov qword [rsp + 0x90], rax
mov rax, qword [sym.imp.KERNEL32.dll_MoveFileW]
mov qword [rsp + 0x98], rax
mov rax, qword [sym.imp.KERNEL32.dll_MoveFileExA]
mov qword [rsp + 0xa0], rax
mov rax, qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov qword [rsp + 0xa8], rax
mov rax, qword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov qword [rsp + 0xb0], rax
mov rax, qword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov qword [rsp + 0xb8], rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov qword [rsp + 0xc0], rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea rcx, [rsp + 0x70]
call fcn.140063720
test eax, eax
sete al
test al, al
je 0x140043cda
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
lea rax, str.Utils::FileSystem::WriteContentW
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0xd0], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0xd0]
call sub.MSVCR90.dll__CxxThrowException
lea rdx, [rsp + 0x370]
mov rcx, rsi
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__::swap_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x30], 1
lea rcx, [rsp + 0x370]
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 + 0x348]
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
mov qword [rsp + 0x3c0], r12
lea rax, [rsp + 0x3c8]
mov rcx, qword [rsp + 0x7c8]
cmp rcx, rax
je 0x140043d3d
test rcx, rcx
je 0x140043d3d
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x7c8], rbx
mov qword [rsp + 0x7d0], rbx
lea rax, vtable.SpeedBit::Utils::BaseBuffer.0
mov qword [rsp + 0x3c0], rax
mov ebx, dword [rsp + 0x30]
lea rcx, [rsp + 0x120]
call fcn.140001e50
nop
mov ecx, dword [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rcx, qword [rsp + 0x9f0]
xor rcx, rsp
call fcn.140155650
lea r11, [rsp + 0xa00]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret