Function at 0x180036680
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 [0x1800f3040]
xor rax, rsp
mov qword [rbp + 0x220], rax
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea r12d, [r14 + 1]
cmp qword [0x1800f4ae8], r14
je 0x180036879
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.1800346e0
nop
lea rcx, [rsp + 0x28]
call fcn.18009e0f0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x180036743
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003673e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003673e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800a0984
mov rdi, qword [0x1800f4ae8]
mov rbx, r14
xor eax, eax
lock cmpxchg dword [0x1800f47c0], r12d
je 0x180036783
nop word [rax + rax]
cmp rbx, 0x20
jae 0x18003676a
xor ecx, ecx
jmp 0x18003676d
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800f47c0], r12d
jne 0x180036760
cmp qword [0x1800f47c8], 0
je 0x180036864
test rdi, rdi
jne 0x1800367a2
xor ecx, ecx
call fcn.18009eb4c
jmp 0x180036864
mov ebx, r14d
mov ecx, dword [0x1800fa59c]
test ecx, ecx
je 0x180036864
mov r8, qword [0x1800fa590]
mov rax, r8
nop dword [rax]
cmp rdi, qword [rax]
je 0x1800367d4
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800367c0
jmp 0x180036864
cmp ebx, 0xffffffff
je 0x180036864
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
je 0x180036864
mov r8d, r12d
mov edx, ebx
lea rcx, [rbp - 0x58]
call fcn.18009e690
test eax, eax
jne 0x180036864
xor edx, edx
mov ecx, ebx
call fcn.18009ea3c
mov r15, qword [rbp - 0x58]
test r15, r15
je 0x180036864
mov eax, dword [rbp - 0x4c]
test eax, eax
je 0x180036852
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 0x180036848
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 0x180036820
mov r8, r15
xor edx, edx
mov rcx, qword [0x1800f47c8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, r14d
xchg dword [0x1800f47c0], eax
mov rcx, qword [0x1800f4ae8]
call fcn.18009ee9c
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x120]
call sub.VCRUNTIME140.dll_memset
lea rsi, [0x1800b4070]
mov qword [rbp + 0x120], rsi
lea rdi, [0x1800b3ef8]
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, [0x180032200]
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, [0x1800fa0f0]
call fcn.180043790
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 0x180036a60
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.1800346e0
nop
lea rcx, [rsp + 0x28]
call fcn.18009e0f0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x180036f0b
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180036a56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180036c4b
call fcn.1800a0984
jmp 0x180036f0b
lea rdx, str.Creating_Hook__Offset:
lea rcx, [rbp + 0x30]
call fcn.180043790
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.180043790
mov rcx, rax
lea r15, [0x1800fa110]
mov rdx, r15
call fcn.180043790
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 0x180036afe
mov rax, qword [rbp + 0x78]
mov rbx, qword [rax]
test rbx, rbx
je 0x180036afe
mov rax, qword [rbp + 0x58]
mov r9, qword [rax]
cmp rbx, qword [rbp + 0xa0]
cmovb rbx, qword [rbp + 0xa0]
jmp 0x180036b23
test cl, 4
jne 0x180036b5d
mov rax, qword [rbp + 0x70]
mov rcx, qword [rax]
test rcx, rcx
je 0x180036b5d
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 0x180036b5d
lea rcx, [rsp + 0x48]
cmp rbx, 0xf
ja 0x180036b54
mov qword [rsp + 0x58], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + rbx + 0x48], 0
jmp 0x180036b5d
mov rdx, rbx
call fcn.180044a60
nop
lea rcx, [rsp + 0x48]
call fcn.18009e0f0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x180036ba5
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180036ba0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180036c4b
call fcn.1800a0984
mov rcx, qword [0x1800f4588]
add rcx, qword [rbp]
mov qword [0x1800f4ae8], rcx
cmp byte [0x1800f485a], 0
jne 0x180036bd0
lea r8, [0x1800fa258]
lea rdx, [0x180036560]
jmp 0x180036bde
lea r8, [0x1800fa350]
lea rdx, [0x1800365f0]
call fcn.18009ec50
test eax, eax
jne 0x180036f0b
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.1800346e0
nop
lea rcx, [rbp - 0x38]
call fcn.18009e0f0
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x180036c57
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180036c52
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180036c52
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800a0984
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 0x180036c72
mov rdx, r15
lea rcx, [rsp + 0x68]
call fcn.1800346e0
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 0x180036cc7
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 0x180036cda
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 [0x1800f48d8], xmm0
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x180036d21
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180036d1c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180036d1c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800a0984
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
inc rdi
cmp byte [r15 + rdi], 0
jne 0x180036d30
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x78]
call fcn.1800346e0
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 0x180036d8b
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 0x180036d9e
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 [0x1800f48dc], eax
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x180036de2
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180036ddd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180036ddd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800a0984
mov rdi, qword [0x1800f4588]
add rdi, qword [rbp]
mov rbx, r14
xor eax, eax
lock cmpxchg dword [0x1800f47c0], r12d
je 0x180036e23
nop dword [rax]
cmp rbx, 0x20
jae 0x180036e0a
xor ecx, ecx
jmp 0x180036e0d
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800f47c0], r12d
jne 0x180036e00
cmp qword [0x1800f47c8], 0
je 0x180036f04
test rdi, rdi
jne 0x180036e43
mov ecx, r12d
call fcn.18009eb4c
jmp 0x180036f04
mov ebx, r14d
mov ecx, dword [0x1800fa59c]
test ecx, ecx
je 0x180036f04
mov r8, qword [0x1800fa590]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x180036e74
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180036e60
jmp 0x180036f04
cmp ebx, 0xffffffff
je 0x180036f04
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x180036f04
mov r8d, r12d
mov edx, ebx
lea rcx, [rbp - 0x48]
call fcn.18009e690
test eax, eax
jne 0x180036f04
mov edx, r12d
mov ecx, ebx
call fcn.18009ea3c
mov r15, qword [rbp - 0x48]
test r15, r15
je 0x180036f04
mov eax, dword [rbp - 0x3c]
test eax, eax
je 0x180036ef2
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 0x180036ee8
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 0x180036ec0
mov r8, r15
xor edx, edx
mov rcx, qword [0x1800f47c8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
xchg dword [0x1800f47c0], 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.1800424b0
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.1800424b0
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.1800a04e0
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