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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r13
sub rsp, 0x30
movsxd rbx, r9d
mov r11d, edx
mov r10, rcx
test rcx, rcx
je 0x14006bb9a
mov eax, edx
sar eax, 0xa
cmp eax, dword [rcx + 0x2c]
jge 0x14006bb9a
movsxd r9, dword [rcx + 0x28]
add r9, rcx
cdqe
movzx ecx, word [r9 + rax*2]
mov eax, edx
sar eax, 4
and eax, 0x3f
add ecx, eax
mov eax, edx
and eax, 0xf
movzx ecx, word [r9 + rcx*2]
lea eax, [rax + rcx*4]
movsxd rcx, dword [r10 + 0x34]
add rcx, r10
movzx r8d, word [rcx + rax*2]
movsxd rcx, dword [r10 + 0x3c]
add rcx, r10
mov edx, dword [rcx + r8*4]
test edx, edx
je 0x14006bb9a
cmp edx, 0x1f0000
jae 0x14006bc57
movsxd rdi, dword [r10 + 0x14]
xor ecx, ecx
movsxd rax, dword [r10 + 0x18]
add rdi, r10
add rax, r10
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov qword [rsp + 0x10], rax
xor r10d, r10d
mov dword [rsp + 0x50], ecx
xor r8d, r8d
mov qword [rsp + 0x28], rbx
xor r13d, r13d
mov qword [rsp], r9
and qword [rsp + 8], rcx
movsxd rax, edx
mov rdx, qword [rsp + 0x10]
lea rsi, [rdi + rax*2]
movzx edi, word [rsi]
lea rdx, [rdx + rax*4]
cmp dword [rdx], 0
mov qword [rsp + 0x18], rdx
je 0x14006bad7
test dword [rdx], 0xc0000000
jne 0x14006bac5
cmp byte [rsp + 0x88], 0
jne 0x14006bac5
lea eax, [r11 - 0xe000]
cmp eax, 0x1900
jb 0x14006bac5
lea eax, [r11 - 0xf0000]
cmp eax, 0x20000
jae 0x14006bad7
test dword [rdx], 0x20000000
jne 0x14006bad7
mov r8d, dword [rdx]
lea r10d, [rcx + 2]
add r10d, r13d
cmp r9, rbx
jge 0x14006baf5
mov rax, qword [rsp + 0x60]
inc ecx
mov dword [rsp + 0x50], ecx
movzx ebx, word [rax + r9*2]
inc r9
mov qword [rsp], r9
jmp 0x14006bb1c
mov rax, qword [rsp + 8]
movsxd rdx, dword [rsp + 0x78]
cmp rax, rdx
jge 0x14006bc31
mov rdx, qword [rsp + 0x70]
inc r13d
movzx ebx, word [rdx + rax*2]
inc rax
mov qword [rsp + 8], rax
xor edx, edx
mov eax, edi
cmp edi, 1
jbe 0x14006bb8d
cmp eax, 4
jle 0x14006bb59
lea r9d, [rdi + rdx]
test r9d, r9d
jns 0x14006bb36
inc r9d
sar r9d, 1
movsxd rax, r9d
movzx ecx, word [rsi + rax*2 + 2]
mov eax, r9d
cmp bx, cx
cmovae eax, edi
cmovae edx, r9d
mov edi, eax
sub eax, edx
cmp eax, 1
jg 0x14006bb25
jmp 0x14006bb85
movsxd rax, edx
cmp bx, word [rsi + rax*2 + 2]
jbe 0x14006bb85
inc edx
cmp edx, edi
jge 0x14006bb73
movsxd rax, edx
cmp bx, word [rsi + rax*2 + 2]
jbe 0x14006bbaa
inc edx
cmp edx, edi
jge 0x14006bb83
movsxd rax, edx
cmp bx, word [rsi + rax*2 + 2]
jbe 0x14006bbaa
inc edx
mov ecx, dword [rsp + 0x50]
mov r9, qword [rsp]
cmp edx, edi
jl 0x14006bbb2
test r10d, r10d
jne 0x14006bc9c
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r13
pop rdi
pop rsi
ret
mov r9, qword [rsp]
mov ecx, dword [rsp + 0x50]
movsxd rax, edx
cmp bx, word [rsi + rax*2 + 2]
jne 0x14006bb91
test edx, edx
js 0x14006bb91
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
movsxd rax, edx
mov rdx, qword [rsp + 0x18]
mov edx, dword [rdx + rax*4 + 4]
cmp edx, 0x1000000
jb 0x14006ba7a
test edx, 0xc0000000
jne 0x14006bc10
cmp byte [rsp + 0x88], 0
jne 0x14006bc10
lea eax, [r11 - 0xe000]
cmp eax, 0x1900
jb 0x14006bc10
lea eax, [r11 - 0xf0000]
cmp eax, 0x20000
jae 0x14006bc21
bt edx, 0x1d
jb 0x14006bc21
lea r10d, [rcx + 2]
mov al, 1
add r10d, r13d
jmp 0x14006bc23
xor eax, eax
test al, al
cmove edx, r8d
mov r8d, edx
jmp 0x14006bb91
cmp byte [rsp + 0x90], 0
jne 0x14006bb91
add ecx, r13d
cmp ecx, 0x13
jg 0x14006bb91
mov eax, 0xfffffffe
sub eax, ecx
jmp 0x14006bb9c
test edx, 0xc0000000
jne 0x14006bc89
cmp byte [rsp + 0x88], 0
jne 0x14006bc89
lea eax, [r11 - 0xe000]
cmp eax, 0x1900
jb 0x14006bc89
lea eax, [r11 - 0xf0000]
cmp eax, 0x20000
jae 0x14006bb9a
bt edx, 0x1d
jb 0x14006bb9a
mov r8d, edx
mov r10d, 2
cmp r8d, 0x80000001
jne 0x14006bcaf
mov eax, 1
jmp 0x14006bb9c
mov rcx, qword [rsp + 0x80]
mov eax, r10d
mov dword [rcx], r8d
jmp 0x14006bb9c