Function at 0x14007de40
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 [0x140125080]
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 0x14007df1a
cmp byte [rsi + 0x1da], r9b
jne 0x14007df1a
mov r10, qword [rcx + 0x190]
test r10, r10
je 0x14007df1a
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 0x14007def4
lea rdx, str.not_authorized
mov rcx, rsi
call fcn.140009d30
mov dword [rsi + 0x18], reloc.WS2_32.dll_socket
jmp 0x14007df12
test eax, 0xfffffffd
je 0x14007df12
lea rdx, str.authorizer_malfunction
mov rcx, rsi
mov ebp, 1
call fcn.140009d30
mov dword [rsi + 0x18], ebp
test ebp, ebp
jne 0x14007e64b
mov qword [rsp + 0x118], r12
mov rcx, rbx
mov qword [rsp + 0xc0], r13
call fcn.14002c340
mov r8d, eax
mov rdx, rdi
mov rcx, rsi
mov r13d, eax
call fcn.14007d7f0
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 0x14007dfbb
mov ecx, r10d
lea rax, [r14 + 0x48]
test byte [rax], 0x20
jne 0x14007dfa8
inc edx
inc rcx
add rax, 0x78
cmp rcx, r8
jl 0x14007df90
mov r8d, r10d
jmp 0x14007dfbe
movsxd rax, edx
imul rcx, rax, 0x78
mov r8d, dword [rcx + r14 + 0x50]
mov dword [rsp + 0x50], r8d
jmp 0x14007dfbe
mov r8d, edx
mov ebp, dword [rsi + 0x34]
lea eax, [rbp + 1]
mov dword [rsi + 0x34], eax
cmp byte [rdi + 8], 0x73
jne 0x14007dfe8
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 0x14007dff8
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 0x14007e04c
mov r9d, r12d
mov dword [rsp + 0x20], r15d
mov edx, 0x6e
mov rcx, rbx
call fcn.14002bc90
mov r9, qword [rsp + 0x58]
xor r10d, r10d
jmp 0x14007e07c
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 0x14007e17d
mov rdx, rdi
mov rcx, rsi
call fcn.14007dc50
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 0x14007e0ce
mov dword [rsp + 0x20], r9d
mov edx, 0x6b
mov r9d, r8d
mov rcx, rbx
mov r8d, ebp
call fcn.14002bc90
mov edx, eax
jmp 0x14007e0fd
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 0x14007e123
mov r8, r14
mov edx, 0xfffffffa
call fcn.14002ca30
xor r10d, r10d
mov qword [rsp + 0xa8], r15
jmp 0x14007e1de
test edx, edx
jns 0x14007e12f
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 0x14007e163
mov r9d, 0xfffffffa
mov r8, r14
mov rcx, rbx
call fcn.14002cd50
xor r10d, r10d
mov qword [rsp + 0xa8], r15
jmp 0x14007e1de
test r14, r14
je 0x14007e170
mov qword [rdx + 0x10], r14
mov byte [rdx + 1], 0xfa
mov qword [rsp + 0xa8], r15
xor r10d, r10d
jmp 0x14007e1de
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x14007e1aa
mov r9d, r15d
mov dword [rsp + 0x20], r10d
mov r8d, ebp
mov edx, 0x6b
mov rcx, rbx
call fcn.14002bc90
xor r10d, r10d
jmp 0x14007e1d9
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 0x14007e24e
mov rax, qword [rbx + 0x18]
movsxd r9, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], r9d
jg 0x14007e217
mov r8d, edx
mov dword [rsp + 0x20], r10d
mov edx, 0x6b
xor r9d, r9d
mov rcx, rbx
call fcn.14002bc90
mov r9d, eax
xor r10d, r10d
jmp 0x14007e246
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.140084460
mov qword [r14 + 0x50], rdi
test eax, eax
jne 0x14007e611
mov rax, qword [rbx + 0x18]
movsxd r14, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], r14d
jg 0x14007e2ae
xor r9d, r9d
mov r8d, ebp
mov dword [rsp + 0x20], r9d
mov edx, 0x39
mov r9d, r13d
mov rcx, rbx
call fcn.14002bc90
mov r14d, eax
xor r8d, r8d
jmp 0x14007e2e1
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 0x14007e310
mov dword [rsp + 0x20], r8d
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov edx, 0x7c
mov rcx, rbx
call fcn.14002bc90
xor r8d, r8d
jmp 0x14007e342
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 0x14007e39e
mov edx, dword [r15]
inc edx
cmp dword [rax + 0x3c], ecx
jg 0x14007e379
mov r9d, edx
mov dword [rsp + 0x20], r12d
mov edx, 0x60
mov r8d, ebp
mov rcx, rbx
call fcn.14002bc90
xor r12d, r12d
jmp 0x14007e3f2
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 0x14007e3e4
cmp dword [rax + 0x3c], ecx
jg 0x14007e3c0
mov dword [rsp + 0x20], r8d
mov r9d, r12d
mov r8d, ebp
mov edx, 0x7a
mov rcx, rbx
call fcn.14002bc90
xor r12d, r12d
jmp 0x14007e3f2
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 0x14007e41c
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov r8d, ebp
mov edx, 0x75
mov rcx, rbx
call fcn.14002bc90
jmp 0x14007e44a
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.14002c340
mov r8d, dword [rsp + 0x60]
mov ebp, eax
test r8d, r8d
jle 0x14007e4ba
mov rcx, qword [rbx + 0x18]
movsxd rdx, dword [rbx + 0xb8]
cmp dword [rcx + 0x3c], edx
jg 0x14007e488
mov r9d, eax
mov dword [rsp + 0x20], 1
mov edx, 0x42
mov rcx, rbx
call fcn.14002bc90
jmp 0x14007e4ba
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.14007a080
mov edx, dword [rsp + 0x64]
test edx, edx
je 0x14007e54b
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x14007e51c
mov r8d, edx
mov dword [rsp + 0x20], r12d
mov edx, 0x44
mov r9d, r13d
mov rcx, rbx
call fcn.14002bc90
jmp 0x14007e54b
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 0x14007e566
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 0x14007e57d
lea rdx, str.recursive_aggregate_queries_not_supported
call fcn.140009d30
jmp 0x14007e59a
lea r8, [rsp + 0x88]
mov qword [rdi + 0x48], r12
mov rdx, rdi
call fcn.140084460
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 0x14007e5c4
mov r9d, r14d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
mov edx, 0xd
mov rcx, rbx
call fcn.14002bc90
jmp 0x14007e5f4
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 0x14007e611
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 0x14007e632
mov rcx, qword [rsi]
call fcn.140045fa0
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.1400d1190
add rsp, 0xc8
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret