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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa8
mov rax, qword [0x1401a5100]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rdi, qword [rdx + 0x28]
mov r14, rcx
mov rbx, qword [rcx + 0x10]
mov qword [rsp + 0x58], r8
mov r15d, dword [rax]
xor eax, eax
mov r12d, eax
mov dword [rsp + 0x40], eax
cmp qword [rdx + 0x70], rax
je 0x1400c5a2d
lea rdx, str.cannot_use_window_functions_in_recursive_queries
call fcn.14003b590
jmp 0x1400c6159
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x21
call fcn.140095460
test eax, eax
jne 0x1400c6159
mov qword [rsp + 0xf8], rbp
mov rdx, rsi
mov qword [rsp + 0xa0], r13
mov rcx, r14
mov r13d, dword [r14 + 0x48]
dec r13d
mov dword [r14 + 0x48], r13d
mov r8d, r13d
mov word [rsi + 2], 0x140
call fcn.1400c5470
mov rax, qword [rsi + 0x60]
xor r10d, r10d
mov r9, qword [rsi + 0x48]
mov edx, r10d
mov qword [rsp + 0x60], rax
mov eax, dword [rsi + 8]
mov dword [rsp + 0x54], eax
mov eax, dword [rsi + 0xc]
mov qword [rsi + 8], r10
mov qword [rsi + 0x60], r10
movsxd r8, dword [rdi]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x48], r9
test r8, r8
jle 0x1400c5ae1
mov ecx, r10d
lea rax, [rdi + 0x48]
test byte [rax], 0x40
jne 0x1400c5ace
inc edx
inc rcx
add rax, 0x68
cmp rcx, r8
jl 0x1400c5ab6
mov r8d, r10d
jmp 0x1400c5ae4
movsxd rax, edx
imul rcx, rax, 0x68
mov r8d, dword [rcx + rdi + 0x4c]
mov dword [rsp + 0x40], r8d
jmp 0x1400c5ae4
mov r8d, edx
mov ebp, dword [r14 + 0x38]
lea eax, [rbp + 1]
mov dword [r14 + 0x38], eax
cmp byte [rsi], 0x87
jne 0x1400c5b0b
test r9, r9
mov ecx, r10d
mov r12d, eax
setne cl
add ecx, 5
inc eax
mov dword [r14 + 0x38], eax
jmp 0x1400c5b16
mov rax, r9
neg rax
sbb ecx, ecx
add ecx, 8
inc dword [r14 + 0x3c]
mov edx, dword [r14 + 0x3c]
mov byte [rsp + 0x68], cl
mov dword [rsp + 0x6c], ebp
mov qword [rsp + 0x70], r10
mov qword [rsp + 0x80], r10
mov dword [rsp + 0x78], r10d
movsxd rcx, dword [rbx + 0x90]
mov dword [rsp + 0x44], edx
cmp dword [rbx + 0x94], ecx
jg 0x1400c5b6a
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x79
mov rcx, rbx
call fcn.1400653b0
mov r9, qword [rsp + 0x48]
xor r10d, r10d
jmp 0x1400c5b98
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x79
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r10
test r9, r9
je 0x1400c5c36
mov rdx, rsi
mov rcx, r14
call fcn.1400c5810
mov r15, qword [rsp + 0x48]
mov rdi, rax
movsxd rdx, dword [rbx + 0x90]
mov r8d, dword [r15]
add r8d, 2
cmp dword [rbx + 0x94], edx
jg 0x1400c5be7
xor eax, eax
mov r9d, r8d
mov r8d, ebp
mov dword [rsp + 0x20], eax
mov edx, 0x75
mov rcx, rbx
call fcn.1400653b0
mov edx, eax
jmp 0x1400c5c18
lea rcx, [rdx + rdx*2]
xor r9d, r9d
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x75
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov r9d, 0xfffffff8
mov r8, rdi
mov rcx, rbx
call fcn.1400661b0
xor r10d, r10d
mov qword [rsp + 0x88], r15
jmp 0x1400c5c95
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1400c5c62
mov r9d, r15d
mov dword [rsp + 0x20], r10d
mov r8d, ebp
mov edx, 0x75
mov rcx, rbx
call fcn.1400653b0
xor r10d, r10d
jmp 0x1400c5c90
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x75
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], r10d
mov qword [rax + rcx*8 + 0x10], r10
mov r15, qword [rsp + 0x48]
test r12d, r12d
je 0x1400c5cfd
movsxd rdx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], edx
jg 0x1400c5cc8
xor r9d, r9d
mov dword [rsp + 0x20], r10d
mov r8d, r12d
mov edx, 0x75
mov rcx, rbx
call fcn.1400653b0
mov edx, eax
xor r10d, r10d
jmp 0x1400c5cf6
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x75
mov dword [rax + rcx*8 + 4], r12d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r10
or dword [rsi + 4], 0x20
mov dword [rsi + 0x14], edx
mov qword [rsi + 0x48], r10
mov rdi, rsi
test byte [rdi + 4], 8
jne 0x1400c611c
mov rax, qword [rdi + 0x50]
mov byte [rdi], 0x88
test dword [rax + 4], 0x2000
je 0x1400c5d26
mov rdi, rax
test rax, rax
jne 0x1400c5d04
mov r12, qword [rdi + 0x50]
lea r8, str.SETUP
mov edx, 1
mov rcx, r14
mov qword [r12 + 0x58], r10
call fcn.140065a50
lea r8, [rsp + 0x68]
mov rdx, r12
mov rcx, r14
call fcn.1400cec40
mov qword [r12 + 0x58], rsi
test eax, eax
jne 0x1400c612b
movsxd r15, dword [rbx + 0x90]
cmp dword [rbx + 0x94], r15d
jg 0x1400c5d91
xor eax, eax
mov r9d, r13d
mov r8d, ebp
mov dword [rsp + 0x20], eax
mov edx, 0x24
mov rcx, rbx
call fcn.1400653b0
mov r15d, eax
xor r9d, r9d
jmp 0x1400c5dc3
lea rcx, [r15 + r15*2]
xor r9d, r9d
lea eax, [r15 + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x24
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1400c5df1
mov r8d, dword [rsp + 0x40]
mov edx, 0x88
mov dword [rsp + 0x20], r9d
mov rcx, rbx
xor r9d, r9d
call fcn.1400653b0
xor r9d, r9d
jmp 0x1400c5e22
mov edx, dword [rsp + 0x40]
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x88
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rsp + 0x48]
movsxd rcx, dword [rbx + 0x90]
test rax, rax
je 0x1400c5e8a
mov edx, dword [rax]
mov r8d, dword [rsp + 0x44]
inc edx
cmp dword [rbx + 0x94], ecx
jg 0x1400c5e64
mov dword [rsp + 0x20], r8d
mov r9d, edx
mov r8d, ebp
mov edx, 0x5e
mov rcx, rbx
call fcn.1400653b0
xor r9d, r9d
jmp 0x1400c5ee4
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x5e
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
jmp 0x1400c5edb
cmp dword [rbx + 0x94], ecx
jg 0x1400c5eb1
mov dword [rsp + 0x20], r9d
mov r8d, ebp
mov r9d, dword [rsp + 0x44]
mov edx, 0x86
mov rcx, rbx
call fcn.1400653b0
xor r9d, r9d
jmp 0x1400c5ee4
mov r8d, dword [rsp + 0x44]
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x86
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov dword [rax + rcx*8 + 4], ebp
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1400c5f10
mov dword [rsp + 0x20], r9d
mov r8d, ebp
xor r9d, r9d
mov edx, 0x82
mov rcx, rbx
call fcn.1400653b0
xor r9d, r9d
jmp 0x1400c5f3d
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x82
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r9
dec dword [r14 + 0x48]
mov edx, dword [rsp + 0x50]
mov ebp, dword [r14 + 0x48]
test edx, edx
jle 0x1400c5fa9
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1400c5f79
mov r8d, edx
mov dword [rsp + 0x20], 1
mov edx, 0x32
mov r9d, ebp
mov rcx, rbx
call fcn.1400653b0
jmp 0x1400c5fa9
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x32
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], 1
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rsp + 0x58]
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, rsi
mov dword [rsp + 0x38], r13d
mov rcx, r14
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x28], rax
xor eax, eax
mov qword [rsp + 0x20], rax
call fcn.1400c1f50
mov edx, dword [rsp + 0x54]
test edx, edx
je 0x1400c6039
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1400c6008
xor eax, eax
mov r8d, edx
mov edx, 0x3d
mov dword [rsp + 0x20], eax
mov r9d, r13d
mov rcx, rbx
call fcn.1400653b0
jmp 0x1400c6039
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x3d
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov rcx, qword [rbx + 0x18]
not ebp
mov eax, dword [rcx + 0x4c]
add eax, dword [rcx + 0x48]
jns 0x1400c6054
mov r8d, ebp
mov rdx, rbx
call fcn.140065c60
jmp 0x1400c6064
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd rdx, ebp
mov dword [rcx + rdx*4], eax
xor ebp, ebp
lea r8, str.RECURSIVE_STEP
mov edx, 1
mov qword [rdi + 0x50], rbp
mov rcx, r14
call fcn.140065a50
lea r8, [rsp + 0x68]
mov rdx, rsi
mov rcx, r14
call fcn.1400cec40
mov qword [rdi + 0x50], r12
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1400c60ba
mov r9d, r15d
mov dword [rsp + 0x20], ebp
xor r8d, r8d
mov edx, 9
mov rcx, rbx
call fcn.1400653b0
jmp 0x1400c60e4
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], 9
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rbp
mov rcx, qword [rbx + 0x18]
not r13d
mov eax, dword [rcx + 0x4c]
add eax, dword [rcx + 0x48]
jns 0x1400c6105
mov r8d, r13d
mov rdx, rbx
call fcn.140065c60
mov r15, qword [rsp + 0x48]
jmp 0x1400c612b
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
mov r15, qword [rsp + 0x48]
movsxd rdx, r13d
mov dword [rcx + rdx*4], eax
jmp 0x1400c612b
lea rdx, str.recursive_aggregate_queries_not_supported
mov rcx, r14
call fcn.14003b590
mov rdx, qword [rsi + 0x48]
mov r13, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xf8]
test rdx, rdx
je 0x1400c614c
mov rcx, qword [r14]
call fcn.1400822f0
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x60], rax
mov qword [rsi + 0x48], r15
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401391d0
add rsp, 0xa8
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret