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

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
movzx r11d, r8b
mov rbx, rdx
mov r14, rcx
test rdx, rdx
jne 0x1401b39f8
lea eax, [rdx + 0x14]
add rsp, 0xa0
pop r14
pop rbx
pop rbp
ret
test r14, r14
jne 0x1401b3a0d
lea eax, [r14 + 6]
add rsp, 0xa0
pop r14
pop rbx
pop rbp
ret
xor r9d, r9d
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0x98], rdi
mov edx, 0xffffffff
mov qword [rsp + 0x90], r12
mov r12d, r9d
mov dword [rcx + 0x40], r9d
mov dword [rcx + 0x5c], edx
mov byte [rcx + 0x68], r9b
mov dword [rcx + 0x70], r9d
mov dword [rcx + 0x8c], edx
mov byte [rcx + 0x98], r9b
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x80], r15
mov dword [rbp - 0x19], r9d
cmp r9w, word [rbx]
jge 0x1401b3df4
mov r15d, r9d
mov qword [rbp + 0x1f], r9
mov rax, qword [rbx + 0x18]
lea ecx, [rdx + 1]
movsx rdx, word [rax + r15]
mov dword [rbp + 0x7f], edx
cmp edx, ecx
jle 0x1401b3dcc
mov rax, qword [rbx + 8]
mov r10, qword [rbx + 0x10]
lea r8, [rax + rdx*8]
mov r9, qword [r8]
movsxd rcx, ecx
mov qword [rbp - 0x31], r8
lea rdi, [rax + rcx*8]
mov rax, qword [rax + rcx*8]
lea rsi, [r10 + rcx]
movsx ecx, byte [r10 + rcx]
and ecx, 3
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
cmp ecx, 2
je 0x1401b3ded
test ecx, ecx
jne 0x1401b3b0e
movzx ecx, byte [r10 + rdx]
and cl, 3
cmp cl, 1
jne 0x1401b3ae5
mov rax, r9
sub r8, 8
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x31], r8
jmp 0x1401b3b07
add eax, r9d
shr r9, 0x20
add r9d, dword [rbp - 0x25]
cdq
sub eax, edx
sar eax, 1
mov dword [rbp - 0x29], eax
mov eax, r9d
cdq
sub eax, edx
sar eax, 1
mov dword [rbp - 0x25], eax
mov rax, qword [rbp - 0x29]
sub rdi, 8
dec rsi
cmp dword [r14 + 0x30], 0
mov byte [r14 + 0x14], 1
mov qword [r14 + 8], rax
mov byte [r14 + 0x15], r11b
jne 0x1401b3b32
test r11b, r11b
je 0x1401b3b2e
cmp dword [r14 + 0x2c], 0
je 0x1401b3b32
xor cl, cl
jmp 0x1401b3b34
mov cl, 1
xor r9d, r9d
mov byte [r14 + 0x28], cl
mov qword [r14 + 0x1c], rax
mov dword [r14], r9d
cmp rdi, r8
jae 0x1401b3db0
nop dword [rax + rax]
movsx ecx, byte [rsi + 1]
inc rsi
add rdi, 8
mov rdx, rdi
and ecx, 3
je 0x1401b3cd8
cmp ecx, 1
je 0x1401b3bc7
lea rax, [rdi + 8]
cmp rax, r8
ja 0x1401b3ded
movzx eax, byte [rsi + 1]
and al, 3
cmp al, 2
jne 0x1401b3ded
mov rax, qword [rdx]
add rdi, 0x10
add rsi, 2
mov qword [rbp - 0x11], rax
cmp rdi, r8
lea rdx, [rbp - 0x11]
mov rcx, r14
lea r8, [rbp - 9]
mov rax, qword [rdi - 8]
mov qword [rbp - 9], rax
ja 0x1401b3d7f
mov rax, qword [rdi]
lea r9, [rbp - 1]
mov qword [rbp - 1], rax
call fcn.1401b4870
jmp 0x1401b3d64
mov r12d, dword [rdi]
mov ecx, r9d
mov r13d, dword [rdi + 4]
mov eax, r12d
sub eax, dword [r14 + 8]
mov edx, r13d
sub edx, dword [r14 + 0xc]
mov dword [rbp + 0xf], r12d
mov dword [rbp + 0x13], r13d
mov dword [rbp - 0x39], eax
mov dword [rbp - 0x35], edx
test eax, eax
jne 0x1401b3bf9
test edx, edx
je 0x1401b3cc9
lea rcx, [rbp - 0x39]
call fcn.1401ac990
mov edx, dword [rbp - 0x35]
mov r15d, eax
mov ecx, dword [rbp - 0x39]
mov dword [rbp - 9], eax
call fcn.1401ac730
mov edx, dword [r14 + 0x3c]
lea rcx, [rbp - 0x39]
mov ebx, eax
mov dword [rbp - 0x11], eax
lea r8d, [rax + 0x5a0000]
call fcn.1401aca80
cmp byte [r14 + 0x14], 0
mov rcx, r14
je 0x1401b3c42
mov r8d, r15d
mov edx, ebx
call fcn.1401b62a0
jmp 0x1401b3c4e
mov edx, r15d
mov dword [r14 + 4], ebx
call fcn.1401b6230
mov ecx, eax
test eax, eax
jne 0x1401b3cc5
mov edx, dword [rbp - 0x35]
lea r15, [r14 + 0x40]
mov eax, dword [rbp - 0x39]
mov ebx, 1
nop dword [rax]
nop word [rax + rax]
add eax, r12d
mov r8b, 1
mov dword [rbp + 7], eax
mov rcx, r15
lea eax, [rdx + r13]
lea rdx, [rbp + 7]
mov dword [rbp + 0xb], eax
call fcn.1401b56a0
mov ecx, eax
test eax, eax
jne 0x1401b3cd1
mov eax, dword [rbp - 0x39]
add r15, 0x30
mov edx, dword [rbp - 0x35]
neg eax
neg edx
mov dword [rbp - 0x39], eax
sub ebx, 1
mov dword [rbp - 0x35], edx
jns 0x1401b3c70
mov eax, dword [rbp - 0x11]
mov dword [r14], eax
mov rax, qword [rbp + 0xf]
mov qword [r14 + 8], rax
mov eax, dword [rbp - 9]
mov dword [r14 + 0x10], eax
jmp 0x1401b3d6e
mov r8, qword [rbp - 0x31]
test ecx, ecx
je 0x1401b3d72
mov eax, ecx
jmp 0x1401b3df6
mov edx, dword [rdi]
mov ecx, dword [rdi + 4]
mov dword [rbp - 0x21], edx
mov dword [rbp - 0x1d], ecx
cmp rdi, r8
jae 0x1401b3d8a
movsx eax, byte [rsi + 1]
inc rsi
mov rbx, qword [rdi + 8]
add rdi, 8
and eax, 3
mov qword [rbp - 1], rbx
cmp eax, 1
je 0x1401b3d54
test eax, eax
jne 0x1401b3ded
lea eax, [rbx + rdx]
cdq
lea r8, [rbp + 0x17]
sub eax, edx
sar eax, 1
mov dword [rbp + 0x17], eax
mov rax, rbx
shr rax, 0x20
add eax, ecx
mov rcx, r14
cdq
sub eax, edx
lea rdx, [rbp - 0x21]
sar eax, 1
mov dword [rbp + 0x1b], eax
call fcn.1401b4120
mov ecx, eax
test eax, eax
jne 0x1401b3cd1
mov r8, qword [rbp - 0x31]
mov rcx, rbx
shr rcx, 0x20
mov edx, ebx
mov qword [rbp - 0x21], rbx
jmp 0x1401b3ce3
lea r8, [rbp - 1]
mov rcx, r14
lea rdx, [rbp - 0x21]
call fcn.1401b4120
mov ecx, eax
test eax, eax
jne 0x1401b3cd1
mov r8, qword [rbp - 0x31]
cmp rdi, r8
jae 0x1401b3d9c
xor r9d, r9d
jmp 0x1401b3b50
lea r9, [rbp - 0x29]
call fcn.1401b4870
jmp 0x1401b3d9a
lea r8, [rbp - 0x29]
mov rcx, r14
lea rdx, [rbp - 0x21]
call fcn.1401b4120
mov ecx, eax
test ecx, ecx
jne 0x1401b3cd1
mov rbx, qword [rbp + 0x6f]
mov r15, qword [rbp + 0x1f]
mov r12d, dword [rbp - 0x19]
cmp byte [r14 + 0x14], 0
jne 0x1401b3dc9
mov rcx, r14
call fcn.1401b3e30
mov ecx, eax
test eax, eax
jne 0x1401b3cd1
mov edx, dword [rbp + 0x7f]
movsx eax, word [rbx]
inc r12d
add r15, 2
mov dword [rbp - 0x19], r12d
mov qword [rbp + 0x1f], r15
cmp r12d, eax
jge 0x1401b3df4
movzx r11d, byte [rbp + 0x77]
jmp 0x1401b3a71
mov eax, setsockopt
jmp 0x1401b3df6
xor eax, eax
mov r13, qword [rsp + 0x88]
mov r12, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x80]
add rsp, 0xa0
pop r14
pop rbx
pop rbp
ret