Function at 0x1400ad540
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
movdqa xmmword [rsp + 0x480], xmm8
movdqa xmmword [rsp + 0x470], xmm7
movdqa xmmword [rsp + 0x460], 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 0x1400ad5f8
mov rdi, rax
mov dword [rsp + 0x1d8], 0
mov rcx, qword [rax]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x1d8]
mov edx, 0xffff
mov r8d, 0x1006
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400ad610
mov dword [rsp + 0x1d8], 0
mov rcx, qword [rdi]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x1d8]
mov edx, 0xffff
mov r8d, 0x1005
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400ad610
movabs rcx, 0x8000000000000000
cmp qword [rbx + 8], rcx
jne 0x1400ad682
mov rsi, rcx
jmp 0x1400ad8b0
call sub.ws2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
cmp qword [rbx + 0xb8], 0
je 0x1400ad648
mov r8, qword [rbx + 0xb0]
mov rcx, qword [0x14024a138]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov rsi, qword [rbx + 0xd8]
mov r14, qword [rbx + 0xe0]
or rdi, 2
mov rcx, rsi
call qword [r14]
cmp qword [r14 + 8], 0
je 0x1400ad675
cmp qword [r14 + 0x10], 0x11
jb 0x1400ad664
mov rsi, qword [rsi - 8]
mov rcx, qword [0x14024a138]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
mov rcx, rbx
call fcn.1400ad460
jmp 0x1400ae6da
mov rdi, qword [rbx]
cmp rdi, 0xffffffffffffffff
je 0x1400ad696
lock inc qword [rdi + 8]
jle 0x1400ade15
mov r15, qword [rbx + 0x10]
mov rsi, qword [rbx + 0x18]
mov ebp, 1
mov r14d, 1
test rsi, rsi
je 0x1400ad6d1
js 0x1400ade15
movzx eax, byte [0x14024a149]
xor ecx, ecx
mov rdx, rsi
call fcn.140080d30
mov r14, rax
test rax, rax
je 0x1400ade15
mov rcx, r14
mov rdx, r15
mov r8, rsi
call sub.msvcrt.dll_memcpy
mov r12, qword [rbx + 0x28]
mov r15, qword [rbx + 0x30]
test r15, r15
je 0x1400ad70f
js 0x1400ade15
movzx eax, byte [0x14024a149]
xor ecx, ecx
mov rdx, r15
call fcn.140080d30
mov rbp, rax
test rax, rax
je 0x1400ade15
mov rcx, rbp
mov rdx, r12
mov r8, r15
call sub.msvcrt.dll_memcpy
movzx r8d, word [rbx + 0x88]
movzx r9d, word [rbx + 0x8a]
movabs rcx, 0x8000000000000000
cmp qword [rbx + 0x38], rcx
mov qword [rsp + 0x40], rbp
jne 0x1400ad74a
mov r12, rcx
jmp 0x1400ad8b0
mov r13, qword [rbx + 0x40]
mov r12, qword [rbx + 0x48]
test r12, r12
mov word [rsp + 0x30], r8w
mov word [rsp + 0x48], r9w
je 0x1400ad787
js 0x1400ade15
movzx eax, byte [0x14024a149]
xor ecx, ecx
mov rdx, r12
call fcn.140080d30
mov rcx, rax
test rax, rax
jne 0x1400ad78c
jmp 0x1400ade15
mov ecx, 1
mov qword [rsp + 0x58], rcx
mov rdx, r13
mov r8, r12
call sub.msvcrt.dll_memcpy
mov r10d, dword [rbx + 0x80]
movabs rcx, 0x8000000000000000
cmp qword [rbx + 0x50], rcx
mov dword [rsp + 0x50], r10d
jne 0x1400ad7d5
mov rbp, rcx
cmp qword [rbx + 0x68], rcx
movzx r8d, word [rsp + 0x30]
movzx r9d, word [rsp + 0x48]
jne 0x1400ad83c
mov r13, rcx
jmp 0x1400ad8a4
mov r13, qword [rbx + 0x58]
mov rbp, qword [rbx + 0x60]
test rbp, rbp
je 0x1400ad806
js 0x1400ade15
movzx eax, byte [0x14024a149]
xor ecx, ecx
mov rdx, rbp
call fcn.140080d30
mov rcx, rax
test rax, rax
jne 0x1400ad80b
jmp 0x1400ade15
mov ecx, 1
mov qword [rsp + 0x60], rcx
mov rdx, r13
mov r8, rbp
call sub.msvcrt.dll_memcpy
movabs rcx, 0x8000000000000000
mov r10d, dword [rsp + 0x50]
cmp qword [rbx + 0x68], rcx
movzx r8d, word [rsp + 0x30]
movzx r9d, word [rsp + 0x48]
je 0x1400ad7cd
mov rdx, qword [rbx + 0x70]
mov r13, qword [rbx + 0x78]
test r13, r13
je 0x1400ad877
mov qword [rsp + 0x38], rdx
js 0x1400ade15
movzx eax, byte [0x14024a149]
xor ecx, ecx
mov rdx, r13
call fcn.140080d30
mov rcx, rax
test rax, rax
mov rdx, qword [rsp + 0x38]
jne 0x1400ad87c
jmp 0x1400ade15
mov ecx, 1
mov qword [rsp + 0x38], rcx
mov r8, r13
call sub.msvcrt.dll_memcpy
movabs rcx, 0x8000000000000000
movzx r8d, word [rsp + 0x30]
movzx r9d, word [rsp + 0x48]
mov r10d, dword [rsp + 0x50]
mov r11, qword [rsp + 0x60]
movzx eax, byte [rbx + 0x84]
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], r15
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x98], rdx
mov qword [rsp + 0xa0], r15
mov qword [rsp + 0xa8], r12
mov rdx, qword [rsp + 0x58]
mov qword [rsp + 0xb0], rdx
mov qword [rsp + 0xb8], r12
mov qword [rsp + 0xc0], rbp
mov qword [rsp + 0xc8], r11
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0xd8], r13
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0xe0], rdx
mov qword [rsp + 0xe8], r13
mov dword [rsp + 0xf0], r10d
mov byte [rsp + 0xf4], al
mov word [rsp + 0xf8], r8w
mov word [rsp + 0xfa], r9w
cmp rsi, rcx
je 0x1400adac3
cmp rdi, 0xffffffffffffffff
je 0x1400adac3
lea rsi, [rsp + 0x78]
mov rax, qword [rdi]
nop word cs:[rax + rax]
test rax, rax
je 0x1400adac3
js 0x1400ade15
lea rcx, [rax + 1]
lock cmpxchg qword [rdi], rcx
jne 0x1400ad980
mov qword [rsp + 0x68], rdi
cmp qword [rdi + 0x98], 0
je 0x1400adb5e
cmp qword [rdi + 0xa0], 0
je 0x1400adb5e
lea rcx, [rdi + 0x38]
mov qword [rsp + 0x38], rcx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
movzx eax, byte [rdi + 0x40]
test al, al
jne 0x1400ade15
lea r12, [rsp + 0x1d8]
mov rcx, r12
mov rdx, rsi
call fcn.1400c0540
lea rax, [rdi + 0x68]
mov qword [rsp + 0x30], rax
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov r8, r12
call fcn.1400b5370
mov r15, rax
mov rcx, qword [rdi + 0x68]
mov rsi, qword [rdi + 0x70]
shr rax, 0x39
mov qword [rsp + 0x48], rax
movd xmm0, eax
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm6, xmm0, 0
lea r14, [rcx - 0xa8]
xor eax, eax
mov qword [rsp + 0x58], rax
pcmpeqd xmm7, xmm7
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x40], rcx
and r15, rsi
movdqu xmm8, xmmword [rcx + r15]
movdqa xmm0, xmm8
pcmpeqb xmm0, xmm6
pmovmskb ecx, xmm0
nop
test cx, cx
je 0x1400ada95
tzcnt eax, ecx
lea ebp, [rcx - 1]
and ebp, ecx
add rax, r15
and rax, rsi
neg rax
imul r13, rax, 0xa8
lea rcx, [r14 + r13]
mov rdx, r12
call fcn.1400abe90
mov ecx, ebp
test al, al
je 0x1400ada60
jmp 0x1400adbfa
pcmpeqb xmm8, xmm7
pmovmskb eax, xmm8
test eax, eax
jne 0x1400ae70a
mov rax, qword [rsp + 0x58]
add r15, rax
add r15, 0x10
add rax, 0x10
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x40]
jmp 0x1400ada49
cmp qword [rbx + 0xb8], 0
je 0x1400adae2
mov r8, qword [rbx + 0xb0]
mov rcx, qword [0x14024a138]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov rsi, qword [rbx + 0xd8]
mov rdi, qword [rbx + 0xe0]
mov rcx, rsi
call qword [rdi]
cmp qword [rdi + 8], 0
je 0x1400adb18
cmp qword [rdi + 0x10], 0x11
jb 0x1400adb07
mov rsi, qword [rsi - 8]
mov rcx, qword [0x14024a138]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
movabs rax, 0x8000000000000000
cmp qword [rbx + 8], rax
je 0x1400ae6ce
lea rsi, [rbx + 8]
mov rax, qword [rbx]
cmp rax, 0xffffffffffffffff
je 0x1400adb51
lock dec qword [rax + 8]
jne 0x1400adb51
mov r8, qword [rbx]
mov rcx, qword [0x14024a138]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov rcx, rsi
call fcn.1400b5b80
jmp 0x1400ae6ce
cmp qword [rbx + 0xb8], 0
je 0x1400adb7d
mov r8, qword [rbx + 0xb0]
mov rcx, qword [0x14024a138]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov rsi, qword [rbx + 0xd8]
mov r14, qword [rbx + 0xe0]
mov rcx, rsi
call qword [r14]
cmp qword [r14 + 8], 0
je 0x1400adbb4
cmp qword [r14 + 0x10], 0x11
jb 0x1400adba3
mov rsi, qword [rsi - 8]
mov rcx, qword [0x14024a138]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
movabs rax, 0x8000000000000000
cmp qword [rbx + 8], rax
je 0x1400ae6be
lea rsi, [rbx + 8]
mov rax, qword [rbx]
cmp rax, 0xffffffffffffffff
je 0x1400adbed
lock dec qword [rax + 8]
jne 0x1400adbed
mov r8, qword [rbx]
mov rcx, qword [0x14024a138]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov rcx, rsi
call fcn.1400b5b80
jmp 0x1400ae6be
mov r14, qword [rsp + 0x40]
lea r12, [r14 + r13]
lea r15, [rsp + 0x340]
lea rdx, [rsp + 0x1d8]
mov r8d, 0x88
mov rcx, r15
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x3c8]
mov r8d, 0x88
mov rdx, r15
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x450], r12
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x458], rax
mov rax, qword [r14 + r13 - 0x20]
mov rsi, qword [r14 + r13 - 8]
cmp rsi, rax
jne 0x1400adc72
lea rcx, [r14 + r13]
add rcx, 0xffffffffffffffe0
call fcn.1400b5a00
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
cmp rax, qword [rdi + 0xa0]
jbe 0x1400ae0c4
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 rbx, qword [r8 + rax + 8]
lea rdx, [r8 + rax]
add rdx, 0x10
lea rcx, [rsp + 0x100]
mov r8d, 0xd8
call sub.msvcrt.dll_memcpy
movabs rax, 0x8000000000000000
inc rax
cmp rbx, rax
je 0x1400ade15
mov qword [rsp + 0x1d8], rsi
mov qword [rsp + 0x1e0], rbx
lea rcx, [rsp + 0x1e8]
lea rdx, [rsp + 0x100]
mov r8d, 0xd8
call sub.msvcrt.dll_memcpy
mov r15, qword [rdi + 0x48]
mov rbx, qword [rdi + 0x60]
test rbx, rbx
je 0x1400add83
mov rax, qword [rdi + 0x58]
xor ecx, ecx
cmp rax, r15
cmovae rcx, r15
sub rax, rcx
mov rcx, r15
sub rcx, rax
mov rsi, rbx
sub rsi, rcx
jbe 0x1400add89
mov rcx, r15
jmp 0x1400add8f
xor eax, eax
xor ecx, ecx
jmp 0x1400add8d
lea rcx, [rax + rbx]
xor esi, esi
mov r12, qword [rdi + 0x50]
mov rdx, rax
shl rdx, 7
lea r14, [rdx + rax*8]
mov rax, rcx
shl rax, 7
lea r13, [rax + rcx*8]
xor ebp, ebp
cmp r13, r14
je 0x1400addd1
lea rcx, [r12 + r14]
lea rdx, [rsp + 0x78]
call fcn.1400abe90
test al, al
jne 0x1400ade17
inc rbp
add r14, 0x88
cmp r13, r14
jne 0x1400addb0
mov rax, rsi
shl rax, 7
lea rsi, [rax + rsi*8]
mov r13, r12
lea r14, [rsp + 0x78]
test rsi, rsi
je 0x1400ade15
nop dword [rax]
mov rcx, r13
mov rdx, r14
call fcn.1400abe90
test al, al
jne 0x1400ade17
add r13, 0x88
inc rbp
add rsi, 0xffffffffffffff78
test rsi, rsi
jne 0x1400addf0
ud2
cmp rbx, rbp
jbe 0x1400ade15
mov r8, qword [rdi + 0x58]
lea r9, [r8 + rbp]
xor eax, eax
cmp r9, r15
cmovae rax, r15
sub r9, rax
mov rax, r9
shl rax, 7
lea rax, [rax + r9*8]
mov r13, qword [r12 + rax]
movups xmm0, xmmword [r12 + rax + 0x78]
movaps xmmword [rsp + 0x170], xmm0
movups xmm0, xmmword [r12 + rax + 0x68]
movaps xmmword [rsp + 0x160], xmm0
movups xmm0, xmmword [r12 + rax + 0x58]
movaps xmmword [rsp + 0x150], xmm0
movups xmm0, xmmword [r12 + rax + 0x48]
movaps xmmword [rsp + 0x140], xmm0
movups xmm0, xmmword [r12 + rax + 0x38]
movaps xmmword [rsp + 0x130], xmm0
movups xmm0, xmmword [r12 + rax + 0x28]
movaps xmmword [rsp + 0x120], xmm0
movups xmm0, xmmword [r12 + rax + 0x18]
movaps xmmword [rsp + 0x110], xmm0
movups xmm0, xmmword [r12 + rax + 8]
movaps xmmword [rsp + 0x100], xmm0
mov rax, rbp
not rax
add rax, rbx
cmp rax, rbp
jae 0x1400adedb
lea rcx, [r9 + 1]
xor edx, edx
cmp rcx, r15
cmovae rdx, r15
neg rdx
lea r8, [r9 + rdx]
inc r8
mov qword [rsp + 0x20], rax
jmp 0x1400adefb
lea rax, [r8 + 1]
xor ecx, ecx
cmp rax, r15
cmovae rcx, r15
neg rcx
lea r9, [r8 + rcx]
inc r9
mov qword [rdi + 0x58], r9
mov qword [rsp + 0x20], rbp
mov rcx, r15
mov rdx, r12
call fcn.1400b56c0
dec rbx
mov qword [rdi + 0x60], rbx
movaps xmm0, xmmword [rsp + 0x170]
movaps xmmword [rsp + 0x330], xmm0
movaps xmm0, xmmword [rsp + 0x160]
movaps xmmword [rsp + 0x320], xmm0
movaps xmm0, xmmword [rsp + 0x150]
movaps xmmword [rsp + 0x310], xmm0
movaps xmm0, xmmword [rsp + 0x140]
movaps xmmword [rsp + 0x300], xmm0
movdqa xmm0, xmmword [rsp + 0x100]
movdqa xmm1, xmmword [rsp + 0x110]
movaps xmm2, xmmword [rsp + 0x120]
movaps xmm3, xmmword [rsp + 0x130]
movaps xmmword [rsp + 0x2f0], xmm3
movaps xmmword [rsp + 0x2e0], xmm2
movdqa xmmword [rsp + 0x2d0], xmm1
movdqa xmmword [rsp + 0x2c0], xmm0
movabs rax, 0x8000000000000000
cmp r13, rax
je 0x1400ade15
mov qword [rsp + 0x100], r13
movaps xmm0, xmmword [rsp + 0x2c0]
movdqa xmm1, xmmword [rsp + 0x2d0]
movaps xmm2, xmmword [rsp + 0x2e0]
movaps xmm3, xmmword [rsp + 0x2f0]
movups xmmword [rsp + 0x108], xmm0
movdqu xmmword [rsp + 0x118], xmm1
movups xmmword [rsp + 0x128], xmm2
movups xmmword [rsp + 0x138], xmm3
movaps xmm0, xmmword [rsp + 0x300]
movups xmmword [rsp + 0x148], xmm0
movaps xmm0, xmmword [rsp + 0x310]
movups xmmword [rsp + 0x158], xmm0
movaps xmm0, xmmword [rsp + 0x320]
movups xmmword [rsp + 0x168], xmm0
movdqa xmm0, xmmword [rsp + 0x330]
movdqu xmmword [rsp + 0x178], xmm0
lea rcx, [rsp + 0x100]
call fcn.1400b5b80
cmp qword [rsp + 0x290], 0
je 0x1400ae05e
mov r8, qword [rsp + 0x288]
mov rcx, qword [0x14024a138]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov r15, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x2b8]
mov rcx, r15
call qword [rsi]
cmp qword [rsi + 8], 0
je 0x1400ae096
cmp qword [rsi + 0x10], 0x11
jb 0x1400ae085
mov r15, qword [r15 - 8]
mov rcx, qword [0x14024a138]
xor edx, edx
mov r8, r15
call sub.KERNEL32.dll_HeapFree
movabs rax, 0x8000000000000000
cmp qword [rsp + 0x1e0], rax
je 0x1400ae0c4
lea rcx, [rsp + 0x1d8]
call fcn.1400c6270
lea rcx, [rsp + 0x1e0]
call fcn.1400b5b80
movabs rax, 0x8000000000000000
cmp qword [rsp + 0x3c8], rax
je 0x1400ae0e5
lea rcx, [rsp + 0x3c8]
call fcn.1400b5b80
mov r14, qword [rsp + 0x38]
lea rcx, [rsp + 0x1d8]
lea rdx, [rsp + 0x78]
call fcn.1400c0540
mov rax, qword [rdi + 0x48]
mov rsi, qword [rdi + 0x60]
cmp rsi, rax
jne 0x1400ae11a
lea rcx, [rdi + 0x48]
call fcn.1400b5950
mov rax, qword [rdi + 0x48]
mov rsi, qword [rdi + 0x60]
mov rcx, qword [rdi + 0x58]
add rcx, rsi
xor edx, edx
cmp rcx, rax
cmovae rdx, rax
sub rcx, rdx
mov rax, rcx
shl rax, 7
lea rcx, [rax + rcx*8]
add rcx, qword [rdi + 0x50]
lea rdx, [rsp + 0x1d8]
mov r8d, 0x88
call sub.msvcrt.dll_memcpy
inc rsi
mov qword [rdi + 0x60], rsi
mov rbx, qword [rdi + 0x98]
mov rcx, r14
call fcn.140107120
cmp rsi, rbx
jbe 0x1400ae6be
cmp qword [rdi + 0x98], 0
je 0x1400ade15
cmp qword [rdi + 0xa0], 0
je 0x1400ade15
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
movzx eax, byte [rdi + 0x40]
test al, al
jne 0x1400ade15
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x1400ade15
mov rdx, qword [rdi + 0x58]
lea r8, [rdx + 1]
mov r9, qword [rdi + 0x48]
mov rax, qword [rdi + 0x50]
xor r10d, r10d
cmp r8, r9
cmovae r10, r9
neg r10
lea r8, [rdx + r10]
inc r8
mov qword [rdi + 0x58], r8
dec rcx
mov qword [rdi + 0x60], rcx
mov rcx, rdx
shl rcx, 7
lea rdx, [rcx + rdx*8]
mov rcx, qword [rax + rdx]
movabs r8, 0x8000000000000000
cmp rcx, r8
je 0x1400ade15
add rax, rdx
mov qword [rsp + 0x340], rcx
movups xmm0, xmmword [rax + 8]
movdqu xmm1, xmmword [rax + 0x18]
movups xmm2, xmmword [rax + 0x28]
movups xmm3, xmmword [rax + 0x38]
movups xmmword [rsp + 0x348], xmm0
movdqu xmmword [rsp + 0x358], xmm1
movups xmmword [rsp + 0x368], xmm2
movups xmmword [rsp + 0x378], xmm3
movups xmm0, xmmword [rax + 0x48]
movups xmmword [rsp + 0x388], xmm0
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rsp + 0x398], xmm0
movups xmm0, xmmword [rax + 0x68]
movups xmmword [rsp + 0x3a8], xmm0
movups xmm0, xmmword [rax + 0x78]
movups xmmword [rsp + 0x3b8], xmm0
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
lea rbx, [rsp + 0x340]
mov r8, rbx
call fcn.1400b5370
mov r14, rax
mov r15, qword [rdi + 0x68]
mov rsi, qword [rdi + 0x70]
shr rax, 0x39
movd xmm0, eax
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm6, xmm0, 0
lea r12, [r15 - 0xa8]
xor eax, eax
mov qword [rsp + 0x40], rax
pcmpeqd xmm7, xmm7
and r14, rsi
movdqu xmm8, xmmword [r15 + r14]
movdqa xmm0, xmm8
pcmpeqb xmm0, xmm6
pmovmskb ecx, xmm0
test cx, cx
je 0x1400ae305
tzcnt eax, ecx
lea r13d, [rcx - 1]
and r13d, ecx
add rax, r14
and rax, rsi
neg rax
imul rbp, rax, 0xa8
lea rcx, [r12 + rbp]
mov rdx, rbx
call fcn.1400abe90
mov ecx, r13d
test al, al
je 0x1400ae2d0
jmp 0x1400ae32e
pcmpeqb xmm8, xmm7
pmovmskb eax, xmm8
test eax, eax
jne 0x1400ae854
mov rax, qword [rsp + 0x40]
add r14, rax
add r14, 0x10
add rax, 0x10
mov qword [rsp + 0x40], rax
jmp 0x1400ae2ba
lea rbx, [r15 + rbp]
lea rcx, [rsp + 0x3c8]
lea rdx, [rsp + 0x340]
mov r8d, 0x88
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x450], rbx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x458], rax
mov rsi, qword [r15 + rbp - 8]
test rsi, rsi
je 0x1400ade15
mov rax, qword [rbx - 0x10]
lea rcx, [rax + 1]
mov rdx, qword [rbx - 0x20]
mov r8, qword [rbx - 0x18]
xor r9d, r9d
cmp rcx, rdx
cmovae r9, rdx
neg r9
lea rcx, [rax + r9]
inc rcx
mov qword [rbx - 0x10], rcx
dec rsi
mov qword [rbx - 8], rsi
imul rax, rax, 0xe8
mov r14, qword [r8 + rax]
mov rbx, qword [r8 + rax + 8]
lea rdx, [r8 + rax]
add rdx, 0x10
lea rcx, [rsp + 0x100]
mov r8d, 0xd8
call sub.msvcrt.dll_memcpy
movabs rax, 0x8000000000000000
inc rax
cmp rbx, rax
je 0x1400ade15
mov qword [rsp + 0x1d8], r14
lea r12, [rsp + 0x1e0]
mov qword [rsp + 0x1e0], rbx
lea rcx, [rsp + 0x1e8]
lea rdx, [rsp + 0x100]
mov r8d, 0xd8
call sub.msvcrt.dll_memcpy
test rsi, rsi
je 0x1400ae4c3
cmp qword [rsp + 0x290], 0
je 0x1400ae43d
mov r8, qword [rsp + 0x288]
mov rcx, qword [0x14024a138]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov rbx, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x2b8]
mov rcx, rbx
call qword [rsi]
cmp qword [rsi + 8], 0
je 0x1400ae475
cmp qword [rsi + 0x10], 0x11
jb 0x1400ae464
mov rbx, qword [rbx - 8]
mov rcx, qword [0x14024a138]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
movabs rax, 0x8000000000000000
cmp qword [rsp + 0x1e0], rax
je 0x1400ae4a8
lea rcx, [rsp + 0x1d8]
call fcn.1400c6270
mov rcx, r12
call fcn.1400b5b80
movabs rax, 0x8000000000000000
cmp qword [rsp + 0x3c8], rax
je 0x1400ae6b4
lea rcx, [rsp + 0x3c8]
jmp 0x1400ae6af
mov rdx, qword [rsp + 0x450]
mov rax, qword [rsp + 0x458]
mov rcx, qword [rax]
mov r9, rcx
sub r9, rdx
sar r9, 3
movabs r8, 0xcf3cf3cf3cf3cf3d
imul r8, r9
lea r9, [r8 - 0x10]
and r9, qword [rax + 8]
movdqu xmm0, xmmword [rcx + r9]
pcmpeqd xmm1, xmm1
pcmpeqb xmm0, xmm1
psllw xmm0, 7
pmovmskb r11d, xmm0
movdqu xmm0, xmmword [rcx + r8]
pcmpeqb xmm0, xmm1
pmovmskb r10d, xmm0
test r11d, r11d
je 0x1400ae52d
bsr r11w, r11w
xor r11d, 0xf
jmp 0x1400ae532
mov r11w, 0x10
mov rsi, qword [rsp + 0x3c8]
or r10d, 0x10000
tzcnt r10d, r10d
add r11d, r10d
mov r10b, pe_nt_image_headers64
cmp r11w, 0xf
ja 0x1400ae55a
inc qword [rax + 0x10]
mov r10b, 0xff
mov byte [rcx + r8], r10b
mov byte [r9 + rcx + 0x10], r10b
dec qword [rax + 0x18]
add rdx, 0xffffffffffffff58
lea rcx, [rsp + 0x100]
mov r8d, 0xa8
call sub.msvcrt.dll_memcpy
movabs rax, 0x8000000000000000
cmp rsi, rax
je 0x1400ae59d
lea rcx, [rsp + 0x3c8]
call fcn.1400b5b80
mov rsi, qword [rsp + 0x188]
mov rbx, qword [rsp + 0x190]
mov r13, qword [rsp + 0x198]
mov r14, qword [rsp + 0x1a0]
lea rcx, [rsp + 0x100]
call fcn.1400b5b80
test r14, r14
je 0x1400ae5ee
xor eax, eax
cmp r13, rsi
cmovae rax, rsi
sub r13, rax
mov rax, rsi
sub rax, r13
mov r15, r14
sub r15, rax
jbe 0x1400ae5f6
mov r14, rsi
jmp 0x1400ae5fc
xor r13d, r13d
xor r14d, r14d
jmp 0x1400ae5f9
add r14, r13
xor r15d, r15d
imul rcx, r13, 0xe8
add rcx, rbx
sub r14, r13
mov rdx, r14
call fcn.1400b5aa0
mov rcx, rbx
mov rdx, r15
call fcn.1400b5aa0
test rsi, rsi
je 0x1400ae632
mov rcx, qword [0x14024a138]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0x290], 0
je 0x1400ae653
mov r8, qword [rsp + 0x288]
mov rcx, qword [0x14024a138]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov rbx, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x2b8]
mov rcx, rbx
call qword [rsi]
cmp qword [rsi + 8], 0
je 0x1400ae68b
cmp qword [rsi + 0x10], 0x11
jb 0x1400ae67a
mov rbx, qword [rbx - 8]
mov rcx, qword [0x14024a138]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
movabs rax, 0x8000000000000000
cmp qword [rsp + 0x1e0], rax
je 0x1400ae6b4
lea rcx, [rsp + 0x1d8]
call fcn.1400c6270
mov rcx, r12
call fcn.1400b5b80
mov rcx, qword [rsp + 0x38]
call fcn.140107120
lock dec qword [rdi]
jne 0x1400ae6ce
lea rcx, [rsp + 0x68]
call fcn.1400c5b70
lea rcx, [rsp + 0x70]
call fcn.1400ad460
xor edi, edi
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x460]
movaps xmm7, xmmword [rsp + 0x470]
movaps xmm8, xmmword [rsp + 0x480]
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp qword [rdi + 0x78], 0
je 0x1400ae837
lea rcx, [rsp + 0x340]
lea rdx, [rsp + 0x1d8]
mov r8d, 0x88
call sub.msvcrt.dll_memcpy
movzx eax, byte [0x14024a149]
mov edx, 0xe8
xor ecx, ecx
call fcn.140080d30
test rax, rax
je 0x1400ade15
mov r12, rax
mov r8d, 0xe8
mov rcx, rax
mov rdx, rbx
call sub.msvcrt.dll_memcpy
mov rbx, qword [rdi + 0x68]
mov rax, qword [rdi + 0x70]
mov r8, qword [rsp + 0x50]
and r8, rax
movdqu xmm0, xmmword [rbx + r8]
pmovmskb ecx, xmm0
test ecx, ecx
je 0x1400ae785
mov r9, qword [rsp + 0x48]
jmp 0x1400ae7a7
mov edx, 0x10
mov r9, qword [rsp + 0x48]
add r8, rdx
and r8, rax
movdqu xmm0, xmmword [rbx + r8]
pmovmskb ecx, xmm0
add rdx, 0x10
test ecx, ecx
je 0x1400ae78f
tzcnt ecx, ecx
add rcx, r8
and rcx, rax
movzx edx, byte [rbx + rcx]
test dl, dl
js 0x1400ae7c9
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt ecx, ecx
movzx edx, byte [rbx + rcx]
lea r8, [rcx - 0x10]
and r8, rax
mov byte [rbx + rcx], r9b
mov byte [r8 + rbx + 0x10], r9b
neg rcx
imul rsi, rcx, 0xa8
and dl, 1
movzx eax, dl
sub qword [rdi + 0x78], rax
lea rcx, [rbx + rsi]
add rcx, 0xffffffffffffff58
lea rdx, [rsp + 0x340]
mov r8d, 0x88
call sub.msvcrt.dll_memcpy
mov qword [rbx + rsi - 0x20], 1
mov qword [rbx + rsi - 0x18], r12
mov qword [rbx + rsi - 0x10], 0
mov qword [rbx + rsi - 8], 1
inc qword [rdi + 0x80]
jmp 0x1400ae0e5
mov rdx, qword [rdi + 0x88]
mov r8, qword [rdi + 0x90]
mov rcx, qword [rsp + 0x30]
call fcn.1400abff0
jmp 0x1400ae715
cmp qword [rdi + 0x78], 0
jne 0x1400ade15
mov rdx, qword [rdi + 0x88]
mov r8, qword [rdi + 0x90]
mov rcx, qword [rsp + 0x30]
call fcn.1400abff0
ud2