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

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0xa8
mov rax, qword [rdx]
mov rsi, qword [rdx + 0x20]
mov rbx, qword [rcx + 0x10]
mov r12d, dword [rax]
mov rax, qword [rdx + 0x48]
xor r9d, r9d
mov rdi, rdx
lea edx, [r9 + 0x21]
xor r8d, r8d
mov qword [rsp + 0x60], rax
mov r13, rcx
mov dword [rsp + 0xe0], r9d
mov r15d, r9d
mov qword [rsp + 0x20], r9
call fcn.180057fe0
test eax, eax
jne 0x18007da0b
mov rcx, rbx
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0x98], r14
call fcn.180035d60
mov rdx, rdi
mov rcx, r13
mov r8d, eax
mov dword [rsp + 0xe8], eax
call fcn.18007ce10
mov rax, qword [rdi + 0x58]
mov r8, qword [rdi + 0x40]
xor r10d, r10d
mov qword [rsp + 0x68], rax
mov rax, qword [rdi + 0x60]
mov qword [rsp + 0x70], rax
mov eax, dword [rdi + 0x10]
mov qword [rdi + 0x60], r10
mov dword [rsp + 0x50], eax
mov eax, dword [rdi + 0x14]
mov qword [rdi + 0x58], r10
mov qword [rdi + 0x10], r10
mov edx, dword [rsi]
mov qword [rsp + 0x58], r8
mov dword [rsp + 0xf8], eax
mov ecx, r10d
test edx, edx
jle 0x18007d378
lea rax, [rsi + 0x48]
nop
test byte [rax], 0x20
jne 0x18007d364
inc ecx
add rax, 0x78
cmp ecx, edx
jl 0x18007d350
mov edx, r10d
jmp 0x18007d37a
movsxd rax, ecx
imul rax, rax, 0x78
mov edx, dword [rax + rsi + 0x50]
mov dword [rsp + 0xe0], edx
jmp 0x18007d37a
mov edx, ecx
mov ebp, dword [r13 + 0x54]
lea eax, [rbp + 1]
mov dword [r13 + 0x54], eax
cmp byte [rdi + 8], 0x73
jne 0x18007d3a8
test r8, r8
mov ecx, 6
mov r9d, 8
cmovne ecx, r9d
mov r15d, eax
inc eax
mov dword [r13 + 0x54], eax
jmp 0x18007d3b8
mov ecx, 5
mov eax, 7
test r8, r8
cmovne ecx, eax
inc dword [r13 + 0x58]
mov r14d, dword [r13 + 0x58]
mov byte [rsp + 0x78], cl
mov dword [rsp + 0x7c], ebp
mov byte [rsp + 0x79], r10b
mov qword [rsp + 0x80], r10
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18007d404
mov r8d, edx
mov r9d, r14d
mov rcx, rbx
mov edx, 0x3c
mov dword [rsp + 0x20], r12d
call fcn.180035690
mov r8, qword [rsp + 0x58]
xor r10d, r10d
jmp 0x18007d430
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], r10b
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], r10
mov word [rax + rcx*8], 0x3c
test r8, r8
je 0x18007d537
mov rdx, rdi
mov rcx, r13
call fcn.18007d100
mov rcx, qword [rbx + 0x30]
movsxd rdx, dword [rbx + 0x3c]
mov rsi, rax
mov rax, qword [rsp + 0x58]
xor r9d, r9d
mov r8d, dword [rax]
add r8d, 2
cmp dword [rcx + 0x64], edx
jg 0x18007d47f
mov dword [rsp + 0x20], r9d
mov r9d, r8d
mov edx, 0x39
mov r8d, ebp
mov rcx, rbx
call fcn.180035690
mov edx, eax
jmp 0x18007d4ab
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
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 word [rax + rcx*8], 0x39
mov rcx, qword [rbx]
cmp byte [rcx + 0x55], 0
je 0x18007d4d6
mov r8, rsi
mov edx, 0xfffffffa
call fcn.180036130
mov rsi, qword [rsp + 0x58]
xor r10d, r10d
mov qword [rsp + 0x88], rsi
jmp 0x18007d592
test edx, edx
jns 0x18007d4df
mov edx, dword [rbx + 0x3c]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x18007d518
mov r9d, 0xfffffffa
mov r8, rsi
mov rcx, rbx
call fcn.1800363f0
mov rsi, qword [rsp + 0x58]
xor r10d, r10d
mov qword [rsp + 0x88], rsi
jmp 0x18007d592
test rsi, rsi
je 0x18007d525
mov qword [rdx + 0x10], rsi
mov byte [rdx + 1], 0xfa
mov rsi, qword [rsp + 0x58]
xor r10d, r10d
mov qword [rsp + 0x88], rsi
jmp 0x18007d592
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18007d561
mov r9d, r12d
mov r8d, ebp
mov edx, 0x39
mov rcx, rbx
mov dword [rsp + 0x20], r10d
call fcn.180035690
xor r10d, r10d
jmp 0x18007d58d
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r10d
mov qword [rax + rcx*8 + 0x10], r10
mov word [rax + rcx*8], 0x39
mov rsi, qword [rsp + 0x58]
test r15d, r15d
je 0x18007d5f9
mov rax, qword [rbx + 0x30]
movsxd r9, dword [rbx + 0x3c]
cmp dword [rax + 0x64], r9d
jg 0x18007d5c4
xor r9d, r9d
mov r8d, r15d
mov rcx, rbx
lea edx, [r9 + 0x39]
mov dword [rsp + 0x20], r10d
call fcn.180035690
xor r10d, r10d
mov r9d, eax
jmp 0x18007d5f1
lea rcx, [r9 + r9*2]
lea eax, [r9 + 1]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r15d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r10
mov word [rax + rcx*8], 0x39
or dword [rdi + 0xc], 0x10
mov dword [rdi + 0x18], r9d
mov r12, qword [rsp + 0x60]
mov qword [rdi + 0x40], r10
lea r8, [rsp + 0x78]
mov rdx, r12
mov rcx, r13
mov qword [r12 + 0x50], r10
call fcn.180083360
mov qword [r12 + 0x50], rdi
test eax, eax
jne 0x18007d9d3
mov rax, qword [rbx + 0x30]
movsxd r12, dword [rbx + 0x3c]
cmp dword [rax + 0x64], r12d
jg 0x18007d659
xor r9d, r9d
mov r8d, ebp
mov edx, WSAGetLastError
mov dword [rsp + 0x20], r9d
mov r9d, dword [rsp + 0xe8]
mov rcx, rbx
call fcn.180035690
xor edx, edx
mov r12d, eax
jmp 0x18007d68e
mov edx, dword [rsp + 0xe8]
lea rcx, [r12 + r12*2]
lea eax, [r12 + 1]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov dword [rax + rcx*8 + 8], edx
xor edx, edx
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebp
mov word [rax + rcx*8], WSAGetLastError
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rdx
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov r15d, dword [rsp + 0xe0]
cmp dword [rax + 0x64], ecx
jg 0x18007d6bd
xor r9d, r9d
mov dword [rsp + 0x20], edx
mov r8d, r15d
lea edx, [r9 + 0x68]
mov rcx, rbx
call fcn.180035690
xor edx, edx
jmp 0x18007d6e9
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r15d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], rdx
mov word [rax + rcx*8], 0x68
test rsi, rsi
je 0x18007d70e
mov r9d, dword [rsi]
mov r8d, ebp
mov edx, 0x2f
mov rcx, rbx
inc r9d
mov dword [rsp + 0x20], r14d
call fcn.1800356f0
xor r14d, r14d
jmp 0x18007d766
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18007d737
mov dword [rsp + 0x20], edx
mov r9d, r14d
mov r8d, ebp
mov edx, 0x66
mov rcx, rbx
call fcn.180035690
xor r14d, r14d
jmp 0x18007d766
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov dword [rax + rcx*8 + 8], r14d
xor r14d, r14d
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebp
mov word [rax + rcx*8], 0x66
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r14
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18007d78c
xor r9d, r9d
mov r8d, ebp
mov rcx, rbx
lea edx, [r9 + 0x5f]
mov dword [rsp + 0x20], r14d
call fcn.180035690
jmp 0x18007d7b7
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r14
mov word [rax + rcx*8], 0x5f
mov rsi, qword [rbx + 0x30]
movsxd rbp, dword [rsi + 0x80]
lea eax, [rbp + 1]
mov dword [rsi + 0x80], eax
lea eax, [rbp - 1]
test ebp, eax
jne 0x18007d7f3
mov rdx, qword [rsi + 0x88]
mov rcx, qword [rsi]
lea eax, [rbp + rbp + 1]
movsxd r8, eax
shl r8, 2
call fcn.180012710
mov qword [rsi + 0x88], rax
mov rcx, qword [rsi + 0x88]
or esi, 0xffffffff
test rcx, rcx
je 0x18007d805
mov dword [rcx + rbp*4], esi
mov edx, dword [rsp + 0xf8]
sub esi, ebp
test edx, edx
jle 0x18007d86a
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18007d83c
mov r8d, edx
mov r9d, esi
mov rcx, rbx
mov edx, 0x8a
mov dword [rsp + 0x20], 1
call fcn.180035690
jmp 0x18007d86a
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
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], r14
mov word [rax + rcx*8], 0x8a
mov rax, qword [rsp + 0xf0]
movsxd rbp, dword [rsp + 0xe8]
mov r8, qword [rdi]
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rax
mov r9d, r15d
mov rdx, rdi
mov rcx, r13
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call fcn.180079a30
mov edx, dword [rsp + 0x50]
test edx, edx
je 0x18007d8fc
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18007d8d1
mov r8d, edx
mov r9d, ebp
mov rcx, rbx
mov edx, 0x8d
mov dword [rsp + 0x20], r14d
call fcn.180035690
jmp 0x18007d8fc
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r14
mov word [rax + rcx*8], 0x8d
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rdx + 0x88]
test rcx, rcx
je 0x18007d91f
movsxd rax, esi
lea rax, [rax*4 + 4]
sub rcx, rax
mov eax, dword [rbx + 0x3c]
mov dword [rcx], eax
mov eax, dword [rbx + 0x3c]
mov rcx, r13
dec eax
mov dword [rdx + 0x6c], eax
test byte [rdi + 0xc], 8
je 0x18007d93e
lea rdx, str.recursive_aggregate_queries_not_supported
call fcn.180015500
jmp 0x18007d958
lea r8, [rsp + 0x78]
mov rdx, rdi
mov qword [rdi + 0x48], r14
call fcn.180083360
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x48], rax
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18007d97e
xor r8d, r8d
mov r9d, r12d
mov rcx, rbx
lea edx, [r8 + 0xd]
mov dword [rsp + 0x20], r14d
call fcn.180035690
jmp 0x18007d9ab
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r14
mov word [rax + rcx*8], ntohs
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rdx + 0x88]
test rcx, rcx
je 0x18007d9cb
lea rax, [rbp*4 + 4]
sub rcx, rax
mov eax, dword [rbx + 0x3c]
mov dword [rcx], eax
mov eax, dword [rbx + 0x3c]
dec eax
mov dword [rdx + 0x6c], eax
mov rdx, qword [rdi + 0x40]
mov rcx, qword [r13]
call fcn.18004de30
mov rax, qword [rsp + 0x58]
mov r14, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xa0]
mov qword [rdi + 0x40], rax
mov rax, qword [rsp + 0x68]
mov qword [rdi + 0x58], rax
mov rax, qword [rsp + 0x70]
mov qword [rdi + 0x60], rax
add rsp, 0xa8
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret