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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x148
movdqa xmmword [rsp + 0x130], xmm7
movdqa xmmword [rsp + 0x120], xmm6
mov r12, rdx
mov rax, qword [rcx]
mov rdx, qword [rax]
mov rax, qword [rdx]
mov edi, 7
cmp byte [rax + 0x61], 0
jne 0x14006df40
mov rsi, r8
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], r9
mov rbx, qword [rcx + 0x18]
mov eax, dword [rbx + 0x28]
mov dword [rsp + 0x50], eax
test al, 0x20
mov eax, 0x1bf
mov edx, 0x18
cmove edx, eax
mov eax, edx
and eax, 0xffffff83
test byte [r8 + 0x64], 4
cmove eax, edx
movzx edx, word [rbx + 0x2e]
mov word [rsp + 0x5a], dx
movzx edx, word [rbx + 0x2c]
mov word [rsp + 0x36], dx
mov rdx, qword [rbx]
mov qword [rsp + 0xa0], rdx
mov r14, qword [rbx + 0x16]
mov r9d, r14d
shr r9d, 0x10
mov r8d, dword [r12 + 0x44]
mov qword [rsp + 0x78], rcx
mov rdx, qword [rcx + 8]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0xb0]
mov dword [rsp + 0x54], r9d
call fcn.14006df66
mov r13, rax
mov word [rbx + 0x12], 0
mov rax, qword [rsi + 0x10]
movzx eax, word [rax]
xor edi, edi
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x98], rax
cmp ax, 0xb
jl 0x14006d843
mov rcx, qword [rsp + 0x98]
call fcn.140051261
add eax, 0xffffffdf
mov dword [rsp + 0x4c], eax
movzx eax, word [rsp + 0x36]
mov qword [rsp + 0x90], rax
movq xmm6, r14
test r13, r13
mov r14d, dword [rsp + 0x54]
je 0x14006de40
mov ebp, r14d
mov rax, qword [rsp + 0x90]
inc eax
mov dword [rsp + 0x84], eax
movsx eax, word [rsp + 0x4c]
mov qword [rsp + 0xa8], rax
movd dword [rsp + 0x5c], xmm6
pextrw eax, xmm6, 3
mov dword [rsp + 0x80], eax
movdqa xmm7, xmm6
psrlq xmm7, 0x10
xor eax, eax
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x60], r12
movzx r15d, word [r13 + 0x14]
cmp r15d, 0x100
jne 0x14006d8f4
mov rax, qword [rsi + 8]
movzx eax, word [rax + rbp*2]
test ax, ax
js 0x14006d8e0
mov rcx, qword [rsi + 0x18]
mov rcx, qword [rcx + 8]
shl rax, 5
movzx ecx, byte [rcx + rax + 0x18]
jmp 0x14006d8ea
xor ecx, ecx
cmp eax, 0xffff
sete cl
xor edi, edi
test ecx, ecx
jne 0x14006de0c
mov rax, qword [rbx + 8]
xor edi, edi
test qword [r13 + 0x30], rax
jne 0x14006de0c
test byte [r13 + 0x13], 1
je 0x14006d916
cmp r15w, 0x10
je 0x14006de0c
test byte [r12 + 0x3c], 8
je 0x14006d92c
mov rax, qword [r13]
test byte [rax + 4], 1
je 0x14006de0c
cmp byte [rsi + 0x62], 0
je 0x14006d942
movzx ecx, word [rsi + 0x5e]
dec ecx
mov eax, 2
cmp ecx, r14d
je 0x14006d947
mov eax, 1
mov rcx, qword [rsp + 0x78]
or dword [rcx + 0x28], eax
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x28], eax
movd dword [rbx + 0x18], xmm7
mov eax, dword [rsp + 0x80]
mov word [rbx + 0x1c], ax
movzx eax, word [rsp + 0x36]
mov word [rbx + 0x2c], ax
mov rcx, qword [rsp + 0x70]
mov rdx, rbx
mov r8d, dword [rsp + 0x84]
call fcn.14006c240
xor edi, edi
test eax, eax
jne 0x14006de40
mov rax, qword [rbx + 0x38]
movzx ecx, word [rbx + 0x2c]
lea edx, [rcx + 1]
mov word [rbx + 0x2c], dx
mov qword [rax + rcx*8], r13
mov rax, qword [r13 + 0x30]
or rax, qword [rsp + 0xa0]
mov rcx, qword [rbx + 8]
not rcx
and rcx, rax
mov qword [rbx], rcx
test r15b, 1
jne 0x14006da46
test r15b, 0x82
je 0x14006db08
mov rax, qword [rsi + 8]
movzx ecx, word [rax + rbp*2]
mov eax, dword [rbx + 0x28]
mov edi, eax
or edi, 1
mov dword [rbx + 0x28], edi
cmp cx, 0xffff
je 0x14006da34
xor r12d, r12d
cmp word [rsp + 0x68], 0
jne 0x14006dc3c
test cx, cx
js 0x14006dc3c
movzx ecx, word [rsi + 0x5e]
lea edx, [rcx - 1]
cmp edx, r14d
jne 0x14006dc3c
test byte [rsi + 0x64], 8
jne 0x14006da34
cmp cx, 1
jne 0x14006dc15
cmp byte [rsi + 0x62], 0
je 0x14006dc15
cmp r15w, 2
jne 0x14006dc15
or eax, 0x1001
mov dword [rbx + 0x28], eax
xor r12d, r12d
mov edi, eax
jmp 0x14006dc3c
mov rax, qword [r13]
test byte [rax + 5], 8
jne 0x14006da6f
mov rax, qword [rax + 0x20]
xor r12d, r12d
test rax, rax
je 0x14006daac
movsxd rcx, dword [rax]
test rcx, rcx
je 0x14006daac
call fcn.140051261
movsx r12d, ax
jmp 0x14006daac
movzx ecx, word [rbx + 0x2c]
mov r12d, 0x2e
cmp rcx, 2
mov r10d, 0
jb 0x14006daac
dec ecx
mov rdx, qword [rbx + 0x38]
mov r12d, 0x2e
xor r8d, r8d
mov r9, qword [rdx + r8*8]
test r9, r9
je 0x14006daa4
cmp qword [r9], rax
cmove r12d, r10d
inc r8
cmp rcx, r8
jne 0x14006da94
test byte [rsi + 0x64], 0x80
je 0x14006dafa
mov rax, qword [rsi + 0x10]
movsx r14d, word [rax + rbp*2]
xor edi, edi
mov eax, 0
cmp r12w, 0xb
jl 0x14006dad5
movzx ecx, r12w
call fcn.140051261
add eax, 0xffffffdf
cwde
add eax, r14d
add eax, 0xa
mov rcx, qword [rsp + 0xa8]
add ecx, r12d
cmp eax, ecx
mov r14d, dword [rsp + 0x54]
jge 0x14006dafa
mov r12, qword [rsp + 0x60]
jmp 0x14006de0c
mov edi, dword [rbx + 0x28]
or edi, 4
mov dword [rbx + 0x28], edi
jmp 0x14006dc3c
bt r15d, 8
jb 0x14006db5d
mov eax, dword [rbx + 0x28]
test r15b, 0x24
je 0x14006db6e
or eax, 0x22
mov dword [rbx + 0x28], eax
mov edx, dword [r12 + 0x44]
mov qword [rsp + 0x20], r13
mov rcx, qword [rsp + 0x88]
mov r8, rsi
mov r9d, r14d
call fcn.14006e023
mov word [rbx + 0x1a], ax
test byte [r13 + 0x13], 1
jne 0x14006dbc0
mov edi, dword [rbx + 0x28]
xor r12d, r12d
mov qword [rsp + 0x38], r13
xor eax, eax
mov qword [rsp + 0x40], rax
jmp 0x14006dc3c
mov edi, dword [rbx + 0x28]
or edi, 8
mov dword [rbx + 0x28], edi
xor r12d, r12d
jmp 0x14006dc3c
or eax, 0x12
mov dword [rbx + 0x28], eax
mov edx, dword [r12 + 0x44]
mov qword [rsp + 0x20], r13
mov rcx, qword [rsp + 0x88]
mov r8, rsi
mov r9d, r14d
call fcn.14006e023
mov word [rbx + 0x1c], ax
mov edi, dword [rbx + 0x28]
test dil, 0x20
jne 0x14006dc22
test dil, 2
jne 0x14006de2b
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], r13
xor r12d, r12d
jmp 0x14006dc42
movzx r8d, word [rbx + 0x2c]
inc r8d
mov rcx, qword [rsp + 0x70]
mov rdx, rbx
call fcn.14006c240
test eax, eax
jne 0x14006de40
lea r8, [r13 + 0x40]
mov rax, qword [rbx + 0x38]
movzx ecx, word [rbx + 0x2c]
lea edx, [rcx + 1]
mov word [rbx + 0x2c], dx
mov rdx, r8
mov qword [rsp + 0x40], r8
mov qword [rax + rcx*8], r8
mov edi, dword [rbx + 0x28]
or edi, 0x10
mov dword [rbx + 0x28], edi
mov word [rbx + 0x1c], 1
xor r12d, r12d
mov qword [rsp + 0x38], r13
jmp 0x14006dc3c
or eax, 0x10001
mov dword [rbx + 0x28], eax
jmp 0x14006da3f
mov rax, qword [rbx + 0x38]
movzx ecx, word [rbx + 0x2c]
mov rax, qword [rax + rcx*8 - 0x10]
mov qword [rsp + 0x38], rax
xor r12d, r12d
mov qword [rsp + 0x40], r13
test dil, 2
jne 0x14006dc8b
mov eax, dword [rbx + 0x18]
inc eax
mov word [rbx + 0x18], ax
movzx r14d, word [r13 + 0x10]
test r14w, r14w
jle 0x14006dcb1
movzx eax, ax
mov rcx, qword [rsi + 0x10]
movzx r14d, word [rcx + rax*2]
sub r14w, word [rcx + rax*2 - 2]
add r14w, word [rbx + 0x16]
mov word [rbx + 0x16], r14w
bt r15d, 8
mov r13, qword [rsp + 0x40]
jae 0x14006dd4b
add r14d, 0xa
jmp 0x14006dd46
movzx ecx, word [rbx + 0x16]
mov eax, ecx
cmp qword [rsp + 0x38], 0
mov r13, qword [rsp + 0x40]
je 0x14006dccd
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x10]
test ax, ax
jle 0x14006dccb
lea eax, [rcx - 0x14]
jmp 0x14006dccd
mov rcx, qword [rsi + 8]
cmp word [rcx + rbp*2], 0
js 0x14006dc56
sub r14d, r12d
add r14w, word [rbx + 0x16]
mov r13, qword [rsp + 0x40]
jmp 0x14006dd46
add eax, ecx
test r13, r13
je 0x14006dce1
movzx edx, word [r13 + 0x10]
test dx, dx
jle 0x14006dce6
add eax, 0xffffffec
jmp 0x14006dcea
xor r13d, r13d
jmp 0x14006dcea
add edx, eax
mov eax, edx
cmp qword [rsp + 0x38], 0
je 0x14006dd11
test r13, r13
je 0x14006dd11
mov rdx, qword [rsp + 0x38]
cmp word [rdx + 0x10], 0
jle 0x14006dd11
cmp word [r13 + 0x10], 0
lea edx, [rax - 0x14]
cmovle edx, eax
mov eax, edx
movsx ecx, cx
mov rdx, r13
neg rdx
mov r14d, 0
sbb r14d, r14d
cmp qword [rsp + 0x38], 1
adc r14d, 0xffffffff
add r14d, ecx
cmp ax, 0xb
mov ecx, 0xa
cmovge ecx, eax
movzx eax, cx
cmp r14d, eax
cmovge r14d, eax
mov word [rbx + 0x16], r14w
movsx eax, word [rsi + 0x5c]
lea eax, [rax + rax*4]
lea eax, [rax + rax*2]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x20]
movsx ecx, word [rcx + 0x4a]
cdq
idiv ecx
lea edx, [r14 + rax]
inc edx
mov ecx, dword [rsp + 0x4c]
call fcn.14006c7ee
test edi, 0x140
mov r15, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x68]
jne 0x14006dd91
lea edx, [r14 + 0x10]
mov ecx, eax
call fcn.14006c7ee
mov qword [rsp + 0x40], r13
add r12d, edi
add eax, r12d
mov word [rbx + 0x14], ax
lea eax, [r14 + r12]
mov word [rbx + 0x16], ax
mov rcx, qword [r15 + 8]
mov rdx, rbx
mov r8, qword [rsp + 0x98]
call fcn.14006d5f6
mov rcx, r15
mov rdx, rbx
call fcn.14006d1b9
mov edi, eax
mov eax, dword [rbx + 0x28]
test al, 2
cmovne r14d, dword [rsp + 0x5c]
mov word [rbx + 0x16], r14w
test al, 0x10
jne 0x14006ddfa
movzx eax, word [rbx + 0x18]
cmp ax, word [rsi + 0x60]
jae 0x14006ddfa
mov rcx, r15
mov rdx, qword [rsp + 0x60]
mov r8, rsi
mov r9d, r12d
call fcn.14006d73a
mov eax, dword [rsp + 0x5c]
mov word [rbx + 0x16], ax
mov r12, qword [rsp + 0x60]
mov r14d, dword [rsp + 0x54]
lea rcx, [rsp + 0xb0]
call fcn.14006e1cd
test edi, edi
jne 0x14006de40
mov r13, rax
test rax, rax
jne 0x14006d8b2
jmp 0x14006de40
movzx eax, word [rbx + 0x16]
xor ecx, ecx
mov qword [rsp + 0x38], rcx
xor r12d, r12d
mov ecx, eax
jmp 0x14006dcd2
mov rax, qword [rsp + 0xa0]
mov qword [rbx], rax
movzx ebp, word [rsp + 0x5a]
mov word [rbx + 0x2e], bp
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x28], eax
movq qword [rbx + 0x16], xmm6
movzx eax, word [rsp + 0x36]
mov word [rbx + 0x2c], ax
cmp r14w, bp
jne 0x14006df40
inc r14d
movzx eax, word [rsi + 0x5e]
cmp r14d, eax
jae 0x14006df40
test byte [rsi + 0x64], 0x40
jne 0x14006df40
mov rcx, qword [rsp + 0x70]
test byte [rcx + 0x5d], 0x40
jne 0x14006df40
mov rax, qword [rsi + 0x10]
mov r14d, r14d
cmp word [rax + r14*2], 0x2a
mov r15, qword [rsp + 0x78]
mov r13, qword [rsp + 0x68]
jl 0x14006df40
mov r8, qword [rsp + 0x90]
inc r8d
mov rdx, rbx
call fcn.14006c240
mov edi, eax
test eax, eax
jne 0x14006df40
inc word [rbx + 0x18]
movzx eax, bp
mov rcx, qword [rbx + 0x38]
mov edx, dword [rbx + 0x2c]
movd xmm0, edx
pcmpeqd xmm1, xmm1
psubw xmm0, xmm1
movd dword [rbx + 0x2c], xmm0
movzx edx, dx
mov qword [rcx + rdx*8], 0
or byte [rbx + 0x29], 0x80
mov rcx, qword [rsi + 0x10]
movzx eax, word [rcx + rax*2]
sub ax, word [rcx + r14*2]
sub word [rbx + 0x16], ax
lea r9d, [rax + r13]
add r9d, 5
mov rcx, r15
mov rdx, r12
mov r8, rsi
call fcn.14006d73a
movd eax, xmm6
mov word [rbx + 0x16], ax
mov word [rbx + 0x18], bp
mov word [rbx + 0x2e], bp
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x28], eax
xor edi, edi
mov eax, edi
movaps xmm6, xmmword [rsp + 0x120]
movaps xmm7, xmmword [rsp + 0x130]
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret