Function at 0x14018ed40
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4d8
movdqa xmmword [rsp + 0x4c0], xmm8
movdqa xmmword [rsp + 0x4b0], xmm7
movdqa xmmword [rsp + 0x4a0], xmm6
mov rbx, rcx
mov rsi, qword [rcx + 0xd8]
mov r14, qword [rcx + 0xe0]
mov rcx, rsi
call qword [r14 + 0xb8]
test rax, rax
je 0x14018edf8
mov rdi, rax
mov dword [rsp + 0x290], 0
mov rcx, qword [rax]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x290]
mov edx, 0xffff
mov r8d, 0x1006
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14018ee14
mov dword [rsp + 0x290], 0
mov rcx, qword [rdi]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x290]
mov edx, 0xffff
mov r8d, 0x1005
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14018ee14
movabs rcx, 0x8000000000000000
cmp qword [rbx + 8], rcx
jne 0x14018ee8d
mov rsi, rcx
jmp 0x14018f118
call sub.ws2_32.dll_WSAGetLastError
mov edi, eax
cmp qword [rbx + 0xb8], 0
je 0x14018ee48
mov r8, qword [rbx + 0xb0]
mov rcx, qword [0x141af8068]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov rsi, qword [rbx + 0xd8]
mov r14, qword [rbx + 0xe0]
mov rax, qword [r14]
test rax, rax
je 0x14018ee55
mov rcx, rsi
call rax
shl rdi, 0x20
cmp qword [r14 + 8], 0
je 0x14018ee7c
cmp qword [r14 + 0x10], 0x11
jb 0x14018ee6b
mov rsi, qword [rsi - 8]
mov rcx, qword [0x141af8068]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
or rdi, 2
mov rcx, rbx
call fcn.14018ec60
jmp 0x14018f363
mov rax, qword [rbx]
cmp rax, 0xffffffffffffffff
je 0x14018eea1
lock inc qword [rax + 8]
jle 0x14018f5e5
mov qword [rsp + 0x30], rax
mov r15, qword [rbx + 0x10]
mov rdi, qword [rbx + 0x18]
mov ebp, 1
test rdi, rdi
je 0x14018eee0
js 0x14018f5e5
movzx eax, byte [0x141af8129]
xor ecx, ecx
mov rdx, rdi
call fcn.140146820
test rax, rax
je 0x14018f5e5
mov rcx, rax
mov rsi, rdi
jmp 0x14018eee7
xor esi, esi
mov ecx, 1
mov qword [rsp + 0x60], rcx
mov rdx, r15
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov r12, qword [rbx + 0x28]
mov r15, qword [rbx + 0x30]
test r15, r15
je 0x14018ef31
js 0x14018f5e5
movzx eax, byte [0x141af8129]
xor ecx, ecx
mov rdx, r15
call fcn.140146820
test rax, rax
je 0x14018f5e5
mov rbp, rax
mov rax, r15
mov qword [rsp + 0x50], r15
jmp 0x14018ef38
xor eax, eax
mov qword [rsp + 0x50], rax
mov rcx, rbp
mov rdx, r12
mov r8, r15
call sub.msvcrt.dll_memcpy
movzx r9d, word [rbx + 0x88]
movzx r10d, word [rbx + 0x8a]
movabs rcx, 0x8000000000000000
cmp qword [rbx + 0x38], rcx
jne 0x14018ef7d
mov rdx, rcx
mov qword [rsp + 0x48], rcx
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x50]
jmp 0x14018f118
mov word [rsp + 0x2c], r10w
mov word [rsp + 0x2e], r9w
mov r13, qword [rbx + 0x40]
mov r8, qword [rbx + 0x48]
test r8, r8
mov qword [rsp + 0x68], r8
je 0x14018efcd
js 0x14018f5e5
movzx eax, byte [0x141af8129]
xor ecx, ecx
mov rdx, r8
call fcn.140146820
mov r8, qword [rsp + 0x68]
test rax, rax
je 0x14018f5e5
mov r12, rax
mov rax, r8
mov qword [rsp + 0x48], r8
jmp 0x14018efda
mov r12d, 1
xor eax, eax
mov qword [rsp + 0x48], rax
mov rcx, r12
mov rdx, r13
call sub.msvcrt.dll_memcpy
mov eax, dword [rbx + 0x80]
mov dword [rsp + 0x40], eax
movabs rcx, 0x8000000000000000
cmp qword [rbx + 0x50], rcx
jne 0x14018f009
mov rax, rcx
mov qword [rsp + 0x58], rcx
jmp 0x14018f071
mov r14, qword [rbx + 0x58]
mov r13, qword [rbx + 0x60]
test r13, r13
je 0x14018f043
js 0x14018f5e5
movzx eax, byte [0x141af8129]
xor ecx, ecx
mov rdx, r13
call fcn.140146820
test rax, rax
je 0x14018f5e5
mov rcx, rax
mov rax, r13
mov qword [rsp + 0x58], r13
jmp 0x14018f04f
mov ecx, 1
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x88], rcx
mov rdx, r14
mov qword [rsp + 0x70], r13
mov r8, r13
call sub.msvcrt.dll_memcpy
movabs rcx, 0x8000000000000000
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x50]
mov qword [rsp + 0x38], r12
cmp qword [rbx + 0x68], rcx
movzx r9d, word [rsp + 0x2e]
movzx r10d, word [rsp + 0x2c]
mov r11, qword [rsp + 0x68]
jne 0x14018f09c
mov r13, rcx
jmp 0x14018f111
mov r14, qword [rbx + 0x70]
mov r12, qword [rbx + 0x78]
test r12, r12
je 0x14018f0d1
js 0x14018f5e5
movzx eax, byte [0x141af8129]
xor ecx, ecx
mov rdx, r12
call fcn.140146820
test rax, rax
je 0x14018f5e5
mov rcx, rax
mov r13, r12
jmp 0x14018f0d9
mov ecx, 1
xor r13d, r13d
mov qword [rsp + 0x80], rcx
mov rdx, r14
mov r8, r12
call sub.msvcrt.dll_memcpy
movabs rcx, 0x8000000000000000
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x50]
movzx r9d, word [rsp + 0x2e]
movzx r10d, word [rsp + 0x2c]
mov r11, qword [rsp + 0x68]
movzx eax, byte [rbx + 0x84]
mov r14, qword [rsp + 0x30]
mov qword [rsp + 0x120], r14
mov qword [rsp + 0x128], rsi
mov qword [rsp + 0x130], rdx
mov qword [rsp + 0x138], rdi
mov qword [rsp + 0x140], r8
mov qword [rsp + 0x148], rbp
mov qword [rsp + 0x150], r15
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0x158], rdx
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x160], rdx
mov qword [rsp + 0x168], r11
mov rdx, qword [rsp + 0x58]
mov qword [rsp + 0x170], rdx
mov rdx, qword [rsp + 0x88]
mov qword [rsp + 0x178], rdx
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x180], rdx
mov qword [rsp + 0x188], r13
mov rdx, qword [rsp + 0x80]
mov qword [rsp + 0x190], rdx
mov qword [rsp + 0x198], r12
mov edx, dword [rsp + 0x40]
mov dword [rsp + 0x1a0], edx
mov byte [rsp + 0x1a4], al
mov word [rsp + 0x1a8], r9w
mov word [rsp + 0x1aa], r10w
cmp rsi, rcx
je 0x14018f34c
cmp r14, 0xffffffffffffffff
je 0x14018f34c
lea rdx, [rsp + 0x128]
mov rax, qword [r14]
nop word cs:[rax + rax]
test rax, rax
je 0x14018f34c
js 0x14018f5e5
lea rcx, [rax + 1]
lock cmpxchg qword [r14], rcx
jne 0x14018f210
mov qword [rsp + 0x78], r14
cmp qword [r14 + 0x90], 0
je 0x14018f393
cmp qword [r14 + 0x98], 0
je 0x14018f393
lea rsi, [r14 + 0x38]
mov cl, 1
xor eax, eax
lock cmpxchg byte [rsi], cl
jne 0x14018fc67
mov qword [rsp + 0x40], rsi
lea r12, [rsp + 0x290]
mov rcx, r12
call fcn.1401a5e30
lea rax, [r14 + 0x60]
mov qword [rsp + 0x38], rax
mov rcx, qword [r14 + 0x80]
mov rdx, qword [r14 + 0x88]
mov r8, r12
call fcn.1401a5040
mov rcx, rax
shr rcx, 0x39
mov rdx, qword [r14 + 0x60]
mov r13, qword [r14 + 0x68]
mov rsi, r13
mov qword [rsp + 0x70], rax
and rsi, rax
mov qword [rsp + 0x58], rcx
movd xmm0, ecx
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm6, xmm0, 0
lea rbp, [rdx - 0xa8]
xor r14d, r14d
pcmpeqd xmm7, xmm7
mov qword [rsp + 0x48], rdx
movdqu xmm8, xmmword [rdx + rsi]
movdqa xmm0, xmm8
pcmpeqb xmm0, xmm6
pmovmskb ecx, xmm0
nop dword [rax + rax]
test cx, cx
je 0x14018f325
tzcnt eax, ecx
lea edi, [rcx - 1]
and edi, ecx
add rax, rsi
and rax, r13
neg rax
imul r15, rax, 0xa8
lea rcx, [r15 + rbp]
mov rdx, r12
call fcn.140191d50
mov ecx, edi
test al, al
je 0x14018f2f0
jmp 0x14018f3b2
pcmpeqb xmm8, xmm7
pmovmskb eax, xmm8
test eax, eax
jne 0x14018fcf8
add rsi, r14
add rsi, 0x10
add r14, 0x10
and rsi, r13
mov rdx, qword [rsp + 0x48]
jmp 0x14018f2d5
mov rcx, rbx
call fcn.1401a61f0
lea rcx, [rsp + 0x120]
call fcn.14018ec60
xor edi, edi
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x4a0]
movaps xmm7, xmmword [rsp + 0x4b0]
movaps xmm8, xmmword [rsp + 0x4c0]
add rsp, 0x4d8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rbx
call fcn.1401a61f0
mov rax, qword [rsp + 0x78]
lock dec qword [rax]
jne 0x14018f354
lea rcx, [rsp + 0x78]
call fcn.14019ad20
jmp 0x14018f354
mov rdi, qword [rsp + 0x48]
lea r12, [rdi + r15]
lea rsi, [rsp + 0x418]
lea rdx, [rsp + 0x290]
mov r8d, 0x88
mov rcx, rsi
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x378]
mov r8d, 0x88
mov rdx, rsi
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x400], r12
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x408], rax
mov rax, qword [rdi + r15 - 0x20]
mov rsi, qword [rdi + r15 - 8]
cmp rsi, rax
jne 0x14018f42a
lea rcx, [rdi + r15]
add rcx, 0xffffffffffffffe0
call fcn.1401921a0
mov rax, qword [r12 - 0x20]
mov rsi, qword [r12 - 8]
mov rcx, qword [r12 - 0x10]
add rcx, rsi
xor edx, edx
cmp rcx, rax
cmovae rdx, rax
sub rcx, rdx
imul rcx, rcx, 0xe8
add rcx, qword [r12 - 0x18]
mov r8d, 0xe8
mov rdx, rbx
call sub.msvcrt.dll_memcpy
lea rax, [rsi + 1]
mov qword [r12 - 8], rax
mov r14, qword [rsp + 0x30]
cmp rax, qword [r14 + 0x98]
lea r13, [rsp + 0x128]
jbe 0x14018f828
mov rax, qword [r12 - 0x10]
lea rcx, [rax + 1]
mov rdx, qword [r12 - 0x20]
mov r8, qword [r12 - 0x18]
xor r9d, r9d
cmp rcx, rdx
cmovae r9, rdx
neg r9
lea rcx, [rax + r9]
inc rcx
mov qword [r12 - 0x10], rcx
mov qword [r12 - 8], rsi
imul rax, rax, 0xe8
mov rsi, qword [r8 + rax]
mov rdi, qword [r8 + rax + 8]
lea rdx, [r8 + rax]
add rdx, 0x10
lea rcx, [rsp + 0x1b0]
mov r8d, 0xd8
call sub.msvcrt.dll_memcpy
movabs rax, 0x8000000000000000
inc rax
cmp rdi, rax
je 0x14018f5e5
mov qword [rsp + 0x290], rsi
mov qword [rsp + 0x298], rdi
lea rcx, [rsp + 0x2a0]
lea rdx, [rsp + 0x1b0]
mov r8d, 0xd8
call sub.msvcrt.dll_memcpy
mov rbx, qword [r14 + 0x40]
mov rbp, qword [r14 + 0x58]
test rbp, rbp
je 0x14018f548
mov rax, qword [r14 + 0x50]
xor ecx, ecx
cmp rax, rbx
cmovae rcx, rbx
sub rax, rcx
mov rcx, rbx
sub rcx, rax
mov rsi, rbp
sub rsi, rcx
jbe 0x14018f54e
mov rcx, rbx
jmp 0x14018f554
xor eax, eax
xor ecx, ecx
jmp 0x14018f552
lea rcx, [rax + rbp]
xor esi, esi
mov r15, qword [r14 + 0x48]
mov rdx, rax
shl rdx, 7
lea r12, [rdx + rax*8]
mov rax, rcx
shl rax, 7
lea r13, [rax + rcx*8]
xor edi, edi
cmp r13, r12
je 0x14018f5a4
nop word cs:[rax + rax]
lea rcx, [r15 + r12]
lea rdx, [rsp + 0x128]
call fcn.140191d50
test al, al
jne 0x14018f5e7
inc rdi
add r12, 0x88
cmp r13, r12
jne 0x14018f580
mov rax, rsi
shl rax, 7
lea rsi, [rax + rsi*8]
mov r12, r15
lea r13, [rsp + 0x128]
test rsi, rsi
je 0x14018f5e5
nop
mov rcx, r12
mov rdx, r13
call fcn.140191d50
test al, al
jne 0x14018f5ef
add r12, 0x88
inc rdi
add rsi, 0xffffffffffffff78
test rsi, rsi
jne 0x14018f5c0
ud2
lea r13, [rsp + 0x128]
cmp rbp, rdi
jbe 0x14018f5e5
mov rsi, qword [rsp + 0x30]
mov r8, qword [rsi + 0x50]
lea r9, [r8 + rdi]
xor eax, eax
cmp r9, rbx
cmovae rax, rbx
sub r9, rax
mov rax, r9
shl rax, 7
lea rax, [rax + r9*8]
mov r12, qword [r15 + rax]
movups xmm0, xmmword [r15 + rax + 0x78]
movaps xmmword [rsp + 0x220], xmm0
movups xmm0, xmmword [r15 + rax + 0x68]
movaps xmmword [rsp + 0x210], xmm0
movups xmm0, xmmword [r15 + rax + 0x58]
movaps xmmword [rsp + 0x200], xmm0
movups xmm0, xmmword [r15 + rax + 0x48]
movaps xmmword [rsp + 0x1f0], xmm0
movups xmm0, xmmword [r15 + rax + 0x38]
movaps xmmword [rsp + 0x1e0], xmm0
movups xmm0, xmmword [r15 + rax + 0x28]
movaps xmmword [rsp + 0x1d0], xmm0
movups xmm0, xmmword [r15 + rax + 0x18]
movaps xmmword [rsp + 0x1c0], xmm0
movups xmm0, xmmword [r15 + rax + 8]
movaps xmmword [rsp + 0x1b0], xmm0
mov rax, rdi
not rax
add rax, rbp
cmp rax, rdi
jae 0x14018f6b8
lea rcx, [r9 + 1]
xor edx, edx
cmp rcx, rbx
cmovae rdx, rbx
neg rdx
lea r8, [r9 + rdx]
inc r8
mov qword [rsp + 0x20], rax
jmp 0x14018f6d8
lea rax, [r8 + 1]
xor ecx, ecx
cmp rax, rbx
cmovae rcx, rbx
neg rcx
lea r9, [r8 + rcx]
inc r9
mov qword [rsi + 0x50], r9
mov qword [rsp + 0x20], rdi
mov rcx, rbx
mov rdx, r15
call fcn.140191ed0
dec rbp
mov qword [rsi + 0x58], rbp
movaps xmm0, xmmword [rsp + 0x220]
movaps xmmword [rsp + 0x100], xmm0
movaps xmm0, xmmword [rsp + 0x210]
movaps xmmword [rsp + 0xf0], xmm0
movaps xmm0, xmmword [rsp + 0x200]
movaps xmmword [rsp + 0xe0], xmm0
movaps xmm0, xmmword [rsp + 0x1f0]
movaps xmmword [rsp + 0xd0], xmm0
movdqa xmm0, xmmword [rsp + 0x1b0]
movaps xmm1, xmmword [rsp + 0x1c0]
movaps xmm2, xmmword [rsp + 0x1d0]
movaps xmm3, xmmword [rsp + 0x1e0]
movaps xmmword [rsp + 0xc0], xmm3
movaps xmmword [rsp + 0xb0], xmm2
movaps xmmword [rsp + 0xa0], xmm1
movdqa xmmword [rsp + 0x90], xmm0
movabs rax, 0x8000000000000000
cmp r12, rax
je 0x14018f5e5
mov qword [rsp + 0x1b0], r12
movaps xmm0, xmmword [rsp + 0x90]
movaps xmm1, xmmword [rsp + 0xa0]
movaps xmm2, xmmword [rsp + 0xb0]
movaps xmm3, xmmword [rsp + 0xc0]
movups xmmword [rsp + 0x1b8], xmm0
movups xmmword [rsp + 0x1c8], xmm1
movups xmmword [rsp + 0x1d8], xmm2
movups xmmword [rsp + 0x1e8], xmm3
movaps xmm0, xmmword [rsp + 0xd0]
movups xmmword [rsp + 0x1f8], xmm0
movaps xmm0, xmmword [rsp + 0xe0]
movups xmmword [rsp + 0x208], xmm0
movaps xmm0, xmmword [rsp + 0xf0]
movups xmmword [rsp + 0x218], xmm0
movdqa xmm0, xmmword [rsp + 0x100]
movdqu xmmword [rsp + 0x228], xmm0
lea rcx, [rsp + 0x1b0]
call fcn.1401922f0
lea rcx, [rsp + 0x290]
call fcn.1401a61f0
mov r14, qword [rsp + 0x30]
movabs rax, 0x8000000000000000
cmp qword [rsp + 0x378], rax
je 0x14018f849
lea rcx, [rsp + 0x378]
call fcn.1401922f0
lea rcx, [rsp + 0x290]
mov rdx, r13
call fcn.1401a5e30
mov rax, qword [r14 + 0x40]
mov rsi, qword [r14 + 0x58]
cmp rsi, rax
jne 0x14018f877
lea rcx, [r14 + 0x40]
call fcn.140192240
mov rax, qword [r14 + 0x40]
mov rsi, qword [r14 + 0x58]
mov rcx, qword [r14 + 0x50]
add rcx, rsi
xor edi, edi
cmp rcx, rax
mov edx, 0
cmovae rdx, rax
sub rcx, rdx
mov rax, rcx
shl rax, 7
lea rcx, [rax + rcx*8]
add rcx, qword [r14 + 0x48]
lea rdx, [rsp + 0x290]
mov r8d, 0x88
call sub.msvcrt.dll_memcpy
inc rsi
mov qword [r14 + 0x58], rsi
cmp rsi, qword [r14 + 0x90]
xchg byte [r14 + 0x38], dil
jbe 0x14018fa97
cmp dil, 2
mov rsi, qword [rsp + 0x40]
jne 0x14018f8dc
mov rcx, rsi
call fcn.1401e62f0
cmp qword [r14 + 0x90], 0
je 0x14018f5e5
cmp qword [r14 + 0x98], 0
je 0x14018f5e5
mov cl, 1
xor eax, eax
lock cmpxchg byte [rsi], cl
jne 0x14018fe27
mov rcx, qword [r14 + 0x58]
test rcx, rcx
je 0x14018f5e5
mov rdx, qword [r14 + 0x50]
lea r8, [rdx + 1]
mov r9, qword [r14 + 0x40]
mov rax, qword [r14 + 0x48]
xor r10d, r10d
cmp r8, r9
cmovae r10, r9
neg r10
lea r8, [rdx + r10]
inc r8
mov qword [r14 + 0x50], r8
dec rcx
mov qword [r14 + 0x58], rcx
mov rcx, rdx
shl rcx, 7
lea rdx, [rcx + rdx*8]
mov rcx, qword [rax + rdx]
movabs r8, 0x8000000000000000
cmp rcx, r8
je 0x14018f5e5
add rax, rdx
mov qword [rsp + 0x90], rcx
movups xmm0, xmmword [rax + 8]
movups xmm1, xmmword [rax + 0x18]
movups xmm2, xmmword [rax + 0x28]
movups xmm3, xmmword [rax + 0x38]
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm1
movups xmmword [rsp + 0xb8], xmm2
movups xmmword [rsp + 0xc8], xmm3
movups xmm0, xmmword [rax + 0x48]
movups xmmword [rsp + 0xd8], xmm0
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rsp + 0xe8], xmm0
movups xmm0, xmmword [rax + 0x68]
movups xmmword [rsp + 0xf8], xmm0
movups xmm0, xmmword [rax + 0x78]
movups xmmword [rsp + 0x108], xmm0
mov rcx, qword [r14 + 0x80]
mov rdx, qword [r14 + 0x88]
lea rbx, [rsp + 0x90]
mov r8, rbx
call fcn.1401a5040
mov rdi, qword [r14 + 0x60]
mov r15, qword [r14 + 0x68]
mov r12, r15
and r12, rax
shr rax, 0x39
movd xmm0, eax
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm6, xmm0, 0
lea rsi, [rdi - 0xa8]
xor r14d, r14d
pcmpeqd xmm7, xmm7
movdqu xmm8, xmmword [rdi + r12]
movdqa xmm0, xmm8
pcmpeqb xmm0, xmm6
pmovmskb ecx, xmm0
nop word cs:[rax + rax]
test cx, cx
je 0x14018fa75
tzcnt eax, ecx
lea r13d, [rcx - 1]
and r13d, ecx
add rax, r12
and rax, r15
neg rax
imul rbp, rax, 0xa8
lea rcx, [rsi + rbp]
mov rdx, rbx
call fcn.140191d50
mov ecx, r13d
test al, al
je 0x14018fa40
jmp 0x14018fab0
pcmpeqb xmm8, xmm7
pmovmskb eax, xmm8
test eax, eax
jne 0x14018fe5e
add r12, r14
add r12, 0x10
add r14, 0x10
and r12, r15
jmp 0x14018fa1f
cmp dil, 2
mov rcx, qword [rsp + 0x40]
jne 0x14018f39b
call fcn.1401e62f0
jmp 0x14018f39b
lea r14, [rdi + rbp]
lea rbx, [rsp + 0x380]
lea rdx, [rsp + 0x90]
mov r8d, 0x88
mov rcx, rbx
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x408], r14
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x410], rax
mov qword [rsp + 0x378], 0
mov rdi, qword [rdi + rbp - 8]
test rdi, rdi
je 0x14018f5e5
mov rsi, qword [rsp + 0x380]
mov rax, qword [r14 - 0x10]
lea rcx, [rax + 1]
mov rdx, qword [r14 - 0x20]
mov r8, qword [r14 - 0x18]
xor r9d, r9d
cmp rcx, rdx
cmovae r9, rdx
neg r9
lea rcx, [rax + r9]
inc rcx
mov qword [r14 - 0x10], rcx
dec rdi
mov qword [r14 - 8], rdi
imul rax, rax, 0xe8
mov r14, qword [r8 + rax]
mov r15, qword [r8 + rax + 8]
lea rdx, [r8 + rax]
add rdx, 0x10
lea rcx, [rsp + 0x1b0]
mov r8d, 0xd8
call sub.msvcrt.dll_memcpy
movabs rax, 0x8000000000000000
inc rax
cmp r15, rax
je 0x14018f5e5
mov qword [rsp + 0x290], r14
mov qword [rsp + 0x298], r15
lea rcx, [rsp + 0x2a0]
lea rdx, [rsp + 0x1b0]
mov r8d, 0xd8
call sub.msvcrt.dll_memcpy
test rdi, rdi
je 0x14018fbea
lea rcx, [rsp + 0x290]
call fcn.1401a61f0
movabs rax, 0x8000000000000000
cmp rsi, rax
mov rsi, qword [rsp + 0x40]
jne 0x14018fc49
xor eax, eax
xchg byte [rsi], al
cmp al, 2
je 0x14018fcd4
cmp qword [rsp + 0x378], 0
jne 0x14018fceb
jmp 0x14018f39b
lea r15, [rsp + 0x1b0]
mov rcx, r15
mov rdx, rbx
call fcn.1401abbc0
mov rsi, qword [rsp + 0x238]
mov rdi, qword [rsp + 0x240]
mov r12, qword [rsp + 0x248]
mov r14, qword [rsp + 0x250]
mov rcx, r15
call fcn.1401922f0
test r14, r14
je 0x14018fc5f
xor eax, eax
cmp r12, rsi
cmovae rax, rsi
sub r12, rax
mov rax, rsi
sub rax, r12
mov r15, r14
sub r15, rax
jbe 0x14018fc7a
mov r14, rsi
jmp 0x14018fc80
mov rcx, rbx
call fcn.1401922f0
xor eax, eax
xchg byte [rsi], al
cmp al, 2
jne 0x14018fbd6
jmp 0x14018fcd4
xor r12d, r12d
xor r14d, r14d
jmp 0x14018fc7d
mov rcx, rsi
mov rdi, rdx
call fcn.14014a190
mov rdx, rdi
jmp 0x14018f25d
add r14, r12
xor r15d, r15d
imul rcx, r12, 0xe8
add rcx, rdi
sub r14, r12
mov rdx, r14
call fcn.1401923b0
mov rcx, rdi
mov rdx, r15
call fcn.1401923b0
test rsi, rsi
je 0x14018fcb6
mov rcx, qword [0x141af8068]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
lea rcx, [rsp + 0x290]
call fcn.1401a61f0
mov rsi, qword [rsp + 0x40]
xor eax, eax
xchg byte [rsi], al
cmp al, 2
jne 0x14018fbd6
mov rcx, rsi
call fcn.1401e62f0
cmp qword [rsp + 0x378], 0
je 0x14018f39b
mov rcx, rbx
call fcn.1401922f0
jmp 0x14018f39b
mov r14, qword [rsp + 0x30]
cmp qword [r14 + 0x70], 0
je 0x14018fe41
lea rcx, [rsp + 0x418]
lea rdx, [rsp + 0x290]
mov r8d, 0x88
call sub.msvcrt.dll_memcpy
movzx eax, byte [0x141af8129]
mov edx, 0xe8
xor ecx, ecx
call fcn.140146820
test rax, rax
lea r13, [rsp + 0x128]
je 0x14018f5e5
mov r12, rax
mov r8d, 0xe8
mov rcx, rax
mov rdx, rbx
call sub.msvcrt.dll_memcpy
mov rdi, qword [r14 + 0x60]
mov rax, qword [r14 + 0x68]
mov r8, qword [rsp + 0x70]
and r8, rax
movdqu xmm0, xmmword [rdi + r8]
pmovmskb ecx, xmm0
test ecx, ecx
jne 0x14018fd96
mov edx, 0x10
add r8, rdx
and r8, rax
movdqu xmm0, xmmword [rdi + r8]
pmovmskb ecx, xmm0
add rdx, 0x10
test ecx, ecx
je 0x14018fd7e
tzcnt ecx, ecx
add rcx, r8
and rcx, rax
movzx edx, byte [rdi + rcx]
test dl, dl
js 0x14018fdb8
movdqa xmm0, xmmword [rdi]
pmovmskb ecx, xmm0
tzcnt ecx, ecx
movzx edx, byte [rdi + rcx]
lea r8, [rcx - 0x10]
and r8, rax
mov rax, qword [rsp + 0x58]
mov byte [rdi + rcx], al
mov byte [rdi + r8 + 0x10], al
neg rcx
imul rsi, rcx, 0xa8
and dl, 1
movzx eax, dl
sub qword [r14 + 0x70], rax
lea rcx, [rdi + rsi]
add rcx, 0xffffffffffffff58
lea rdx, [rsp + 0x418]
mov r8d, 0x88
call sub.msvcrt.dll_memcpy
mov qword [rdi + rsi - 0x20], 1
mov qword [rdi + rsi - 0x18], r12
mov qword [rdi + rsi - 0x10], 0
mov qword [rdi + rsi - 8], 1
inc qword [r14 + 0x78]
jmp 0x14018f849
mov rcx, rsi
call fcn.14014a190
mov rcx, qword [r14 + 0x58]
test rcx, rcx
jne 0x14018f913
jmp 0x14018f5e5
mov rdx, qword [r14 + 0x80]
mov r8, qword [r14 + 0x88]
mov rcx, qword [rsp + 0x38]
call fcn.140192490
jmp 0x14018fd08
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x70], 0
jne 0x14018f5e5
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax + 0x80]
mov r8, qword [rax + 0x88]
mov rcx, qword [rsp + 0x38]
call fcn.140192490
ud2