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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x198
movaps xmmword [rsp + 0x180], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401d3ea0]
mov rax, qword [rax]
xor ecx, ecx
cmp rax, 4
setne cl
mov eax, 0xff
cmovbe eax, ecx
cmp al, 0xff
je 0x140040b37
movzx eax, al
test eax, eax
jne 0x140040bb0
mov qword [rsp + 0x100], rsi
lea rax, [0x140101540]
mov qword [rsp + 0x108], rax
lea rax, str.starting_new_connection:
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
mov qword [rsp + 0x90], 0
lea rax, [rsp + 0x100]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
mov qword [rsp + 0x20], 0
lea r8, [0x14013f990]
lea rcx, [rsp + 0x70]
mov edx, 4
mov r9d, 0x1ad
call fcn.1400eaa60
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0xc8], rax
mov ebp, dword [rdi + 0x40]
mov rcx, qword [rdi + 0x70]
mov rax, qword [rcx + 0x20]
test rax, rax
mov dword [rsp + 0x4c], ebp
je 0x140040c18
mov rbx, qword [rcx + 0x10]
mov rcx, rax
shl rcx, 7
lea r15, [rcx + rax*8]
lea r14, [rsp + 0x100]
nop word [rax + rax]
mov rcx, r14
mov rdx, rbx
mov r8, rsi
call fcn.140023250
cmp dword [rsp + 0x100], 2
jne 0x140040c63
add rbx, 0x88
add r15, 0xffffffffffffff78
jne 0x140040bf0
mov rcx, qword [rdi + 0x20]
lock inc qword [rcx]
jle 0x140041175
mov r13, qword [rdi + 0x28]
mov rax, qword [rdi + 0x30]
lock inc qword [r13]
jle 0x140041175
cmp qword [rdi], 0
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], rcx
je 0x140040cb5
lea rcx, [rdi + 8]
call fcn.140088910
mov qword [rsp + 0x50], rax
mov eax, 1
mov qword [rsp + 0x40], rax
jmp 0x140040cbc
mov rcx, qword [rdi + 0x20]
lock inc qword [rcx]
jle 0x140041175
mov r13, qword [rdi + 0x28]
mov rax, qword [rdi + 0x30]
lock inc qword [r13]
jle 0x140041175
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rax
cmp qword [rdi], 0
je 0x140040ee5
lea rcx, [rdi + 8]
call fcn.140088910
mov qword [rsp + 0x50], rax
mov eax, 1
mov qword [rsp + 0x40], rax
jmp 0x140040eec
xor eax, eax
mov qword [rsp + 0x40], rax
lea rcx, [rdi + 0x10]
call fcn.1400889b0
movzx ebp, byte [rdi + 0x1c]
movzx r15d, byte [rdi + 0x1d]
movsd xmm6, qword [rdi + 0x18]
mov rbx, qword [rdi + 0x70]
lock inc qword [rbx]
jle 0x140041175
mov r12, rax
movzx eax, byte [rdi + 0x78]
mov byte [rsp + 0x3b], al
mov eax, dword [rdi + 0x40]
mov dword [rsp + 0x3c], eax
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x58], rax
movzx eax, byte [rdi + 0x79]
mov byte [rsp + 0x3a], al
mov r14b, 2
cmp byte [rdi + 0x68], 2
je 0x140040d29
lea rdx, [rdi + 0x60]
mov rax, qword [rdi + 0x48]
mov r8, qword [rdi + 0x50]
mov r9, qword [rdi + 0x58]
lea rcx, [rsp + 0x70]
call qword [rax]
movzx r14d, byte [rdi + 0x68]
movups xmm0, xmmword [rsp + 0x70]
movups xmm1, xmmword [rsp + 0x80]
movups xmmword [rsp + 0x114], xmm1
movups xmmword [rsp + 0x104], xmm0
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmm2, xmmword [rsi + 0x20]
movups xmm3, xmmword [rsi + 0x30]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm1
movaps xmmword [rsp + 0x90], xmm2
movaps xmmword [rsp + 0xa0], xmm3
movups xmm0, xmmword [rsi + 0x40]
movaps xmmword [rsp + 0xb0], xmm0
mov rax, qword [rsi + 0x50]
mov qword [rsp + 0xc0], rax
movups xmm0, xmmword [rsp + 0x100]
movaps xmmword [rsp + 0xd0], xmm0
movups xmm0, xmmword [rsp + 0x110]
movaps xmmword [rsp + 0xe0], xmm0
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0xf0], eax
movzx eax, byte [0x1401d3fa1]
mov ecx, 0x538
mov edx, 8
call fcn.14000cc60
test rax, rax
je 0x140041179
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], r12
movss dword [rax + 0x18], xmm6
mov byte [rax + 0x1c], bpl
mov byte [rax + 0x1d], r15b
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], r13
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0x30], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x38], rcx
mov ecx, dword [rsp + 0x3c]
mov dword [rax + 0x40], ecx
movaps xmm0, xmmword [rsp + 0xd0]
movaps xmm1, xmmword [rsp + 0xe0]
movups xmmword [rax + 0x44], xmm0
movups xmmword [rax + 0x54], xmm1
mov ecx, dword [rsp + 0xf0]
mov dword [rax + 0x64], ecx
mov byte [rax + 0x68], r14b
mov qword [rax + 0x70], rbx
movzx ecx, byte [rsp + 0x3b]
mov byte [rax + 0x78], cl
movzx ecx, byte [rsp + 0x3a]
mov byte [rax + 0x79], cl
movaps xmm0, xmmword [rsp + 0x70]
movaps xmm1, xmmword [rsp + 0x80]
movaps xmm2, xmmword [rsp + 0x90]
movaps xmm3, xmmword [rsp + 0xa0]
movups xmmword [rax + 0x80], xmm0
movups xmmword [rax + 0x90], xmm1
movups xmmword [rax + 0xa0], xmm2
movups xmmword [rax + 0xb0], xmm3
movaps xmm0, xmmword [rsp + 0xb0]
movups xmmword [rax + 0xc0], xmm0
mov rcx, qword [rsp + 0xc0]
mov qword [rax + 0xd0], rcx
mov word [rax + 0x250], 0
mov rcx, qword [rsp + 0xc8]
mov qword [rax + 0x258], rcx
mov ecx, dword [rsp + 0x4c]
mov dword [rax + 0x260], ecx
mov byte [rax + 0x268], 0
lea rdx, [0x14013fbd8]
jmp 0x140041159
xor eax, eax
mov qword [rsp + 0x40], rax
lea rcx, [rdi + 0x10]
call fcn.1400889b0
movzx ebp, byte [rdi + 0x1c]
movzx r15d, byte [rdi + 0x1d]
movsd xmm6, qword [rdi + 0x18]
mov rbx, qword [rdi + 0x70]
lock inc qword [rbx]
jle 0x140041175
mov r12, rax
movzx eax, byte [rdi + 0x78]
mov byte [rsp + 0x3b], al
mov eax, dword [rdi + 0x40]
mov dword [rsp + 0x3c], eax
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x58], rax
movzx eax, byte [rdi + 0x79]
mov byte [rsp + 0x3a], al
mov r14b, 2
cmp byte [rdi + 0x68], 2
je 0x140040f59
lea rdx, [rdi + 0x60]
mov rax, qword [rdi + 0x48]
mov r8, qword [rdi + 0x50]
mov r9, qword [rdi + 0x58]
lea rcx, [rsp + 0x70]
call qword [rax]
movzx r14d, byte [rdi + 0x68]
movups xmm0, xmmword [rsp + 0x70]
movups xmm1, xmmword [rsp + 0x80]
movups xmmword [rsp + 0xe4], xmm1
movups xmmword [rsp + 0xd4], xmm0
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmm2, xmmword [rsi + 0x20]
movups xmm3, xmmword [rsi + 0x30]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm1
movaps xmmword [rsp + 0x90], xmm2
movaps xmmword [rsp + 0xa0], xmm3
movups xmm0, xmmword [rsi + 0x40]
movaps xmmword [rsp + 0xb0], xmm0
mov rax, qword [rsi + 0x50]
mov qword [rsp + 0xc0], rax
movups xmm0, xmmword [rsp + 0xd0]
movaps xmmword [rsp + 0x150], xmm0
movups xmm0, xmmword [rsp + 0xe0]
movaps xmmword [rsp + 0x160], xmm0
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x170], eax
movzx eax, byte [0x1401d3fa1]
mov ecx, 0x4cf8
mov edx, 8
call fcn.14000cc60
test rax, rax
je 0x14004118a
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], r12
movss dword [rax + 0x18], xmm6
mov byte [rax + 0x1c], bpl
mov byte [rax + 0x1d], r15b
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], r13
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0x30], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x38], rcx
mov ecx, dword [rsp + 0x3c]
mov dword [rax + 0x40], ecx
movaps xmm0, xmmword [rsp + 0x150]
movaps xmm1, xmmword [rsp + 0x160]
movups xmmword [rax + 0x44], xmm0
movups xmmword [rax + 0x54], xmm1
mov ecx, dword [rsp + 0x170]
mov dword [rax + 0x64], ecx
mov byte [rax + 0x68], r14b
mov qword [rax + 0x70], rbx
movzx ecx, byte [rsp + 0x3b]
mov byte [rax + 0x78], cl
movzx ecx, byte [rsp + 0x3a]
mov byte [rax + 0x79], cl
movups xmm0, xmmword [rsp + 0x140]
movups xmmword [rax + 0xc0], xmm0
movups xmm0, xmmword [rsp + 0x100]
movups xmm1, xmmword [rsp + 0x110]
movups xmm2, xmmword [rsp + 0x120]
movups xmm3, xmmword [rsp + 0x130]
movups xmmword [rax + 0xb0], xmm3
movups xmmword [rax + 0xa0], xmm2
movups xmmword [rax + 0x90], xmm1
movups xmmword [rax + 0x80], xmm0
movaps xmm0, xmmword [rsp + 0x70]
movaps xmm1, xmmword [rsp + 0x80]
movaps xmm2, xmmword [rsp + 0x90]
movaps xmm3, xmmword [rsp + 0xa0]
movups xmmword [rax + 0xd0], xmm0
movups xmmword [rax + 0xe0], xmm1
movups xmmword [rax + 0xf0], xmm2
movups xmmword [rax + 0x100], xmm3
movaps xmm0, xmmword [rsp + 0xb0]
movups xmmword [rax + 0x110], xmm0
mov rcx, qword [rsp + 0xc0]
mov qword [rax + 0x120], rcx
mov byte [rax + 0x2d2], 0
mov rcx, qword [rsp + 0xc8]
mov qword [rax + 0x2638], rcx
mov ecx, dword [rsp + 0x4c]
mov dword [rax + 0x2640], ecx
mov byte [rax + 0x2648], 0
lea rdx, [0x14013fbf8]
movaps xmm6, xmmword [rsp + 0x180]
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
mov ecx, 8
mov edx, 0x538
call fcn.140136460
ud2
mov ecx, 8
mov edx, 0x4cf8
call fcn.140136460
ud2