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

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x98
mov rax, qword [rdx]
xor r9d, r9d
mov rsi, qword [rdx + 0x20]
mov rdi, rdx
mov rbx, qword [rcx + 0x10]
xor r8d, r8d
mov r15, rcx
mov dword [rsp + 0xd0], r9d
mov ebp, dword [rax]
mov r12d, r9d
mov rax, qword [rdx + 0x48]
lea edx, [r9 + 0x21]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x20], r9
call fcn.14004c8a0
test eax, eax
jne 0x140037544
mov qword [rsp + 0x90], r13
mov rcx, rbx
mov qword [rsp + 0x88], r14
call fcn.140084160
mov ecx, 0x140
mov dword [rsp + 0xd8], eax
mov word [rdi + 0xa], cx
mov r8d, eax
mov rcx, r15
mov rdx, rdi
call fcn.14002a180
mov rax, qword [rdi + 0x58]
xor r10d, r10d
mov r13, qword [rdi + 0x40]
mov edx, r10d
mov qword [rsp + 0x58], rax
mov ecx, r10d
mov eax, dword [rdi + 0x10]
mov dword [rsp + 0x40], eax
mov eax, dword [rdi + 0x14]
mov qword [rdi + 0x10], r10
mov qword [rdi + 0x58], r10
movsxd r8, dword [rsi]
mov dword [rsp + 0xe8], eax
mov qword [rsp + 0x48], r13
test r8, r8
jle 0x140036e7c
lea rax, [rsi + 0x48]
nop dword [rax]
test byte [rax], 0x20
jne 0x140036e68
inc edx
inc rcx
add rax, 0x70
cmp rcx, r8
jl 0x140036e50
mov edx, r10d
jmp 0x140036e7e
movsxd rax, edx
imul rcx, rax, 0x70
mov edx, dword [rcx + rsi + 0x4c]
mov dword [rsp + 0xd0], edx
jmp 0x140036e7e
mov edx, ecx
mov esi, dword [r15 + 0x34]
lea eax, [rsi + 1]
mov dword [r15 + 0x34], eax
cmp byte [rdi + 8], 0x74
jne 0x140036eac
test r13, r13
mov ecx, 6
mov r8d, 8
mov r12d, eax
cmovne ecx, r8d
inc eax
mov dword [r15 + 0x34], eax
jmp 0x140036ebc
test r13, r13
mov ecx, 5
mov eax, 7
cmovne ecx, eax
inc dword [r15 + 0x38]
mov r14d, dword [r15 + 0x38]
mov byte [rsp + 0x60], cl
mov dword [rsp + 0x64], esi
mov qword [rsp + 0x70], r10
mov qword [rsp + 0x68], r10
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x140036f02
mov r8d, edx
mov dword [rsp + 0x20], ebp
mov edx, 0x71
mov r9d, r14d
mov rcx, rbx
call fcn.140038220
xor r10d, r10d
jmp 0x140036f2c
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], edx
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], r10
test r13, r13
je 0x140037022
mov r8d, 1
mov rdx, rdi
mov rcx, r15
call fcn.14003ddc0
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov r8d, dword [r13]
mov rbp, rax
movsxd rdx, dword [rbx + 0xb8]
add r8d, 2
cmp dword [rcx + 0x3c], edx
jg 0x140036f80
mov dword [rsp + 0x20], r9d
mov edx, 0x6e
mov r9d, r8d
mov rcx, rbx
mov r8d, esi
call fcn.140038220
mov edx, eax
jmp 0x140036fab
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], esi
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 0x140036fce
mov r8, rbp
mov edx, 0xfffffff7
call fcn.140034c90
xor r10d, r10d
mov qword [rsp + 0x78], r13
jmp 0x140037079
test edx, edx
jns 0x140036fda
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 0x14003700b
mov r9d, 0xfffffff7
mov r8, rbp
mov rcx, rbx
call fcn.140092010
xor r10d, r10d
mov qword [rsp + 0x78], r13
jmp 0x140037079
test rbp, rbp
je 0x140037018
mov qword [rdx + 0x10], rbp
mov byte [rdx + 1], 0xf7
mov qword [rsp + 0x78], r13
xor r10d, r10d
jmp 0x140037079
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x14003704f
mov r9d, ebp
mov dword [rsp + 0x20], r10d
mov r8d, esi
mov edx, 0x6e
mov rcx, rbx
call fcn.140038220
xor r10d, r10d
jmp 0x140037079
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], esi
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], r10d
mov qword [rax + rcx*8 + 0x10], r10
test r12d, r12d
je 0x1400370e2
mov rax, qword [rbx + 0x18]
movsxd r9, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], r9d
jg 0x1400370ae
xor r9d, r9d
mov dword [rsp + 0x20], r10d
mov r8d, r12d
mov rcx, rbx
lea edx, [r9 + 0x6e]
call fcn.140038220
mov r9d, eax
xor r10d, r10d
jmp 0x1400370da
lea rcx, [r9 + r9*2]
lea eax, [r9 + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x6e
mov dword [rax + rcx*8 + 4], r12d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r10
mov dword [rdi + 0x18], r9d
or dword [rdi + 0xc], 0x20
mov rbp, qword [rsp + 0x50]
lea r8, str.SETUP
mov qword [rdi + 0x40], r10
mov edx, 1
mov rcx, r15
mov qword [rbp + 0x50], r10
call fcn.140082d20
lea r8, [rsp + 0x60]
mov rdx, rbp
mov rcx, r15
call fcn.140072650
mov qword [rbp + 0x50], rdi
test eax, eax
jne 0x140037516
mov rax, qword [rbx + 0x18]
movsxd r13, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], r13d
jg 0x140037158
xor r9d, r9d
mov r8d, esi
mov dword [rsp + 0x20], r9d
mov edx, 0x25
mov r9d, dword [rsp + 0xd8]
mov rcx, rbx
call fcn.140038220
mov r13d, eax
xor r8d, r8d
jmp 0x140037194
mov edx, dword [rsp + 0xd8]
lea eax, [r13 + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [r13*2]
mov rax, qword [rbx + 0x68]
add rcx, r13
xor r8d, r8d
mov dword [rax + rcx*8], 0x25
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
mov r12d, dword [rsp + 0xd0]
cmp dword [rax + 0x3c], ecx
jg 0x1400371c8
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov r8d, r12d
mov rcx, rbx
lea edx, [r9 + 0x7e]
call fcn.140038220
xor r8d, r8d
jmp 0x1400371f3
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], r12d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r8
mov rax, qword [rsp + 0x48]
movsxd rcx, dword [rbx + 0xb8]
test rax, rax
je 0x140037251
mov edx, dword [rax]
mov rax, qword [rbx + 0x18]
inc edx
cmp dword [rax + 0x3c], ecx
jg 0x14003722e
mov r9d, edx
mov dword [rsp + 0x20], r14d
mov edx, 0x62
mov r8d, esi
mov rcx, rbx
call fcn.140038220
xor r8d, r8d
jmp 0x1400372a2
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x62
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r14d
jmp 0x140037299
mov rax, qword [rbx + 0x18]
cmp dword [rax + 0x3c], ecx
jg 0x140037277
mov dword [rsp + 0x20], r8d
mov r9d, r14d
mov r8d, esi
mov edx, 0x7c
mov rcx, rbx
call fcn.140038220
xor r8d, r8d
jmp 0x1400372a2
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x7c
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov dword [rax + rcx*8 + 4], esi
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x1400372cb
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov r8d, esi
mov rcx, rbx
lea edx, [r9 + 0x78]
call fcn.140038220
jmp 0x1400372f5
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], esi
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r8
mov r14, qword [rbx + 0x18]
movsxd rsi, dword [r14 + 0x50]
lea eax, [rsi + 1]
mov dword [r14 + 0x50], eax
lea eax, [rsi - 1]
test esi, eax
jne 0x140037329
mov rdx, qword [r14 + 0x58]
lea eax, [rsi*2 + 1]
mov rcx, qword [r14]
movsxd r8, eax
shl r8, 2
call fcn.140055590
mov qword [r14 + 0x58], rax
mov rcx, qword [r14 + 0x58]
or ebp, 0xffffffff
test rcx, rcx
je 0x140037338
mov dword [rcx + rsi*4], ebp
mov edx, dword [rsp + 0xe8]
not esi
test edx, edx
jle 0x140037374
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x1400373e4
mov r8d, edx
mov dword [rsp + 0x20], 1
mov edx, 0x30
mov r9d, esi
mov rcx, rbx
call fcn.140038220
xor r9d, r9d
mov rax, qword [rsp + 0xe0]
mov r8d, r12d
mov r14d, dword [rsp + 0xd8]
mov rdx, rdi
mov dword [rsp + 0x38], r14d
mov rcx, r15
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
xor r9d, r9d
call fcn.140048ac0
mov edx, dword [rsp + 0x40]
xor r12d, r12d
test edx, edx
je 0x140037444
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x140037419
mov r8d, edx
mov dword [rsp + 0x20], r12d
lea edx, [r12 + 0x3b]
mov r9d, r14d
mov rcx, rbx
call fcn.140038220
jmp 0x140037444
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x30
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], 1
mov qword [rax + rcx*8 + 0x10], r9
jmp 0x140037377
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], r14d
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 0x14003745f
mov eax, dword [rbx + 0xb8]
not esi
movsxd rcx, esi
mov dword [rdx + rcx*4], eax
test byte [rdi + 0xc], 8
mov rcx, r15
je 0x140037476
lea rdx, str.recursive_aggregate_queries_not_supported
call fcn.140057c20
jmp 0x1400374a4
lea r8, str.RECURSIVE_STEP
mov qword [rdi + 0x48], r12
mov edx, 1
call fcn.140082d20
lea r8, [rsp + 0x60]
mov rdx, rdi
mov rcx, r15
call fcn.140072650
mov rax, qword [rsp + 0x50]
mov qword [rdi + 0x48], rax
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x1400374cd
xor r8d, r8d
mov dword [rsp + 0x20], r12d
mov r9d, r13d
mov rcx, rbx
lea edx, [r8 + 0xd]
call fcn.140038220
jmp 0x1400374f5
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], r13d
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
mov rax, qword [rbx + 0x18]
mov r13, qword [rsp + 0x48]
mov rdx, qword [rax + 0x58]
test rdx, rdx
je 0x140037516
mov eax, dword [rbx + 0xb8]
sub ebp, r14d
movsxd rcx, ebp
mov dword [rdx + rcx*4], eax
mov rdx, qword [rdi + 0x40]
mov r14, qword [rsp + 0x88]
test rdx, rdx
je 0x14003752f
mov rcx, qword [r15]
call fcn.140030ac0
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x40], r13
mov r13, qword [rsp + 0x90]
mov qword [rdi + 0x58], rax
add rsp, 0x98
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret