Function at 0x180082240
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.18005cfa0
test eax, eax
jne 0x1800829cb
mov rcx, rbx
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0x98], r14
call fcn.18003ad30
mov rdx, rdi
mov rcx, r13
mov r8d, eax
mov dword [rsp + 0xe8], eax
call fcn.180081dd0
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 0x180082338
lea rax, [rsi + 0x48]
nop
test byte [rax], 0x20
jne 0x180082324
inc ecx
add rax, 0x78
cmp ecx, edx
jl 0x180082310
mov edx, r10d
jmp 0x18008233a
movsxd rax, ecx
imul rax, rax, 0x78
mov edx, dword [rax + rsi + 0x50]
mov dword [rsp + 0xe0], edx
jmp 0x18008233a
mov edx, ecx
mov ebp, dword [r13 + 0x54]
lea eax, [rbp + 1]
mov dword [r13 + 0x54], eax
cmp byte [rdi + 8], 0x73
jne 0x180082368
test r8, r8
mov ecx, 6
mov r9d, 8
cmovne ecx, r9d
mov r15d, eax
inc eax
mov dword [r13 + 0x54], eax
jmp 0x180082378
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 0x1800823c4
mov r8d, edx
mov r9d, r14d
mov rcx, rbx
mov edx, 0x3c
mov dword [rsp + 0x20], r12d
call fcn.18003a660
mov r8, qword [rsp + 0x58]
xor r10d, r10d
jmp 0x1800823f0
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 0x1800824f7
mov rdx, rdi
mov rcx, r13
call fcn.1800820c0
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 0x18008243f
mov dword [rsp + 0x20], r9d
mov r9d, r8d
mov edx, 0x39
mov r8d, ebp
mov rcx, rbx
call fcn.18003a660
mov edx, eax
jmp 0x18008246b
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 0x180082496
mov r8, rsi
mov edx, 0xfffffffa
call fcn.18003b100
mov rsi, qword [rsp + 0x58]
xor r10d, r10d
mov qword [rsp + 0x88], rsi
jmp 0x180082552
test edx, edx
jns 0x18008249f
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 0x1800824d8
mov r9d, 0xfffffffa
mov r8, rsi
mov rcx, rbx
call fcn.18003b3c0
mov rsi, qword [rsp + 0x58]
xor r10d, r10d
mov qword [rsp + 0x88], rsi
jmp 0x180082552
test rsi, rsi
je 0x1800824e5
mov qword [rdx + 0x10], rsi
mov byte [rdx + 1], 0xfa
mov rsi, qword [rsp + 0x58]
xor r10d, r10d
mov qword [rsp + 0x88], rsi
jmp 0x180082552
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x180082521
mov r9d, r12d
mov r8d, ebp
mov edx, 0x39
mov rcx, rbx
mov dword [rsp + 0x20], r10d
call fcn.18003a660
xor r10d, r10d
jmp 0x18008254d
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 0x1800825b9
mov rax, qword [rbx + 0x30]
movsxd r9, dword [rbx + 0x3c]
cmp dword [rax + 0x64], r9d
jg 0x180082584
xor r9d, r9d
mov r8d, r15d
mov rcx, rbx
lea edx, [r9 + 0x39]
mov dword [rsp + 0x20], r10d
call fcn.18003a660
xor r10d, r10d
mov r9d, eax
jmp 0x1800825b1
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.180088320
mov qword [r12 + 0x50], rdi
test eax, eax
jne 0x180082993
mov rax, qword [rbx + 0x30]
movsxd r12, dword [rbx + 0x3c]
cmp dword [rax + 0x64], r12d
jg 0x180082619
xor r9d, r9d
mov r8d, ebp
mov edx, WSASetLastError
mov dword [rsp + 0x20], r9d
mov r9d, dword [rsp + 0xe8]
mov rcx, rbx
call fcn.18003a660
xor edx, edx
mov r12d, eax
jmp 0x18008264e
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], WSASetLastError
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 0x18008267d
xor r9d, r9d
mov dword [rsp + 0x20], edx
mov r8d, r15d
lea edx, [r9 + 0x68]
mov rcx, rbx
call fcn.18003a660
xor edx, edx
jmp 0x1800826a9
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 0x1800826ce
mov r9d, dword [rsi]
mov r8d, ebp
mov edx, gethostbyaddr
mov rcx, rbx
inc r9d
mov dword [rsp + 0x20], r14d
call fcn.18003a6c0
xor r14d, r14d
jmp 0x180082726
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x1800826f7
mov dword [rsp + 0x20], edx
mov r9d, r14d
mov r8d, ebp
mov edx, 0x66
mov rcx, rbx
call fcn.18003a660
xor r14d, r14d
jmp 0x180082726
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 0x18008274c
xor r9d, r9d
mov r8d, ebp
mov rcx, rbx
lea edx, [r9 + 0x5f]
mov dword [rsp + 0x20], r14d
call fcn.18003a660
jmp 0x180082777
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 0x1800827b3
mov rdx, qword [rsi + 0x88]
mov rcx, qword [rsi]
lea eax, [rbp + rbp + 1]
movsxd r8, eax
shl r8, 2
call fcn.180017710
mov qword [rsi + 0x88], rax
mov rcx, qword [rsi + 0x88]
or esi, 0xffffffff
test rcx, rcx
je 0x1800827c5
mov dword [rcx + rbp*4], esi
mov edx, dword [rsp + 0xf8]
sub esi, ebp
test edx, edx
jle 0x18008282a
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x1800827fc
mov r8d, edx
mov r9d, esi
mov rcx, rbx
mov edx, 0x8a
mov dword [rsp + 0x20], 1
call fcn.18003a660
jmp 0x18008282a
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.18007e9f0
mov edx, dword [rsp + 0x50]
test edx, edx
je 0x1800828bc
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x180082891
mov r8d, edx
mov r9d, ebp
mov rcx, rbx
mov edx, 0x8d
mov dword [rsp + 0x20], r14d
call fcn.18003a660
jmp 0x1800828bc
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 0x1800828df
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 0x1800828fe
lea rdx, str.recursive_aggregate_queries_not_supported
call fcn.18001a500
jmp 0x180082918
lea r8, [rsp + 0x78]
mov rdx, rdi
mov qword [rdi + 0x48], r14
call fcn.180088320
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 0x18008293e
xor r8d, r8d
mov r9d, r12d
mov rcx, rbx
lea edx, [r8 + 0xd]
mov dword [rsp + 0x20], r14d
call fcn.18003a660
jmp 0x18008296b
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], select
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rdx + 0x88]
test rcx, rcx
je 0x18008298b
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.180052df0
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