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

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x98
mov rax, qword [rdx]
xor r9d, r9d
mov rdi, rdx
mov rsi, qword [rdx + 0x28]
mov r14, rcx
mov rbx, qword [rcx + 0x10]
mov r12d, r9d
mov dword [rsp + 0xd0], r9d
mov ebp, dword [rax]
mov rax, qword [rdx + 0x50]
mov qword [rsp + 0x50], rax
cmp qword [rdx + 0x70], r9
je 0x18007b370
lea rdx, str.cannot_use_window_functions_in_recursive_queries
call fcn.1800136c0
add rsp, 0x98
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
xor r8d, r8d
mov qword [rsp + 0x20], r9
lea edx, [r8 + 0x21]
call fcn.180058f50
test eax, eax
jne 0x18007ba8b
mov qword [rsp + 0x90], r13
mov rcx, rbx
mov qword [rsp + 0x88], r15
call fcn.1800336e0
mov ecx, 0x140
mov dword [rsp + 0xd8], eax
mov word [rdi + 0xa], cx
mov r8d, eax
mov rcx, r14
mov rdx, rdi
call fcn.18007af70
mov rax, qword [rdi + 0x60]
xor r10d, r10d
mov r13, qword [rdi + 0x48]
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 + 0x60], r10
movsxd r8, dword [rsi]
mov dword [rsp + 0xe8], eax
mov qword [rsp + 0x48], r13
test r8, r8
jle 0x18007b42c
lea rax, [rsi + 0x48]
nop
test byte [rax], 0x20
jne 0x18007b418
inc edx
inc rcx
add rax, 0x70
cmp rcx, r8
jl 0x18007b400
mov edx, r10d
jmp 0x18007b42e
movsxd rax, edx
imul rcx, rax, 0x70
mov edx, dword [rcx + rsi + 0x4c]
mov dword [rsp + 0xd0], edx
jmp 0x18007b42e
mov edx, ecx
mov esi, dword [r14 + 0x34]
lea eax, [rsi + 1]
mov dword [r14 + 0x34], eax
cmp byte [rdi + 8], 0x7b
jne 0x18007b45c
test r13, r13
mov ecx, 6
mov r8d, 8
mov r12d, eax
cmovne ecx, r8d
inc eax
mov dword [r14 + 0x34], eax
jmp 0x18007b46c
test r13, r13
mov ecx, 5
mov eax, 7
cmovne ecx, eax
inc dword [r14 + 0x38]
mov r15d, dword [r14 + 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 0x18007b4b2
mov r8d, edx
mov dword [rsp + 0x20], ebp
mov edx, reloc.WS2_32.dll_WSACleanup
mov r9d, r15d
mov rcx, rbx
call fcn.180032ba0
xor r10d, r10d
jmp 0x18007b4dc
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], reloc.WS2_32.dll_WSACleanup
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], r10
test r13, r13
je 0x18007b5cc
mov rdx, rdi
mov rcx, r14
call fcn.18007b180
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 0x18007b52a
mov dword [rsp + 0x20], r9d
mov edx, WSACleanup
mov r9d, r8d
mov rcx, rbx
mov r8d, esi
call fcn.180032ba0
mov edx, eax
jmp 0x18007b555
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], WSACleanup
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 0x18007b578
mov r8, rbp
mov edx, 0xfffffff7
call fcn.180033be0
xor r10d, r10d
mov qword [rsp + 0x78], r13
jmp 0x18007b623
test edx, edx
jns 0x18007b584
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 0x18007b5b5
mov r9d, 0xfffffff7
mov r8, rbp
mov rcx, rbx
call fcn.180033df0
xor r10d, r10d
mov qword [rsp + 0x78], r13
jmp 0x18007b623
test rbp, rbp
je 0x18007b5c2
mov qword [rdx + 0x10], rbp
mov byte [rdx + 1], 0xf7
mov qword [rsp + 0x78], r13
xor r10d, r10d
jmp 0x18007b623
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x18007b5f9
mov r9d, ebp
mov dword [rsp + 0x20], r10d
mov r8d, esi
mov edx, WSACleanup
mov rcx, rbx
call fcn.180032ba0
xor r10d, r10d
jmp 0x18007b623
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], WSACleanup
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 0x18007b68c
mov rax, qword [rbx + 0x18]
movsxd r9, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], r9d
jg 0x18007b658
xor r9d, r9d
mov dword [rsp + 0x20], r10d
mov r8d, r12d
mov rcx, rbx
lea edx, [r9 + 0x71]
call fcn.180032ba0
mov r9d, eax
xor r10d, r10d
jmp 0x18007b684
lea rcx, [r9 + r9*2]
lea eax, [r9 + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], WSACleanup
mov dword [rax + rcx*8 + 4], r12d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r10
mov dword [rdi + 0x1c], r9d
or dword [rdi + 0xc], 0x20
mov rbp, qword [rsp + 0x50]
lea r8, str.SETUP
mov qword [rdi + 0x48], r10
mov edx, 1
mov rcx, r14
mov qword [rbp + 0x58], r10
call fcn.1800332f0
lea r8, [rsp + 0x60]
mov rdx, rbp
mov rcx, r14
call fcn.1800810a0
mov qword [rbp + 0x58], rdi
test eax, eax
jne 0x18007ba5d
mov rax, qword [rbx + 0x18]
movsxd r13, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], r13d
jg 0x18007b702
xor r9d, r9d
mov r8d, esi
mov dword [rsp + 0x20], r9d
mov edx, 0x24
mov r9d, dword [rsp + 0xd8]
mov rcx, rbx
call fcn.180032ba0
mov r13d, eax
xor r8d, r8d
jmp 0x18007b73e
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], Ordinal_41
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 0x18007b773
mov dword [rsp + 0x20], r8d
xor r9d, r9d
mov r8d, r12d
mov edx, 0x82
mov rcx, rbx
call fcn.180032ba0
xor r8d, r8d
jmp 0x18007b79e
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x82
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 0x18007b7fc
mov edx, dword [rax]
mov rax, qword [rbx + 0x18]
inc edx
cmp dword [rax + 0x3c], ecx
jg 0x18007b7d9
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x5a
mov r8d, esi
mov rcx, rbx
call fcn.180032ba0
xor r8d, r8d
jmp 0x18007b84d
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x5a
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
jmp 0x18007b844
mov rax, qword [rbx + 0x18]
cmp dword [rax + 0x3c], ecx
jg 0x18007b822
mov dword [rsp + 0x20], r8d
mov r9d, r15d
mov r8d, esi
mov edx, 0x80
mov rcx, rbx
call fcn.180032ba0
xor r8d, r8d
jmp 0x18007b84d
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x80
mov dword [rax + rcx*8 + 8], r15d
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 0x18007b876
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov r8d, esi
mov rcx, rbx
lea edx, [r9 + 0x7c]
call fcn.180032ba0
jmp 0x18007b8a0
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 + 4], esi
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r8
mov r15, qword [rbx + 0x18]
movsxd rsi, dword [r15 + 0x48]
lea eax, [rsi + 1]
mov dword [r15 + 0x48], eax
lea eax, [rsi - 1]
test esi, eax
jne 0x18007b8d4
mov rdx, qword [r15 + 0x50]
lea eax, [rsi*2 + 1]
mov rcx, qword [r15]
movsxd r8, eax
shl r8, 2
call fcn.1800105d0
mov qword [r15 + 0x50], rax
mov rcx, qword [r15 + 0x50]
or ebp, 0xffffffff
test rcx, rcx
je 0x18007b8e3
mov dword [rcx + rsi*4], ebp
mov edx, dword [rsp + 0xe8]
not esi
mov r8d, esi
mov rcx, rbx
call fcn.180078790
mov rax, qword [rsp + 0xe0]
xor r9d, r9d
mov r15d, dword [rsp + 0xd8]
mov r8d, r12d
mov dword [rsp + 0x38], r15d
mov rdx, rdi
mov dword [rsp + 0x30], esi
mov rcx, r14
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
call fcn.180078940
mov edx, dword [rsp + 0x40]
xor r12d, r12d
test edx, edx
je 0x18007b98b
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x18007b960
mov r8d, edx
mov dword [rsp + 0x20], r12d
lea edx, [r12 + 0x31]
mov r9d, r15d
mov rcx, rbx
call fcn.180032ba0
jmp 0x18007b98b
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], Ordinal_50
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
mov rax, qword [rbx + 0x18]
mov rdx, qword [rax + 0x50]
test rdx, rdx
je 0x18007b9a6
mov eax, dword [rbx + 0xb8]
not esi
movsxd rcx, esi
mov dword [rdx + rcx*4], eax
test byte [rdi + 0xc], 8
mov rcx, r14
je 0x18007b9bd
lea rdx, str.recursive_aggregate_queries_not_supported
call fcn.1800136c0
jmp 0x18007b9eb
lea r8, str.RECURSIVE_STEP
mov qword [rdi + 0x50], r12
mov edx, 1
call fcn.1800332f0
lea r8, [rsp + 0x60]
mov rdx, rdi
mov rcx, r14
call fcn.1800810a0
mov rax, qword [rsp + 0x50]
mov qword [rdi + 0x50], rax
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x18007ba14
xor r8d, r8d
mov dword [rsp + 0x20], r12d
mov r9d, r13d
mov rcx, rbx
lea edx, [r8 + 0xb]
call fcn.180032ba0
jmp 0x18007ba3c
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov qword [rax + rcx*8], ntohl
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 + 0x50]
test rdx, rdx
je 0x18007ba5d
mov eax, dword [rbx + 0xb8]
sub ebp, r15d
movsxd rcx, ebp
mov dword [rdx + rcx*4], eax
mov rdx, qword [rdi + 0x48]
mov r15, qword [rsp + 0x88]
test rdx, rdx
je 0x18007ba76
mov rcx, qword [r14]
call fcn.18004c3d0
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x48], r13
mov r13, qword [rsp + 0x90]
mov qword [rdi + 0x60], rax
add rsp, 0x98
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret