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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov rax, qword [0x1404c39e8]
xor rax, rsp
mov qword [rbp], rax
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x58], r8
mov dword [rsp + 0x50], edx
mov rbx, rcx
lea r12, [rcx + 0x28]
mov r13, r12
mov r15d, 1
xor edi, edi
nop word [rax + rax]
mov eax, r15d
lock cmpxchg dword [rbx + 0x58], edi
jne 0x14017f932
lea r14, [rbx + 0x60]
mov qword [rsp + 0x60], r14
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov sil, 1
mov byte [rsp + 0x68], sil
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
mov rax, qword [rbx + 0x90]
test rax, rax
je 0x14017f759
mov qword [rbp - 0x38], rax
mov rax, qword [rbx + 0x98]
mov qword [rbp - 0x30], rax
mov qword [rbx + 0x90], rdi
mov qword [rbx + 0x98], rdi
mov rdi, qword [rbx + 0x88]
test rdi, rdi
je 0x14017f786
nop word [rax + rax]
mov rax, qword [rdi]
lea rdx, [rbp - 0x38]
mov rcx, rdi
call qword [rax + 0x20]
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x14017f770
mov rdi, qword [rbp - 0x38]
test rdi, rdi
je 0x14017f85f
mov rdx, rdi
mov rsi, rdi
xor r12d, r12d
nop dword [rax]
mov rax, qword [rsi + 0x20]
mov qword [rbp - 0x38], rax
mov rcx, qword [rbp - 0x30]
test rax, rax
cmove rcx, r12
mov qword [rbp - 0x30], rcx
mov qword [rdx + 0x20], r12
mov dword [rdi + 0x30], r15d
mov r9, rdi
xor r8d, r8d
xor edx, edx
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x14017f83f
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rdi + 0x20], r12
mov rax, qword [rbx + 0x98]
test rax, rax
je 0x14017f7f4
mov qword [rax + 0x20], rdi
jmp 0x14017f7fb
mov qword [rbx + 0x90], rdi
mov qword [rbx + 0x98], rsi
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x14017f830
test rsi, rsi
je 0x14017f816
mov qword [rsi + 0x20], rax
jmp 0x14017f81d
mov qword [rbx + 0x90], rax
mov rax, qword [rbp - 0x30]
mov qword [rbx + 0x98], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
mov eax, r15d
xchg dword [rbx + 0x58], eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, qword [rbp - 0x38]
mov rdx, rdi
mov rsi, rdi
test rdi, rdi
jne 0x14017f7a0
mov r12, r13
movzx esi, byte [rsp + 0x68]
mov r14, qword [rsp + 0x60]
cmp qword [rbx + 0x48], 0
je 0x14017f8cf
mov ecx, 0x11e1a300
mov rdi, qword [rbx + 0x88]
test rdi, rdi
je 0x14017f8cf
nop word [rax + rax]
mov rax, qword [rdi]
mov edx, ecx
mov rcx, rdi
call qword [rax + 0x18]
mov ecx, eax
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x14017f880
cmp eax, 0x11e1a300
jge 0x14017f8d1
neg ecx
movsxd rax, ecx
lea rcx, [rax + rax*4]
add rcx, rcx
mov qword [rbp - 8], rcx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, 0x493e0
lea rdx, [rbp - 8]
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_SetWaitableTimer]
jmp 0x14017f8d1
xor edi, edi
mov rdx, qword [rbp - 0x38]
test rdx, rdx
je 0x14017f924
mov r8, rdx
mov rax, rdx
mov rax, qword [rax + 0x20]
mov qword [rbp - 0x38], rax
mov rcx, qword [rbp - 0x30]
test rax, rax
cmove rcx, rdi
mov qword [rbp - 0x30], rcx
mov qword [r8 + 0x20], rdi
mov rax, qword [rdx + 0x28]
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rdi
xor r9d, r9d
lea r8, [rbp - 0x60]
xor ecx, ecx
call rax
mov rdx, qword [rbp - 0x38]
mov r8, rdx
mov rax, rdx
test rdx, rdx
jne 0x14017f8e0
test sil, sil
je 0x14017f932
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rbp - 0x40], edi
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x48], rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rbx + 0x40]
cmp dword [rsp + 0x50], eax
cmovb eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
lea r9, [rbp - 0x48]
lea r8, [rbp - 0x28]
lea rdx, [rbp - 0x40]
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rdi, qword [rbp - 0x48]
test rdi, rdi
je 0x14017fb0c
mov dword [rbp - 0x1c], 0
mov rdx, qword [0x1404bb158]
movabs r8, 0x4d54ee85da812030
add rdx, r8
cmp rdx, 1
jbe 0x14017f9c6
mov rcx, qword [0x1404bb150]
mov rax, qword [rcx + 0x30]
mov edx, esi
lea rcx, [0x1404bb150]
call rax
movabs r8, 0x4d54ee85da812030
jmp 0x14017f9cb
test esi, esi
setne al
movzx eax, al
add rax, 2
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x20], esi
lea rcx, [0x1404bb150]
mov qword [rbp - 0x18], rcx
cmp qword [rbp - 0x28], 2
jne 0x14017fa4b
mov rsi, qword [rdi]
mov r14d, dword [rdi + 0x10]
mov dword [rsp + 0x74], 0
mov rax, qword [rsi + 8]
add rax, r8
cmp rax, 1
jbe 0x14017fa15
mov rax, qword [rsi]
mov edx, r14d
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x14017fa1b
test r14d, r14d
setne al
movzx eax, al
add rax, 2
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x78], rsi
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rbp - 0x20], xmm0
movsd xmm1, qword [rbp - 0x80]
movsd qword [rbp - 0x10], xmm1
mov eax, dword [rdi + 0x14]
mov dword [rbp - 0x40], eax
jmp 0x14017fa95
mov qword [rdi], rcx
cmp qword [rbp - 0x10], 1
je 0x14017fa5a
mov eax, dword [rbp - 0x20]
jmp 0x14017fa8c
mov rcx, qword [rbp - 0x18]
movabs rax, 0x4800144005b3
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul eax, eax, 0x1ffff7
sub ecx, eax
imul eax, ecx, 0x3e8
add eax, dword [rbp - 0x20]
mov dword [rdi + 0x10], eax
mov eax, dword [rbp - 0x40]
mov dword [rdi + 0x14], eax
xor eax, eax
lock cmpxchg dword [rdi + 0x30], r15d
cmp eax, 1
jne 0x14017f6f5
mov qword [rsp + 0x50], rbx
mov r9d, dword [rbp - 0x40]
mov rax, qword [rdi + 0x28]
lea r8, [rbp - 0x20]
mov rdx, rdi
mov rcx, rbx
call rax
mov rcx, qword [rsp + 0x58]
call fcn.1401a0f80
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x30]
movups xmmword [rax], xmm0
movsd xmm0, qword [rsp + 0x48]
movsd qword [rax + 0x10], xmm0
mov edx, 0xffffffff
lock xadd dword [rbx + 0x30], edx
cmp edx, 1
jne 0x14017fb04
mov rcx, rbx
call fcn.1401a70c0
mov rax, r15
jmp 0x14017fc79
test r14d, r14d
jne 0x14017fb36
cmp esi, 0x102
jne 0x14017fbc0
cmp dword [rsp + 0x50], 0xffffffff
je 0x14017f6f5
mov qword [rsp + 0x48], 0
jmp 0x14017fc61
cmp qword [rbp - 0x28], 1
mov edi, 0
je 0x14017f700
mov eax, edi
xchg dword [rbx + 0x38], eax
mov eax, edi
lock xadd dword [rbx + 0x34], eax
test eax, eax
je 0x14017f700
xchg dword [rbx + 0x38], r15d
test r15d, r15d
jne 0x14017fc5c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x14017fc5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x3c], edi
movabs rdx, 0x4d54ee85da812030
add rdx, qword [0x1404bb158]
lea r14, [0x1404bb150]
cmp rdx, 1
jbe 0x14017fc28
mov rcx, qword [0x1404bb150]
mov r8, qword [rcx + 0x30]
mov edx, eax
mov rcx, r14
call r8
jmp 0x14017fc2d
mov dword [rbp - 0x74], 0
mov rcx, qword [0x1404bb158]
movabs rdx, 0x4d54ee85da812030
add rcx, rdx
lea r14, [0x1404bb150]
cmp rcx, 1
jbe 0x14017fbf9
mov rax, qword [0x1404bb150]
mov edx, esi
mov rcx, r14
call qword [rax + 0x30]
jmp 0x14017fbfe
test esi, esi
setne al
movzx eax, al
add rax, 2
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x78], esi
mov qword [rbp - 0x70], r14
movups xmm0, xmmword [rbp - 0x78]
mov rax, qword [rsp + 0x30]
movups xmmword [rax], xmm0
movsd xmm1, qword [rbp - 0x68]
movsd qword [rax + 0x10], xmm1
jmp 0x14017fc77
test ebx, ebx
setne al
movzx eax, al
add rax, 2
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x40], r14
movups xmm0, xmmword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
movups xmmword [rax], xmm0
movsd xmm1, qword [rsp + 0x48]
movsd qword [rax + 0x10], xmm1
jmp 0x14017fc77
mov qword [rsp + 0x48], rdi
mov rax, qword [rsp + 0x30]
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movsd xmm0, qword [rsp + 0x48]
movsd qword [rax + 0x10], xmm0
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140382da0
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret