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

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov rax, qword [rcx]
mov r15, rcx
mov r11, qword [rcx + 8]
mov rcx, rax
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x88], r11
mov r13, qword [rax]
mov rdi, qword [rax + 0x10]
mov qword [rsp + 0x90], r13
call fcn.14003f5ac
movzx r14d, byte [r15 + 0x39]
xor ebp, ebp
sub r14, 1
js 0x14006c0d6
imul r13, r14, 0x78
add r15, 0x354
lea rbx, [r14 + r14*4]
add r13, 0x50
shl rbx, 4
add r13, r11
add rbx, r15
mov r15, qword [rsp + 0x90]
mov edx, dword [rbx + 4]
mov rcx, rdi
mov r12, qword [rbx + 0x2c]
call fcn.14002d08c
cmp byte [rbx + 0x11], 0x9a
je 0x14006bee6
movzx eax, byte [rbx + 0x12]
movzx edx, byte [rbx + 0x11]
mov r9d, dword [rbx + 0x18]
mov r8d, dword [rbx + 0x14]
mov dword [rsp + 0x20], eax
call fcn.14002cef0
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x14006bee6
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov al, byte [rbx + 0x13]
mov byte [rdx + rcx*8 - 0x15], al
test dword [r12 + 0x28], 0x800
je 0x14006bf98
cmp dword [rbx + 0x1c], ebp
jle 0x14006bf98
mov edx, dword [rbx - 4]
mov rcx, rdi
call fcn.14002d08c
mov ebp, dword [rbx + 0x1c]
lea eax, [rbp - 1]
movsxd rcx, eax
mov rax, qword [rbx + 0x24]
lea rdx, [rcx + rcx*2]
lea rsi, [rax + rdx*4]
jmp 0x14006bf86
mov eax, dword [rsi + 4]
mov edx, dword [rdi + 0x3c]
inc eax
cmp edx, eax
jbe 0x14006bf38
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
and dword [rsp + 0x20], 0
mov dword [rax + 0x64], ecx
mov rcx, rdi
movzx edx, byte [rsi + 8]
mov r9d, dword [rsi + 4]
mov r8d, dword [rsi]
call fcn.14002cef0
mov eax, dword [rsi + 4]
mov edx, dword [rdi + 0x3c]
dec eax
cmp edx, eax
jbe 0x14006bf74
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
dec ebp
mov rax, qword [rdi + 0x30]
dec ecx
sub rsi, 0xc
mov dword [rax + 0x64], ecx
test ebp, ebp
jg 0x14006bf20
mov rdx, qword [rbx + 0x24]
mov rcx, r15
call fcn.14001273c
xor ebp, ebp
mov edx, dword [rbx - 8]
mov rcx, rdi
call fcn.14002d08c
mov r9d, dword [rbx]
test r9d, r9d
je 0x14006c000
xor r8d, r8d
mov dword [rsp + 0x20], ebp
lea edx, [r8 + 0x10]
call fcn.14002cef0
mov edx, dword [rdi + 0x3c]
cmp edx, dword [rbx]
jbe 0x14006bfd0
mov eax, dword [rbx]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], edx
mov rax, qword [rdi + 0x30]
mov ecx, dword [rdi + 0x3c]
dec ecx
mov dword [rax + 0x64], ecx
mov eax, dword [rbx]
mov edx, dword [rdi + 0x3c]
sub eax, 2
cmp edx, eax
jbe 0x14006bff4
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
mov r8d, dword [rbx - 0x14]
test r8d, r8d
je 0x14006c0ac
xor r9d, r9d
mov dword [rsp + 0x20], ebp
mov edx, 0x89
mov rcx, rdi
call fcn.14002cef0
test byte [r12 + 0x28], 0x40
mov esi, eax
jne 0x14006c042
mov r8d, dword [r13]
xor r9d, r9d
mov rcx, rdi
mov dword [rsp + 0x20], ebp
lea edx, [r9 + 0x68]
call fcn.14002cef0
test dword [r12 + 0x28], 0x200
je 0x14006c064
mov r8d, dword [rbx - 0xc]
xor r9d, r9d
mov rcx, rdi
mov dword [rsp + 0x20], ebp
lea edx, [r9 + 0x68]
call fcn.14002cef0
mov al, byte [rbx + 0x11]
cmp al, 0x12
jne 0x14006c071
mov r8d, dword [rbx + 0x14]
jmp 0x14006c074
mov r8d, ebp
mov r9d, dword [rbx + 8]
sub al, 0x12
neg al
mov dword [rsp + 0x20], ebp
mov rcx, rdi
sbb edx, edx
add edx, 0x11
call fcn.14002cef0
mov edx, dword [rdi + 0x3c]
cmp edx, esi
jbe 0x14006c0a0
mov rax, qword [rdi + 8]
lea rcx, [rsi + rsi*2]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
sub rbx, 0x50
sub r13, 0x78
sub r14, 1
jns 0x14006bea0
mov r15, qword [rsp + 0x80]
mov r13, qword [rsp + 0x90]
mov r11, qword [rsp + 0x88]
mov edx, dword [r15 + 0x44]
mov rcx, rdi
call fcn.14002d08c
mov r12d, ebp
cmp byte [r15 + 0x39], bpl
jbe 0x14006c2e4
lea rsi, [r15 + 0x380]
movzx eax, byte [rsi - 0x1c]
mov rbp, qword [rsi]
imul r10, rax, 0x78
test byte [r10 + r11 + 0x48], 4
mov r14, qword [r10 + r11 + 0x28]
je 0x14006c17b
cmp byte [r13 + 0x50], 0
jne 0x14006c17b
mov edx, dword [rsi - 0x20]
mov rcx, rdi
mov r9d, dword [rdi + 0x3c]
call fcn.14002d594
cmp dword [rsi - 0x20], r9d
jge 0x14006c2cf
sub r9d, dword [rsi - 0x20]
lea rcx, [rax + 4]
mov edx, r9d
mov eax, dword [rsi - 0x3c]
cmp dword [rcx], eax
jne 0x14006c16c
mov al, byte [rcx - 4]
cmp al, 0x2f
jne 0x14006c15d
mov byte [rcx - 4], 0x21
mov eax, dword [r10 + r11 + 0x40]
add eax, dword [rcx + 4]
mov dword [rcx], eax
mov eax, dword [rcx + 8]
mov dword [rcx + 4], eax
jmp 0x14006c168
cmp al, 0x67
jne 0x14006c16c
and dword [rcx], 0
mov byte [rcx - 4], 0x1c
and dword [rcx + 8], 0
add rcx, 0x18
sub rdx, 1
jne 0x14006c139
jmp 0x14006c2cf
test byte [r14 + 0x48], 2
jne 0x14006c1e4
cmp qword [r14 + 0x18], 0
jne 0x14006c1e4
test byte [r15 + 0x32], 0x10
jne 0x14006c1e4
cmp byte [r15 + 0x36], 0
mov ebx, dword [rbp + 0x28]
jne 0x14006c1b8
test bl, 0x40
jne 0x14006c1b8
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [r10 + r11 + 0x50]
mov rcx, rdi
lea edx, [r9 + 0x3d]
call fcn.14002cef0
and ebx, 0x4300
cmp ebx, 0x200
jne 0x14006c1e4
mov r8d, dword [rsi - 0x38]
cmp r8d, dword [r15 + 0x50]
je 0x14006c1e4
and dword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, rdi
lea edx, [r9 + 0x3d]
call fcn.14002cef0
test dword [rbp + 0x28], 0x240
je 0x14006c1f3
mov r11, qword [rbp + 0x20]
jmp 0x14006c204
test dword [rbp + 0x28], 0x2000
je 0x14006c2c7
mov r11, qword [rsi - 0x10]
test r11, r11
je 0x14006c2c7
cmp byte [r13 + 0x50], 0
jne 0x14006c2c7
mov edx, dword [rsi - 0x20]
mov rcx, rdi
mov r9d, dword [rdi + 0x3c]
call fcn.14002d594
cmp dword [rsi - 0x20], r9d
jge 0x14006c2c7
sub r9d, dword [rsi - 0x20]
lea r8, [rax + 4]
mov ebx, r9d
mov eax, dword [rsi - 0x3c]
cmp dword [r8], eax
jne 0x14006c2b9
mov al, byte [r8 - 4]
cmp al, 0x2f
jne 0x14006c2aa
test byte [r14 + 0x48], 0x20
movsxd r10, dword [r8 + 4]
je 0x14006c278
mov rdx, qword [r14 + 0x10]
jmp 0x14006c26a
mov eax, dword [rdx + 0x64]
and al, 3
cmp al, 2
je 0x14006c26f
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x14006c25d
mov rax, qword [rdx + 8]
movsx r10d, word [rax + r10*2]
movzx edx, word [r11 + 0x60]
xor ecx, ecx
test edx, edx
je 0x14006c297
mov r9, qword [r11 + 8]
movsxd rax, ecx
cmp r10w, word [r9 + rax*2]
je 0x14006c29a
inc ecx
cmp ecx, edx
jl 0x14006c287
or ecx, 0xffffffff
movsx eax, cx
test eax, eax
js 0x14006c2b9
mov dword [r8 + 4], eax
mov eax, dword [rsi - 0x38]
jmp 0x14006c2b6
cmp al, 0x67
jne 0x14006c2b9
mov eax, dword [rsi - 0x38]
mov byte [r8 - 4], 0x70
mov dword [r8], eax
add r8, 0x18
sub rbx, 1
jne 0x14006c23c
mov r11, qword [rsp + 0x88]
movzx eax, byte [r15 + 0x39]
inc r12d
add rsi, 0x50
cmp r12d, eax
jl 0x14006c0f6
mov rcx, qword [rsp + 0x98]
mov rdx, r15
mov eax, dword [r15 + 0x48]
mov dword [rcx + 0x1d8], eax
mov rcx, r13
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.1400688c4