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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov eax, dword [r8 + 0x1c]
mov r15, rdx
dec dword [rcx + 0x44]
xor edx, edx
mov rbx, qword [rsp + 0xd0]
mov rdi, rcx
mov rsi, qword [rcx + 0x10]
mov r13d, r9d
mov dword [rsp + 0x40], eax
mov r14, r8
mov eax, dword [rcx + 0x44]
mov ecx, dword [r8 + 8]
movzx ebp, byte [rbx]
mov dword [rsp + 0x44], eax
mov eax, dword [rbx + 4]
mov dword [rsp + 0x38], eax
mov rax, qword [r15 + 0x20]
add rax, 8
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x50], rax
mov rax, qword [r8]
mov dword [rsp + 0x4c], ebp
mov r12d, dword [rax]
sub r12d, ecx
test ecx, ecx
je 0x14013d3a1
cmp r12d, 1
je 0x14013d3a1
mov r9d, r12d
lea r8, str.USE_TEMP_B_TREE_FOR_LAST__d_TERMS_OF_ORDER_BY
mov rcx, rdi
call fcn.140199f70
jmp 0x14013d3c4
test ecx, ecx
lea rax, str.LAST_TERM_OF
lea r9, [0x14024b238]
mov rcx, rdi
cmovne r9, rax
lea r8, str.USE_TEMP_B_TREE_FOR__sORDER_BY
call fcn.140199f70
mov r9d, dword [r14 + 0x14]
xor edx, edx
test r9d, r9d
je 0x14013d40b
mov r8d, dword [r14 + 0x10]
mov rcx, rsi
mov dword [rsp + 0x20], edx
mov edx, 0xa
call fcn.140191cbc
mov r9d, dword [rsp + 0x40]
xor eax, eax
xor r8d, r8d
mov dword [rsp + 0x20], eax
mov rcx, rsi
lea edx, [rax + 9]
call fcn.140191cbc
mov edx, dword [r14 + 0x14]
mov rcx, rsi
call fcn.14019ccb4
xor edx, edx
mov r11d, dword [r14 + 0xc]
lea eax, [rbp - 9]
mov dword [rsp + 0x3c], r11d
test al, 0xfb
je 0x14013d4b6
cmp bpl, 0xa
je 0x14013d492
mov al, byte [rdi + 0x1f]
lea rbx, [rdi + 0x38]
test al, al
jne 0x14013d43d
mov r10d, dword [rbx]
mov cl, dl
inc r10d
mov dword [rbx], r10d
jmp 0x14013d44d
dec al
movzx ecx, al
mov byte [rdi + 0x1f], cl
mov r10d, dword [rdi + rcx*4 + 0xe8]
lea eax, [rbp - 0xc]
mov dword [rsp + 0xb8], r10d
test al, 0xfd
je 0x14013d46d
mov edx, r13d
mov rcx, rdi
call fcn.14017c374
mov ebp, eax
xor edx, edx
jmp 0x14013d4c4
test cl, cl
jne 0x14013d477
inc dword [rbx]
mov ebp, dword [rbx]
jmp 0x14013d486
dec cl
movzx eax, cl
mov byte [rdi + 0x1f], al
mov ebp, dword [rdi + rax*4 + 0xe8]
mov r13d, edx
mov dword [rsp + 0xc8], edx
jmp 0x14013d4c4
cmp dword [r15 + 0xc], edx
je 0x14013d4b6
mov r9d, dword [rbx + 0xc]
xor r8d, r8d
mov dword [rsp + 0x20], edx
mov rcx, rsi
lea edx, [r8 + 0x4b]
call fcn.140191cbc
mov r11d, dword [rsp + 0x3c]
xor edx, edx
mov ebp, dword [rbx + 0xc]
lea rbx, [rdi + 0x38]
mov dword [rsp + 0xb8], edx
test byte [r14 + 0x24], 1
je 0x14013d586
mov r15d, dword [rdi + 0x34]
inc dword [rbx]
mov r14d, dword [rbx]
mov dword [rsp + 0x34], r15d
lea eax, [r15 + 1]
mov dword [rdi + 0x34], eax
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x14], edx
je 0x14013d50b
xor r9d, r9d
mov dword [rsp + 0x20], edx
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0xf]
call fcn.140191cbc
mov dword [rsp + 0x30], eax
lea ecx, [r12 + 1]
mov r9d, r14d
add ecx, r13d
mov r8d, r15d
mov dword [rsp + 0x20], ecx
mov edx, 0x79
mov rcx, rsi
call fcn.140191cbc
mov eax, dword [rsp + 0x30]
xor r10d, r10d
test eax, eax
je 0x14013d53f
mov edx, eax
mov rcx, rsi
call fcn.14019a8e8
mov r9d, dword [rsp + 0x40]
mov edx, 0x22
mov r8d, dword [rsp + 0x3c]
mov rcx, rsi
mov dword [rsp + 0x20], r10d
call fcn.140191cbc
mov r8d, dword [rsp + 0x3c]
inc eax
mov r9d, r14d
mov dword [rsp + 0x30], eax
mov edx, 0x85
mov dword [rsp + 0x20], r15d
mov rcx, rsi
call fcn.140191cbc
xor r10d, r10d
mov r13d, r15d
mov r14d, r10d
jmp 0x14013d5ff
mov r9d, dword [rsp + 0x40]
mov r8d, r11d
mov dword [rsp + 0x20], edx
mov rcx, rsi
mov edx, 0x23
call fcn.140191cbc
mov r8d, dword [r15 + 0xc]
inc eax
xor r10d, r10d
mov dword [rsp + 0x30], eax
test r8d, r8d
jle 0x14013d5cd
mov r9d, dword [rsp + 0x44]
lea edx, [r10 + 0x3b]
mov rcx, rsi
mov dword [rsp + 0x20], 1
call fcn.140191cbc
xor r10d, r10d
mov r14d, 1
mov r13d, dword [rsp + 0x3c]
mov dword [rsp + 0x34], r13d
cmp dword [r15 + 0xc], r10d
jle 0x14013d5ff
mov r8d, dword [r15 + 8]
lea edx, [r14 + 0x55]
or r9d, 0xffffffff
mov dword [rsp + 0x20], r10d
mov rcx, rsi
call fcn.140191cbc
xor r10d, r10d
mov r9, qword [rsp + 0x50]
lea r8d, [r14 + r12]
movsxd r12, dword [rsp + 0xc8]
lea r14d, [r8 - 1]
mov dword [rsp + 0x48], r8d
mov rdx, r12
test r12d, r12d
jle 0x14013d63e
lea rcx, [r9 + 0x18]
cmp word [rcx], r10w
lea eax, [r14 + 1]
lea rcx, [rcx + 0x20]
cmovne eax, r14d
mov r14d, eax
sub rdx, 1
jne 0x14013d625
lea eax, [r12 - 1]
movsxd r15, eax
test eax, eax
js 0x14013d6b6
mov edi, dword [rsp + 0x34]
lea r13d, [rax + rbp]
mov r12, r15
shl r12, 5
add r12, 0x18
add r12, r9
cmp word [r12], r10w
je 0x14013d671
movzx r9d, word [r12]
dec r9d
jmp 0x14013d677
mov r9d, r14d
dec r14d
mov r8d, edi
mov dword [rsp + 0x20], r13d
mov edx, 0x5e
mov rcx, rsi
call fcn.140191cbc
xor r10d, r10d
dec r13d
sub r12, 0x20
sub r15, 1
jns 0x14013d660
mov rdi, qword [rsp + 0xb0]
mov r13d, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x48]
mov r12d, dword [rsp + 0xc8]
mov r15d, dword [rsp + 0x4c]
mov ecx, r15d
sub ecx, 0xa
je 0x14013d70a
sub ecx, 1
je 0x14013d83f
sub ecx, 1
je 0x14013d7c1
sub ecx, 2
je 0x14013d7c1
mov rax, qword [rsp + 0xd0]
cmp ecx, 1
je 0x14013d74a
mov dword [rsp + 0x20], r10d
mov rcx, rsi
cmp r15b, 9
jne 0x14013d73d
mov r8d, dword [rax + 0xc]
mov r9d, r12d
mov edx, 0x54
call fcn.140191cbc
mov r14d, dword [rsp + 0xb8]
mov r9d, 8
test r14d, r14d
je 0x14013d8cb
cmp r15b, 0xb
jne 0x14013d89e
mov r8d, r12d
mov edx, ebp
mov rcx, rdi
call fcn.140188fd0
jmp 0x14013d8b6
mov r8d, dword [rax + 4]
xor r9d, r9d
lea edx, [r9 + 0xc]
jmp 0x14013d705
mov r14d, dword [rax + 8]
mov al, byte [rdi + 0x1f]
test al, al
jne 0x14013d75b
inc dword [rbx]
mov ebx, dword [rbx]
jmp 0x14013d76a
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov ebx, dword [rdi + rax*4 + 0xe8]
mov eax, r14d
mov dword [rsp + 0x20], ebx
shr eax, 0x1f
mov r9d, r12d
sub r9d, eax
mov edx, 0x61
mov rcx, rsi
lea r8d, [rax + rbp]
call fcn.140191cbc
mov r8d, dword [rsp + 0x38]
mov r9d, ebx
mov rcx, rsi
test r14d, r14d
jns 0x14013d7a9
mov dword [rsp + 0x20], ebp
mov edx, 0x80
jmp 0x14013d705
mov dword [rsp + 0x28], r14d
mov edx, 0x8a
mov dword [rsp + 0x20], ebp
call fcn.140191dd0
jmp 0x14013d70a
mov r9d, r8d
mov dword [rsp + 0x20], ebp
mov r8d, r13d
mov edx, 0x5e
mov rcx, rsi
call fcn.140191cbc
mov r14d, dword [rsp + 0xb8]
xor r13d, r13d
mov r8d, dword [rsp + 0x38]
mov r9d, r14d
mov rcx, rsi
mov dword [rsp + 0x20], r13d
lea edx, [r13 + 0x7f]
call fcn.140191cbc
mov r8d, dword [rsp + 0x38]
mov r9d, ebp
mov edx, 0x80
mov dword [rsp + 0x20], r14d
mov rcx, rsi
call fcn.140191cbc
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x14013d712
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
lea r9d, [r13 + 8]
mov word [rax + rcx*8 - 0x16], r9w
jmp 0x14013d718
mov rax, qword [rsp + 0xd0]
mov r9d, r12d
mov r14d, dword [rsp + 0xb8]
mov r8d, ebp
mov edx, 0x61
mov dword [rsp + 0x20], r14d
mov rcx, rsi
mov rbx, qword [rax + 0x18]
call fcn.140191cbc
mov r9d, r12d
mov r8, rbx
mov edx, eax
mov rcx, rsi
call fcn.1401920c4
mov r8d, dword [rsp + 0x38]
mov r9d, r14d
mov edx, 0x8a
mov dword [rsp + 0x28], r12d
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.140191dd0
jmp 0x14013d712
test ebp, ebp
je 0x14013d8b6
cmp byte [rdi + 0x1f], r9b
jae 0x14013d8cb
movzx eax, byte [rdi + 0x1f]
mov dword [rdi + rax*4 + 0xe8], ebp
inc byte [rdi + 0x1f]
cmp byte [rdi + 0x1f], r9b
jae 0x14013d8cb
movzx eax, byte [rdi + 0x1f]
mov dword [rdi + rax*4 + 0xe8], r14d
inc byte [rdi + 0x1f]
mov edx, dword [rsp + 0x44]
mov rcx, rsi
call fcn.14019ccb4
mov rbx, qword [rsp + 0xc0]
xor edi, edi
mov r9d, dword [rsp + 0x30]
mov rcx, rsi
mov r8d, dword [rsp + 0x3c]
mov dword [rsp + 0x20], edi
mov dl, byte [rbx + 0x24]
not dl
and edx, 1
lea edx, [rdx*2 + 0x25]
call fcn.140191cbc
mov r8d, dword [rbx + 0x10]
test r8d, r8d
je 0x14013d921
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea edx, [rdi + 0x43]
mov rcx, rsi
call fcn.140191cbc
mov edx, dword [rsp + 0x40]
mov rcx, rsi
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.14019ccb4