Function at 0x1400aa1b0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1401e0fc0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rbx, rcx
lea rcx, [rbp + 0x17]
call fcn.14002a764
mov esi, 1
cmp eax, esi
jl 0x1400aa20e
cmp eax, 2
jle 0x1400aa404
cmp eax, 3
je 0x1400aa3fc
cmp eax, 4
je 0x1400aa3f4
mov byte [rbp - 0x11], sil
mov rax, qword [rbp + 0x17]
mov qword [rbp - 9], rax
lea rcx, [rbp + 0x1f]
call fcn.14002a5d4
cmp eax, esi
jl 0x1400aa242
cmp eax, 2
jle 0x1400aa41f
cmp eax, 3
je 0x1400aa417
cmp eax, 4
je 0x1400aa40f
mov byte [rbp - 1], sil
mov rcx, qword [rbp + 0x1f]
mov qword [rbp + 7], rcx
mov byte [rbp + 0x27], 0
call fcn.14002a63c
cmp eax, esi
jl 0x1400aa276
cmp eax, 2
jle 0x1400aa43a
cmp eax, 3
je 0x1400aa432
cmp eax, 4
je 0x1400aa42a
lea rax, [0x1401730a0]
mov qword [rbp + 0xf], rax
mov rax, qword [rdi]
and qword [rdi], 0
mov qword [rbp + 0x2f], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r9, [rbp + 0xf]
lea r8, [0x1400ad210]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
mov rcx, rax
neg rcx
sbb edx, edx
not edx
and edx, 4
mov ecx, esi
test rax, rax
cmovne ecx, edx
cmp ecx, esi
jb 0x1400aa30a
cmp ecx, 2
jbe 0x1400aa3e1
cmp ecx, 4
je 0x1400aa3ec
jmp 0x1400aa30a
mov rbx, qword [rbp + 0x1f]
mov rcx, qword [rbp + 0x17]
lea rdx, [rbx + 8]
or dword [rbx + 0x18], 0xffffffff
dec dword [rbx + 0x1c]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x1400b5e20.0]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbx + 0x18], eax
add dword [rbx + 0x1c], esi
cmp byte [rbp + 0x27], 0
je 0x1400aa2df
mov rbx, qword [rbp + 0x2f]
test rbx, rbx
je 0x1400aa366
lea rcx, [rbx + 0x78]
call fcn.14000b1f0
lea rcx, [rbx + 0x58]
call fcn.140006970
lea rdi, [rbx + 0x18]
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1400aa350
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x1400b5e20.0]
and qword [rdi + 0x38], 0
mov rcx, rbx
call fcn.1400a5080
mov edx, 0x118
mov rcx, rbx
call fcn.140110004
nop
mov rdi, qword [rbp + 0x17]
mov rbx, qword [rbp + 0x1f]
sub dword [rbx + 0x1c], 1
jne 0x1400aa389
or dword [rbx + 0x18], 0xffffffff
lea rcx, [rbx + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400b5e20.0]
lea rcx, [rbx + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400b5e20.0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__free_base]
test rdi, rdi
je 0x1400aa3c2
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x20]
call qword [case.0x1400b5e20.0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__free_base]
nop
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14010fb20
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
mov ecx, 6
call fcn.14002a524
int3
mov ecx, esi
call fcn.14002a524
nop
mov ecx, esi
call fcn.14002a524
int3
xor ecx, ecx
call fcn.14002a524
int3
mov ecx, 6
call fcn.14002a524
nop
mov ecx, esi
call fcn.14002a524
int3
xor ecx, ecx
call fcn.14002a524
int3
mov ecx, 6
call fcn.14002a524
nop
mov ecx, esi
call fcn.14002a524
int3
xor ecx, ecx
call fcn.14002a524
int3
mov ecx, 6
call fcn.14002a524
int3