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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov r13, qword [rdx]
mov rbx, rdx
mov rsi, qword [rcx + 0x10]
xor edi, edi
movsxd r10, r9d
mov rbp, r8
mov r11, rcx
mov qword [rsp + 0x50], r13
movzx edx, byte [r13]
mov r15d, 0x400
lea eax, [rdx - 0x2d]
test al, 0xf7
je 0x140168c38
cmp dl, 0x32
jne 0x140168627
mov r14d, dword [rsp + 0xd8]
lea edx, [rdi + 0x48]
mov r9d, r14d
xor r8d, r8d
mov rcx, rsi
call fcn.1401c1c20
jmp 0x140168b39
mov r12, qword [r8 + 0x50]
mov r14d, 5
mov dword [rsp + 0x38], r14d
mov ebp, edi
mov qword [rsp + 0x48], r12
mov r15, rdi
test dword [r12 + 0x28], 0x400
jne 0x14016866d
mov rax, qword [r12 + 0x20]
test rax, rax
je 0x14016866d
mov rax, qword [rax + 0x38]
cmp byte [r10 + rax], dil
je 0x14016866d
cmp dword [rsp + 0xd0], edi
mov eax, edi
sete al
jmp 0x140168674
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x34], eax
test r9d, r9d
jle 0x14016869f
mov r8, qword [r12 + 0x38]
mov rax, rdi
mov rcx, qword [r8 + rax*8]
test rcx, rcx
je 0x140168697
cmp qword [rcx], r13
je 0x140168742
inc rax
cmp rax, r10
jl 0x140168685
movzx r8d, word [r12 + 0x2c]
cmp r10d, r8d
jge 0x1401686db
mov rax, qword [r12 + 0x38]
sub r8d, r10d
lea rdx, [rax + r10*8]
nop word [rax + rax]
mov rax, qword [rdx]
lea rdx, [rdx + 8]
mov rcx, qword [rax]
lea eax, [rbp + 1]
cmp rcx, r13
cmovne eax, ebp
mov ebp, eax
sub r8, 1
jne 0x1401686c0
test dword [r13 + 4], 0x800
mov dword [rsp + 0x30], edi
je 0x1401687cc
mov rax, qword [r13 + 0x20]
mov rcx, qword [rax + 0x20]
cmp dword [rcx], 1
je 0x1401687cc
mov r9, qword [rsp + 0x50]
mov r8, r12
mov r13, qword [r11]
mov edx, r10d
mov rcx, r11
call fcn.140186800
mov r12, rax
cmp byte [r13 + 0x61], dil
jne 0x1401687b2
mov rcx, qword [rsp + 0xb0]
movsxd r14, ebp
shl r14, 2
mov rcx, qword [rcx]
test rcx, rcx
je 0x14016875e
mov rdx, r14
call fcn.1401997c0
jmp 0x140168766
mov rcx, qword [rsp + 0xc0]
mov rdx, rbx
call fcn.14016dc20
mov eax, dword [rsp + 0xd8]
jmp 0x140168c85
mov rcx, r14
call fcn.1401ad670
mov r15, rax
test rax, rax
je 0x14016877b
mov r8, r14
xor edx, edx
mov rcx, rax
call fcn.14028e7e0
mov rcx, qword [rsp + 0xb0]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov rdx, r12
mov qword [rsp + 0x20], r15
lea r8d, [r9 + 4]
call fcn.1401a2350
mov ecx, dword [rsp + 0x30]
mov r14d, eax
mov dword [rsp + 0x38], eax
mov rax, qword [rbx]
mov dword [rax + 0x2c], ecx
test r12, r12
je 0x1401687c2
mov rdx, r12
mov rcx, r13
call fcn.1401a0530
mov r13, qword [rbx]
mov r12, qword [rsp + 0x48]
jmp 0x1401687f4
xor r9d, r9d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rdx, r13
mov rcx, r11
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 4]
call fcn.1401a2350
mov r14d, eax
mov dword [rsp + 0x38], eax
cmp r14d, 4
jne 0x140168809
cmp dword [rsp + 0x34], edi
mov eax, edi
sete al
mov dword [rsp + 0x34], eax
jmp 0x14016880d
mov eax, dword [rsp + 0x34]
test eax, eax
mov ecx, 0x21
mov edx, 0x25
cmovne edx, ecx
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jg 0x140168841
mov r8d, dword [rsp + 0x30]
xor r9d, r9d
mov rcx, rsi
mov dword [rsp + 0x20], edi
call fcn.140178b80
jmp 0x140168874
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov byte [rax + rcx*8], dl
mov edx, dword [rsp + 0x30]
mov dword [rax + rcx*8 + 4], edx
mov word [rax + rcx*8 + 2], di
mov qword [rax + rcx*8 + 8], rdi
mov qword [rax + rcx*8 + 0x10], rdi
mov byte [rax + rcx*8 + 1], dil
mov rcx, qword [rsp + 0xc0]
or dword [r12 + 0x28], 0x800
cmp dword [rcx + 0x40], edi
jne 0x14016889b
mov rax, qword [rsp + 0xb0]
dec dword [rax + 0x44]
mov eax, dword [rax + 0x44]
mov dword [rcx + 0x10], eax
movsxd r14, dword [rcx + 0x40]
lea eax, [r14 + rbp]
mov rbp, qword [rsp + 0xc0]
mov rdx, qword [rbp + 0x48]
mov dword [rbp + 0x40], eax
cdqe
lea r8, [rax + rax*4]
mov rax, qword [rsp + 0xb0]
shl r8, 2
mov rcx, qword [rax]
call fcn.140199960
mov qword [rbp + 0x48], rax
mov rdx, rax
test rax, rax
je 0x140168afe
movzx eax, word [r12 + 0x2c]
lea rcx, [r14*4 + 1]
movsxd r8, dword [rsp + 0xc8]
cmp r8d, eax
jge 0x140168b01
movsxd r11, dword [rsp + 0x38]
lea r9, [r8*8]
mov ebx, dword [rsp + 0x30]
add r14, rcx
mov ecx, dword [rsp + 0xd8]
mov eax, r8d
mov qword [rsp + 0x50], r9
mov r10, r15
mov qword [rsp + 0x48], r15
mov ebp, ecx
lea r14, [rdx + r14*4]
mov edx, ecx
sub edx, r8d
sub eax, ecx
mov dword [rsp + 0x3c], edx
mov dword [rsp + 0x40], eax
nop dword [rax + rax]
mov rax, qword [r12 + 0x38]
mov rcx, qword [r9 + rax]
cmp qword [rcx], r13
jne 0x140168ac7
cmp r11, 1
jne 0x1401689a9
movsxd rdx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], edx
jg 0x140168984
mov r9d, ebp
mov dword [rsp + 0x20], edi
mov r8d, ebx
lea edx, [r11 + 0x7e]
mov rcx, rsi
call fcn.140178b80
mov edx, eax
jmp 0x140168a16
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rsi + 0x90], eax
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x7f
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], edi
jmp 0x140168a0d
test r15, r15
je 0x1401689bc
mov r8d, dword [r10]
add r10, 4
mov qword [rsp + 0x48], r10
jmp 0x1401689bf
mov r8d, edi
movsxd rdx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], edx
jg 0x1401689e9
mov r9d, r8d
mov dword [rsp + 0x20], ebp
mov r8d, ebx
mov edx, 0x59
mov rcx, rsi
call fcn.140178b80
mov edx, eax
jmp 0x140168a16
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rsi + 0x90], eax
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x59
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rdi
mov dword [rax + rcx*8 + 4], ebx
mov dword [r14], edx
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jg 0x140168a40
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov r8d, ebp
mov rcx, rsi
lea edx, [r9 + 0x32]
call fcn.140178b80
jmp 0x140168a69
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], getprotobyname
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], rdi
mov qword [rax + rcx*8 + 0x10], rdi
mov ecx, dword [rsp + 0x40]
mov r8d, dword [rsp + 0xc8]
add ecx, ebp
mov edx, dword [rsp + 0x3c]
cmp ecx, r8d
jne 0x140168aaf
cmp dword [rsp + 0x34], edi
mov dword [r14 - 4], ebx
sete al
add al, 4
mov byte [r14 + 0xc], al
test r8d, r8d
jle 0x140168aa9
mov dword [r14 + 4], edx
mov dword [r14 + 8], ecx
or dword [r12 + 0x28], 0x40000
jmp 0x140168ab4
mov dword [r14 + 8], edi
jmp 0x140168ab4
mov byte [r14 + 0xc], 0xad
mov r9, qword [rsp + 0x50]
add r14, 0x14
mov r10, qword [rsp + 0x48]
movsxd r11, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x40]
inc ebp
movzx eax, word [r12 + 0x2c]
dec edx
add r9, 8
mov dword [rsp + 0x3c], edx
add ecx, ebp
mov qword [rsp + 0x50], r9
cmp ecx, eax
jl 0x140168940
mov rbx, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xc0]
jmp 0x140168b01
mov dword [rbp + 0x40], edi
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
test r15, r15
je 0x140168b2b
test rcx, rcx
je 0x140168bd2
cmp qword [rcx + 0x2d8], rdi
je 0x140168b8b
mov rdx, r15
call fcn.14017c3b0
mov r14d, dword [rsp + 0xd8]
mov r15d, 0x400
test byte [rbx + 0x12], 4
jne 0x140168c82
mov edx, 0x200
cmp dword [rbp], 0
je 0x140168b5b
mov rax, qword [rbx]
test byte [rax + 4], 1
je 0x140168c82
mov rax, qword [rbx + 0x38]
test qword [rbp + 0x58], rax
jne 0x140168c82
test edi, edi
je 0x140168c51
movzx eax, word [rbx + 0x12]
test r15w, ax
je 0x140168c51
or ax, dx
mov word [rbx + 0x12], ax
jmp 0x140168c56
cmp r15, qword [rcx + 0x1c8]
jae 0x140168bd2
cmp r15, qword [rcx + 0x1b8]
jb 0x140168bb3
mov rax, qword [rcx + 0x1b0]
mov qword [r15], rax
mov qword [rcx + 0x1b0], r15
jmp 0x140168b2b
cmp r15, qword [rcx + 0x1c0]
jb 0x140168bd2
mov rax, qword [rcx + 0x1a0]
mov qword [r15], rax
mov qword [rcx + 0x1a0], r15
jmp 0x140168b2b
cmp dword [reloc.WS2_32.dll_accept], edi
je 0x140168c2a
mov rcx, qword [0x1403efcd8]
test rcx, rcx
je 0x140168bec
call qword [0x1403dd1a0]
mov rcx, r15
call qword [0x1403dd158]
dec qword [0x1403efe48]
movsxd rcx, eax
sub qword [0x1403efe00], rcx
mov rcx, r15
call qword [0x1403dd148]
mov rcx, qword [0x1403efcd8]
test rcx, rcx
je 0x140168b2b
call qword [0x1403dd1b0]
jmp 0x140168b2b
mov rcx, r15
call qword [0x1403dd148]
jmp 0x140168b2b
mov r8d, dword [rsp + 0xd8]
mov rdx, qword [r13 + 0x18]
call fcn.14019eaa0
mov r14d, eax
jmp 0x140168b39
or word [rbx + 0x12], 4
movsxd rax, dword [rbx + 0x18]
test eax, eax
js 0x140168c82
mov rcx, rax
mov rax, qword [rbx + 8]
shl rcx, 6
mov rbx, rcx
add rbx, qword [rax + 0x20]
add byte [rbx + 0x16], 0xff
jne 0x140168c82
inc edi
test byte [rbx + 0x12], 4
je 0x140168b48
mov eax, r14d
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret