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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0xc0
mov rax, qword [0x1401eb9a0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rax, qword [rdx]
xor r12d, r12d
mov rsi, qword [rcx + 0x10]
mov r14, rcx
mov rcx, qword [rcx]
mov rdi, rdx
mov rbp, qword [rdx + 0x28]
mov eax, dword [rax]
mov dword [rsp + 0x58], eax
mov rax, qword [rdx + 0x50]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], r8
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x54], r12d
cmp byte [rcx + 0xa1], r12b
jne 0x1400a6938
cmp byte [r14 + 0x1f3], r12b
jne 0x1400a6938
mov r10, qword [rcx + 0x178]
test r10, r10
je 0x1400a6938
mov rax, qword [r14 + 0x230]
lea edx, [r12 + 0x21]
mov rcx, qword [rcx + 0x180]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], r12
call r10
cmp eax, 1
jne 0x1400a690f
lea rdx, str.not_authorized
mov rcx, r14
call fcn.1400486b0
mov dword [r14 + 0x18], reloc.WS2_32.dll_socket
jmp 0x1400a6dd8
test eax, eax
je 0x1400a6938
cmp eax, 2
je 0x1400a6dd8
lea rdx, str.authorizer_malfunction
mov rcx, r14
call fcn.1400486b0
mov dword [r14 + 0x18], 1
jmp 0x1400a6dd8
mov qword [rsp + 0x108], rbx
mov rbx, qword [rsi + 0x30]
mov qword [rsp + 0xb8], r13
mov qword [rsp + 0xb0], r15
movsxd r15, dword [rbx + 0x78]
lea eax, [r15 + 1]
mov dword [rbx + 0x78], eax
lea eax, [r15 - 1]
test r15d, eax
jne 0x1400a698d
mov rdx, qword [rbx + 0x80]
lea eax, [r15*2 + 1]
mov rcx, qword [rbx]
movsxd r8, eax
shl r8, 2
call fcn.140045bd0
mov qword [rbx + 0x80], rax
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1400a69a1
mov dword [rcx + r15*4], 0xffffffff
mov eax, r15d
mov rdx, rdi
not eax
mov rcx, r14
mov r8d, eax
mov dword [rsp + 0x5c], eax
call fcn.1400a6350
mov rax, qword [rdi + 0x60]
mov edx, r12d
mov r13, qword [rdi + 0x48]
mov qword [rsp + 0x78], rax
mov rax, qword [rdi + 0x68]
mov qword [rsp + 0x80], rax
mov eax, dword [rdi + 0xc]
mov dword [rsp + 0x64], eax
mov eax, dword [rdi + 0x10]
mov qword [rdi + 0xc], r12
mov qword [rdi + 0x68], r12
mov qword [rdi + 0x60], r12
movsxd r8, dword [rbp]
mov dword [rsp + 0x60], eax
test r8, r8
jle 0x1400a6a24
mov rcx, r12
lea rax, [rbp + 0x48]
nop
test byte [rax], 8
jne 0x1400a6a15
inc edx
inc rcx
add rax, 0x78
cmp rcx, r8
jl 0x1400a6a00
jmp 0x1400a6a24
movsxd rax, edx
imul rcx, rax, 0x78
mov eax, dword [rcx + rbp + 0x50]
mov dword [rsp + 0x50], eax
mov ebp, dword [r14 + 0x50]
lea eax, [rbp + 1]
mov dword [r14 + 0x50], eax
cmp byte [rdi + 8], 0x73
jne 0x1400a6a51
test r13, r13
mov dword [rsp + 0x54], eax
mov ecx, 6
mov edx, 8
cmovne ecx, edx
inc eax
mov dword [r14 + 0x50], eax
jmp 0x1400a6a61
test r13, r13
mov ecx, 5
mov eax, 7
cmovne ecx, eax
inc dword [r14 + 0x54]
mov byte [rsp + 0x89], r12b
mov qword [rsp + 0x90], r12
mov r12d, dword [r14 + 0x54]
mov byte [rsp + 0x88], cl
mov dword [rsp + 0x8c], ebp
mov rax, qword [rsi + 0x30]
movsxd rbx, dword [rsi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x1400a6aa0
mov rcx, rsi
call fcn.140065ba0
test eax, eax
jne 0x1400a6ad6
inc dword [rsi + 0x3c]
lea rcx, [rbx + rbx*2]
mov rax, qword [rsi + 8]
xor ebx, ebx
mov edx, dword [rsp + 0x50]
mov r9d, dword [rsp + 0x58]
mov word [rax + rcx*8], 0x3c
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], rbx
jmp 0x1400a6add
mov r9d, dword [rsp + 0x58]
xor ebx, ebx
test r13, r13
je 0x1400a6b2f
mov rdx, rdi
mov rcx, r14
call fcn.1400a6660
mov r9d, dword [r13]
mov r8d, ebp
add r9d, 2
mov dword [rsp + 0x20], 0
mov edx, reloc.WS2_32.dll_gethostname
mov rcx, rsi
mov rbx, rax
call fcn.140065c50
mov r9d, 0xfffffffa
mov r8, rbx
mov edx, eax
mov rcx, rsi
call fcn.140066230
xor ebx, ebx
mov qword [rsp + 0x98], r13
jmp 0x1400a6b43
mov r8d, ebp
mov dword [rsp + 0x20], ebx
mov edx, reloc.WS2_32.dll_gethostname
mov rcx, rsi
call fcn.140065c50
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x1400a6b69
xor r9d, r9d
mov dword [rsp + 0x20], ebx
mov r8d, eax
mov rcx, rsi
lea edx, [r9 + 0x39]
call fcn.140065c50
mov dword [rdi + 0x14], eax
or word [rdi + 0xa], 8
mov qword [rdi + 0x48], rbx
lea r8, [rsp + 0x88]
mov rbx, qword [rsp + 0x68]
mov rcx, r14
mov rdx, rbx
mov qword [rbx + 0x58], 0
call fcn.1400aafe0
mov qword [rbx + 0x58], rdi
test eax, eax
jne 0x1400a6d9b
mov r9d, dword [rsp + 0x5c]
lea edx, [rax + 0x6c]
xor ebx, ebx
mov r8d, ebp
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.140065c50
mov r8d, dword [rsp + 0x50]
lea edx, [rbx + 0x68]
xor r9d, r9d
mov dword [rsp + 0x54], eax
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.140065c50
test r13, r13
je 0x1400a6bde
mov r9d, dword [r13]
lea edx, [rbx + 0x2f]
inc r9d
jmp 0x1400a6be9
mov r9d, r12d
mov edx, 0x66
mov r12d, ebx
mov r8d, ebp
mov dword [rsp + 0x20], r12d
mov rcx, rsi
call fcn.140065c50
xor r9d, r9d
mov dword [rsp + 0x20], ebx
mov r8d, ebp
mov rcx, rsi
lea edx, [r9 + 0x5f]
call fcn.140065c50
mov rbp, qword [rsi + 0x30]
movsxd rbx, dword [rbp + 0x78]
lea eax, [rbx + 1]
mov dword [rbp + 0x78], eax
lea eax, [rbx - 1]
test ebx, eax
jne 0x1400a6c49
mov rdx, qword [rbp + 0x80]
lea eax, [rbx*2 + 1]
mov rcx, qword [rbp]
movsxd r8, eax
shl r8, 2
call fcn.140045bd0
mov qword [rbp + 0x80], rax
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x1400a6c5c
mov dword [rcx + rbx*4], 0xffffffff
mov eax, dword [rsp + 0x60]
mov ebp, ebx
not ebp
test eax, eax
jle 0x1400a6cc1
xor r9d, r9d
mov dword [rsp + 0x20], 0xffffffff
mov r8d, eax
mov edx, 0x8a
mov rcx, rsi
call fcn.140065c50
xor r8d, r8d
mov r12d, eax
mov r9d, ebp
mov dword [rsp + 0x20], 0
mov rcx, rsi
lea edx, [r8 + 0x10]
call fcn.140065c50
mov edx, dword [rsi + 0x3c]
cmp edx, r12d
jbe 0x1400a6cb7
mov rax, qword [rsi + 8]
lea rcx, [r12 + r12*2]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
lea ecx, [rdx - 1]
mov dword [rax + 0x64], ecx
mov rax, qword [rsp + 0x70]
mov rdx, rdi
mov r12d, dword [rsp + 0x5c]
mov rcx, r14
mov r9d, dword [rsp + 0x50]
mov r8, qword [rdi]
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], ebp
xor ebp, ebp
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call fcn.1400a41a0
mov eax, dword [rsp + 0x64]
test eax, eax
je 0x1400a6d1b
mov r9d, r12d
mov dword [rsp + 0x20], 0xffffffff
mov r8d, eax
mov edx, 0x8b
mov rcx, rsi
call fcn.140065c50
mov r8, qword [rsi + 0x30]
test ebx, ebx
js 0x1400a6d35
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x1400a6d35
mov eax, dword [rsi + 0x3c]
mov dword [rdx + rbx*4], eax
mov eax, dword [rsi + 0x3c]
mov rdx, rdi
dec eax
mov rcx, r14
mov dword [r8 + 0x64], eax
lea r8, [rsp + 0x88]
mov qword [rdi + 0x50], rbp
call fcn.1400aafe0
mov rax, qword [rsp + 0x68]
xor r8d, r8d
mov r9d, dword [rsp + 0x54]
mov rcx, rsi
mov qword [rdi + 0x50], rax
mov dword [rsp + 0x20], ebp
lea edx, [r8 + 0x10]
call fcn.140065c50
mov r8, qword [rsi + 0x30]
test r15d, r15d
js 0x1400a6d92
mov rcx, qword [r8 + 0x80]
test rcx, rcx
je 0x1400a6d92
mov eax, dword [rsi + 0x3c]
mov dword [rcx + r15*4], eax
mov eax, dword [rsi + 0x3c]
dec eax
mov dword [r8 + 0x64], eax
mov rdx, qword [rdi + 0x48]
mov rcx, qword [r14]
call fcn.14007b850
mov rax, qword [rsp + 0x78]
mov r15, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0x108]
mov qword [rdi + 0x60], rax
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x48], r13
mov r13, qword [rsp + 0xb8]
mov qword [rdi + 0x68], rax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14014fd10
add rsp, 0xc0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret