Function at 0x1400ba070
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, 0xa8
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rdi, qword [rdx + 0x28]
mov r14, rcx
mov rbx, qword [rcx + 0x10]
mov r15d, dword [rax]
xor eax, eax
mov r12d, eax
mov dword [rsp + 0xe0], eax
cmp qword [rdx + 0x70], rax
je 0x1400ba0c9
lea rdx, str.cannot_use_window_functions_in_recursive_queries
call fcn.1400ed030
add rsp, 0xa8
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x21
call fcn.1400dec20
test eax, eax
jne 0x1400ba86b
dec dword [r14 + 0x48]
mov rdx, rsi
mov r8d, dword [r14 + 0x48]
mov rcx, r14
mov qword [rsp + 0xa0], rbp
mov dword [rsp + 0xf8], r8d
mov word [rsi + 2], 0x140
mov qword [rsp + 0x98], r13
call fcn.1400a9560
mov rax, qword [rsi + 0x60]
xor r10d, r10d
mov r13, qword [rsi + 0x48]
mov edx, r10d
mov qword [rsp + 0x58], rax
mov eax, dword [rsi + 8]
mov dword [rsp + 0x44], eax
mov eax, dword [rsi + 0xc]
mov qword [rsi + 8], r10
mov qword [rsi + 0x60], r10
movsxd r8, dword [rdi]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x50], r13
test r8, r8
jle 0x1400ba185
mov ecx, r10d
lea rax, [rdi + 0x24]
test byte [rax], 0x80
jne 0x1400ba16c
inc edx
inc rcx
add rax, 0x50
cmp rcx, r8
jl 0x1400ba154
mov r8d, r10d
jmp 0x1400ba188
movsxd rax, edx
lea rcx, [rax + rax*4]
add rcx, rcx
mov r8d, dword [rdi + rcx*8 + 0x28]
mov dword [rsp + 0xe0], r8d
jmp 0x1400ba188
mov r8d, edx
mov ebp, dword [r14 + 0x38]
lea eax, [rbp + 1]
mov dword [r14 + 0x38], eax
cmp byte [rsi], 0x87
jne 0x1400ba1af
test r13, r13
mov ecx, r10d
mov r12d, eax
setne cl
add ecx, 5
inc eax
mov dword [r14 + 0x38], eax
jmp 0x1400ba1ba
mov rax, r13
neg rax
sbb ecx, ecx
add ecx, 8
inc dword [r14 + 0x3c]
mov edx, dword [r14 + 0x3c]
mov byte [rsp + 0x60], cl
mov dword [rsp + 0x64], ebp
mov qword [rsp + 0x68], r10
mov qword [rsp + 0x78], r10
mov dword [rsp + 0x70], r10d
movsxd rcx, dword [rbx + 0x90]
mov dword [rsp + 0xe8], edx
cmp dword [rbx + 0x94], ecx
jg 0x1400ba209
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x79
mov rcx, rbx
call fcn.1400bb2e0
xor r10d, r10d
jmp 0x1400ba237
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 r13, r13
je 0x1400ba34f
mov r8d, 1
mov rdx, rsi
mov rcx, r14
call fcn.1400ca320
mov r8d, dword [r13]
mov rdi, rax
movsxd rdx, dword [rbx + 0x90]
add r8d, 2
cmp dword [rbx + 0x94], edx
jg 0x1400ba288
xor eax, eax
mov r9d, r8d
mov r8d, ebp
mov dword [rsp + 0x20], eax
mov edx, 0x75
mov rcx, rbx
call fcn.1400bb2e0
mov edx, eax
jmp 0x1400ba2b9
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 rax, qword [rbx]
cmp byte [rax + 0x67], 0
je 0x1400ba2f2
cmp qword [rax + 0x308], 0
jne 0x1400ba342
test rdi, rdi
je 0x1400ba342
add dword [rdi], 0xffffffff
jne 0x1400ba342
mov rcx, qword [rdi + 0x10]
mov rdx, rdi
call fcn.1400ea6d0
xor r10d, r10d
mov qword [rsp + 0x80], r13
jmp 0x1400ba3a9
test edx, edx
jns 0x1400ba2fe
mov edx, dword [rbx + 0x90]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x1400ba335
mov r9d, 0xfffffff8
mov r8, rdi
mov rcx, rbx
call fcn.14013a520
xor r10d, r10d
mov qword [rsp + 0x80], r13
jmp 0x1400ba3a9
test rdi, rdi
je 0x1400ba342
mov qword [rdx + 0x10], rdi
mov byte [rdx + 1], 0xf8
mov qword [rsp + 0x80], r13
xor r10d, r10d
jmp 0x1400ba3a9
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1400ba37b
mov r9d, r15d
mov dword [rsp + 0x20], r10d
mov r8d, ebp
mov edx, 0x75
mov rcx, rbx
call fcn.1400bb2e0
xor r10d, r10d
jmp 0x1400ba3a9
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
test r12d, r12d
je 0x1400ba415
movsxd r9, dword [rbx + 0x90]
cmp dword [rbx + 0x94], r9d
jg 0x1400ba3de
xor r9d, r9d
mov dword [rsp + 0x20], r10d
mov r8d, r12d
mov edx, 0x75
mov rcx, rbx
call fcn.1400bb2e0
mov r9d, eax
xor r10d, r10d
jmp 0x1400ba40d
lea rcx, [r9 + r9*2]
lea eax, [r9 + 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], r9d
mov qword [rsi + 0x48], r10
mov rdi, rsi
nop dword [rax]
test byte [rdi + 4], 8
jne 0x1400ba88e
mov rax, qword [rdi + 0x50]
mov byte [rdi], 0x88
test dword [rax + 4], 0x2000
je 0x1400ba442
mov rdi, rax
test rax, rax
jne 0x1400ba420
mov r13, qword [rdi + 0x50]
lea r8, str.SETUP
mov edx, 1
mov rcx, r14
mov qword [r13 + 0x58], r10
call fcn.140124690
lea r8, [rsp + 0x60]
mov rdx, r13
mov rcx, r14
call fcn.14010edd0
mov qword [r13 + 0x58], rsi
test eax, eax
jne 0x1400ba838
movsxd r15, dword [rbx + 0x90]
mov r12d, dword [rsp + 0xf8]
cmp dword [rbx + 0x94], r15d
jg 0x1400ba4b3
xor eax, eax
mov r9d, r12d
mov r8d, ebp
mov dword [rsp + 0x20], eax
mov edx, 0x24
mov rcx, rbx
call fcn.1400bb2e0
mov r15d, eax
xor r9d, r9d
jmp 0x1400ba4e5
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], r12d
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 0x1400ba516
mov r8d, dword [rsp + 0xe0]
mov edx, 0x88
mov dword [rsp + 0x20], r9d
mov rcx, rbx
xor r9d, r9d
call fcn.1400bb2e0
xor r9d, r9d
jmp 0x1400ba54a
mov edx, dword [rsp + 0xe0]
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 rdx, qword [rsp + 0x50]
movsxd rcx, dword [rbx + 0x90]
test rdx, rdx
je 0x1400ba5b5
mov edx, dword [rdx]
mov r8d, dword [rsp + 0xe8]
inc edx
cmp dword [rbx + 0x94], ecx
jg 0x1400ba58f
mov dword [rsp + 0x20], r8d
mov r9d, edx
mov r8d, ebp
mov edx, 0x5e
mov rcx, rbx
call fcn.1400bb2e0
xor r9d, r9d
jmp 0x1400ba615
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 0x1400ba60c
cmp dword [rbx + 0x94], ecx
jg 0x1400ba5df
mov dword [rsp + 0x20], r9d
mov r8d, ebp
mov r9d, dword [rsp + 0xe8]
mov edx, 0x86
mov rcx, rbx
call fcn.1400bb2e0
xor r9d, r9d
jmp 0x1400ba615
mov r8d, dword [rsp + 0xe8]
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 0x1400ba641
mov dword [rsp + 0x20], r9d
mov r8d, ebp
xor r9d, r9d
mov edx, 0x82
mov rcx, rbx
call fcn.1400bb2e0
xor r9d, r9d
jmp 0x1400ba66e
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
mov ebp, dword [r14 + 0x48]
mov edx, dword [rsp + 0x40]
dec ebp
mov dword [r14 + 0x48], ebp
test edx, edx
jle 0x1400ba6dc
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1400ba6ac
mov r8d, edx
mov dword [rsp + 0x20], 1
mov edx, 0x32
mov r9d, ebp
mov rcx, rbx
call fcn.1400bb2e0
jmp 0x1400ba6dc
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 + 0xf0]
xor r9d, r9d
mov r8d, dword [rsp + 0xe0]
mov rdx, rsi
mov dword [rsp + 0x38], r12d
mov rcx, r14
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x28], rax
xor eax, eax
mov qword [rsp + 0x20], rax
call fcn.1400d9420
mov edx, dword [rsp + 0x44]
test edx, edx
je 0x1400ba772
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1400ba741
xor eax, eax
mov r8d, edx
mov edx, 0x3d
mov dword [rsp + 0x20], eax
mov r9d, r12d
mov rcx, rbx
call fcn.1400bb2e0
jmp 0x1400ba772
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], r12d
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 0x1400ba78d
mov r8d, ebp
mov rdx, rbx
call fcn.1400d4fb0
jmp 0x1400ba79e
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd r8, ebp
mov dword [rcx + r8*4], eax
xor ebp, ebp
lea r8, str.RECURSIVE_STEP
mov edx, 1
mov qword [rdi + 0x50], rbp
mov rcx, r14
call fcn.140124690
lea r8, [rsp + 0x60]
mov rdx, rsi
mov rcx, r14
call fcn.14010edd0
mov qword [rdi + 0x50], r13
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1400ba7f4
mov r9d, r15d
mov dword [rsp + 0x20], ebp
xor r8d, r8d
mov edx, 9
mov rcx, rbx
call fcn.1400bb2e0
jmp 0x1400ba81e
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 r12d
mov eax, dword [rcx + 0x4c]
add eax, dword [rcx + 0x48]
jns 0x1400ba87c
mov r8d, r12d
mov rdx, rbx
call fcn.1400d4fb0
mov r13, qword [rsp + 0x50]
mov rdx, qword [rsi + 0x48]
mov rbp, qword [rsp + 0xa0]
test rdx, rdx
je 0x1400ba856
mov rcx, qword [r14]
call fcn.1400b1b30
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x48], r13
mov r13, qword [rsp + 0x98]
mov qword [rsi + 0x60], rax
add rsp, 0xa8
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd rdx, r12d
mov dword [rcx + rdx*4], eax
jmp 0x1400ba838
lea rdx, str.recursive_aggregate_queries_not_supported
mov rcx, r14
call fcn.1400ed030
jmp 0x1400ba83d