Function at 0x1400038d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov rax, qword [0x1401dedc0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r12d, r8d
mov r13, rdx
mov rbx, rcx
call qword [sym.imp.SecureEngineSDK64.dll_Ordinal_125]
mov ecx, Ordinal_163
call fcn.14014ac08
mov rdi, rax
mov qword [rbp - 0x79], rax
test rax, rax
je 0x140003950
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_WatchDog_.0
mov qword [rdi], rax
lea rcx, [rdi + 0x10]
call fcn.14013cd40
jmp 0x140003952
xor edi, edi
lea rax, [rdi + 0x10]
mov qword [rbx + 0x20], rax
mov rsi, qword [rbx + 0x28]
mov qword [rbx + 0x28], rdi
mov r14d, 0xffffffff
test rsi, rsi
je 0x140003998
mov eax, r14d
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x140003998
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov eax, r14d
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x140003998
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rbx + 0x20]
mov ecx, 0x188
call fcn.14014ac08
mov rsi, rax
mov qword [rbp - 0x79], rax
test rax, rax
je 0x1400039e2
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_Client_.0
mov qword [rsi], rax
lea rcx, [rsi + 0x10]
lea rdx, [rbx + 0x30]
mov r8, rdi
call fcn.1400223b0
jmp 0x1400039e4
xor esi, esi
lea rax, [rsi + 0x10]
mov qword [rbx + 0x10], rax
mov rdi, qword [rbx + 0x18]
mov qword [rbx + 0x18], rsi
test rdi, rdi
je 0x140003a24
mov eax, r14d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140003a24
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, r14d
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x140003a24
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rbx + 0x20]
mov r15, qword [rbx + 0x10]
mov ecx, 0x60
call fcn.14014ac08
mov rsi, rax
mov qword [rbp - 0x79], rax
test rax, rax
je 0x140003a74
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_Gui_.0
mov qword [rsi], rax
lea rcx, [rsi + 0x10]
mov r8, rdi
mov rdx, r15
call fcn.140077b50
xor r15d, r15d
jmp 0x140003a7a
xor r15d, r15d
mov esi, r15d
lea rax, [rsi + 0x10]
mov qword [rbx], rax
mov rdi, qword [rbx + 8]
mov qword [rbx + 8], rsi
test rdi, rdi
je 0x140003ab8
mov eax, r14d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140003ab8
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], r14d
cmp r14d, 1
jne 0x140003ab8
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov ecx, 0x18
call fcn.14014ac08
mov r9, rax
test rax, rax
je 0x140003afa
mov qword [rax], r15
mov qword [rax + 8], r15
mov rax, qword [rbx + 0x28]
test rax, rax
je 0x140003ade
lock inc dword [rax + 8]
mov rax, qword [rbx + 0x20]
mov qword [r9], rax
mov rax, qword [rbx + 0x28]
mov qword [r9 + 8], rax
lea rax, [0x140004ba0]
mov qword [r9 + 0x10], rax
jmp 0x140003afd
mov r9, r15
mov qword [rbp + 0x17], r9
lea rax, [rbp - 1]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
lea r8, [0x140002630]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 9], rax
test rax, rax
je 0x140003d35
cmp dword [rbp - 1], 0
je 0x140003d8e
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 0x69], xmm0
lea rcx, [rbp - 0x69]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x140003d8e
xorps xmm0, xmm0
movaps xmmword [rbp - 0x49], xmm0
movdqa xmmword [rbp - 9], xmm0
lea ecx, [rax + 0x18]
call fcn.14014ac08
mov r9, rax
test rax, rax
je 0x140003b9d
mov qword [rax], r15
mov qword [rax + 8], r15
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x140003b81
lock inc dword [rax + 8]
mov rax, qword [rbx + 0x10]
mov qword [r9], rax
mov rax, qword [rbx + 0x18]
mov qword [r9 + 8], rax
lea rax, [0x140003520]
mov qword [r9 + 0x10], rax
jmp 0x140003ba0
mov r9, r15
mov qword [rbp + 0x1f], r9
lea rax, [rbp - 0x11]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
lea r8, [0x140002500]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x19], rax
test rax, rax
je 0x140003d7f
cmp dword [rbp - 0x11], 0
je 0x140003d74
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x59], xmm0
lea rcx, [rbp - 0x59]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x140003d74
xorps xmm0, xmm0
movaps xmmword [rbp - 0x39], xmm0
movdqa xmmword [rbp - 0x19], xmm0
lea ecx, [rax + 0x28]
call fcn.14014ac08
mov r9, rax
test rax, rax
je 0x140003c48
mov dword [rax], r12d
mov qword [rax + 8], r13
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
mov rax, qword [rbx + 8]
test rax, rax
je 0x140003c2c
lock inc dword [rax + 8]
mov rax, qword [rbx]
mov qword [r9 + 0x10], rax
mov rax, qword [rbx + 8]
mov qword [r9 + 0x18], rax
lea rax, [0x140003850]
mov qword [r9 + 0x20], rax
jmp 0x140003c4b
mov r9, r15
mov qword [rbp + 7], r9
lea rax, [rbp - 0x21]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
lea r8, [0x140002590]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x29], rax
test rax, rax
je 0x140003d65
cmp dword [rbp - 0x21], 0
je 0x140003d44
call sub.MSVCP140.dll__Thrd_id
cmp dword [rbp - 0x21], eax
je 0x140003d4f
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp + 7], xmm0
xor edx, edx
lea rcx, [rbp + 7]
call sub.MSVCP140.dll__Thrd_join
test eax, eax
jne 0x140003d5a
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x29], xmm0
mov rax, qword [rbx + 0x10]
cmp byte [rax], 0
je 0x140003cda
call sub.MSVCP140.dll__Xtime_get_ticks
mov ebx, 0xb2d05e00
add rbx, rax
nop dword [rax]
call sub.MSVCP140.dll__Xtime_get_ticks
cmp rax, rbx
jl 0x140003cd0
call qword [sym.imp.SecureEngineSDK64.dll_Ordinal_525]
nop
cmp dword [rbp - 0x21], 0
je 0x140003cee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
cmp dword [rbp - 0x11], 0
je 0x140003cfb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
cmp dword [rbp - 1], 0
je 0x140003d08
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14014b190
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov dword [rbp - 1], r15d
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 2
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rbp - 0x21], r15d
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rbp - 0x11], r15d
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3