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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xc8
mov rax, qword [0x140123080]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, qword [rdx]
xor r9d, r9d
mov rbx, qword [rcx + 0x10]
mov rsi, rcx
mov rcx, qword [rcx]
mov rdi, rdx
mov r14, qword [rdx + 0x20]
mov r15d, dword [rax]
mov rax, qword [rdx + 0x48]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], r8
mov dword [rsp + 0x50], r9d
mov dword [rsp + 0x54], r9d
cmp byte [rcx + 0xa9], r9b
jne 0x14007de3a
cmp byte [rsi + 0x1da], r9b
jne 0x14007de3a
mov r10, qword [rcx + 0x190]
test r10, r10
je 0x14007de3a
mov rax, qword [rsi + 0x218]
xor r8d, r8d
mov rcx, qword [rcx + 0x198]
mov edx, 0x21
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
call r10
mov ebp, eax
cmp eax, 1
jne 0x14007de14
lea rdx, str.not_authorized
mov rcx, rsi
call fcn.140009c50
mov dword [rsi + 0x18], reloc.WS2_32.dll_socket
jmp 0x14007de32
test eax, 0xfffffffd
je 0x14007de32
lea rdx, str.authorizer_malfunction
mov rcx, rsi
mov ebp, 1
call fcn.140009c50
mov dword [rsi + 0x18], ebp
test ebp, ebp
jne 0x14007e56b
mov qword [rsp + 0x118], r12
mov rcx, rbx
mov qword [rsp + 0xc0], r13
call fcn.14002c260
mov r8d, eax
mov rdx, rdi
mov rcx, rsi
mov r13d, eax
call fcn.14007d710
mov rax, qword [rdi + 0x58]
xor r10d, r10d
mov r9, qword [rdi + 0x40]
mov edx, r10d
mov qword [rsp + 0x78], rax
mov rax, qword [rdi + 0x60]
mov qword [rsp + 0x80], rax
mov eax, dword [rdi + 0x10]
mov dword [rsp + 0x64], eax
mov eax, dword [rdi + 0x14]
mov qword [rdi + 0x10], r10
mov qword [rdi + 0x60], r10
mov qword [rdi + 0x58], r10
movsxd r8, dword [r14]
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x58], r9
test r8, r8
jle 0x14007dedb
mov ecx, r10d
lea rax, [r14 + 0x48]
test byte [rax], 0x20
jne 0x14007dec8
inc edx
inc rcx
add rax, 0x78
cmp rcx, r8
jl 0x14007deb0
mov r8d, r10d
jmp 0x14007dede
movsxd rax, edx
imul rcx, rax, 0x78
mov r8d, dword [rcx + r14 + 0x50]
mov dword [rsp + 0x50], r8d
jmp 0x14007dede
mov r8d, edx
mov ebp, dword [rsi + 0x34]
lea eax, [rbp + 1]
mov dword [rsi + 0x34], eax
cmp byte [rdi + 8], 0x73
jne 0x14007df08
test r9, r9
mov dword [rsp + 0x54], eax
mov ecx, 6
mov edx, 8
cmovne ecx, edx
inc eax
mov dword [rsi + 0x34], eax
jmp 0x14007df18
test r9, r9
mov ecx, 5
mov eax, 7
cmovne ecx, eax
inc dword [rsi + 0x38]
mov r12d, dword [rsi + 0x38]
mov byte [rsp + 0x88], cl
mov dword [rsp + 0x98], ebp
mov qword [rsp + 0x90], r10
mov qword [rsp + 0x9c], r10
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x14007df6c
mov r9d, r12d
mov dword [rsp + 0x20], r15d
mov edx, 0x6e
mov rcx, rbx
call fcn.14002bbb0
mov r9, qword [rsp + 0x58]
xor r10d, r10d
jmp 0x14007df9c
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8], WSAStartup
mov byte [rax + rcx*8 + 3], r10b
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r10
test r9, r9
je 0x14007e09d
mov rdx, rdi
mov rcx, rsi
call fcn.14007db70
mov r15, qword [rsp + 0x58]
xor r9d, r9d
mov rcx, qword [rbx + 0x18]
mov r14, rax
movsxd rdx, dword [rbx + 0xb8]
mov r8d, dword [r15]
add r8d, 2
cmp dword [rcx + 0x3c], edx
jg 0x14007dfee
mov dword [rsp + 0x20], r9d
mov edx, 0x6b
mov r9d, r8d
mov rcx, rbx
mov r8d, ebp
call fcn.14002bbb0
mov edx, eax
jmp 0x14007e01d
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8], 0x6b
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 rcx, qword [rbx]
cmp byte [rcx + 0x55], 0
je 0x14007e043
mov r8, r14
mov edx, 0xfffffffa
call fcn.14002c950
xor r10d, r10d
mov qword [rsp + 0xa8], r15
jmp 0x14007e0fe
test edx, edx
jns 0x14007e04f
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 0x14007e083
mov r9d, 0xfffffffa
mov r8, r14
mov rcx, rbx
call fcn.14002cc70
xor r10d, r10d
mov qword [rsp + 0xa8], r15
jmp 0x14007e0fe
test r14, r14
je 0x14007e090
mov qword [rdx + 0x10], r14
mov byte [rdx + 1], 0xfa
mov qword [rsp + 0xa8], r15
xor r10d, r10d
jmp 0x14007e0fe
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x14007e0ca
mov r9d, r15d
mov dword [rsp + 0x20], r10d
mov r8d, ebp
mov edx, 0x6b
mov rcx, rbx
call fcn.14002bbb0
xor r10d, r10d
jmp 0x14007e0f9
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8], 0x6b
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], r10d
mov qword [rax + rcx*8 + 0x10], r10
mov r15, qword [rsp + 0x58]
mov edx, dword [rsp + 0x54]
test edx, edx
je 0x14007e16e
mov rax, qword [rbx + 0x18]
movsxd r9, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], r9d
jg 0x14007e137
mov r8d, edx
mov dword [rsp + 0x20], r10d
mov edx, 0x6b
xor r9d, r9d
mov rcx, rbx
call fcn.14002bbb0
mov r9d, eax
xor r10d, r10d
jmp 0x14007e166
lea rcx, [r9 + r9*2]
lea eax, [r9 + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8], 0x6b
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
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 r14, qword [rsp + 0x68]
lea r8, [rsp + 0x88]
mov qword [rdi + 0x40], r10
mov rdx, r14
mov rcx, rsi
mov qword [r14 + 0x50], r10
call fcn.140084380
mov qword [r14 + 0x50], rdi
test eax, eax
jne 0x14007e531
mov rax, qword [rbx + 0x18]
movsxd r14, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], r14d
jg 0x14007e1ce
xor r9d, r9d
mov r8d, ebp
mov dword [rsp + 0x20], r9d
mov edx, 0x39
mov r9d, r13d
mov rcx, rbx
call fcn.14002bbb0
mov r14d, eax
xor r8d, r8d
jmp 0x14007e201
lea rcx, [r14 + r14*2]
xor r8d, r8d
lea eax, [r14 + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8], 0x39
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x14007e230
mov dword [rsp + 0x20], r8d
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov edx, 0x7c
mov rcx, rbx
call fcn.14002bbb0
xor r8d, r8d
jmp 0x14007e262
mov edx, dword [rsp + 0x50]
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8], 0x7c
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r8
movsxd rcx, dword [rbx + 0xb8]
mov rax, qword [rbx + 0x18]
test r15, r15
je 0x14007e2be
mov edx, dword [r15]
inc edx
cmp dword [rax + 0x3c], ecx
jg 0x14007e299
mov r9d, edx
mov dword [rsp + 0x20], r12d
mov edx, 0x60
mov r8d, ebp
mov rcx, rbx
call fcn.14002bbb0
xor r12d, r12d
jmp 0x14007e312
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8 + 0xc], r12d
xor r12d, r12d
mov word [rax + rcx*8], 0x60
mov dword [rax + rcx*8 + 8], edx
jmp 0x14007e304
cmp dword [rax + 0x3c], ecx
jg 0x14007e2e0
mov dword [rsp + 0x20], r8d
mov r9d, r12d
mov r8d, ebp
mov edx, 0x7a
mov rcx, rbx
call fcn.14002bbb0
xor r12d, r12d
jmp 0x14007e312
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8 + 8], r12d
xor r12d, r12d
mov dword [rax + rcx*8 + 0xc], r12d
mov word [rax + rcx*8], 0x7a
mov qword [rax + rcx*8 + 0x10], r12
mov dword [rax + rcx*8 + 4], ebp
mov byte [rax + rcx*8 + 3], 0
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x14007e33c
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov r8d, ebp
mov edx, 0x75
mov rcx, rbx
call fcn.14002bbb0
jmp 0x14007e36a
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8], 0x75
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], r12
mov rcx, rbx
call fcn.14002c260
mov r8d, dword [rsp + 0x60]
mov ebp, eax
test r8d, r8d
jle 0x14007e3da
mov rcx, qword [rbx + 0x18]
movsxd rdx, dword [rbx + 0xb8]
cmp dword [rcx + 0x3c], edx
jg 0x14007e3a8
mov r9d, eax
mov dword [rsp + 0x20], 1
mov edx, 0x42
mov rcx, rbx
call fcn.14002bbb0
jmp 0x14007e3da
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8], 0x42
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], 1
mov qword [rax + rcx*8 + 0x10], r12
mov rax, qword [rsp + 0x70]
mov rdx, rdi
mov r9d, dword [rsp + 0x50]
mov rcx, rsi
mov r8, qword [rdi]
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call fcn.140079fa0
mov edx, dword [rsp + 0x64]
test edx, edx
je 0x14007e46b
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x14007e43c
mov r8d, edx
mov dword [rsp + 0x20], r12d
mov edx, 0x44
mov r9d, r13d
mov rcx, rbx
call fcn.14002bbb0
jmp 0x14007e46b
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8], 0x44
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
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 rdx, qword [rax + 0x58]
test rdx, rdx
je 0x14007e486
mov eax, dword [rbx + 0xb8]
not ebp
movsxd rcx, ebp
mov dword [rdx + rcx*4], eax
test byte [rdi + 0xc], 8
mov rcx, rsi
je 0x14007e49d
lea rdx, str.recursive_aggregate_queries_not_supported
call fcn.140009c50
jmp 0x14007e4ba
lea r8, [rsp + 0x88]
mov qword [rdi + 0x48], r12
mov rdx, rdi
call fcn.140084380
mov rax, qword [rsp + 0x68]
mov qword [rdi + 0x48], rax
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x14007e4e4
mov r9d, r14d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
mov edx, 0xd
mov rcx, rbx
call fcn.14002bbb0
jmp 0x14007e514
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8], 0xd
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r12d
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 r8, qword [rax + 0x58]
test r8, r8
je 0x14007e531
mov eax, dword [rbx + 0xb8]
not r13d
movsxd rdx, r13d
mov dword [r8 + rdx*4], eax
mov rdx, qword [rdi + 0x40]
mov r13, qword [rsp + 0xc0]
mov r12, qword [rsp + 0x118]
test rdx, rdx
je 0x14007e552
mov rcx, qword [rsi]
call fcn.140045ec0
mov rax, qword [rsp + 0x78]
mov qword [rdi + 0x58], rax
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x60], rax
mov qword [rdi + 0x40], r15
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400d12d0
add rsp, 0xc8
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret