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

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x98
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rbx, qword [rdx + 0x28]
mov r14, rcx
mov rdi, qword [rcx + 0x10]
mov r15d, dword [rax]
xor eax, eax
mov r12d, eax
mov dword [rsp + 0xd0], eax
cmp qword [rdx + 0x70], rax
je 0x1401bc629
lea rdx, str.cannot_use_window_functions_in_recursive_queries
call fcn.140151b10
add rsp, 0x98
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r9 + 0x21]
call fcn.140198cf0
test eax, eax
jne 0x1401bcd26
dec dword [r14 + 0x44]
mov eax, pe_nt_image_headers64
mov qword [rsp + 0x90], rbp
mov rdx, rsi
mov qword [rsp + 0x88], r13
mov rcx, r14
mov r13d, dword [r14 + 0x44]
mov r8d, r13d
mov word [rsi + 2], ax
call fcn.1401bc2a0
mov rax, qword [rsi + 0x60]
xor r10d, r10d
mov r9, qword [rsi + 0x48]
mov edx, r10d
mov qword [rsp + 0x50], rax
mov eax, dword [rsi + 8]
mov dword [rsp + 0x40], eax
mov eax, dword [rsi + 0xc]
mov qword [rsi + 8], r10
mov qword [rsi + 0x60], r10
movsxd r8, dword [rbx]
mov dword [rsp + 0xe8], eax
mov qword [rsp + 0x48], r9
test r8, r8
jle 0x1401bc6e2
mov ecx, r10d
lea rax, [rbx + 0x48]
test byte [rax], 0x20
jne 0x1401bc6cc
inc edx
inc rcx
add rax, 0x70
cmp rcx, r8
jl 0x1401bc6b4
mov r8d, r10d
jmp 0x1401bc6e5
movsxd rax, edx
imul rcx, rax, 0x70
mov r8d, dword [rcx + rbx + 0x4c]
mov dword [rsp + 0xd0], r8d
jmp 0x1401bc6e5
mov r8d, edx
mov ebp, dword [r14 + 0x34]
lea eax, [rbp + 1]
mov dword [r14 + 0x34], eax
cmp byte [rsi], 0x85
jne 0x1401bc70c
test r9, r9
mov ecx, r10d
mov r12d, eax
setne cl
add ecx, 5
inc eax
mov dword [r14 + 0x34], eax
jmp 0x1401bc717
mov rax, r9
neg rax
sbb ecx, ecx
add ecx, 8
inc dword [r14 + 0x38]
mov edx, dword [r14 + 0x38]
mov byte [rsp + 0x58], cl
mov dword [rsp + 0x5c], ebp
mov qword [rsp + 0x60], r10
mov qword [rsp + 0x70], r10
mov dword [rsp + 0x68], r10d
movsxd rcx, dword [rdi + 0x98]
mov dword [rsp + 0xd8], edx
cmp dword [rdi + 0x9c], ecx
jg 0x1401bc76b
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x77
mov rcx, rdi
call fcn.140173730
mov r9, qword [rsp + 0x48]
xor r10d, r10d
jmp 0x1401bc799
lea eax, [rcx + 1]
mov dword [rdi + 0x98], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x90]
mov dword [rax + rcx*8], 0x77
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 0x1401bc7e9
mov rdx, rsi
mov rcx, r14
call fcn.1401bc470
mov r15, qword [rsp + 0x48]
mov rbx, rax
xor eax, eax
mov r8d, ebp
mov rcx, rdi
mov dword [rsp + 0x20], eax
mov r9d, dword [r15]
add r9d, 2
lea edx, [rax + 0x73]
call fcn.140173790
mov r9d, 0xfffffff7
mov r8, rbx
mov edx, eax
mov rcx, rdi
call fcn.140174810
xor r10d, r10d
mov qword [rsp + 0x78], r15
jmp 0x1401bc848
movsxd rcx, dword [rdi + 0x98]
cmp dword [rdi + 0x9c], ecx
jg 0x1401bc815
mov r9d, r15d
mov dword [rsp + 0x20], r10d
mov r8d, ebp
mov edx, 0x73
mov rcx, rdi
call fcn.140173730
xor r10d, r10d
jmp 0x1401bc843
lea eax, [rcx + 1]
mov dword [rdi + 0x98], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x90]
mov dword [rax + rcx*8], 0x73
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 0x1401bc8b3
movsxd r9, dword [rdi + 0x98]
cmp dword [rdi + 0x9c], r9d
jg 0x1401bc87c
xor r9d, r9d
mov dword [rsp + 0x20], r10d
mov r8d, r12d
mov rcx, rdi
lea edx, [r9 + 0x73]
call fcn.140173730
mov r9d, eax
xor r10d, r10d
jmp 0x1401bc8ab
lea rcx, [r9 + r9*2]
lea eax, [r9 + 1]
mov dword [rdi + 0x98], eax
mov rax, qword [rdi + 0x90]
mov dword [rax + rcx*8], 0x73
mov dword [rax + rcx*8 + 4], r12d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r10
mov dword [rsi + 0x14], r9d
or dword [rsi + 4], 0x20
mov qword [rsi + 0x48], r10
mov rbx, rsi
nop word [rax + rax]
test byte [rbx + 4], 8
jne 0x1401bcce9
mov rax, qword [rbx + 0x50]
mov byte [rbx], 0x86
test dword [rax + 4], 0x2000
je 0x1401bc8e2
mov rbx, rax
test rax, rax
jne 0x1401bc8c0
mov r12, qword [rbx + 0x50]
lea r8, str.SETUP
mov edx, 1
mov rcx, r14
mov qword [r12 + 0x58], r10
call fcn.140173c90
lea r8, [rsp + 0x58]
mov rdx, r12
mov rcx, r14
call fcn.1401c2010
mov qword [r12 + 0x58], rsi
test eax, eax
jne 0x1401bccf8
movsxd r15, dword [rdi + 0x98]
cmp dword [rdi + 0x9c], r15d
jg 0x1401bc94b
xor eax, eax
mov r9d, r13d
mov r8d, ebp
mov dword [rsp + 0x20], eax
mov rcx, rdi
lea edx, [rax + 0x26]
call fcn.140173730
mov r15d, eax
xor r9d, r9d
jmp 0x1401bc97d
lea rcx, [r15 + r15*2]
xor r9d, r9d
lea eax, [r15 + 1]
mov dword [rdi + 0x98], eax
mov rax, qword [rdi + 0x90]
mov dword [rax + rcx*8], 0x26
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 [rdi + 0x98]
cmp dword [rdi + 0x9c], ecx
jg 0x1401bc9ae
mov r8d, dword [rsp + 0xd0]
mov edx, 0x86
mov dword [rsp + 0x20], r9d
mov rcx, rdi
xor r9d, r9d
call fcn.140173730
xor r9d, r9d
jmp 0x1401bc9e2
mov edx, dword [rsp + 0xd0]
lea eax, [rcx + 1]
mov dword [rdi + 0x98], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x90]
mov dword [rax + rcx*8], 0x86
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 [rdi + 0x98]
test rax, rax
je 0x1401bca4d
mov edx, dword [rax]
mov r8d, dword [rsp + 0xd8]
inc edx
cmp dword [rdi + 0x9c], ecx
jg 0x1401bca27
mov dword [rsp + 0x20], r8d
mov r9d, edx
mov r8d, ebp
mov edx, 0x5c
mov rcx, rdi
call fcn.140173730
xor r9d, r9d
jmp 0x1401bcaad
lea eax, [rcx + 1]
mov dword [rdi + 0x98], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x90]
mov dword [rax + rcx*8], 0x5c
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
jmp 0x1401bcaa4
cmp dword [rdi + 0x9c], ecx
jg 0x1401bca77
mov dword [rsp + 0x20], r9d
mov r8d, ebp
mov r9d, dword [rsp + 0xd8]
mov edx, 0x84
mov rcx, rdi
call fcn.140173730
xor r9d, r9d
jmp 0x1401bcaad
mov r8d, dword [rsp + 0xd8]
lea eax, [rcx + 1]
mov dword [rdi + 0x98], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x90]
mov dword [rax + rcx*8], 0x84
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 [rdi + 0x98]
cmp dword [rdi + 0x9c], ecx
jg 0x1401bcad9
mov dword [rsp + 0x20], r9d
mov r8d, ebp
xor r9d, r9d
mov edx, 0x80
mov rcx, rdi
call fcn.140173730
xor r9d, r9d
jmp 0x1401bcb06
lea eax, [rcx + 1]
mov dword [rdi + 0x98], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x90]
mov dword [rax + rcx*8], 0x80
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r9
dec dword [r14 + 0x44]
mov edx, dword [rsp + 0xe8]
mov ebp, dword [r14 + 0x44]
test edx, edx
jle 0x1401bcb75
movsxd rcx, dword [rdi + 0x98]
cmp dword [rdi + 0x9c], ecx
jg 0x1401bcb45
mov r8d, edx
mov dword [rsp + 0x20], 1
mov edx, 0x31
mov r9d, ebp
mov rcx, rdi
call fcn.140173730
jmp 0x1401bcb75
lea eax, [rcx + 1]
mov dword [rdi + 0x98], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x90]
mov dword [rax + rcx*8], 0x31
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 + 0xe0]
xor r9d, r9d
mov r8d, dword [rsp + 0xd0]
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.1401b9ec0
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x1401bcc09
movsxd rcx, dword [rdi + 0x98]
cmp dword [rdi + 0x9c], ecx
jg 0x1401bcbd8
xor eax, eax
mov r8d, edx
mov r9d, r13d
mov dword [rsp + 0x20], eax
mov rcx, rdi
lea edx, [rax + 0x3c]
call fcn.140173730
jmp 0x1401bcc09
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [rdi + 0x98], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x90]
mov dword [rax + rcx*8], 0x3c
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 [rdi + 0x18]
not ebp
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x1401bcc24
mov r8d, ebp
mov rdx, rdi
call fcn.140173ea0
jmp 0x1401bcc35
mov rcx, qword [rcx + 0x50]
mov eax, dword [rdi + 0x98]
movsxd r8, ebp
mov dword [rcx + r8*4], eax
xor ebp, ebp
lea r8, str.RECURSIVE_STEP
mov rcx, r14
mov qword [rbx + 0x50], rbp
lea edx, [rbp + 1]
call fcn.140173c90
lea r8, [rsp + 0x58]
mov rdx, rsi
mov rcx, r14
call fcn.1401c2010
mov qword [rbx + 0x50], r12
movsxd rcx, dword [rdi + 0x98]
cmp dword [rdi + 0x9c], ecx
jg 0x1401bcc87
mov r9d, r15d
mov dword [rsp + 0x20], ebp
xor r8d, r8d
lea edx, [rbp + 0xb]
mov rcx, rdi
call fcn.140173730
jmp 0x1401bccb1
lea eax, [rcx + 1]
mov dword [rdi + 0x98], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x90]
mov qword [rax + rcx*8], 0xb
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rbp
mov rcx, qword [rdi + 0x18]
not r13d
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x1401bccd2
mov r8d, r13d
mov rdx, rdi
call fcn.140173ea0
mov r15, qword [rsp + 0x48]
jmp 0x1401bccf8
mov rcx, qword [rcx + 0x50]
mov eax, dword [rdi + 0x98]
mov r15, qword [rsp + 0x48]
movsxd rdx, r13d
mov dword [rcx + rdx*4], eax
jmp 0x1401bccf8
lea rdx, str.recursive_aggregate_queries_not_supported
mov rcx, r14
call fcn.140151b10
mov rdx, qword [rsi + 0x48]
mov r13, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x90]
test rdx, rdx
je 0x1401bcd19
mov rcx, qword [r14]
call fcn.14018a740
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x60], rax
mov qword [rsi + 0x48], r15
add rsp, 0x98
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret