Function at 0x1401a54a0
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 0x1401a5b32
cmp dl, 0x32
jne 0x1401a5517
mov r14d, dword [rsp + 0xd8]
lea edx, [rdi + 0x49]
mov r9d, r14d
xor r8d, r8d
mov rcx, rsi
call fcn.140217140
jmp 0x1401a5a4f
mov r15, qword [r8 + 0x48]
mov ebp, edi
mov dword [rsp + 0x38], 5
mov r12, rdi
mov qword [rsp + 0x48], r15
test dword [r15 + 0x28], 0x400
jne 0x1401a5558
mov rax, qword [r15 + 0x20]
test rax, rax
je 0x1401a5558
mov rax, qword [rax + 0x38]
cmp byte [r10 + rax], dil
je 0x1401a5558
cmp dword [rsp + 0xd0], edi
mov eax, edi
sete al
jmp 0x1401a555f
mov eax, dword [rsp + 0xd0]
mov r14d, dword [rsp + 0xd8]
mov dword [rsp + 0x30], eax
test r9d, r9d
jle 0x1401a5591
mov r8, qword [r15 + 0x38]
mov rax, rdi
mov rcx, qword [r8 + rax*8]
test rcx, rcx
je 0x1401a5589
cmp qword [rcx], r13
je 0x1401a5635
inc rax
cmp rax, r10
jl 0x1401a5577
movzx r8d, word [r15 + 0x2c]
cmp r10d, r8d
jge 0x1401a55c8
mov rax, qword [r15 + 0x38]
sub r8d, r10d
lea rdx, [rax + r10*8]
nop word [rax + rax]
mov rax, qword [rdx]
lea ecx, [rbp + 1]
lea rdx, [rdx + 8]
cmp qword [rax], r13
cmovne ecx, ebp
mov ebp, ecx
sub r8, 1
jne 0x1401a55b0
test dword [r13 + 4], 0x800
mov r14d, edi
mov dword [rsp + 0x3c], edi
mov dword [rsp + 0x34], edi
je 0x1401a56c0
mov rax, qword [r13 + 0x20]
mov rcx, qword [rax]
cmp dword [rcx], 1
je 0x1401a56c0
mov r9, qword [rsp + 0x50]
mov r8, r15
mov r13, qword [r11]
mov edx, r10d
mov rcx, r11
call fcn.1401d6500
mov r15, rax
cmp byte [r13 + 0x61], dil
jne 0x1401a56a2
mov rcx, qword [rsp + 0xb0]
movsxd r14, ebp
shl r14, 2
mov rcx, qword [rcx]
test rcx, rcx
je 0x1401a564a
mov rdx, r14
call fcn.1401ec300
jmp 0x1401a5652
mov rcx, qword [rsp + 0xc0]
mov rdx, rbx
call fcn.1401aaee0
jmp 0x1401a5b7c
mov rcx, r14
call fcn.140203f00
mov r12, rax
test rax, rax
je 0x1401a5667
mov r8, r14
xor edx, edx
mov rcx, rax
call fcn.140289490
mov rcx, qword [rsp + 0xb0]
lea rax, [rsp + 0x34]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov rdx, r15
mov qword [rsp + 0x20], r12
lea r8d, [r9 + 4]
call fcn.1401f41a0
mov r14d, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
mov rax, qword [rbx]
mov dword [rsp + 0x3c], r14d
mov dword [rax + 0x2c], r14d
test r15, r15
je 0x1401a56b2
mov rdx, r15
mov rcx, r13
call fcn.1401f24f0
mov r13, qword [rbx]
mov r15, qword [rsp + 0x48]
mov eax, dword [rsp + 0x38]
jmp 0x1401a56ef
xor r9d, r9d
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rdx, r13
mov rcx, r11
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 4]
call fcn.1401f41a0
mov r14d, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], r14d
cmp eax, 4
jne 0x1401a5703
cmp dword [rsp + 0x30], edi
mov eax, edi
sete al
mov dword [rsp + 0x30], eax
jmp 0x1401a5707
mov eax, dword [rsp + 0x30]
test eax, eax
mov ecx, 0x20
mov edx, 0x24
cmovne edx, ecx
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jg 0x1401a5739
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov r8d, r14d
mov rcx, rsi
call fcn.1401c6d10
jmp 0x1401a5769
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 word [rax + rcx*8 + 2], di
mov dword [rax + rcx*8 + 4], r14d
mov qword [rax + rcx*8 + 8], rdi
mov qword [rax + rcx*8 + 0x10], rdi
mov byte [rax + rcx*8 + 1], dil
or dword [r15 + 0x28], 0x800
mov rcx, qword [rsp + 0xc0]
mov r14d, dword [rcx + 0x38]
test r14d, r14d
jne 0x1401a5797
mov rax, qword [rsp + 0xb0]
dec dword [rax + 0x44]
mov eax, dword [rax + 0x44]
mov r14d, dword [rcx + 0x38]
mov dword [rcx + 0x10], eax
lea eax, [r14 + rbp]
mov rbp, qword [rsp + 0xc0]
mov rdx, qword [rbp + 0x40]
mov dword [rbp + 0x38], eax
cdqe
lea r8, [rax + rax*4]
mov rax, qword [rsp + 0xb0]
shl r8, 2
mov rcx, qword [rax]
call fcn.1401ec410
mov qword [rbp + 0x40], rax
mov rdx, rax
test rax, rax
je 0x1401a5a14
movsxd r9, dword [rsp + 0xc8]
movsxd rax, r14d
lea rcx, [rax + rax*4]
movzx eax, word [r15 + 0x2c]
lea r14, [rdx + rcx*4]
cmp r9d, eax
jge 0x1401a5a17
mov ecx, dword [rsp + 0xd8]
lea r11, [r9*8]
mov ebx, dword [rsp + 0x3c]
mov r10d, ecx
sub r10d, r9d
mov qword [rsp + 0x50], r11
mov eax, r9d
mov dword [rsp + 0x34], r10d
sub eax, ecx
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], eax
mov r8, r12
mov ebp, ecx
nop dword [rax + rax]
mov rax, qword [r15 + 0x38]
mov rdx, r8
mov rcx, qword [r11 + rax]
cmp qword [rcx], r13
jne 0x1401a59dc
cmp dword [rsp + 0x38], 1
jne 0x1401a58a5
movsxd rdx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], edx
jg 0x1401a5880
mov r9d, ebp
mov dword [rsp + 0x20], edi
mov r8d, ebx
mov edx, 0x80
mov rcx, rsi
call fcn.1401c6d10
mov r9d, dword [rsp + 0xc8]
mov edx, eax
jmp 0x1401a5921
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rsi + 0x90], eax
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x80
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], edi
jmp 0x1401a5918
test r12, r12
je 0x1401a58af
mov r8d, dword [r8]
jmp 0x1401a58b2
mov r8d, edi
test r12, r12
lea rax, [rdx + 4]
cmove rax, rdx
movsxd rdx, dword [rsi + 0x90]
mov qword [rsp + 0x48], rax
cmp dword [rsi + 0x94], edx
jg 0x1401a58f4
mov r9d, r8d
mov dword [rsp + 0x20], ebp
mov r8d, ebx
mov edx, 0x5a
mov rcx, rsi
call fcn.1401c6d10
mov r9d, dword [rsp + 0xc8]
mov edx, eax
jmp 0x1401a5921
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rsi + 0x90], eax
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x5a
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 + 4], edx
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jg 0x1401a5954
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov r8d, ebp
mov rcx, rsi
lea edx, [r9 + 0x32]
call fcn.1401c6d10
mov r9d, dword [rsp + 0xc8]
jmp 0x1401a597d
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x32
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]
add ecx, ebp
cmp ecx, r9d
jne 0x1401a59c4
cmp dword [rsp + 0x30], edi
mov dword [r14], ebx
sete al
add al, 4
mov byte [r14 + 0x10], al
test r9d, r9d
jle 0x1401a59be
test dword [r15 + 0x28], 0x400
jne 0x1401a59be
mov r10d, dword [rsp + 0x34]
mov dword [r14 + 8], r10d
mov dword [r14 + 0xc], ecx
or dword [r15 + 0x28], 0x40000
jmp 0x1401a59ce
mov dword [r14 + 0xc], edi
jmp 0x1401a59c9
mov byte [r14 + 0x10], 0xaa
mov r10d, dword [rsp + 0x34]
mov r8, qword [rsp + 0x48]
add r14, 0x14
mov r11, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x40]
inc ebp
movzx eax, word [r15 + 0x2c]
dec r10d
add r11, 8
mov dword [rsp + 0x34], r10d
add ecx, ebp
mov qword [rsp + 0x50], r11
cmp ecx, eax
jl 0x1401a5830
mov rbx, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xc0]
jmp 0x1401a5a17
mov dword [rbp + 0x38], edi
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
test r12, r12
je 0x1401a5a41
test rcx, rcx
je 0x1401a5acc
cmp qword [rcx + 0x2b0], rdi
je 0x1401a5aa3
mov rdx, r12
call fcn.1401ca810
mov r14d, dword [rsp + 0xd8]
mov r15d, 0x400
test byte [rbx + 0x12], 4
jne 0x1401a5b7c
mov edx, 0x200
nop
cmp dword [rbp], 0
je 0x1401a5a73
mov rax, qword [rbx]
test byte [rax + 4], 1
je 0x1401a5b7c
mov rax, qword [rbx + 0x38]
test qword [rbp + 0x50], rax
jne 0x1401a5b7c
test edi, edi
je 0x1401a5b4b
movzx eax, word [rbx + 0x12]
test r15w, ax
je 0x1401a5b4b
or ax, dx
mov word [rbx + 0x12], ax
jmp 0x1401a5b50
cmp r12, qword [rcx + 0x198]
jb 0x1401a5acc
cmp r12, qword [rcx + 0x1a0]
jae 0x1401a5acc
mov rax, qword [rcx + 0x190]
mov qword [r12], rax
mov qword [rcx + 0x190], r12
jmp 0x1401a5a41
cmp dword [reloc.WS2_32.dll_accept], edi
je 0x1401a5b24
mov rcx, qword [0x1403db8a0]
test rcx, rcx
je 0x1401a5ae6
call qword [0x1403ba330]
mov rcx, r12
call qword [0x1403ba2e8]
dec qword [0x1403db798]
movsxd rcx, eax
sub qword [0x1403db750], rcx
mov rcx, r12
call qword [0x1403ba2d8]
mov rcx, qword [0x1403db8a0]
test rcx, rcx
je 0x1401a5a41
call qword [0x1403ba340]
jmp 0x1401a5a41
mov rcx, r12
call qword [0x1403ba2d8]
jmp 0x1401a5a41
mov r8d, dword [rsp + 0xd8]
mov rdx, qword [r13 + 0x18]
call fcn.1401f0f10
mov r14d, eax
jmp 0x1401a5a4f
or word [rbx + 0x12], 4
movsxd rax, dword [rbx + 0x18]
test eax, eax
js 0x1401a5b7c
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 0x1401a5b7c
inc edi
test byte [rbx + 0x12], 4
je 0x1401a5a60
mov eax, r14d
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret