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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
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 r14d, edx
mov rdi, rcx
test rbx, rbx
jne 0x1401a1a60
cmp qword [rcx + 0xa0], rbx
jne 0x1401a1a58
mov rax, qword [rcx]
test byte [rax + 0x5c], 8
jne 0x1401a1a58
mov byte [rcx + 0x23], 1
call fcn.1401eea90
mov rbx, rax
dec dword [rdi + 0x44]
xor r8d, r8d
mov esi, dword [rdi + 0x34]
mov r12d, dword [rdi + 0x44]
dec esi
mov r13, qword [rsp + 0xc0]
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x34], r12d
cmp dword [rsp + 0xd8], r8d
jge 0x1401a1ae9
movsxd rcx, dword [rbx + 0x90]
movzx edx, byte [r13 + 0x2c]
cmp dword [rbx + 0x94], ecx
jg 0x1401a1abb
mov dword [rsp + 0x20], r8d
mov r9d, r12d
mov r8d, edx
mov rcx, rbx
mov edx, 0x2f
call fcn.1401a6490
xor r8d, r8d
jmp 0x1401a1ae9
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x2f
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov r15d, dword [r13 + 0x28]
mov ebp, r8d
mov dword [rsp + 0x3c], r15d
test r15d, r15d
jle 0x1401a1c09
mov rsi, qword [rsp + 0xc8]
xor r14d, r14d
mov edi, dword [rsp + 0xd0]
mov r10, qword [r13]
movzx eax, word [rsi]
test byte [r10 + 0x40], 0x20
je 0x1401a1b7d
test ax, ax
js 0x1401a1b7d
movsx ecx, ax
mov r11d, r14d
movzx edx, r14w
test ecx, ecx
jle 0x1401a1b5a
mov r8, qword [r10 + 8]
add r8, 0x1c
mov r11d, ecx
mov r9d, ecx
nop
movzx eax, byte [r8]
lea ecx, [rdx + 1]
and al, 0x20
lea r8, [r8 + 0x20]
cmovne cx, dx
movzx edx, cx
sub r9, 1
jne 0x1401a1b40
mov rax, qword [r10 + 8]
movsxd rcx, r11d
shl rcx, 5
test byte [rcx + rax + 0x1c], 0x20
je 0x1401a1b7a
movzx eax, word [r10 + 0x48]
sub ax, dx
add ax, r11w
jmp 0x1401a1b7d
movzx eax, dx
movsxd rcx, dword [rbx + 0x90]
lea edx, [rdi + 1]
cwde
add edx, eax
cmp dword [rbx + 0x94], ecx
jg 0x1401a1bac
mov r8d, edx
mov dword [rsp + 0x20], r14d
mov edx, 0x32
mov r9d, r12d
mov rcx, rbx
call fcn.1401a6490
jmp 0x1401a1bda
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x32
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r14
mov r15d, dword [r13 + 0x28]
inc ebp
add rsi, 4
mov dword [rsp + 0x3c], r15d
cmp ebp, r15d
jl 0x1401a1b10
mov rdi, qword [rsp + 0xa0]
xor r8d, r8d
mov r14d, dword [rsp + 0xa8]
mov esi, dword [rsp + 0x30]
cmp dword [rsp + 0xe0], 0
jne 0x1401a256e
mov rbp, qword [rsp + 0xb8]
test rbp, rbp
jne 0x1401a1eda
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x1401a1c38
inc dword [rdi + 0x38]
mov esi, dword [rdi + 0x38]
jmp 0x1401a1c47
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov esi, dword [rdi + rax*4 + 0xcc]
mov rax, qword [rsp + 0xc8]
mov rcx, qword [r13]
movzx edx, word [rax]
call fcn.1401ea1d0
mov r15d, dword [rsp + 0xd0]
xor r8d, r8d
movsx ecx, ax
lea edx, [r15 + 1]
add edx, ecx
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1401a1c9b
mov dword [rsp + 0x20], r8d
mov r9d, esi
mov r8d, edx
mov rcx, rbx
mov edx, 0x4e
call fcn.1401a6490
xor r8d, r8d
jmp 0x1401a1cc8
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x4e
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
movsxd rbp, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ebp
jg 0x1401a1cf2
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov r8d, esi
mov rcx, rbx
lea edx, [r9 + 0xf]
call fcn.1401a6490
mov ebp, eax
jmp 0x1401a1d26
lea eax, [rbp + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rbp*2]
mov rax, qword [rbx + 0x88]
add rcx, rbp
mov dword [rax + rcx*8], send
mov dword [rax + rcx*8 + 4], esi
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r8
mov rax, qword [rsp + 0xb0]
cmp rax, qword [r13]
jne 0x1401a1d75
cmp dword [rsp + 0xd8], 1
jne 0x1401a1d75
mov r9d, r12d
mov dword [rsp + 0x20], esi
mov r8d, r15d
mov edx, 0x35
mov rcx, rbx
call fcn.1401ee290
movsxd rax, dword [rbx + 0x90]
test eax, eax
jle 0x1401a1d75
lea rcx, [rax + rax*2]
mov edx, 0x90
mov rax, qword [rbx + 0x88]
mov word [rax + rcx*8 - 0x16], dx
mov r9, qword [rsp + 0xb0]
mov r8d, r14d
mov r14d, dword [rsp + 0x30]
mov rcx, rdi
mov edx, r14d
mov dword [rsp + 0x20], 0x60
call fcn.1401da8f0
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1401a1dc2
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov r8d, r14d
mov rcx, rbx
lea edx, [r9 + 0x20]
call fcn.1401a6490
xor r15d, r15d
jmp 0x1401a1df3
lea eax, [rcx + 1]
xor r15d, r15d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x20
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], r15
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1401a1e1b
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov r9d, r12d
mov rcx, rbx
lea edx, [r8 + 0xb]
call fcn.1401a6490
jmp 0x1401a1e46
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], recv
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r15
mov rax, qword [rbx]
lea rdx, [0x1402cf498]
mov r8d, dword [rbx + 0x90]
cmp byte [rax + 0x61], 0
lea ecx, [r8 - 2]
je 0x1401a1e66
mov rax, rdx
jmp 0x1401a1e82
sar ecx, 0x1f
mov eax, r8d
sub eax, ecx
sub eax, 2
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 8], r8d
mov rax, qword [rbx]
mov r8d, dword [rbx + 0x90]
cmp byte [rax + 0x61], 0
jne 0x1401a1eb0
lea eax, [r8 - 1]
test ebp, ebp
cmovns eax, ebp
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rdx, [rax + rcx*8]
mov dword [rdx + 8], r8d
test esi, esi
je 0x1401a2576
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1401a2576
movzx eax, al
mov dword [rdi + rax*4 + 0xcc], esi
inc byte [rdi + 0x1f]
jmp 0x1401a2576
cmp r15d, 1
jne 0x1401a1f13
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x1401a1ef9
inc dword [rdi + 0x38]
mov r12d, dword [rdi + 0x38]
mov dword [rsp + 0xe0], r12d
jmp 0x1401a1f50
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r12d, dword [rdi + rax*4 + 0xcc]
mov dword [rsp + 0xe0], r12d
jmp 0x1401a1f50
mov ecx, dword [rdi + 0x28]
mov edx, dword [rdi + 0x2c]
mov dword [rsp + 0xe0], edx
cmp r15d, ecx
jg 0x1401a1f37
lea eax, [rdx + r15]
sub ecx, r15d
mov dword [rdi + 0x2c], eax
mov r12d, edx
mov dword [rdi + 0x28], ecx
jmp 0x1401a1f4c
mov eax, dword [rdi + 0x38]
lea r12d, [rax + 1]
add eax, r15d
mov dword [rdi + 0x38], eax
mov dword [rsp + 0xe0], r12d
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x1401a1f5c
inc dword [rdi + 0x38]
mov eax, dword [rdi + 0x38]
jmp 0x1401a1f6b
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov eax, dword [rdi + rax*4 + 0xcc]
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rbp + 0x58]
mov dword [rsp + 0x38], eax
cmp dword [rbx + 0x94], ecx
jg 0x1401a1f9b
mov r9d, edx
mov dword [rsp + 0x20], r14d
mov edx, 0x60
mov r8d, esi
mov rcx, rbx
call fcn.1401a6490
jmp 0x1401a1fc8
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x60
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r8
mov rsi, qword [rdi + 0x10]
mov rdx, rbp
mov rcx, rdi
call fcn.1401d87b0
mov rdx, rax
test rax, rax
je 0x1401a2013
mov rcx, qword [rsi]
cmp byte [rcx + 0x61], 0
je 0x1401a1ff7
mov r8, rax
mov edx, 0xfffffff7
call fcn.1401a3430
jmp 0x1401a2013
movsxd rax, dword [rsi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov byte [rax + rcx*8 - 0x17], 0xf7
mov qword [rax + rcx*8 - 8], rdx
test r15d, r15d
jle 0x1401a2129
mov r14, qword [rsp + 0xc8]
mov esi, r12d
mov edi, dword [rsp + 0xd0]
xor r12d, r12d
mov ebp, r15d
nop dword [rax]
nop dword [rax + rax]
mov r10, qword [r13]
movzx eax, word [r14]
test byte [r10 + 0x40], 0x20
je 0x1401a20ad
test ax, ax
js 0x1401a20ad
movsx ecx, ax
mov r11d, r12d
movzx edx, r12w
test ecx, ecx
jle 0x1401a208a
mov r8, qword [r10 + 8]
add r8, 0x1c
mov r11d, ecx
mov r9d, ecx
movzx eax, byte [r8]
lea ecx, [rdx + 1]
and al, 0x20
lea r8, [r8 + 0x20]
cmovne cx, dx
movzx edx, cx
sub r9, 1
jne 0x1401a2070
mov rax, qword [r10 + 8]
movsxd rcx, r11d
shl rcx, 5
test byte [rcx + rax + 0x1c], 0x20
je 0x1401a20aa
movzx eax, word [r10 + 0x48]
sub ax, dx
add ax, r11w
jmp 0x1401a20ad
movzx eax, dx
movsxd rcx, dword [rbx + 0x90]
lea edx, [rdi + 1]
cwde
add edx, eax
cmp dword [rbx + 0x94], ecx
jg 0x1401a20dc
mov r8d, edx
mov dword [rsp + 0x20], r12d
mov edx, 0x4d
mov r9d, esi
mov rcx, rbx
call fcn.1401a6490
jmp 0x1401a2109
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x4d
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
inc esi
add r14, 4
sub rbp, 1
jne 0x1401a2040
mov rdi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xb8]
mov rax, qword [rsp + 0xb0]
cmp rax, qword [r13]
jne 0x1401a23aa
cmp dword [rsp + 0xd8], 1
jne 0x1401a23aa
mov esi, dword [rbx + 0x90]
lea eax, [rsi + 1]
add eax, r15d
test r15d, r15d
jle 0x1401a2355
mov rcx, qword [rsp + 0xc8]
xor r9d, r9d
mov r13d, r15d
mov r12d, r9d
mov r15, qword [rsp + 0xc0]
mov edi, eax
nop dword [rax]
mov r10, qword [r15]
movzx eax, word [rcx]
test byte [r10 + 0x40], 0x20
je 0x1401a21ed
test ax, ax
js 0x1401a21ed
movsx ecx, ax
mov r11d, r9d
movzx edx, r9w
test ecx, ecx
jle 0x1401a21ca
mov r8, qword [r10 + 8]
add r8, 0x1c
mov r11d, ecx
mov r9d, ecx
nop
movzx eax, byte [r8]
lea ecx, [rdx + 1]
and al, 0x20
lea r8, [r8 + 0x20]
cmovne cx, dx
movzx edx, cx
sub r9, 1
jne 0x1401a21b0
mov rax, qword [r10 + 8]
movsxd rcx, r11d
shl rcx, 5
test byte [rcx + rax + 0x1c], 0x20
je 0x1401a21ea
movzx eax, word [r10 + 0x48]
sub ax, dx
add ax, r11w
jmp 0x1401a21ed
movzx eax, dx
mov r8d, dword [rsp + 0xd0]
cwde
lea r14d, [r8 + 1]
add r14d, eax
mov rax, qword [rbp + 8]
mov rbp, qword [rbp + 0x18]
movzx r11d, word [r12 + rax]
test byte [rbp + 0x40], 0x20
je 0x1401a2279
test r11w, r11w
js 0x1401a2279
movsx eax, r11w
mov r10d, r9d
movzx edx, r9w
test eax, eax
jle 0x1401a2255
mov r8, qword [rbp + 8]
add r8, 0x1c
mov r10d, eax
mov r9d, eax
movzx eax, byte [r8]
lea ecx, [rdx + 1]
and al, 0x20
lea r8, [r8 + 0x20]
cmovne cx, dx
movzx edx, cx
sub r9, 1
jne 0x1401a2233
mov r8d, dword [rsp + 0xd0]
mov rax, qword [rbp + 8]
movsxd rcx, r10d
shl rcx, 5
test byte [rcx + rax + 0x1c], 0x20
je 0x1401a2274
movzx eax, word [rbp + 0x48]
sub ax, dx
add ax, r10w
jmp 0x1401a227d
movzx eax, dx
jmp 0x1401a227d
movzx eax, r11w
movsx edx, ax
mov rax, qword [rsp + 0xb0]
inc edx
add edx, r8d
cmp r11w, word [rax + 0x44]
cmove edx, r8d
cmp dword [rbx + 0x94], esi
jg 0x1401a22ba
mov dword [rsp + 0x20], edx
mov r9d, edi
mov edx, 0x34
mov r8d, r14d
mov rcx, rbx
call fcn.1401a6490
xor r9d, r9d
jmp 0x1401a22ea
lea eax, [rsi + 1]
mov dword [rbx + 0x90], eax
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x34
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], edi
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r9
movsxd rsi, dword [rbx + 0x90]
mov eax, esi
test esi, esi
jle 0x1401a2314
mov rax, qword [rbx + 0x88]
lea rcx, [rsi + rsi*2]
mov edx, reloc.WS2_32.dll_recv
mov word [rax + rcx*8 - 0x16], dx
mov esi, dword [rbx + 0x90]
mov eax, esi
mov rcx, qword [rsp + 0xc8]
add r12, 2
mov rbp, qword [rsp + 0xb8]
add rcx, 4
mov qword [rsp + 0xc8], rcx
sub r13, 1
jne 0x1401a2180
mov rdi, qword [rsp + 0xa0]
mov esi, eax
mov r15d, dword [rsp + 0x3c]
mov r13, qword [rsp + 0xc0]
mov r12d, dword [rsp + 0x34]
xor ebp, ebp
cmp dword [rbx + 0x94], esi
jg 0x1401a237b
mov r9d, r12d
mov dword [rsp + 0x20], ebp
xor r8d, r8d
lea edx, [rbp + 0xb]
mov rcx, rbx
call fcn.1401a6490
jmp 0x1401a23af
lea eax, [rsi + 1]
mov dword [rbx + 0x90], eax
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], recv
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rbp
jmp 0x1401a23af
mov r12d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rdi]
call fcn.1401d5bb0
movsxd rdx, dword [rbx + 0x90]
mov rsi, rax
mov ebp, dword [rsp + 0x38]
mov r14d, dword [rsp + 0xe0]
cmp dword [rbx + 0x94], edx
jg 0x1401a23f8
mov r9d, r15d
mov dword [rsp + 0x20], ebp
mov r8d, r14d
mov edx, 0x5b
mov rcx, rbx
call fcn.1401a6490
mov edx, eax
jmp 0x1401a2429
lea rcx, [rdx + rdx*2]
xor r8d, r8d
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x5b
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], r8
mov rcx, qword [rbx]
cmp byte [rcx + 0x61], 0
je 0x1401a2445
cmp r15d, 0xfffffff4
je 0x1401a24a3
mov r8, rsi
mov edx, r15d
call fcn.1401a3430
jmp 0x1401a24a3
test edx, edx
jns 0x1401a2451
mov edx, dword [rbx + 0x90]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rdx, [rax + rcx*8]
test r15d, r15d
jns 0x1401a2495
cmp byte [rdx + 1], 0
jne 0x1401a2495
cmp r15d, 0xfffffffd
jne 0x1401a247d
mov dword [rdx + 0x10], esi
mov byte [rdx + 1], r15b
jmp 0x1401a24a3
test rsi, rsi
je 0x1401a24a3
mov qword [rdx + 0x10], rsi
mov byte [rdx + 1], r15b
cmp r15d, 0xfffffff4
jne 0x1401a24a3
inc dword [rsi + 0x18]
jmp 0x1401a24a3
mov r9d, r15d
mov r8, rsi
mov rcx, rbx
call fcn.140209580
movsxd rdx, dword [rbx + 0x90]
mov r8d, dword [rsp + 0x30]
cmp dword [rbx + 0x94], edx
jg 0x1401a24d2
mov r9d, r12d
mov dword [rsp + 0x20], ebp
mov edx, 0x1e
mov rcx, rbx
call fcn.1401a6490
mov edx, eax
xor r9d, r9d
jmp 0x1401a2503
lea rcx, [rdx + rdx*2]
xor r9d, r9d
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x1e
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rbx]
cmp byte [rax + 0x61], 0
jne 0x1401a2524
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov byte [rax + rcx*8 + 1], 0xfd
mov dword [rax + rcx*8 + 0x10], r9d
test ebp, ebp
je 0x1401a253d
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1401a253d
movzx eax, al
mov dword [rdi + rax*4 + 0xcc], ebp
inc byte [rdi + 0x1f]
cmp r15d, 1
jne 0x1401a2560
test r14d, r14d
je 0x1401a256e
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1401a256e
movzx eax, al
mov dword [rdi + rax*4 + 0xcc], r14d
inc byte [rdi + 0x1f]
jmp 0x1401a256e
cmp r15d, dword [rdi + 0x28]
jle 0x1401a256e
mov dword [rdi + 0x28], r15d
mov dword [rdi + 0x2c], r14d
mov r14d, dword [rsp + 0x30]
xor r15d, r15d
movzx edx, byte [r13 + 0x2c]
test dl, dl
jne 0x1401a25be
mov rax, qword [rdi]
mov ecx, dword [rax + 0x30]
bt rcx, 0x13
jb 0x1401a25be
cmp qword [rdi + 0xa0], 0
jne 0x1401a25be
cmp byte [rdi + 0x20], dl
jne 0x1401a25be
xor r9d, r9d
mov byte [rsp + 0x28], 4
mov edx, 0x313
mov byte [rsp + 0x20], 0xff
mov rcx, rdi
lea r8d, [r9 + 2]
call fcn.1401d5290
jmp 0x1401a2643
mov r8d, dword [rsp + 0xd8]
movzx eax, dl
test r8d, r8d
jle 0x1401a25e9
test dl, dl
jne 0x1401a25e9
mov rax, qword [rdi + 0xa0]
test rax, rax
cmovne rdi, rax
mov byte [rdi + 0x21], 1
movzx eax, byte [r13 + 0x2c]
movsxd rcx, dword [rbx + 0x90]
movzx edx, al
cmp dword [rbx + 0x94], ecx
jg 0x1401a2615
mov r9d, r8d
mov dword [rsp + 0x20], r15d
mov r8d, edx
mov rcx, rbx
mov edx, 0x95
call fcn.1401a6490
jmp 0x1401a2643
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x95
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r15
mov rcx, qword [rbx + 0x18]
not r12d
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x1401a265f
mov r8d, r12d
mov rdx, rbx
call fcn.1401b4f10
jmp 0x1401a266f
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd rdx, r12d
mov dword [rcx + rdx*4], eax
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1401a2697
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, r14d
mov rcx, rbx
lea edx, [r9 + 0x74]
call fcn.1401a6490
jmp 0x1401a26c5
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], reloc.WS2_32.dll_WSACleanup
mov dword [rax + rcx*8 + 4], r14d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r15
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret