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

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [rdx + 0x20]
mov rdi, qword [rdx + 0x28]
mov rbx, qword [rcx + 0x10]
mov ebp, dword [rax]
xor eax, eax
mov rsi, rdx
mov r14, rcx
mov dword [rsp + 0xd0], eax
mov r15d, eax
cmp qword [rdx + 0x70], rax
je 0x14015b906
lea rdx, str.cannot_use_window_functions_in_recursive_queries
call fcn.14018bbc0
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x21]
call fcn.14017d0e0
test eax, eax
jne 0x14015c070
dec dword [r14 + 0x44]
mov eax, dword [r14 + 0x44]
mov ecx, 0x140
mov word [rsi + 2], cx
mov rdx, rsi
mov r8d, eax
mov rcx, r14
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x88], r13
mov dword [rsp + 0xe8], eax
call fcn.140139860
mov rax, qword [rsi + 0x60]
mov r12, qword [rsi + 0x48]
xor r9d, r9d
mov qword [rsp + 0x50], rax
mov eax, dword [rsi + 8]
mov qword [rsi + 0x60], r9
mov edx, r9d
mov dword [rsp + 0x44], eax
mov eax, dword [rsi + 0xc]
mov qword [rsi + 8], r9
movsxd r8, dword [rdi]
mov qword [rsp + 0x48], r12
mov ecx, r9d
mov dword [rsp + 0x40], eax
test r8, r8
jle 0x14015b9c3
lea rax, [rdi + 0x48]
test byte [rax], 0x20
jne 0x14015b9ad
inc rcx
inc edx
add rax, 0x70
cmp rcx, r8
jl 0x14015b995
mov r8d, r9d
jmp 0x14015b9c6
movsxd rax, edx
imul rcx, rax, 0x70
mov r8d, dword [rcx + rdi + 0x4c]
mov dword [rsp + 0xd0], r8d
jmp 0x14015b9c6
mov r8d, ecx
mov r13d, dword [r14 + 0x34]
lea eax, [r13 + 1]
mov dword [r14 + 0x34], eax
cmp byte [rsi], 0x86
jne 0x14015b9ee
test r12, r12
mov ecx, r9d
mov r15d, eax
setne cl
add ecx, 5
inc eax
mov dword [r14 + 0x34], eax
jmp 0x14015b9f9
mov rax, r12
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], r13d
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x70], r9
mov dword [rsp + 0x68], r9d
movsxd rcx, dword [rbx + 0x98]
mov dword [rsp + 0xd8], edx
cmp dword [rbx + 0x9c], ecx
jg 0x14015ba48
mov r9d, edx
mov rcx, rbx
mov edx, 0x78
mov dword [rsp + 0x20], ebp
call fcn.14015d860
xor r9d, r9d
jmp 0x14015ba75
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x98], eax
mov rax, qword [rbx + 0x90]
mov dword [rax + rcx*8], 0x78
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], r9
test r12, r12
je 0x14015bb6d
mov r8d, 1
mov rdx, rsi
mov rcx, r14
call fcn.140167c60
mov r8d, dword [r12]
movsxd rdx, dword [rbx + 0x98]
add r8d, 2
mov rdi, rax
cmp dword [rbx + 0x9c], edx
jg 0x14015bac4
xor eax, eax
mov r9d, r8d
mov rcx, rbx
lea edx, [rax + 0x74]
mov r8d, r13d
mov dword [rsp + 0x20], eax
call fcn.14015d860
mov edx, eax
jmp 0x14015baf6
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
xor r9d, r9d
mov dword [rbx + 0x98], eax
mov rax, qword [rbx + 0x90]
mov dword [rax + rcx*8], reloc.WS2_32.dll_WSACleanup
mov dword [rax + rcx*8 + 4], r13d
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 + 0x67], 0
je 0x14015bb18
mov r8, rdi
mov edx, 0xfffffff7
call fcn.140145c20
mov qword [rsp + 0x78], r12
xor ebp, ebp
jmp 0x14015bbc7
test edx, edx
jns 0x14015bb24
mov edx, dword [rbx + 0x98]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x90]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x14015bb57
mov r9d, 0xfffffff7
mov r8, rdi
mov rcx, rbx
call fcn.1401dd4c0
mov qword [rsp + 0x78], r12
xor ebp, ebp
jmp 0x14015bbc7
test rdi, rdi
je 0x14015bb64
mov qword [rdx + 0x10], rdi
mov byte [rdx + 1], 0xf7
mov qword [rsp + 0x78], r12
xor ebp, ebp
jmp 0x14015bbc7
movsxd rcx, dword [rbx + 0x98]
cmp dword [rbx + 0x9c], ecx
jg 0x14015bb98
mov dword [rsp + 0x20], r9d
mov r8d, r13d
mov edx, reloc.WS2_32.dll_WSACleanup
mov r9d, ebp
mov rcx, rbx
call fcn.14015d860
xor ebp, ebp
jmp 0x14015bbc7
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x98], eax
mov rax, qword [rbx + 0x90]
mov dword [rax + rcx*8 + 8], ebp
xor ebp, ebp
mov dword [rax + rcx*8], reloc.WS2_32.dll_WSACleanup
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rbp
mov dword [rax + rcx*8 + 4], r13d
test r15d, r15d
je 0x14015bc2e
movsxd r9, dword [rbx + 0x98]
cmp dword [rbx + 0x9c], r9d
jg 0x14015bbf7
xor r9d, r9d
mov r8d, r15d
mov rcx, rbx
lea edx, [r9 + 0x74]
mov dword [rsp + 0x20], ebp
call fcn.14015d860
mov r9d, eax
jmp 0x14015bc26
lea rcx, [r9 + r9*2]
lea eax, [r9 + 1]
mov dword [rbx + 0x98], eax
mov rax, qword [rbx + 0x90]
mov dword [rax + rcx*8], reloc.WS2_32.dll_WSACleanup
mov dword [rax + rcx*8 + 4], r15d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], rbp
mov dword [rsi + 0x14], r9d
or dword [rsi + 4], 0x20
mov qword [rsi + 0x48], rbp
mov rdi, rsi
test byte [rdi + 4], 8
jne 0x14015c092
mov rax, qword [rdi + 0x50]
mov byte [rdi], reloc.ODBC32.dll_SQLGetDiagFieldW
test dword [rax + 4], 0x2000
je 0x14015bc57
mov rdi, rax
test rax, rax
jne 0x14015bc35
mov r12, qword [rdi + 0x50]
lea r8, str.SETUP
mov edx, 1
mov rcx, r14
mov qword [r12 + 0x58], rbp
call fcn.1401c62a0
lea r8, [rsp + 0x58]
mov rdx, r12
mov rcx, r14
call fcn.1401b2350
mov qword [r12 + 0x58], rsi
test eax, eax
jne 0x14015c03d
movsxd r15, dword [rbx + 0x98]
cmp dword [rbx + 0x9c], r15d
jg 0x14015bcc0
mov r9d, dword [rsp + 0xe8]
lea edx, [rax + 0x26]
mov r8d, r13d
mov rcx, rbx
mov dword [rsp + 0x20], ebp
call fcn.14015d860
mov r15d, eax
jmp 0x14015bcf5
mov edx, dword [rsp + 0xe8]
lea rcx, [r15 + r15*2]
lea eax, [r15 + 1]
mov dword [rbx + 0x98], eax
mov rax, qword [rbx + 0x90]
mov dword [rax + rcx*8], SQLGetData
mov dword [rax + rcx*8 + 4], r13d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rbp
movsxd rcx, dword [rbx + 0x98]
cmp dword [rbx + 0x9c], ecx
jg 0x14015bd22
mov r8d, dword [rsp + 0xd0]
xor r9d, r9d
mov edx, reloc.ODBC32.dll_SQLGetDiagFieldW
mov rcx, rbx
mov dword [rsp + 0x20], ebp
call fcn.14015d860
jmp 0x14015bd56
mov edx, dword [rsp + 0xd0]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x98], eax
mov rax, qword [rbx + 0x90]
mov dword [rax + rcx*8], reloc.ODBC32.dll_SQLGetDiagFieldW
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], rbp
mov rax, qword [rsp + 0x48]
movsxd rcx, dword [rbx + 0x98]
test rax, rax
je 0x14015bdbe
mov edx, dword [rax]
mov r8d, dword [rsp + 0xd8]
inc edx
cmp dword [rbx + 0x9c], ecx
jg 0x14015bd98
mov dword [rsp + 0x20], r8d
mov r9d, edx
mov rcx, rbx
mov r8d, r13d
mov edx, 0x5d
call fcn.14015d860
jmp 0x14015be1a
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x98], eax
mov rax, qword [rbx + 0x90]
mov dword [rax + rcx*8], 0x5d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
jmp 0x14015be10
cmp dword [rbx + 0x9c], ecx
jg 0x14015bde4
mov r9d, dword [rsp + 0xd8]
mov r8d, r13d
mov edx, SQLGetDiagFieldW
mov rcx, rbx
mov dword [rsp + 0x20], ebp
call fcn.14015d860
jmp 0x14015be1a
mov r8d, dword [rsp + 0xd8]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x98], eax
mov rax, qword [rbx + 0x90]
mov dword [rax + rcx*8], SQLGetDiagFieldW
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rbp
mov dword [rax + rcx*8 + 4], r13d
movsxd rcx, dword [rbx + 0x98]
cmp dword [rbx + 0x9c], ecx
jg 0x14015be42
xor r9d, r9d
mov r8d, r13d
mov edx, 0x81
mov rcx, rbx
mov dword [rsp + 0x20], ebp
call fcn.14015d860
jmp 0x14015be70
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x98], eax
mov rax, qword [rbx + 0x90]
mov dword [rax + rcx*8], SQLGetDiagFieldW
mov dword [rax + rcx*8 + 4], r13d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], rbp
dec dword [r14 + 0x44]
mov edx, dword [rsp + 0x40]
mov ebp, dword [r14 + 0x44]
test edx, edx
jle 0x14015bedf
movsxd rcx, dword [rbx + 0x98]
cmp dword [rbx + 0x9c], ecx
jg 0x14015beac
mov r8d, edx
mov r9d, ebp
mov rcx, rbx
mov edx, gethostbyaddr
mov dword [rsp + 0x20], 1
call fcn.14015d860
jmp 0x14015bedf
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
xor r13d, r13d
mov dword [rbx + 0x98], eax
mov rax, qword [rbx + 0x90]
mov dword [rax + rcx*8], gethostbyaddr
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], r13
mov rax, qword [rsp + 0xe0]
mov r13d, dword [rsp + 0xe8]
mov r8d, dword [rsp + 0xd0]
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x28], rax
xor eax, eax
xor r9d, r9d
mov rdx, rsi
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.140177bc0
mov edx, dword [rsp + 0x44]
test edx, edx
je 0x14015bf7b
movsxd rcx, dword [rbx + 0x98]
cmp dword [rbx + 0x9c], ecx
jg 0x14015bf4a
xor eax, eax
mov r8d, edx
mov r9d, r13d
lea edx, [rax + 0x3c]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.14015d860
jmp 0x14015bf7b
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
xor r8d, r8d
mov dword [rbx + 0x98], eax
mov rax, qword [rbx + 0x90]
mov dword [rax + rcx*8], IsNetDrive
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 [rbx + 0x18]
not ebp
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x14015bf96
mov r8d, ebp
mov rdx, rbx
call fcn.140174110
jmp 0x14015bfa7
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x98]
movsxd r8, ebp
mov dword [rcx + r8*4], eax
xor ebp, ebp
lea r8, str.RECURSIVE_STEP
mov rcx, r14
lea edx, [rbp + 1]
mov qword [rdi + 0x50], rbp
call fcn.1401c62a0
lea r8, [rsp + 0x58]
mov rdx, rsi
mov rcx, r14
call fcn.1401b2350
mov qword [rdi + 0x50], r12
movsxd rcx, dword [rbx + 0x98]
cmp dword [rbx + 0x9c], ecx
jg 0x14015bff9
lea edx, [rbp + 0xb]
mov r9d, r15d
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x20], ebp
call fcn.14015d860
jmp 0x14015c023
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x98], eax
mov rax, qword [rbx + 0x90]
mov qword [rax + rcx*8], reloc.WS2_32.dll_inet_addr
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 r13d
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x14015c080
mov r8d, r13d
mov rdx, rbx
call fcn.140174110
mov r12, qword [rsp + 0x48]
mov rdx, qword [rsi + 0x48]
mov r13, qword [rsp + 0x88]
test rdx, rdx
je 0x14015c05b
mov rcx, qword [r14]
call fcn.140140e00
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x48], r12
mov r12, qword [rsp + 0x90]
mov qword [rsi + 0x60], rax
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x98]
movsxd rdx, r13d
mov dword [rcx + rdx*4], eax
jmp 0x14015c03d
lea rdx, str.recursive_aggregate_queries_not_supported
mov rcx, r14
call fcn.14018bbc0
jmp 0x14015c042