Function at 0x14009cc30
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140102040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
xor esi, esi
mov r8d, 7
lea rdx, str.init_1
lea rcx, [0x140102470]
call fcn.1400764a0
cmp byte [0x14010407b], sil
jne 0x14009cdd8
lea rax, str.ToadClientMappingObj
mov qword [rsp + 0x28], rax
mov eax, dword [0x140102098]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor edx, edx
mov rcx, 0xffffffffffffffff
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [0x140103e80], rax
test rax, rax
jne 0x14009ccf6
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.140077930
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, [0x140077b10]
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 [0x14010430c], 1
jmp 0x14009ce2c
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
jne 0x14009cd67
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.140077930
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, [0x140077b10]
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 [0x140103e80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x14010430c], 1
jmp 0x14009ce2c
mov r8d, dword [0x140102098]
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.1400aef04
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x140095210]
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 0x14009ce01
cmp dword [0x1401044c8], 0
jne 0x14009cdfa
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [0x1401044c0], xmm1
mov byte [0x14010407b], 1
cmp byte [0x14010430c], 0
jne 0x14009ce2c
mov rcx, qword [rdi]
mov ecx, dword [rcx + 0x20]
call fcn.14008c990
test al, al
jne 0x14009ce11
mov al, 1
mov byte [0x14010434b], al
jmp 0x14009ce18
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 [0x14010434b]
cmp byte [0x14010430c], 0
jne 0x14009ce2c
test al, al
jne 0x14009ce2c
mov byte [0x140104070], 1
mov rbx, qword [rdi]
lea rcx, [0x140104430]
cmp rcx, rbx
je 0x14009ce51
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14009ce48
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
call fcn.1400764a0
mov eax, dword [rbx + 0x20]
mov dword [0x140104450], eax
mov rax, qword [rbx + 0x28]
mov qword [0x140104458], rax
mov byte [0x1401042ec], 0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400ae8c0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret