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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
xor r11d, r11d
mov r12, rdx
mov rbx, rcx
mov edi, r11d
test rdx, rdx
je 0x1400a59bb
mov esi, dword [rdx + 0x18]
mov ecx, 0x200
call fcn.1400d87f0
mov r14, rax
test rax, rax
je 0x1400a59b1
lea rcx, [rax + 4]
xor edx, edx
mov r8d, 0x1fc
call sub.VCRUNTIME140.dll_memset
mov dword [r14], esi
lea r15, [rbx + 0x60]
mov eax, dword [r12 + 0x18]
lea rsi, [rbx + 0x128]
mov rdx, qword [r15]
mov r13, rdx
mov dword [rbx + 0x20], eax
movzx eax, byte [rbx + 0x10]
mov byte [rbx + 0x17], al
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x40], rdx
cmp qword [rsi], rdi
jne 0x1400a5bf3
mov rsi, qword [r12 + 8]
mov rax, qword [r12]
test rsi, rsi
mov qword [r15], rax
cmove rsi, rdx
mov rax, qword [r15]
cmp rax, rsi
jge 0x1400a59a1
mov r9d, 1
mov dword [rsp + 0x20], 1
mov r8, r14
mov rdx, r15
mov rcx, rbx
call fcn.1400a6fe0
mov edi, eax
test eax, eax
je 0x1400a5972
jmp 0x1400a5cb6
test edi, edi
jne 0x1400a5cb6
xor r11d, r11d
jmp 0x1400a5c00
mov eax, 7
jmp 0x1400a5eb7
mov eax, dword [rcx + 0x24]
mov r14, r11
mov dword [rcx + 0x20], eax
movzx eax, byte [rcx + 0x10]
mov byte [rcx + 0x17], al
lea rax, [rcx + 0x128]
mov r15, qword [rax]
test r15, r15
je 0x1400a5bdf
mov eax, dword [rcx + 0x24]
mov esi, r11d
mov dword [rcx + 0x20], eax
cmp byte [r15 + 0x40], sil
je 0x1400a5b55
mov r12d, dword [r15 + 0x58]
mov rax, qword [r15 + 0x30]
mov rcx, qword [rax]
movups xmm0, xmmword [rcx]
movups xmmword [r15 + 0x48], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [r15 + 0x58], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [r15 + 0x68], xmm0
mov edi, dword [r15 + 0x58]
inc edi
lea r14d, [rdi + 0x1000]
cmp edi, r12d
ja 0x1400a5a72
mov r8, qword [r15 + 0x30]
mov eax, r14d
sub rax, 0xfdf
shr rax, 0xc
test eax, eax
jne 0x1400a5a49
mov rax, qword [r8]
mov edx, dword [rax + rdi*4 + 0x84]
jmp 0x1400a5a5f
cdqe
lea edx, [rdi - 1]
add rdx, 0x22
and edx, 0xfff
mov rcx, qword [r8 + rax*8]
mov edx, dword [rcx + rdx*4]
mov rcx, rbx
call fcn.1400a6030
inc edi
inc r14d
mov esi, eax
test eax, eax
je 0x1400a5a23
mov eax, dword [r15 + 0x58]
cmp r12d, eax
je 0x1400a5b55
test eax, eax
je 0x1400a5b55
lea edi, [rax + 0x1000]
sub rdi, 0xfdf
shr rdi, 0xc
cmp dword [r15 + 0x28], edi
jle 0x1400a5aba
mov rax, qword [r15 + 0x30]
movsxd rcx, edi
mov rdx, qword [rax + rcx*8]
mov qword [rbp - 0x28], rdx
test rdx, rdx
je 0x1400a5aba
xor r11d, r11d
mov eax, r11d
jmp 0x1400a5acf
lea r8, [rbp - 0x28]
mov edx, edi
mov rcx, r15
call fcn.140116710
mov rdx, qword [rbp - 0x28]
xor r11d, r11d
test rdx, rdx
je 0x1400a5b55
lea r8, [rdx + 0x4000]
mov qword [rbp - 0x30], r8
test edi, edi
jne 0x1400a5afb
add rdx, 0x88
mov dword [rbp - 0x20], r11d
mov qword [rbp - 0x28], rdx
mov edi, r11d
jmp 0x1400a5b04
shl edi, 0xc
sub edi, 0x22
mov dword [rbp - 0x20], edi
test eax, eax
jne 0x1400a5b55
mov r10d, dword [r15 + 0x58]
mov edx, 0x2000
sub r10d, edi
mov r9, r8
movzx eax, word [r8]
cmp eax, r10d
jle 0x1400a5b24
mov word [r9], r11w
add r9, 2
add r8, 2
sub rdx, 1
jne 0x1400a5b17
mov ecx, dword [rbp - 0x30]
lea eax, [r10*4]
sub ecx, eax
mov rax, qword [rbp - 0x28]
sub ecx, dword [rbp - 0x28]
movsxd r8, ecx
movsxd rcx, r10d
lea rcx, [rax + rcx*4]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbx + 0x120]
call fcn.1400dc740
test rax, rax
je 0x1400a5bd8
test esi, esi
jne 0x1400a5bd8
mov edx, dword [rax + 0x30]
mov rcx, rbx
mov r14, qword [rax + 0x20]
call fcn.1400da4b0
mov rdi, rax
test rax, rax
je 0x1400a5bae
cmp word [rax + 0x36], 1
mov rcx, rax
jne 0x1400a5b92
call fcn.1400dc910
jmp 0x1400a5bae
call fcn.1400ab1a0
mov esi, eax
test eax, eax
jne 0x1400a5ba6
mov rcx, rdi
call qword [rbx + 0x108]
mov rcx, rdi
call fcn.1400dbad0
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x1400a5bd0
nop word [rax + rax]
mov dword [rcx + 0x18], 1
mov rcx, qword [rcx + 0x40]
test rcx, rcx
jne 0x1400a5bc0
mov rax, r14
test r14, r14
jne 0x1400a5b66
mov eax, esi
jmp 0x1400a5eb7
lea r15, [rcx + 0x60]
mov qword [rbp - 0x38], rax
mov rax, qword [r15]
mov qword [rbp - 0x40], rax
mov r13, rax
jmp 0x1400a5bf6
xor r11d, r11d
mov qword [r15], r11
mov rax, r11
nop dword [rax]
cmp rax, r13
jge 0x1400a5ca9
lea rax, [rbp + 0x58]
mov dword [rbp + 0x50], r11d
lea r9, [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r8, r13
xor edx, edx
mov rcx, rbx
call fcn.1400ab2b0
mov r12d, dword [rbp + 0x50]
mov edi, eax
test r12d, r12d
jne 0x1400a5c61
mov eax, dword [rbx + 0xb8]
add rax, qword [rbx + 0x68]
mov rcx, qword [r15]
cmp rax, rcx
jne 0x1400a5c61
mov rax, qword [rbp - 0x40]
sub rax, rcx
mov rcx, qword [rbx + 0xc8]
add rcx, 8
cqo
idiv rcx
mov r12, rax
mov dword [rbp + 0x50], eax
xor esi, esi
test edi, edi
jne 0x1400a5ca9
nop word [rax + rax]
mov rax, qword [r15]
cmp esi, r12d
jae 0x1400a59a9
cmp rax, r13
jge 0x1400a59a9
mov r9d, 1
mov dword [rsp + 0x20], 1
mov r8, r14
mov rdx, r15
mov rcx, rbx
call fcn.1400a6fe0
inc esi
mov edi, eax
test eax, eax
je 0x1400a5c70
mov r12, qword [rbp + 0x48]
test r12, r12
je 0x1400a5e2c
mov rcx, qword [rbx + 0xc8]
mov eax, dword [r12 + 0x1c]
add rcx, 4
mov rsi, qword [rbp - 0x38]
imul rcx, rax
mov rsi, qword [rsi]
mov qword [rbp - 0x40], rcx
test rsi, rsi
je 0x1400a5dfc
mov eax, dword [rsi + 0x88]
xor r11d, r11d
cmp dword [r12 + 0x30], eax
je 0x1400a5cfe
mov dword [r12 + 0x24], r11d
mov eax, dword [rsi + 0x88]
mov dword [r12 + 0x30], eax
mov ecx, dword [r12 + 0x24]
cmp ecx, dword [rsi + 0x58]
jae 0x1400a5df1
mov dword [rsi + 0x58], ecx
mov eax, dword [r12 + 0x28]
mov dword [rsi + 0x60], eax
mov eax, dword [r12 + 0x2c]
mov dword [rsi + 0x64], eax
test ecx, ecx
je 0x1400a5df1
lea edi, [rcx + 0x1000]
sub rdi, 0xfdf
shr rdi, 0xc
cmp dword [rsi + 0x28], edi
jle 0x1400a5d56
mov rax, qword [rsi + 0x30]
movsxd rcx, edi
mov rdx, qword [rax + rcx*8]
mov qword [rbp - 0x10], rdx
test rdx, rdx
je 0x1400a5d56
mov eax, r11d
jmp 0x1400a5d6b
lea r8, [rbp - 0x10]
mov edx, edi
mov rcx, rsi
call fcn.140116710
mov rdx, qword [rbp - 0x10]
xor r11d, r11d
test rdx, rdx
je 0x1400a5df1
lea r8, [rdx + 0x4000]
mov qword [rbp - 0x18], r8
test edi, edi
jne 0x1400a5d97
add rdx, 0x88
mov dword [rbp - 8], r11d
mov qword [rbp - 0x10], rdx
mov edi, r11d
jmp 0x1400a5da0
shl edi, 0xc
sub edi, 0x22
mov dword [rbp - 8], edi
test eax, eax
jne 0x1400a5df1
mov r10d, dword [rsi + 0x58]
mov edx, 0x2000
sub r10d, edi
mov r9, r8
movzx eax, word [r8]
cmp eax, r10d
jle 0x1400a5dc0
mov word [r9], r11w
add r9, 2
add r8, 2
sub rdx, 1
jne 0x1400a5db3
mov ecx, dword [rbp - 0x18]
lea eax, [r10*4]
sub ecx, eax
mov rax, qword [rbp - 0x10]
sub ecx, dword [rbp - 0x10]
movsxd r8, ecx
movsxd rcx, r10d
lea rcx, [rax + rcx*4]
call sub.VCRUNTIME140.dll_memset
mov esi, dword [r12 + 0x1c]
xor eax, eax
mov edi, eax
jmp 0x1400a5e05
mov esi, dword [r12 + 0x1c]
test edi, edi
jne 0x1400a5e2c
cmp esi, dword [rbx + 0x3c]
jae 0x1400a5e2c
xor r9d, r9d
mov dword [rsp + 0x20], 1
mov r8, r14
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.1400a6fe0
inc esi
mov edi, eax
test eax, eax
je 0x1400a5e05
test r14, r14
je 0x1400a5eae
cmp dword [r14 + 8], 0
je 0x1400a5e53
lea rbx, [r14 + 0x10]
mov esi, 0x3e
mov rcx, qword [rbx]
call fcn.1400b8740
lea rbx, [rbx + 8]
sub rsi, 1
jne 0x1400a5e41
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x1400a5ea5
mov rcx, qword [0x140165f60]
test rcx, rcx
je 0x1400a5e6e
call qword [0x140162870]
mov rcx, r14
call qword [0x140162828]
dec qword [0x140165ef8]
mov rcx, r14
movsxd rdx, eax
sub qword [0x140165eb0], rdx
call qword [0x140162818]
mov rcx, qword [0x140165f60]
test rcx, rcx
je 0x1400a5eae
call qword [0x140162880]
jmp 0x1400a5eae
mov rcx, r14
call qword [0x140162818]
test edi, edi
jne 0x1400a5eb5
mov qword [r15], r13
mov eax, edi
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret