Function at 0x1401b1060
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 0x1401b1098
lea eax, [rdx + 0x14]
add rsp, 0xa0
pop r14
pop rbx
pop rbp
ret
test r14, r14
jne 0x1401b10ad
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 0x1401b1494
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 0x1401b146c
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 0x1401b148d
test ecx, ecx
jne 0x1401b11ae
movzx ecx, byte [r10 + rdx]
and cl, 3
cmp cl, 1
jne 0x1401b1185
mov rax, r9
sub r8, 8
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x31], r8
jmp 0x1401b11a7
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 0x1401b11d2
test r11b, r11b
je 0x1401b11ce
cmp dword [r14 + 0x2c], 0
je 0x1401b11d2
xor cl, cl
jmp 0x1401b11d4
mov cl, 1
xor r9d, r9d
mov byte [r14 + 0x28], cl
mov qword [r14 + 0x1c], rax
mov dword [r14], r9d
cmp rdi, r8
jae 0x1401b1450
nop dword [rax + rax]
movsx ecx, byte [rsi + 1]
inc rsi
add rdi, 8
mov rdx, rdi
and ecx, 3
je 0x1401b1378
cmp ecx, 1
je 0x1401b1267
lea rax, [rdi + 8]
cmp rax, r8
ja 0x1401b148d
movzx eax, byte [rsi + 1]
and al, 3
cmp al, 2
jne 0x1401b148d
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 0x1401b141f
mov rax, qword [rdi]
lea r9, [rbp - 1]
mov qword [rbp - 1], rax
call fcn.1401b1f90
jmp 0x1401b1404
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 0x1401b1299
test edx, edx
je 0x1401b1369
lea rcx, [rbp - 0x39]
call fcn.1401a9f60
mov edx, dword [rbp - 0x35]
mov r15d, eax
mov ecx, dword [rbp - 0x39]
mov dword [rbp - 9], eax
call fcn.1401a9cf0
mov edx, dword [r14 + 0x3c]
lea rcx, [rbp - 0x39]
mov ebx, eax
mov dword [rbp - 0x11], eax
lea r8d, [rax + 0x5a0000]
call fcn.1401aa060
cmp byte [r14 + 0x14], 0
mov rcx, r14
je 0x1401b12e2
mov r8d, r15d
mov edx, ebx
call fcn.1401b3a60
jmp 0x1401b12ee
mov edx, r15d
mov dword [r14 + 4], ebx
call fcn.1401b39f0
mov ecx, eax
test eax, eax
jne 0x1401b1365
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.1401b2e00
mov ecx, eax
test eax, eax
jne 0x1401b1371
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 0x1401b1310
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 0x1401b140e
mov r8, qword [rbp - 0x31]
test ecx, ecx
je 0x1401b1412
mov eax, ecx
jmp 0x1401b1496
mov edx, dword [rdi]
mov ecx, dword [rdi + 4]
mov dword [rbp - 0x21], edx
mov dword [rbp - 0x1d], ecx
cmp rdi, r8
jae 0x1401b142a
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 0x1401b13f4
test eax, eax
jne 0x1401b148d
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.1401b17c0
mov ecx, eax
test eax, eax
jne 0x1401b1371
mov r8, qword [rbp - 0x31]
mov rcx, rbx
shr rcx, 0x20
mov edx, ebx
mov qword [rbp - 0x21], rbx
jmp 0x1401b1383
lea r8, [rbp - 1]
mov rcx, r14
lea rdx, [rbp - 0x21]
call fcn.1401b17c0
mov ecx, eax
test eax, eax
jne 0x1401b1371
mov r8, qword [rbp - 0x31]
cmp rdi, r8
jae 0x1401b143c
xor r9d, r9d
jmp 0x1401b11f0
lea r9, [rbp - 0x29]
call fcn.1401b1f90
jmp 0x1401b143a
lea r8, [rbp - 0x29]
mov rcx, r14
lea rdx, [rbp - 0x21]
call fcn.1401b17c0
mov ecx, eax
test ecx, ecx
jne 0x1401b1371
mov rbx, qword [rbp + 0x6f]
mov r15, qword [rbp + 0x1f]
mov r12d, dword [rbp - 0x19]
cmp byte [r14 + 0x14], 0
jne 0x1401b1469
mov rcx, r14
call fcn.1401b14d0
mov ecx, eax
test eax, eax
jne 0x1401b1371
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 0x1401b1494
movzx r11d, byte [rbp + 0x77]
jmp 0x1401b1111
mov eax, setsockopt
jmp 0x1401b1496
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