Function at 0x14009ac80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rbp - 0x10], rdx
mov rsi, qword [rcx + 0x38]
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
test rsi, rsi
je 0x14009ad09
mov qword [rsp + 0x30], rsi
mov eax, 1
lock xadd dword [rsi], eax
inc eax
cmp eax, 1
jle 0x14009acf7
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
cmp dword [rsi + 4], ecx
je 0x14009ad06
mov edx, 0xffffffff
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
mov dword [rsi + 4], ecx
inc dword [rsi + 8]
xor r15d, r15d
cmp qword [rdi + 0x30], r15
jne 0x14009ad6f
lea ecx, [r15 + 0x10]
call fcn.14014f310
mov rsi, rax
mov qword [rsp + 0x40], rax
lea ecx, [r15 + 0x10]
call fcn.14014f310
mov qword [rax], rdi
lea rcx, [0x14009c420]
mov qword [rax + 8], rcx
mov qword [rbp + 0x10], rax
lea r14, [rsi + 8]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x14000f6a0]
xor edx, edx
xor ecx, ecx
call fcn.14016b4dc
mov qword [rsi], rax
test rax, rax
je 0x14009b17d
mov qword [rdi + 0x30], rsi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 8], xmm0
mov qword [rbp + 8], rax
call fcn.140061f60
mov rcx, rax
xor r8d, r8d
lea rdx, [rbp - 8]
call fcn.140065690
nop
mov r14, qword [rbp]
mov rsi, qword [rbp - 8]
cmp rsi, r14
je 0x14009ae04
add rsi, 0x64
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdi + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x16
lea r8d, [r9 - 0x14]
mov edx, dword [rsi]
mov rcx, qword [0x14023d248]
call qword [0x14023d380]
mov rax, qword [rdi + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x16
lea r8d, [r9 - 0x14]
mov edx, dword [rsi]
mov rcx, qword [0x14023d248]
call qword [0x14023d298]
lea rsi, [rsi + 0xa0]
lea rax, [rsi - 0x64]
cmp rax, r14
jne 0x14009adb0
mov dword [rbp - 0x18], 2
mov rax, qword [rbx + 0xb0]
lea r9, [rbp - 0x18]
mov r8d, dword [rbx + 0xac]
mov edx, dword [rax]
mov rcx, qword [0x14023d248]
call qword [0x14023d278]
mov ecx, dword [rbp - 0x18]
call fcn.140004ed0
mov r8, rax
lea rdx, str.Initialize_PFPA__state:__s
mov ecx, 7
call fcn.140083970
movsxd rax, dword [rbp - 0x18]
cmp eax, 0xd
ja case.0x14009ae66.1
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x9b18c]
add rcx, rdx
jmp rcx
lea rcx, [rbp - 8]
call fcn.14002e2e0
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14009aeb2
add dword [rcx + 8], 0xffffffff
mov edx, dword [rcx + 8]
jne 0x14009ae89
mov dword [rcx + 4], r15d
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
je 0x14009aeb2
test edx, edx
jne 0x14009aeb2
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
nop
lea rcx, [rbx + 0x48]
call fcn.14000fbc0
nop
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14009aecc
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x14009aedb
mov rdx, qword [rcx]
call qword [rdx + 8]
nop
mov eax, 1
jmp 0x14009b15a
lea rcx, [rbp - 8]
call fcn.14002e2e0
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14009af2f
add dword [rcx + 8], 0xffffffff
mov edx, dword [rcx + 8]
jne 0x14009af06
mov dword [rcx + 4], r15d
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
je 0x14009af2f
test edx, edx
jne 0x14009af2f
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
nop
lea rcx, [rbx + 0x48]
call fcn.14000fbc0
nop
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14009af49
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x14009af58
mov rdx, qword [rcx]
call qword [rdx + 8]
nop
mov eax, 2
jmp 0x14009b15a
lea rcx, [rbp - 8]
call fcn.14002e2e0
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14009afac
add dword [rcx + 8], 0xffffffff
mov edx, dword [rcx + 8]
jne 0x14009af83
mov dword [rcx + 4], r15d
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
je 0x14009afac
test edx, edx
jne 0x14009afac
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
nop
lea rcx, [rbx + 0x48]
call fcn.14000fbc0
nop
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14009afc6
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x14009afd5
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov eax, 3
jmp 0x14009b15a
lea rcx, [rbp - 8]
call fcn.14002e2e0
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14009b029
add dword [rcx + 8], 0xffffffff
mov edx, dword [rcx + 8]
jne 0x14009b000
mov dword [rcx + 4], r15d
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
je 0x14009b029
test edx, edx
jne 0x14009b029
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
nop
lea rcx, [rbx + 0x48]
call fcn.14000fbc0
nop
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14009b043
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x14009b052
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov eax, 5
jmp 0x14009b15a
lea rdx, [rbx + 0x48]
lea rcx, [rsp + 0x48]
call fcn.14000fad0
mov rdx, rax
mov rcx, rdi
call fcn.14009bf70
mov rax, qword [rbx + 0x40]
mov qword [rdi + 0x120], rax
mov rax, qword [rbx + 0x38]
mov qword [rdi + 0x128], rax
mov rcx, qword [rbx]
mov rsi, qword [rdi + 0x130]
cmp rsi, rcx
je 0x14009b0b9
mov qword [rdi + 0x130], rcx
test rcx, rcx
je 0x14009b0ab
mov rax, qword [rcx]
call qword [rax]
test rsi, rsi
je 0x14009b0b9
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
mov byte [rdi + 0x28], 0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi + 0x64], xmm0
mov qword [rdi + 0x74], rax
mov word [rdi + 0x60], ax
mov byte [rdi + 0x14c], 1
mov eax, r15d
xchg dword [0x14023d478], eax
mov qword [rdi + 0x150], r15
lea rcx, [rbp - 8]
call fcn.14002e2e0
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14009b12f
add dword [rcx + 8], 0xffffffff
mov edx, dword [rcx + 8]
jne 0x14009b106
mov dword [rcx + 4], r15d
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
je 0x14009b12f
test edx, edx
jne 0x14009b12f
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
nop
lea rcx, [rbx + 0x48]
call fcn.14000fbc0
nop
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14009b149
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x14009b158
mov rax, qword [rcx]
call qword [rax + 8]
nop
xor eax, eax
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.14014f2f0
mov rbx, qword [rsp + 0x160]
add rsp, 0x120
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov dword [r14], r15d
mov ecx, 6
call fcn.140129a18
int3