Function at 0x1401b3f40
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 0x1401b3f78
lea eax, [rdx + 0x14]
add rsp, 0xa0
pop r14
pop rbx
pop rbp
ret
test r14, r14
jne 0x1401b3f8d
lea eax, [r14 + 6]
add rsp, 0xa0
pop r14
pop rbx
pop rbp
ret
xor r8d, r8d
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0x90], r12
mov r12d, r8d
mov dword [rcx + 0x40], r8d
mov byte [rcx + 0x68], r8b
mov dword [rcx + 0x70], r8d
mov byte [rcx + 0x98], r8b
mov dword [rcx + 0x5c], 0xffffffff
mov dword [rcx + 0x8c], 0xffffffff
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x80], r15
mov ecx, r8d
mov dword [rbp + 0x7f], r8d
cmp r8w, word [rdx]
jge 0x1401b4370
mov r13d, r8d
mov qword [rbp + 0x1f], r8
nop word [rax + rax]
mov rax, qword [rbx + 0x18]
movsx r15d, word [rax + r13]
mov rax, qword [rbx + 8]
mov dword [rbp - 9], r15d
lea rdx, [rax + r15*8]
mov qword [rbp - 0x11], rdx
cmp r15d, ecx
jbe 0x1401b4340
mov r10, qword [rbx + 0x10]
lea rdi, [rax + rcx*8]
mov rax, qword [rax + rcx*8]
mov r8, qword [rdx]
mov qword [rbp - 0x31], rax
lea rsi, [r10 + rcx]
mov qword [rbp - 0x29], rax
movsx ecx, byte [rsi]
and ecx, 3
cmp ecx, 2
je 0x1401b4369
test ecx, ecx
jne 0x1401b409b
movzx ecx, byte [r10 + r15]
and cl, 3
cmp cl, 1
jne 0x1401b406e
mov rax, r8
sub rdx, 8
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x11], rdx
jmp 0x1401b4094
add eax, r8d
shr r8, 0x20
add r8d, dword [rbp - 0x2d]
cdq
sub eax, edx
sar eax, 1
mov dword [rbp - 0x31], eax
mov eax, r8d
cdq
sub eax, edx
mov rdx, qword [rbp - 0x11]
sar eax, 1
mov dword [rbp - 0x2d], eax
mov rax, qword [rbp - 0x31]
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 0x1401b40bf
test r11b, r11b
je 0x1401b40bb
cmp dword [r14 + 0x2c], 0
je 0x1401b40bf
xor cl, cl
jmp 0x1401b40c1
mov cl, 1
xor r8d, r8d
mov byte [r14 + 0x28], cl
mov qword [r14 + 0x1c], rax
mov dword [r14], r8d
cmp rdi, rdx
jae 0x1401b432b
nop dword [rax + rax]
movsx ecx, byte [rsi + 1]
inc rsi
add rdi, 8
and ecx, 3
je 0x1401b4250
cmp ecx, 1
je 0x1401b4154
lea rax, [rdi + 8]
cmp rax, rdx
ja 0x1401b4369
movzx eax, byte [rsi + 1]
and al, 3
cmp al, 2
jne 0x1401b4369
mov rax, qword [rdi]
lea r8, [rbp - 0x19]
add rdi, 0x10
mov qword [rbp - 0x21], rax
add rsi, 2
mov rcx, r14
cmp rdi, rdx
lea rdx, [rbp - 0x21]
mov rax, qword [rdi - 8]
mov qword [rbp - 0x19], rax
ja 0x1401b42fa
mov rax, qword [rdi]
lea r9, [rbp - 1]
mov qword [rbp - 1], rax
call fcn.1401b2b70
jmp 0x1401b42e3
mov r12d, dword [rdi]
mov ecx, r8d
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 0x1401b4186
test edx, edx
je 0x1401b4249
lea rcx, [rbp - 0x39]
call fcn.1401acd10
mov edx, dword [rbp - 0x35]
mov r15d, eax
mov ecx, dword [rbp - 0x39]
mov dword [rbp - 0x19], eax
call fcn.1401a6c90
mov edx, dword [r14 + 0x3c]
lea rcx, [rbp - 0x39]
mov ebx, eax
mov dword [rbp - 0x21], eax
lea r8d, [rax + 0x5a0000]
call fcn.1401acc00
cmp byte [r14 + 0x14], 0
mov rcx, r14
je 0x1401b41cf
mov r8d, r15d
mov edx, ebx
call fcn.1401b52c0
jmp 0x1401b41db
mov edx, r15d
mov dword [r14 + 4], ebx
call fcn.1401b5250
mov ecx, eax
test eax, eax
jne 0x1401b4249
mov edx, dword [rbp - 0x35]
lea r15, [r14 + 0x40]
mov eax, dword [rbp - 0x39]
mov ebx, 1
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.1401b4990
mov ecx, eax
test eax, eax
jne 0x1401b4365
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 0x1401b41f0
mov eax, dword [rbp - 0x21]
mov dword [r14], eax
mov rax, qword [rbp + 0xf]
mov qword [r14 + 8], rax
mov eax, dword [rbp - 0x19]
mov dword [r14 + 0x10], eax
jmp 0x1401b42e9
test ecx, ecx
jmp 0x1401b42e7
mov ecx, dword [rdi]
mov r8d, dword [rdi + 4]
mov dword [rbp - 0x29], ecx
mov dword [rbp - 0x25], r8d
nop dword [rax]
cmp rdi, rdx
jae 0x1401b4305
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 0x1401b42d3
test eax, eax
jne 0x1401b4369
lea eax, [rcx + rbx]
mov r15, rbx
cdq
shr r15, 0x20
sub eax, edx
mov rcx, r14
sar eax, 1
mov dword [rbp + 0x17], eax
lea eax, [r15 + r8]
cdq
lea r8, [rbp + 0x17]
sub eax, edx
lea rdx, [rbp - 0x29]
sar eax, 1
mov dword [rbp + 0x1b], eax
call fcn.1401b1f20
mov ecx, eax
test eax, eax
jne 0x1401b4365
mov rdx, qword [rbp - 0x11]
mov r8d, r15d
mov qword [rbp - 0x29], rbx
mov ecx, ebx
jmp 0x1401b4260
lea r8, [rbp - 1]
mov rcx, r14
lea rdx, [rbp - 0x29]
call fcn.1401b1f20
test eax, eax
mov ecx, eax
jne 0x1401b4365
mov rdx, qword [rbp - 0x11]
cmp rdi, rdx
jae 0x1401b4317
xor r8d, r8d
jmp 0x1401b40e0
lea r9, [rbp - 0x31]
call fcn.1401b2b70
jmp 0x1401b4315
lea r8, [rbp - 0x31]
mov rcx, r14
lea rdx, [rbp - 0x29]
call fcn.1401b1f20
mov ecx, eax
test ecx, ecx
jne 0x1401b4365
mov rbx, qword [rbp + 0x6f]
mov r15d, dword [rbp - 9]
mov r12d, dword [rbp + 0x7f]
mov r13, qword [rbp + 0x1f]
cmp byte [r14 + 0x14], 0
jne 0x1401b4340
mov rcx, r14
call fcn.1401b3920
mov ecx, eax
test eax, eax
jne 0x1401b4365
movsx eax, word [rbx]
lea ecx, [r15 + 1]
inc r12d
add r13, 2
mov dword [rbp + 0x7f], r12d
mov qword [rbp + 0x1f], r13
cmp r12d, eax
jge 0x1401b4370
movzx r11d, byte [rbp + 0x77]
jmp 0x1401b4000
mov eax, ecx
jmp 0x1401b4372
mov eax, setsockopt
jmp 0x1401b4372
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