Function at 0x140047740
Capabilities:
Create thread
Enumerate threads
Resume thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x120
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
mov rdi, r9
xor r15d, r15d
mov dword [rbp + 0x60], r15d
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__msize]
mov dword [rsp + 0x30], eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r15
mov r13d, 2
mov dword [rbp + 0x60], r13d
mov ebx, r15d
movabs rsi, 0x7fffffffffff
nop word [rax + rax]
mov r9d, Ordinal_50
lea r8, [rbp - 0x70]
mov rdx, rbx
mov rcx, qword [0x1401b3b50]
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x14004783c
cmp dword [rbp - 0x50], 0x1000
jne 0x14004783c
mov eax, dword [rbp - 0x4c]
bt eax, 8
jb 0x14004783c
cmp eax, 1
je 0x14004783c
test dword [rbp - 0x60], 0x200
jne 0x14004783c
test al, 0x4c
je 0x14004783c
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x58]
mov qword [rbp - 0x28], rax
mov rdx, qword [rsp + 0x68]
cmp rdx, qword [rsp + 0x70]
je 0x14004782e
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rdx], xmm0
add qword [rsp + 0x68], 0x10
jmp 0x14004783c
lea r8, [rbp - 0x30]
lea rcx, [rsp + 0x60]
call fcn.14007ab40
add rbx, qword [rbp - 0x58]
cmp rbx, rsi
jb 0x1400477c0
cmp dword [0x1401b3b58], 0
jne 0x140047ab6
call qword [sym.imp.MSVCP140.dll__Thrd_hardware_concurrency]
mov r12d, eax
mov rax, qword [rsp + 0x68]
sub rax, qword [rsp + 0x60]
sar rax, 4
dec rax
add rax, r12
xor edx, edx
div r12
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x30]
mov qword [rbp - 0x70], rax
lea rax, [rsp + 0x60]
mov qword [rbp - 0x68], rax
lea rax, [0x1401b3b48]
mov qword [rbp - 0x60], rax
lea rax, [rbp + 0x68]
mov qword [rbp - 0x58], rax
lea rax, [rsp + 0x30]
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x70]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov rsi, r15
mov qword [rsp + 0x48], r15
mov qword [rbp - 0x80], r12
test r12, r12
je 0x1400479d2
movabs rax, 0xfffffffffffffff
cmp r12, rax
ja 0x140047c29
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x38]
call fcn.140074ae0
mov rbx, r15
mov qword [rbp - 0x80], rbx
mov r14, r15
movsd xmm6, qword [rbp - 0x40]
movups xmm7, xmmword [rbp - 0x50]
movups xmm8, xmmword [rbp - 0x60]
movups xmm9, xmmword [rbp - 0x70]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
nop dword [rax + rax]
cmp rdi, rsi
je 0x140047989
mov ecx, 0x40
call fcn.1400e70bc
mov qword [rax], rbx
movups xmmword [rax + 8], xmm9
movups xmmword [rax + 0x18], xmm8
movups xmmword [rax + 0x28], xmm7
movsd qword [rax + 0x38], xmm6
mov qword [rbp - 0x80], rax
or r13d, 1
mov dword [rbp + 0x60], r13d
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140086130]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x1400479c3
add rdi, 0x10
mov qword [rsp + 0x40], rdi
jmp 0x1400479ab
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x70]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140079ce0
mov r14, r15
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
lea rbx, [r14 + 1]
mov r14, rbx
mov qword [rbp - 0x80], rbx
cmp rbx, r12
jae 0x1400479db
mov r15, rbx
jmp 0x140047920
mov dword [rbx], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov qword [rbp - 0x80], r15
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x38]
mov rbx, r14
cmp r14, rdi
je 0x140047a2f
nop dword [rax + rax]
cmp dword [rbx + 8], 0
je 0x140047a96
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x140047a8a
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x80], xmm0
xor edx, edx
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x140047a7e
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp rbx, rdi
jne 0x1400479f0
test r14, r14
je 0x140047b13
mov rax, r14
cmp r14, rdi
je 0x140047a4f
cmp dword [rax + 8], 0
jne 0x140047aa2
add rax, 0x10
cmp rax, rdi
jne 0x140047a40
sub rsi, r14
and rsi, 0xfffffffffffffff0
mov rax, r14
cmp rsi, 0x1000
jb 0x140047aa9
add rsi, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140047aa9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov rdx, rsi
mov rcx, r14
call fcn.1400e7410
jmp 0x140047b13
lea rax, [0x1401b3b48]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rdi
movups xmm0, xmmword [rsp + 0x38]
movaps xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rsp + 0x48]
movaps xmmword [rbp - 0x60], xmm1
movsd xmm0, qword [rsp + 0x58]
movsd qword [rbp - 0x50], xmm0
lea r9, [rbp - 0x70]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
call fcn.140073700
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x140047bb7
call fcn.140047210
cmp qword [0x1401b3b50], 0
je 0x140047bb7
mov dword [rsp + 0x38], Ordinal_32
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140047bb7
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140047bad
mov ecx, dword [0x1401b3b48]
cmp dword [rsp + 0x44], ecx
jne 0x140047b9b
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x140047b9b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140047b63
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140047bfa
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047bf5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140047bf5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e7410
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140071bf0
nop
int3