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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov eax, dword [rdx + 0x14]
xor r12d, r12d
mov rsi, qword [rdx + 0x50]
mov rdi, rdx
mov r14, qword [rdx + 0x28]
mov rbp, r8
mov edx, dword [rdx + 0x10]
mov r13, rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x78], rsi
cmp eax, 2
je 0x140005cd6
cmp dword [r14 + 0x94], 2
jne 0x140005cd6
cmp qword [r14 + 0xa0], r12
jne 0x140005cd6
lock inc qword [0x140045268]
jmp 0x140005f90
cmp dword [rdi + 0x68], 1
jne 0x140005cee
cmp eax, 2
je 0x140005cee
mov rdx, rdi
call fcn.1400061a8
jmp 0x140005f90
cmp edx, 8
jae 0x140005f90
mov rax, qword [rcx + 0x30]
mov qword [rsp + 0xe8], rax
call fcn.140022610
cmp dword [rdi + 0x14], 1
mov r15, rax
jne 0x140005db4
mov rsi, qword [rax + 0x28]
and qword [rsp + 0x80], r12
and qword [rsp + 0x88], r12
mov qword [rsp + 0x78], rsi
test rsi, rsi
jne 0x140005d40
lock inc qword [0x140045250]
jmp 0x140005f90
movsxd rcx, dword [rsi + 0xc]
cmp ecx, 0x29
ja 0x140005d59
movabs rdx, 0x20bd7f00000
bt rdx, rcx
jb 0x140005d62
cmp ecx, 0x71
jne 0x140005f90
lea rdx, [rsp + 0x58]
call fcn.140003194
movzx eax, byte [rsp + 0x58]
lea r8, [rdi + 0x44]
mov dword [rdi + 0x64], eax
lea rdx, [rsp + 0x80]
mov eax, dword [rsi + 0x20]
mov dword [rdi + 0x60], eax
mov eax, dword [rsp + 0x88]
mov ecx, dword [r15]
add ecx, ecx
xor ecx, eax
and ecx, 0x3e
xor eax, ecx
mov rcx, r13
mov dword [rsp + 0x88], eax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x90], rax
call fcn.140008e10
cmp dword [rsp + 0x30], 2
je 0x140005e44
mov ecx, dword [r14 + 0x94]
sub ecx, 1
je 0x140005e1e
cmp ecx, 1
je 0x140005ddd
lock inc qword [0x140045220]
jmp 0x140005f90
mov rcx, qword [r14 + 0xa0]
test byte [rcx + 0xa], 5
je 0x140005df8
mov r12, qword [rcx + 0x18]
mov rdx, qword [rsp + 0xe8]
jmp 0x140005e2d
mov eax, dword [0x140041a64]
xor r9d, r9d
or eax, 0x10
xor edx, edx
mov dword [rsp + 0x28], eax
and dword [rsp + 0x20], r12d
lea r8d, [r9 + 1]
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov r12, rax
jmp 0x140005dee
mov r12d, dword [rdi + 0x20]
mov rdx, qword [rsp + 0xe8]
add r12, rdx
mov qword [rsp + 0x50], r12
test r12, r12
jne 0x140005e4c
lock inc qword [0x140045248]
jmp 0x140005f90
mov rdx, qword [rsp + 0xe8]
mov ecx, dword [rsi + 0x94]
sub ecx, 1
je 0x140005ea2
cmp ecx, 1
je 0x140005e69
lock inc qword [0x140045218]
jmp 0x140005f90
mov rcx, qword [rsi + 0xa0]
test byte [rcx + 0xa], 5
je 0x140005e7c
mov r14, qword [rcx + 0x18]
jmp 0x140005ea9
mov eax, dword [0x140041a64]
xor r9d, r9d
or eax, 0x10
xor edx, edx
mov dword [rsp + 0x28], eax
and dword [rsp + 0x20], 0
lea r8d, [r9 + 1]
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov r14, rax
jmp 0x140005ea9
mov r14d, dword [rdi + 0x48]
add r14, rdx
test r14, r14
jne 0x140005ebb
lock inc qword [0x140045238]
jmp 0x140005f90
cmp r12, r14
jne 0x140005ed3
cmp dword [rdi + 0x14], 1
jne 0x140005ed3
lock inc qword [0x140045260]
jmp 0x140005f90
mov eax, dword [rdi + 0x5c]
mov r10d, dword [rsp + 0x30]
mov r15d, dword [rdi + 0x18]
mov dword [rsp + 0x64], eax
mov eax, dword [rdi + 0x34]
mov dword [rsp + 0x60], eax
xor eax, eax
cmp r10d, 2
mov dword [rsp + 0x70], r15d
sete al
lock xadd qword [0x140045228], rax
cmp r10d, 2
jne 0x140005f27
cmp dword [r13 + 0x3a4c], 3
jne 0x140005f27
cmp dword [rsi + 0x28], r10d
jne 0x140005f27
mov rdx, rsi
mov rcx, r13
call fcn.140007f04
mov r10d, dword [rsp + 0x30]
xor r9d, r9d
mov dword [rsp + 0x3c], r9d
test r15d, r15d
je 0x140005f90
xor ecx, ecx
lea r11d, [r9 + 0x14]
xor edx, edx
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x44], r11d
mov r8d, dword [rdi + 0x14]
cmp r8d, 2
jne 0x140005fa3
mov eax, dword [r13 + 0x3a4c]
cmp eax, 3
jne 0x140005f67
mov eax, edx
lea ecx, [r8 + 0x46]
jmp 0x140005f7d
cmp eax, 2
jne 0x140005f76
mov eax, r11d
mov ecx, 0x28
jmp 0x140005f7d
mov eax, ecx
mov ecx, 0x14
add eax, ecx
cmp eax, dword [rsp + 0xf8]
jbe 0x140005fbb
lock inc qword [0x140045240]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea eax, [r9 + 1]
lea rdx, [rax + rax*4]
mov eax, dword [rsp + 0xf8]
shl rdx, 2
cmp rax, rdx
jb 0x140005f88
cmp r8d, 2
jne 0x140006010
mov ecx, dword [r13 + 0x3a4c]
cmp ecx, 3
jne 0x140005fed
lock inc qword [0x140045230]
lea rax, [r9 + r9*8]
mov r15d, dword [rbp + rax*8 + 0x14]
mov r8d, dword [rbp + rax*8 + 0x18]
mov ecx, dword [rbp + rax*8 + 0x20]
mov edx, dword [rbp + rax*8 + 0x24]
jmp 0x140006026
lea rax, [r9 + r9*4]
cmp ecx, 2
jne 0x140006014
mov ecx, dword [rbp + rax*8 + 0x30]
mov r15d, dword [rbp + rax*8 + 0x28]
sub ecx, r15d
mov edx, dword [rbp + rax*8 + 0x34]
mov r8d, dword [rbp + rax*8 + 0x2c]
sub edx, r8d
jmp 0x140006026
lea rax, [r9 + r9*4]
mov edx, dword [rbp + rax*4 + 0x10]
mov ecx, dword [rbp + rax*4 + 0xc]
mov r8d, dword [rbp + rax*4 + 8]
mov r15d, dword [rbp + rax*4 + 4]
mov eax, dword [rsi + 0x10]
mov dword [rsp + 0xe8], r8d
cmp r15d, eax
jae 0x14000603c
cmp r8d, dword [rsi + 0x14]
jb 0x140006040
xor ecx, ecx
xor edx, edx
sub eax, r15d
cmp ecx, eax
cmovb eax, ecx
mov ecx, r15d
mov dword [rsp + 0x5c], eax
mov eax, dword [rsi + 0x14]
sub eax, r8d
cmp edx, eax
cmovb eax, edx
sub ecx, dword [rdi + 0x58]
mov dword [rsp + 0x68], ecx
xor r9d, r9d
mov ecx, r8d
mov dword [rsp + 0x34], eax
sub ecx, dword [rdi + 0x5c]
mov dword [rsp + 0x6c], ecx
mov dword [rsp + 0x38], r9d
test eax, eax
je 0x140006169
mov r13d, dword [rsp + 0x5c]
mov esi, eax
mov ecx, dword [rdi + 0x64]
mov eax, r15d
mov edx, dword [rsp + 0x60]
imul eax, ecx
shr eax, 3
cmp dword [rsp + 0x64], edx
jbe 0x1400060a5
mov edx, esi
sub edx, r9d
dec edx
jmp 0x1400060a8
mov edx, r9d
lea r9d, [r8 + rdx]
imul r9d, dword [rdi + 0x60]
add r9d, eax
cmp r10d, 2
jne 0x1400060f8
xor ebp, ebp
test r13d, r13d
je 0x140006139
mov r12d, r9d
mov eax, dword [rdi + 0x64]
lea rdx, [rdi + 0x40]
mov r8d, eax
imul eax, ebp
shr r8, 3
mov ecx, eax
shr rcx, 3
add rcx, r12
add rcx, r14
call fcn.14002fbc0
inc ebp
cmp ebp, r13d
jb 0x1400060c4
mov r12, qword [rsp + 0x50]
mov esi, dword [rsp + 0x34]
jmp 0x14000612c
add edx, dword [rdi + 0x34]
mov r8d, r13d
add edx, dword [rsp + 0x6c]
imul edx, dword [rdi + 0x38]
imul r8d, ecx
mov ecx, dword [rdi + 0x30]
add ecx, dword [rsp + 0x68]
imul ecx, dword [rdi + 0x3c]
shr r8, 3
shr ecx, 3
add edx, ecx
mov ecx, r9d
add rcx, r14
add rdx, r12
call fcn.14002fbc0
mov r10d, dword [rsp + 0x30]
mov r8d, dword [rsp + 0xe8]
mov r9d, dword [rsp + 0x38]
inc r9d
mov dword [rsp + 0x38], r9d
cmp r9d, esi
jb 0x140006086
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0xf0]
mov r13, qword [rsp + 0xe0]
mov r11d, dword [rsp + 0x44]
mov r9d, dword [rsp + 0x3c]
add r11d, 0x28
mov edx, dword [rsp + 0x40]
inc r9d
mov ecx, dword [rsp + 0x48]
add edx, 0x48
add ecx, 0x14
mov dword [rsp + 0x3c], r9d
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x44], r11d
mov dword [rsp + 0x48], ecx
cmp r9d, dword [rsp + 0x70]
jae 0x140005f90
jmp 0x140005f49