Function at 0x14009dbf8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov qword [rsp + 0x158], 0xfffffffffffffffe
lea rdx, [0x14007bbc4]
lea rcx, [rsp + 0x50]
call fcn.14007b084
movzx eax, byte [rsp + 0x178]
test eax, eax
je 0x14009dcee
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x180]
mov rax, qword [rax]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rsp + 0xc8], rax
jge 0x14009dcbb
mov dword [rsp + 0x24], 1
jmp 0x14009dcc3
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
test eax, eax
jne 0x14009dcd6
mov dword [rsp + 0x28], 1
jmp 0x14009dcde
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
test eax, eax
je 0x14009dcee
xor al, al
jmp 0x14009e183
mov qword [rsp + 0x58], 0
mov byte [rsp + 0x60], 0
movzx eax, byte [rsp + 0x178]
test eax, eax
je 0x14009dd76
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xd0], rax
mov rdx, qword [rsp + 0x180]
mov rcx, qword [rsp + 0xd0]
call fcn.1400965b0
mov byte [rsp + 0xb0], al
lea rax, [rsp + 0xa8]
mov qword [rsp + 0xd8], rax
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x58]
call fcn.14009e18c
nop
lea rcx, [rsp + 0xa8]
call fcn.1400946d8
jmp 0x14009dde3
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x98], rax
mov byte [rsp + 0xa0], 0
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsp + 0xe0]
call fcn.140096550
mov byte [rsp + 0xa0], 1
lea rax, [rsp + 0x98]
mov qword [rsp + 0xe8], rax
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x58]
call fcn.14009e18c
nop
lea rcx, [rsp + 0x98]
call fcn.1400946d8
movzx eax, byte [rsp + 0x60]
test eax, eax
je 0x14009ddf6
mov dword [rsp + 0x2c], 8
jmp 0x14009ddfe
mov dword [rsp + 0x2c], 0xffffffff
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x14009de1d
mov byte [rsp + 0x22], 0
lea rcx, [rsp + 0x58]
call fcn.1400946d8
mov al, byte [rsp + 0x22]
jmp 0x14009e183
mov rax, qword [rsp + 0x170]
add rax, 8
lock inc dword [rax]
mov rax, qword [rsp + 0x188]
xor ecx, ecx
mov qword [rsp + 0x68], rax
mov eax, 1
mov rdx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x68]
lock cmpxchg dword [rdx], ecx
lea rcx, [rsp + 0x58]
call fcn.1400946d8
mov byte [rsp + 0x21], 0
mov byte [rsp + 0x20], 0
xor eax, eax
cmp eax, 1
je 0x14009e123
mov qword [rsp + 0x148], 0
mov dword [rsp + 0x150], 0
mov dword [rsp + 0x154], 0
mov rax, qword [rsp + 0x170]
add rax, 4
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x14009e014
lea rcx, [rsp + 0x148]
call fcn.140091094
movzx eax, byte [rsp + 0x178]
test eax, eax
je 0x14009e00f
lea rdx, [0x14007bbc4]
lea rcx, [rsp + 0xf8]
call fcn.14007b084
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x180]
mov rax, qword [rax]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
cmp qword [rsp + 0x128], rax
jge 0x14009df76
mov dword [rsp + 0x30], 1
jmp 0x14009df7e
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x14009df91
mov dword [rsp + 0x34], 1
jmp 0x14009df99
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
test eax, eax
je 0x14009e00f
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov ecx, 1
mov qword [rsp + 0x70], rax
xor eax, eax
mov rdx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x70]
lock cmpxchg dword [rdx], ecx
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
cmp eax, 1
jne 0x14009dfef
cmp dword [rsp + 0x4c], 0
jne 0x14009dfef
mov dword [rsp + 0x38], 1
jmp 0x14009dff7
mov dword [rsp + 0x38], 0
mov al, byte [rsp + 0x38]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
test eax, eax
jne 0x14009e00d
jmp 0x14009de8f
jmp 0x14009e014
jmp 0x14009de8f
movzx eax, byte [rsp + 0x178]
test eax, eax
je 0x14009e047
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x14009e047
mov rax, qword [rsp + 0x170]
add rax, 8
lock dec dword [rax]
mov byte [rsp + 0x20], 1
jmp 0x14009e123
mov rax, qword [rsp + 0x170]
add rax, 4
xor ecx, ecx
mov qword [rsp + 0x80], rax
mov eax, 1
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x80]
lock cmpxchg dword [rdx], ecx
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x14009e08b
jmp 0x14009de62
cmp dword [rsp + 0x3c], 1
jne 0x14009e0aa
mov byte [rsp + 0x20], 1
mov rax, qword [rsp + 0x170]
add rax, 8
lock dec dword [rax]
jmp 0x14009e123
mov rax, qword [rsp + 0x170]
add rax, 8
mov ecx, 0xffffffff
lock xadd dword [rax], ecx
dec ecx
mov eax, ecx
inc eax
cmp eax, 1
jne 0x14009e0d4
mov dword [rsp + 0x40], 1
jmp 0x14009e0dc
mov dword [rsp + 0x40], 0
mov al, byte [rsp + 0x40]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14009e11c
mov rax, qword [rsp + 0x170]
add rax, 4
xor ecx, ecx
mov qword [rsp + 0x88], rax
mov eax, 2
mov rdx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x88]
lock cmpxchg dword [rdx], ecx
jmp 0x14009e123
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14009e157
mov rax, qword [rsp + 0x170]
xor ecx, ecx
mov qword [rsp + 0x90], rax
mov eax, 1
mov rdx, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x90]
lock cmpxchg dword [rdx], ecx
mov rcx, qword [rsp + 0x188]
call fcn.140096550
movzx eax, byte [rsp + 0x21]
test eax, eax
jne 0x14009e177
mov dword [rsp + 0x44], 1
jmp 0x14009e17f
mov dword [rsp + 0x44], 0
mov al, byte [rsp + 0x44]
add rsp, 0x168
ret