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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xa8
mov rax, qword [0x1400e6010]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rax, qword [rdx]
xor r9d, r9d
mov rbx, qword [rcx + 0x10]
mov rsi, rcx
mov rcx, qword [rcx]
mov rdi, rdx
mov r14, qword [rdx + 0x20]
mov r15d, dword [rax]
mov rax, qword [rdx + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], r8
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x44], r9d
cmp byte [rcx + 0xb5], r9b
jne 0x140094899
cmp byte [rsi + 0x1d4], r9b
jne 0x140094899
mov r10, qword [rcx + 0x1a0]
test r10, r10
je 0x140094899
mov rax, qword [rsi + 0x210]
lea edx, [r9 + 0x21]
mov rcx, qword [rcx + 0x1a8]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
call r10
mov ebp, eax
cmp eax, 1
jne 0x140094873
lea rdx, str.not_authorized
mov rcx, rsi
call fcn.140019ae0
mov dword [rsi + 0x18], 0x17
jmp 0x140094891
test eax, 0xfffffffd
je 0x140094891
lea rdx, str.authorizer_malfunction
mov rcx, rsi
mov ebp, 1
call fcn.140019ae0
mov dword [rsi + 0x18], ebp
test ebp, ebp
jne 0x140094f91
mov qword [rsp + 0xf8], r12
mov rcx, rbx
mov qword [rsp + 0xa0], r13
call fcn.14003efe0
mov r8d, eax
mov word [rdi + 0xa], 0x140
mov rdx, rdi
mov rcx, rsi
mov r13d, eax
call fcn.140094190
mov rax, qword [rdi + 0x58]
xor r10d, r10d
mov r9, qword [rdi + 0x40]
mov edx, r10d
mov qword [rsp + 0x68], rax
mov eax, dword [rdi + 0x10]
mov dword [rsp + 0x54], eax
mov eax, dword [rdi + 0x14]
mov qword [rdi + 0x10], r10
mov qword [rdi + 0x58], r10
movsxd r8, dword [r14]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x48], r9
test r8, r8
jle 0x140094930
mov ecx, r10d
lea rax, [r14 + 0x48]
test byte [rax], 0x20
jne 0x14009491d
inc edx
inc rcx
add rax, 0x70
cmp rcx, r8
jl 0x140094905
mov r8d, r10d
jmp 0x140094933
movsxd rax, edx
imul rcx, rax, 0x70
mov r8d, dword [rcx + r14 + 0x4c]
mov dword [rsp + 0x40], r8d
jmp 0x140094933
mov r8d, edx
mov ebp, dword [rsi + 0x34]
lea eax, [rbp + 1]
mov dword [rsi + 0x34], eax
cmp byte [rdi + 8], 0x74
jne 0x14009495d
test r9, r9
mov dword [rsp + 0x44], eax
mov ecx, 6
mov edx, 8
cmovne ecx, edx
inc eax
mov dword [rsi + 0x34], eax
jmp 0x14009496d
test r9, r9
mov ecx, 5
mov eax, 7
cmovne ecx, eax
inc dword [rsi + 0x38]
mov r12d, dword [rsi + 0x38]
mov byte [rsp + 0x70], cl
mov dword [rsp + 0x74], ebp
mov qword [rsp + 0x80], r10
mov qword [rsp + 0x78], r10
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x1400949b8
mov r9d, r12d
mov dword [rsp + 0x20], r15d
mov edx, 0x71
mov rcx, rbx
call fcn.14003e7a0
mov r9, qword [rsp + 0x48]
xor r10d, r10d
jmp 0x1400949e4
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x71
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r10
test r9, r9
je 0x140094ae1
mov rdx, rdi
mov rcx, rsi
call fcn.140094600
mov r15, qword [rsp + 0x48]
xor r9d, r9d
mov rcx, qword [rbx + 0x18]
mov r14, rax
movsxd rdx, dword [rbx + 0xb8]
mov r8d, dword [r15]
add r8d, 2
cmp dword [rcx + 0x3c], edx
jg 0x140094a36
mov dword [rsp + 0x20], r9d
mov edx, 0x6e
mov r9d, r8d
mov rcx, rbx
mov r8d, ebp
call fcn.14003e7a0
mov edx, eax
jmp 0x140094a61
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x6e
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 rcx, qword [rbx]
cmp byte [rcx + 0x61], 0
je 0x140094a87
mov r8, r14
mov edx, 0xfffffff7
call fcn.14003f690
xor r10d, r10d
mov qword [rsp + 0x88], r15
jmp 0x140094b3e
test edx, edx
jns 0x140094a93
mov edx, dword [rbx + 0xb8]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x140094ac7
mov r9d, 0xfffffff7
mov r8, r14
mov rcx, rbx
call fcn.14003f930
xor r10d, r10d
mov qword [rsp + 0x88], r15
jmp 0x140094b3e
test r14, r14
je 0x140094ad4
mov qword [rdx + 0x10], r14
mov byte [rdx + 1], 0xf7
mov qword [rsp + 0x88], r15
xor r10d, r10d
jmp 0x140094b3e
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x140094b0e
mov r9d, r15d
mov dword [rsp + 0x20], r10d
mov r8d, ebp
mov edx, 0x6e
mov rcx, rbx
call fcn.14003e7a0
xor r10d, r10d
jmp 0x140094b39
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x6e
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]
mov r8d, dword [rsp + 0x44]
test r8d, r8d
je 0x140094ba5
mov rax, qword [rbx + 0x18]
movsxd rdx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], edx
jg 0x140094b73
xor r9d, r9d
mov dword [rsp + 0x20], r10d
mov rcx, rbx
lea edx, [r9 + 0x6e]
call fcn.14003e7a0
mov edx, eax
xor r10d, r10d
jmp 0x140094b9e
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x6e
mov dword [rax + rcx*8 + 4], r8d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r10
mov dword [rdi + 0x18], edx
or dword [rdi + 0xc], 0x20
mov r14, qword [rsp + 0x58]
lea r8, str.SETUP
mov qword [rdi + 0x40], r10
mov edx, 1
mov rcx, rsi
mov qword [r14 + 0x50], r10
call fcn.14003ed60
lea r8, [rsp + 0x70]
mov rdx, r14
mov rcx, rsi
call fcn.14009b7b0
mov qword [r14 + 0x50], rdi
test eax, eax
jne 0x140094f63
mov rax, qword [rbx + 0x18]
movsxd r14, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], r14d
jg 0x140094c16
xor r9d, r9d
mov r8d, ebp
mov dword [rsp + 0x20], r9d
mov edx, 0x25
mov r9d, r13d
mov rcx, rbx
call fcn.14003e7a0
mov r14d, eax
xor r8d, r8d
jmp 0x140094c45
lea rcx, [r14 + r14*2]
xor r8d, r8d
lea eax, [r14 + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x25
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x140094c73
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov r8d, dword [rsp + 0x40]
mov rcx, rbx
lea edx, [r9 + 0x7e]
call fcn.14003e7a0
xor r8d, r8d
jmp 0x140094ca1
mov edx, dword [rsp + 0x40]
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x7e
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r8
movsxd rcx, dword [rbx + 0xb8]
mov rax, qword [rbx + 0x18]
test r15, r15
je 0x140094cfe
mov edx, dword [r15]
inc edx
cmp dword [rax + 0x3c], ecx
jg 0x140094cd8
mov r9d, edx
mov dword [rsp + 0x20], r12d
mov edx, 0x62
mov r8d, ebp
mov rcx, rbx
call fcn.14003e7a0
xor r12d, r12d
jmp 0x140094d4e
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8 + 0xc], r12d
xor r12d, r12d
mov dword [rax + rcx*8], 0x62
mov dword [rax + rcx*8 + 8], edx
jmp 0x140094d45
cmp dword [rax + 0x3c], ecx
jg 0x140094d20
mov dword [rsp + 0x20], r8d
mov r9d, r12d
mov r8d, ebp
mov edx, 0x7c
mov rcx, rbx
call fcn.14003e7a0
xor r12d, r12d
jmp 0x140094d4e
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8 + 8], r12d
xor r12d, r12d
mov dword [rax + rcx*8 + 0xc], r12d
mov dword [rax + rcx*8], 0x7c
mov qword [rax + rcx*8 + 0x10], r12
mov dword [rax + rcx*8 + 4], ebp
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x140094d77
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov r8d, ebp
mov rcx, rbx
lea edx, [r9 + 0x78]
call fcn.14003e7a0
jmp 0x140094da1
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x78
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r12
mov rcx, rbx
call fcn.14003efe0
mov r8d, dword [rsp + 0x50]
mov ebp, eax
test r8d, r8d
jle 0x140094e0d
mov rcx, qword [rbx + 0x18]
movsxd rdx, dword [rbx + 0xb8]
cmp dword [rcx + 0x3c], edx
jg 0x140094ddf
mov r9d, eax
mov dword [rsp + 0x20], 1
mov edx, 0x30
mov rcx, rbx
call fcn.14003e7a0
jmp 0x140094e0d
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x30
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], 1
mov qword [rax + rcx*8 + 0x10], r12
mov rax, qword [rsp + 0x60]
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, rdi
mov dword [rsp + 0x38], r13d
mov rcx, rsi
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
call fcn.140090a80
mov edx, dword [rsp + 0x54]
test edx, edx
je 0x140094e95
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x140094e6a
mov r8d, edx
mov dword [rsp + 0x20], r12d
mov edx, 0x3b
mov r9d, r13d
mov rcx, rbx
call fcn.14003e7a0
jmp 0x140094e95
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x3b
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
mov rax, qword [rbx + 0x18]
mov rdx, qword [rax + 0x58]
test rdx, rdx
je 0x140094eb0
mov eax, dword [rbx + 0xb8]
not ebp
movsxd rcx, ebp
mov dword [rdx + rcx*4], eax
test byte [rdi + 0xc], 8
mov rcx, rsi
je 0x140094ec7
lea rdx, str.recursive_aggregate_queries_not_supported
call fcn.140019ae0
jmp 0x140094ef5
lea r8, str.RECURSIVE_STEP
mov qword [rdi + 0x48], r12
mov edx, 1
call fcn.14003ed60
lea r8, [rsp + 0x70]
mov rdx, rdi
mov rcx, rsi
call fcn.14009b7b0
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x48], rax
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x140094f1e
xor r8d, r8d
mov dword [rsp + 0x20], r12d
mov r9d, r14d
mov rcx, rbx
lea edx, [r8 + 0xd]
call fcn.14003e7a0
jmp 0x140094f46
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov qword [rax + rcx*8], 0xd
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
mov rax, qword [rbx + 0x18]
mov r8, qword [rax + 0x58]
test r8, r8
je 0x140094f63
mov eax, dword [rbx + 0xb8]
not r13d
movsxd rdx, r13d
mov dword [r8 + rdx*4], eax
mov rdx, qword [rdi + 0x40]
mov r13, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xf8]
test rdx, rdx
je 0x140094f84
mov rcx, qword [rsi]
call fcn.1400592e0
mov rax, qword [rsp + 0x68]
mov qword [rdi + 0x58], rax
mov qword [rdi + 0x40], r15
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400c69d0
add rsp, 0xa8
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret