Function at 0x1400a85b0
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, 0x58
mov rbx, qword [rcx + 0x10]
mov rdi, rcx
mov rcx, rbx
mov r14, r8
mov r13, rdx
call fcn.140112390
mov rcx, rbx
mov dword [rsp + 0x40], eax
mov r15d, eax
call fcn.140112390
mov rcx, qword [rsp + 0xc0]
xor esi, esi
mov r9d, dword [r14 + 0x14]
mov r12, qword [r14]
mov dword [rsp + 0x3c], eax
movzx ebp, byte [rcx]
mov eax, dword [rcx + 4]
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x38], eax
test r9d, r9d
je 0x1400a867c
mov r8d, dword [r14 + 0x10]
lea edx, [rsi + 0x11]
mov rcx, rbx
mov dword [rsp + 0x20], esi
call fcn.1401089e0
mov r9d, r15d
mov dword [rsp + 0x20], esi
xor r8d, r8d
lea edx, [rsi + 0x10]
mov rcx, rbx
call fcn.1401089e0
mov eax, dword [r14 + 0x14]
mov r8, qword [rbx + 0x30]
not eax
test eax, eax
js 0x1400a866b
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x1400a866b
movsxd rcx, eax
mov eax, dword [rbx + 0x3c]
mov dword [rdx + rcx*4], eax
mov eax, dword [rbx + 0x3c]
mov rcx, qword [rsp + 0xc0]
dec eax
mov dword [r8 + 0x64], eax
mov edx, dword [r14 + 0xc]
lea eax, [rbp - 9]
mov dword [rsp + 0x30], edx
test al, 0xfb
je 0x1400a86db
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x1400a86a8
inc dword [rdi + 0x54]
mov r14d, 1
mov r15d, dword [rdi + 0x54]
inc dword [rdi + 0x54]
mov ebp, dword [rdi + 0x54]
jmp 0x1400a86e9
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r15d, dword [rdi + rax*4 + 0x24]
test al, al
jne 0x1400a86c7
inc dword [rdi + 0x54]
mov r14d, 1
mov ebp, dword [rdi + 0x54]
jmp 0x1400a86e9
dec al
mov r14d, 1
movzx eax, al
mov byte [rdi + 0x1f], al
mov ebp, dword [rdi + rax*4 + 0x24]
jmp 0x1400a86e9
mov ebp, dword [rcx + 8]
xor r15d, r15d
mov r14d, dword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
mov r12d, dword [r12]
sub r12d, dword [rcx + 8]
test byte [rcx + 0x1c], 1
je 0x1400a87ee
inc dword [rdi + 0x54]
mov eax, dword [rdi + 0x50]
mov r13d, dword [rdi + 0x54]
mov dword [rsp + 0x34], eax
inc eax
mov dword [rdi + 0x50], eax
cmp dword [rcx + 0x14], esi
je 0x1400a8743
mov rcx, rdi
call fcn.1400ec180
mov r8d, dword [rdi + 0x5c]
xor r9d, r9d
mov dword [rsp + 0x20], esi
lea ecx, [r8 + 1]
mov dword [rdi + 0x5c], ecx
lea edx, [r9 + 0x2c]
mov rcx, rax
call fcn.1401089e0
mov esi, eax
mov r8d, dword [rsp + 0x34]
lea ecx, [r12 + 1]
add ecx, r14d
mov r9d, r13d
mov dword [rsp + 0x20], ecx
mov edx, 0x3c
mov rcx, rbx
call fcn.1401089e0
test esi, esi
je 0x1400a878a
mov edx, dword [rbx + 0x3c]
cmp edx, esi
jbe 0x1400a8780
mov eax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
lea ecx, [rdx - 1]
mov dword [rax + 0x64], ecx
mov r9d, dword [rsp + 0x40]
mov edx, 0x6a
mov r8d, dword [rsp + 0x30]
mov rcx, rbx
mov dword [rsp + 0x20], 0
call fcn.1401089e0
mov r8d, dword [rsp + 0x3c]
mov rcx, rbx
lea esi, [rax + 1]
mov rax, qword [rsp + 0xa8]
mov dword [rsp + 0x44], esi
mov edx, dword [rax + 0x10]
call fcn.140078080
mov eax, dword [rsp + 0x34]
mov r9d, r13d
mov r8d, dword [rsp + 0x30]
mov edx, 0x64
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.1401089e0
mov r13d, dword [rsp + 0x34]
xor eax, eax
jmp 0x1400a8828
mov r9d, dword [rsp + 0x40]
mov r8d, edx
mov edx, WSAGetLastError
mov dword [rsp + 0x20], esi
mov rcx, rbx
call fcn.1401089e0
mov r8d, dword [rsp + 0x3c]
inc eax
mov edx, dword [r13 + 0x10]
mov rcx, rbx
mov dword [rsp + 0x44], eax
call fcn.140078080
mov r13d, dword [rsp + 0x30]
mov eax, 1
test r14d, r14d
jle 0x1400a88a8
sub eax, ebp
mov esi, ebp
add eax, r12d
mov r12d, r14d
mov edi, eax
nop dword [rax]
movsxd r14, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
mov ecx, r14d
cmp dword [rax + 0x60], r14d
jg 0x1400a8865
mov edx, 1
mov rcx, rbx
call fcn.1400aad80
test eax, eax
jne 0x1400a8898
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx + 1]
mov dword [rbx + 0x3c], eax
lea rcx, [r14 + r14*2]
mov rax, qword [rbx + 8]
mov word [rax + rcx*8], 0x2f
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r13d
lea rdx, [rax + rcx*8]
lea eax, [rdi + rsi]
mov dword [rdx + 0xc], esi
mov dword [rdx + 8], eax
mov qword [rdx + 0x10], 0
inc esi
sub r12, 1
jne 0x1400a8840
mov rdi, qword [rsp + 0xa0]
mov edx, dword [rsp + 0x48]
mov ecx, edx
sub ecx, 0xa
je 0x1400a8a25
sub ecx, 1
je 0x1400a8972
sub ecx, 1
je 0x1400a891e
cmp ecx, 2
je 0x1400a891e
mov r14, qword [rsp + 0xc0]
mov rcx, rbx
mov dword [rsp + 0x20], 0
cmp dl, 9
jne 0x1400a8909
mov r9d, dword [rsp + 0xb8]
mov edx, 0x23
mov r8d, dword [r14 + 8]
call fcn.1401089e0
mov r8d, dword [rsp + 0xb8]
mov edx, dword [r14 + 8]
jmp 0x1400a8a4b
mov r8d, dword [r14 + 4]
xor r9d, r9d
lea edx, [r9 + 0x16]
call fcn.1401089e0
jmp 0x1400a8a53
mov r8d, dword [rsp + 0x38]
xor r14d, r14d
mov r9d, r15d
mov dword [rsp + 0x20], r14d
mov rcx, rbx
lea edx, [r14 + 0x4a]
call fcn.1401089e0
mov r8d, dword [rsp + 0x38]
lea edx, [r14 + 0x4b]
mov r9d, ebp
mov dword [rsp + 0x20], r15d
mov rcx, rbx
call fcn.1401089e0
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x1400a8a56
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 8
jmp 0x1400a8a56
mov r14, qword [rsp + 0xc0]
mov r9d, 1
mov r8d, ebp
mov dword [rsp + 0x20], r15d
mov rcx, rbx
inc r14
lea edx, [r9 + 0x30]
call fcn.1401089e0
mov r8, qword [rbx + 8]
mov rcx, qword [rbx]
test r8, r8
je 0x1400a89f7
cmp byte [rcx + 0x51], 0
jne 0x1400a89f7
test eax, eax
jns 0x1400a89b2
mov eax, dword [rbx + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
lea rsi, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rsi + 0x10]
call fcn.140087680
mov qword [rsi + 0x10], 0
test r14, r14
jne 0x1400a89de
mov byte [rsi + 1], r14b
jmp 0x1400a89f7
mov rcx, qword [rbx]
mov r8d, 1
mov rdx, r14
call fcn.1400d6690
mov qword [rsi + 0x10], rax
mov byte [rsi + 1], 0xff
mov r8d, 1
mov edx, ebp
mov rcx, rdi
call fcn.1400da510
mov r8d, dword [rsp + 0x38]
xor r14d, r14d
mov r9d, r15d
mov dword [rsp + 0x20], r14d
mov rcx, rbx
lea edx, [r14 + 0x6e]
call fcn.1401089e0
jmp 0x1400a8a56
mov r9d, dword [rsp + 0x38]
mov r8d, ebp
mov rcx, qword [rdi + 0x10]
mov edx, 0x20
mov dword [rsp + 0x20], 1
call fcn.1401089e0
mov r8d, 1
mov edx, ebp
mov rcx, rdi
call fcn.1400da510
xor r14d, r14d
test r15d, r15d
je 0x1400a8ac7
test ebp, ebp
je 0x1400a8a92
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x1400a8a92
mov ecx, r14d
lea rax, [rdi + 0x88]
cmp dword [rax + 0xc], ebp
je 0x1400a8a8e
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x1400a8a72
movzx eax, dl
mov dword [rdi + rax*4 + 0x24], ebp
inc byte [rdi + 0x1f]
jmp 0x1400a8a92
mov byte [rax + 6], 1
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x1400a8ac7
mov ecx, r14d
lea rax, [rdi + 0x88]
cmp dword [rax + 0xc], r15d
je 0x1400a8ac3
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x1400a8aa5
movzx eax, dl
mov dword [rdi + rax*4 + 0x24], r15d
inc byte [rdi + 0x1f]
jmp 0x1400a8ac7
mov byte [rax + 6], 1
mov r8, qword [rbx + 0x30]
mov edi, 0xffffffff
mov eax, edi
sub eax, dword [rsp + 0x3c]
js 0x1400a8aed
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x1400a8aed
movsxd rcx, eax
mov eax, dword [rbx + 0x3c]
mov dword [rdx + rcx*4], eax
mov eax, dword [rbx + 0x3c]
mov rcx, rbx
mov rsi, qword [rsp + 0xb0]
dec eax
mov r9d, dword [rsp + 0x44]
mov dword [r8 + 0x64], eax
mov r8d, dword [rsp + 0x30]
movzx edx, byte [rsi + 0x1c]
not dl
mov dword [rsp + 0x20], r14d
and edx, 1
lea edx, [rdx*4 + 5]
call fcn.1401089e0
mov ebp, dword [rsi + 0x10]
test ebp, ebp
je 0x1400a8b7a
movsxd rsi, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
mov ecx, esi
cmp dword [rax + 0x60], esi
jg 0x1400a8b4f
mov edx, 1
mov rcx, rbx
call fcn.1400aad80
test eax, eax
jne 0x1400a8b7a
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx + 1]
mov dword [rbx + 0x3c], eax
lea rcx, [rsi + rsi*2]
mov rax, qword [rbx + 8]
mov word [rax + rcx*8], send
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r14
sub edi, dword [rsp + 0x40]
mov r8, qword [rbx + 0x30]
js 0x1400a8b99
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x1400a8b99
mov eax, dword [rbx + 0x3c]
movsxd rcx, edi
mov dword [rdx + rcx*4], eax
mov eax, dword [rbx + 0x3c]
dec eax
mov dword [r8 + 0x64], eax
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret