Function at 0x14009d380
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140103040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
xor esi, esi
mov rax, qword [0x140103488]
cmp rax, 7
jb 0x14009d3e7
lea rbx, [0x140103470]
cmp rax, 0xf
cmova rbx, qword [0x140103470]
mov qword [0x140103480], 7
lea r8d, [rsi + 7]
lea rdx, str.init_1
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 7], sil
jmp 0x14009d3ff
lea r9, str.init_1
mov edx, 7
lea rcx, [0x140103470]
call fcn.14007d230
cmp byte [0x140105084], sil
jne 0x14009d565
lea rax, str.ToadClientMappingObj
mov qword [rsp + 0x28], rax
mov eax, dword [0x140103094]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor edx, edx
lea rcx, [rdx - 1]
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [0x140104e90], rax
test rax, rax
jne 0x14009d484
lea rdx, str.CreateFileMapping_returned_null:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140078470
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x140078640]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov byte [0x140105308], 1
jmp 0x14009d5b9
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
jne 0x14009d4f4
lea rdx, str.MapViewOfFile_returned_null:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140078470
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x140078640]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [0x140104e90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x140105308], 1
jmp 0x14009d5b9
mov r8d, dword [0x140103094]
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, 1
call fcn.1400af954
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x140095800]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14009d58e
cmp dword [0x1401054c8], 0
jne 0x14009d587
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [0x1401054c0], xmm1
mov byte [0x140105084], 1
cmp byte [0x140105308], 0
jne 0x14009d5b9
mov rcx, qword [rdi]
mov ecx, dword [rcx + 0x20]
call fcn.14008d2e0
test al, al
jne 0x14009d59e
mov al, 1
mov byte [0x14010534a], al
jmp 0x14009d5a5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x38], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
movzx eax, byte [0x14010534a]
cmp byte [0x140105308], 0
jne 0x14009d5b9
test al, al
jne 0x14009d5b9
mov byte [0x140105080], 1
mov rbx, qword [rdi]
mov rdx, rbx
lea rcx, [0x140105430]
call fcn.140074ee0
mov eax, dword [rbx + 0x20]
mov dword [0x140105450], eax
mov rax, qword [rbx + 0x28]
mov qword [0x140105458], rax
mov byte [0x1401052e5], 0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400af310
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret