Function at 0x14009d800
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 0x14009d867
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 0x14009d87f
lea r9, str.init_1
mov edx, 7
lea rcx, [0x140103470]
call fcn.14007d2f0
cmp byte [0x140105084], sil
jne 0x14009d9e5
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 0x14009d904
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.140078540
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, [0x140078710]
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 [0x140105310], 1
jmp 0x14009da39
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 0x14009d974
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.140078540
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, [0x140078710]
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 [0x140105310], 1
jmp 0x14009da39
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.1400afe64
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x140095be0]
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 0x14009da0e
cmp dword [0x1401054d8], 0
jne 0x14009da07
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [0x1401054d0], xmm1
mov byte [0x140105084], 1
cmp byte [0x140105310], 0
jne 0x14009da39
mov rcx, qword [rdi]
mov ecx, dword [rcx + 0x20]
call fcn.14008d7b0
test al, al
jne 0x14009da1e
mov al, 1
mov byte [0x140105352], al
jmp 0x14009da25
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 [0x140105352]
cmp byte [0x140105310], 0
jne 0x14009da39
test al, al
jne 0x14009da39
mov byte [0x140105080], 1
mov rbx, qword [rdi]
mov rdx, rbx
lea rcx, [0x140105440]
call fcn.140074fc0
mov eax, dword [rbx + 0x20]
mov dword [0x140105460], eax
mov rax, qword [rbx + 0x28]
mov qword [0x140105468], rax
mov byte [0x1401052ec], 0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400af820
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret