Function at 0x180036ec0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x1800f5040]
xor rax, rsp
mov qword [rbp + 0x220], rax
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea r12d, [r14 + 1]
cmp qword [0x1800f6ae8], r14
je 0x1800370b9
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
lea r8d, [r14 + 0x12]
lea rdx, str.Clearing_Last_Hook
lea rcx, [rsp + 0x28]
call fcn.180034f20
nop
lea rcx, [rsp + 0x28]
call fcn.18009ea10
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x180036f83
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180036f7e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180036f7e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800a12a4
mov rdi, qword [0x1800f6ae8]
mov rbx, r14
xor eax, eax
lock cmpxchg dword [0x1800f67c0], r12d
je 0x180036fc3
nop word [rax + rax]
cmp rbx, 0x20
jae 0x180036faa
xor ecx, ecx
jmp 0x180036fad
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800f67c0], r12d
jne 0x180036fa0
cmp qword [0x1800f67c8], 0
je 0x1800370a4
test rdi, rdi
jne 0x180036fe2
xor ecx, ecx
call fcn.18009f46c
jmp 0x1800370a4
mov ebx, r14d
mov ecx, dword [0x1800fc5cc]
test ecx, ecx
je 0x1800370a4
mov r8, qword [0x1800fc5c0]
mov rax, r8
nop dword [rax]
cmp rdi, qword [rax]
je 0x180037014
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180037000
jmp 0x1800370a4
cmp ebx, 0xffffffff
je 0x1800370a4
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
je 0x1800370a4
mov r8d, r12d
mov edx, ebx
lea rcx, [rbp - 0x58]
call fcn.18009efb0
test eax, eax
jne 0x1800370a4
xor edx, edx
mov ecx, ebx
call fcn.18009f35c
mov r15, qword [rbp - 0x58]
test r15, r15
je 0x1800370a4
mov eax, dword [rbp - 0x4c]
test eax, eax
je 0x180037092
mov rdi, r15
mov esi, eax
nop dword [rax + rax]
mov r8d, dword [rdi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x180037088
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
sub rsi, 1
jne 0x180037060
mov r8, r15
xor edx, edx
mov rcx, qword [0x1800f67c8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, r14d
xchg dword [0x1800f67c0], eax
mov rcx, qword [0x1800f6ae8]
call fcn.18009f7bc
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x120]
call sub.VCRUNTIME140.dll_memset
lea rsi, [0x1800b5070]
mov qword [rbp + 0x120], rsi
lea rdi, [0x1800b4ef8]
mov qword [rbp + 0x130], rdi
lea rcx, [rbp + 0x1b8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], r12d
xor r8d, r8d
lea rdx, [rbp + 0x138]
lea rcx, [rbp + 0x120]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rbp + 0x120]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x120], r13
mov rax, qword [rbp + 0x120]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x11c], edx
lea rcx, [rbp + 0x138]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rbx, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x138], rbx
mov qword [rbp + 0x1a0], r14
mov dword [rbp + 0x1a8], r14d
lea rdx, [0x180032a40]
lea rcx, [rbp + 0x130]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
lea rdx, [0x1800fc108]
call fcn.180043fa0
lea rdx, [rbp]
lea rcx, [rbp + 0x120]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64____ptr64]
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x30], rdi
lea rcx, [rbp + 0xb8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x20], r13
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x1c], edx
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
mov qword [rbp + 0x38], rbx
mov qword [rbp + 0xa0], r14
mov dword [rbp + 0xa8], r14d
cmp qword [rbp], 0
jne 0x1800372a0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov r8d, 0x17
lea rdx, str.Not_Creating_Null_Hook_
lea rcx, [rsp + 0x28]
call fcn.180034f20
nop
lea rcx, [rsp + 0x28]
call fcn.18009ea10
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x18003774b
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180037296
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003748b
call fcn.1800a12a4
jmp 0x18003774b
lea rdx, str.Creating_Hook__Offset:
lea rcx, [rbp + 0x30]
call fcn.180043fa0
mov rdx, qword [rbp]
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___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, str.__Return:
call fcn.180043fa0
mov rcx, rax
lea r15, [0x1800fc128]
mov rdx, r15
call fcn.180043fa0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
mov dword [rsp + 0x20], 0xb
xor eax, eax
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], rax
mov ecx, dword [rbp + 0xa8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x18003733e
mov rax, qword [rbp + 0x78]
mov rbx, qword [rax]
test rbx, rbx
je 0x18003733e
mov rax, qword [rbp + 0x58]
mov r9, qword [rax]
cmp rbx, qword [rbp + 0xa0]
cmovb rbx, qword [rbp + 0xa0]
jmp 0x180037363
test cl, 4
jne 0x18003739d
mov rax, qword [rbp + 0x70]
mov rcx, qword [rax]
test rcx, rcx
je 0x18003739d
mov rax, qword [rbp + 0x50]
mov r9, qword [rax]
mov rax, qword [rbp + 0x88]
movsxd rbx, dword [rax]
add rbx, rcx
mov rax, r9
sub rbx, r9
mov qword [rbp - 0x18], r9
test rax, rax
je 0x18003739d
lea rcx, [rsp + 0x48]
cmp rbx, 0xf
ja 0x180037394
mov qword [rsp + 0x58], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + rbx + 0x48], 0
jmp 0x18003739d
mov rdx, rbx
call fcn.180045270
nop
lea rcx, [rsp + 0x48]
call fcn.18009ea10
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x1800373e5
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800373e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003748b
call fcn.1800a12a4
mov rcx, qword [0x1800f6588]
add rcx, qword [rbp]
mov qword [0x1800f6ae8], rcx
cmp byte [0x1800f685a], 0
jne 0x180037410
lea r8, [0x1800fc260]
lea rdx, [0x180036da0]
jmp 0x18003741e
lea r8, [0x1800fc360]
lea rdx, [0x180036e30]
call fcn.18009f570
test eax, eax
jne 0x18003774b
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
lea r8d, [rax + 0xc]
lea rdx, str.Hook_Created
lea rcx, [rbp - 0x38]
call fcn.180034f20
nop
lea rcx, [rbp - 0x38]
call fcn.18009ea10
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x180037497
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180037492
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180037492
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800a12a4
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [r15 + r8], 0
jne 0x1800374b2
mov rdx, r15
lea rcx, [rsp + 0x68]
call fcn.180034f20
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rsi, rax
lea rbx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova rbx, qword [rsp + 0x68]
mov dword [rax], r14d
lea rdx, [rbp + 8]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtof]
cmp rbx, qword [rbp + 8]
jne 0x180037507
lea rcx, str.invalid_stof_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
cmp dword [rsi], 0x22
jne 0x18003751a
lea rcx, str.stof_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
movss dword [0x1800f68d8], xmm0
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x180037561
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003755c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003755c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800a12a4
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
inc rdi
cmp byte [r15 + rdi], 0
jne 0x180037570
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x78]
call fcn.180034f20
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rax
lea rbx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova rbx, qword [rbp - 0x78]
mov dword [rax], r14d
mov r8d, 0xa
lea rdx, [rbp + 0x10]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp rbx, qword [rbp + 0x10]
jne 0x1800375cb
lea rcx, str.invalid_stoi_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
cmp dword [rdi], 0x22
jne 0x1800375de
lea rcx, str.stoi_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
mov dword [0x1800f68dc], eax
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x180037622
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003761d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003761d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800a12a4
mov rdi, qword [0x1800f6588]
add rdi, qword [rbp]
mov rbx, r14
xor eax, eax
lock cmpxchg dword [0x1800f67c0], r12d
je 0x180037663
nop dword [rax]
cmp rbx, 0x20
jae 0x18003764a
xor ecx, ecx
jmp 0x18003764d
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800f67c0], r12d
jne 0x180037640
cmp qword [0x1800f67c8], 0
je 0x180037744
test rdi, rdi
jne 0x180037683
mov ecx, r12d
call fcn.18009f46c
jmp 0x180037744
mov ebx, r14d
mov ecx, dword [0x1800fc5cc]
test ecx, ecx
je 0x180037744
mov r8, qword [0x1800fc5c0]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x1800376b4
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800376a0
jmp 0x180037744
cmp ebx, 0xffffffff
je 0x180037744
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x180037744
mov r8d, r12d
mov edx, ebx
lea rcx, [rbp - 0x48]
call fcn.18009efb0
test eax, eax
jne 0x180037744
mov edx, r12d
mov ecx, ebx
call fcn.18009f35c
mov r15, qword [rbp - 0x48]
test r15, r15
je 0x180037744
mov eax, dword [rbp - 0x3c]
test eax, eax
je 0x180037732
mov rdi, r15
mov esi, eax
nop dword [rax]
mov r8d, dword [rdi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x180037728
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
sub rsi, 1
jne 0x180037700
mov r8, r15
xor edx, edx
mov rcx, qword [0x1800f67c8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
xchg dword [0x1800f67c0], r14d
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x20], r13
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x1c], edx
lea rcx, [rbp + 0x38]
call fcn.180042c50
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xb8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rax, qword [rbp + 0x120]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x120], r13
mov rax, qword [rbp + 0x120]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x11c], edx
lea rcx, [rbp + 0x138]
call fcn.180042c50
lea rcx, [rbp + 0x140]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x1b8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1800a0e00
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret