Function at 0x1400d7340
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r12, r9
mov ebp, edx
mov qword [rsp + 0x30], rcx
mov rsi, qword [rsp + 0xf0]
mov rax, qword [0x1401f5028]
xor rax, rsp
mov qword [rsp + 0x80], rax
test r8, r8
jne 0x1400d74b6
test bpl, 4
je 0x1400d7cc0
mov eax, 0x40
mov ecx, 0x40
test r12, r12
je 0x1400d73a1
bsr rcx, r12
xor rcx, 0x3f
sub rax, rcx
lea rcx, [0x1401c9f10]
mov cl, byte [rax + rcx]
mov rdx, r12
shr rdx, cl
and edx, 7
lea rcx, [0x1401c9f60]
mov rcx, qword [rcx + rax*8]
and rcx, r12
lea rax, [rdx + rax*8]
cmp rcx, 1
sbb rax, 0xffffffffffffffff
lea rcx, [0x1401ca168]
movzx r13d, word [rcx + rax*2 + 0x400]
mov byte [rsp + 0x70], 0
mov rax, qword [rsp + 0x30]
cmp byte [rax + 2], 0
je 0x1400d84f0
mov esi, dword [0x1402003c0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test ebx, ebx
jne 0x1400d7ff7
cmp rsi, 1
jbe 0x1400d85a4
add qword [rsi + 0x298], 1
cmp r13w, 0x29
jae 0x1400d7908
mov rbx, r13
shl rbx, 4
lea rdi, [rsi + rbx]
cmp qword [rsi + rbx], 0
je 0x1400d7b84
add qword [rsi + 0x2a0], 1
mov r15, qword [rdi]
mov rax, qword [r15]
test rax, rax
je 0x1400d7bb8
mov rcx, rax
not rcx
cmp qword [r15 + 8], rcx
jne 0x1400d8f1b
add byte [rsi + rbx + 8], 0xff
bswap rax
mov qword [rdi], rax
lea rax, [rsi + rbx]
add rax, 0xa
test r15, r15
je 0x1400d7916
movzx edi, word [rax]
test bpl, 2
je 0x1400d78e1
cmp byte [rsp + 0x70], 0
jne 0x1400d78e1
mov rcx, r15
xor edx, edx
mov r8, rdi
call fcn.1400f5b50
jmp 0x1400d78e1
mov qword [rsp + 0x40], r8
test r12, r12
je 0x1400d7e71
cmp r12, 0x7fe00001
jae 0x1400d8635
mov dword [rsp + 0x2c], ebp
test bpl, 4
sete al
movabs rdx, 0xaaaaaaaaaaaaaaaa
mov r13b, byte [0x140200b10]
mov rcx, rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rdx
and r13b, al
mov qword [rsp + 0x38], r12
jne 0x1400d86a8
mov rcx, qword [rsp + 0x40]
mov rax, rcx
and rax, 0xffffffffffe00000
shr rcx, 9
and ecx, 0xfe0
lea rsi, [rax + rcx]
add rsi, 0x1000
movzx eax, word [rax + rcx + 0x101e]
mov r15, rax
neg r15
shl rax, 5
mov rbp, rsi
sub rbp, rax
mov rax, rbp
and rax, 0xfffffffffffff000
mov rbx, qword [rax]
lea r14, [rbx + 8]
mov edi, 1
mov dword [rsp + 0x4c], 0
mov r12, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, r14
call r12
test al, al
jne 0x1400d75a3
jmp 0x1400d7e5e
pause
dec eax
jne 0x1400d7576
mov edx, dword [rsp + 0x4c]
add edx, edi
add edi, edi
cmp edi, 0x40
mov ecx, 0x40
cmovge edi, ecx
mov dword [rsp + 0x4c], edx
cmp edx, 0x3e8
jl 0x1400d7567
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
shl r15, 5
cmp byte [rsi + r15 + 0x1d], 0
jne 0x1400d86c4
mov rax, qword [rsi + r15 + 0x10]
mov eax, dword [rax + 0x18]
mov r12, qword [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov rax, qword [rsi + r15 + 0x10]
cmp byte [rax + 0x1c], 0
je 0x1400d8647
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, 0x40
mov ecx, 0x40
test r12, r12
je 0x1400d75f4
bsr rcx, r12
xor rcx, 0x3f
sub rax, rcx
lea rcx, [0x1401c9f10]
mov cl, byte [rax + rcx]
mov rdx, r12
shr rdx, cl
and edx, 7
lea rcx, [0x1401c9f60]
mov rcx, qword [rcx + rax*8]
and rcx, r12
lea rax, [rdx + rax*8]
cmp rcx, 1
sbb rax, 0xffffffffffffffff
lea rcx, [0x1401ca168]
movzx eax, word [rcx + rax*2 + 0x400]
lea rax, [rax + rax*4]
cmp byte [rbx + rax*8 + 0x2c], 0
je 0x1400d8695
mov eax, dword [rbx + rax*8 + 0x28]
movzx ecx, word [rsi + 0x1e]
shl rcx, 5
neg rcx
mov rcx, qword [rsi + rcx + 0x10]
mov ecx, dword [rcx + 0x18]
cmp rax, rcx
je 0x1400d7a9b
mov r13d, dword [rsp + 0x2c]
test r13b, 4
je 0x1400d81a2
mov eax, 0x40
mov ecx, 0x40
test r12, r12
je 0x1400d7688
bsr rcx, r12
xor rcx, 0x3f
sub rax, rcx
lea rcx, [0x1401c9f10]
mov cl, byte [rax + rcx]
mov rdx, r12
shr rdx, cl
and edx, 7
lea rcx, [0x1401c9f60]
mov rcx, qword [rcx + rax*8]
and rcx, r12
lea rax, [rdx + rax*8]
cmp rcx, 1
sbb rax, 0xffffffffffffffff
lea rcx, [0x1401ca168]
movzx esi, word [rcx + rax*2 + 0x400]
mov byte [rsp + 0x70], 0
mov rax, qword [rsp + 0x30]
cmp byte [rax + 2], 0
je 0x1400d80e8
mov ebp, dword [0x1402003c0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test ebx, ebx
jne 0x1400d8027
cmp rbp, 1
jbe 0x1400d877b
add qword [rbp + 0x298], 1
cmp si, 0x29
jae 0x1400d79d5
mov rbx, rsi
shl rbx, 4
lea rdi, [rbx + rbp]
cmp qword [rbp + rbx], 0
je 0x1400d7e2a
inc qword [rbp + 0x2a0]
mov r15, qword [rdi]
mov rax, qword [r15]
test rax, rax
je 0x1400d7bcd
mov rcx, rax
not rcx
cmp qword [r15 + 8], rcx
jne 0x1400d8f1b
dec byte [rbp + rbx + 8]
bswap rax
mov qword [rdi], rax
lea rax, [rbx + rbp]
add rax, 0xa
test r15, r15
je 0x1400d79e3
movzx edi, word [rax]
test r13b, 2
je 0x1400d7784
cmp byte [rsp + 0x70], 0
je 0x1400d8829
test r15, r15
je 0x1400d86cd
mov rax, qword [rsp + 0x58]
cmp rax, r12
ja 0x1400d779a
mov r12, rax
mov rcx, r15
mov rsi, qword [rsp + 0x40]
mov rdx, rsi
mov r8, r12
call fcn.1400f5740
mov al, byte [0x140200b10]
test al, 1
je 0x1400d77cf
mov rcx, rsi
call fcn.1400f0310
mov rcx, rsi
call fcn.1400f0320
test al, al
jne 0x1400d78e1
mov rax, rsi
and rax, 0xffffffffffe00000
shr rsi, 9
and esi, 0xfe0
lea r14, [rax + rsi]
add r14, 0x1000
movzx ecx, word [rax + rsi + 0x101e]
mov rdi, rcx
neg rdi
shl rcx, 5
mov r13, r14
sub r13, rcx
mov rcx, r13
and rcx, 0xfffffffffffff000
mov r12, qword [rcx]
cmp byte [r12], 2
je 0x1400d86dc
cmp byte [r12 + 2], 0
je 0x1400d7abd
mov rax, rdi
shl rax, 5
mov rsi, qword [r14 + rax + 0x10]
cmp byte [rsi + 0x1c], 0
je 0x1400d7abd
mov ebp, dword [0x1402003c0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test ebx, ebx
jne 0x1400d8034
cmp rbp, 2
jb 0x1400d7abd
sub rsi, r12
add rsi, 0xfffffffffffffff0
sar rsi, 3
movabs rax, 0xcccccccccccccccd
imul rax, rsi
add qword [rbp + 0x2c0], 1
cmp rax, 0x28
ja 0x1400d7ab6
shl rax, 4
mov rcx, qword [rbp + rax]
bswap rcx
mov rdx, qword [rsp + 0x40]
mov qword [rdx], rcx
not rcx
mov qword [rdx + 8], rcx
mov qword [rbp + rax], rdx
add byte [rbp + rax + 8], 1
add qword [rbp + 0x2c8], 1
movzx r8d, byte [rbp + rax + 9]
cmp byte [rbp + rax + 8], r8b
jae 0x1400d8805
mov al, byte [rbp + 0x290]
test al, 1
jne 0x1400d830f
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400f32c0
mov rax, r15
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
inc qword [rsi + 0x2b8]
inc qword [rsi + 0x2a8]
lea rbx, [r13*4]
add rbx, r13
mov rax, qword [rsp + 0x30]
lea rdi, [rax + rbx*8]
add rdi, 0x10
lea rsi, [rax + 8]
mov r13d, 1
xor r14d, r14d
mov r15, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, rsi
call r15
test al, al
jne 0x1400d797b
jmp 0x1400d8016
pause
dec eax
jne 0x1400d7951
add r14d, r13d
add r13d, r13d
cmp r13d, 0x40
mov eax, 0x40
cmovge r13d, eax
cmp r14d, 0x3e8
jl 0x1400d7942
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rdi]
mov r15, qword [rax]
test r15, r15
je 0x1400d7c4a
mov byte [rsp + 0x70], 0
mov rcx, qword [rsp + 0x30]
mov edi, dword [rcx + rbx*8 + 0x28]
mov rcx, qword [r15]
test rcx, rcx
je 0x1400d7bc6
mov rdx, rcx
not rdx
cmp qword [r15 + 8], rdx
jne 0x1400d8f1b
bswap rcx
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test r15, r15
jne 0x1400d748f
jmp 0x1400d7fef
inc qword [rbp + 0x2b8]
inc qword [rbp + 0x2a8]
lea rbx, [rsi + rsi*4]
mov rax, qword [rsp + 0x30]
lea rbp, [rax + rbx*8]
add rbp, 0x10
lea rsi, [rax + 8]
mov edi, 1
xor r14d, r14d
mov r15, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, rsi
call r15
test al, al
jne 0x1400d7a3d
jmp 0x1400d8053
pause
dec eax
jne 0x1400d7a16
add r14d, edi
add edi, edi
cmp edi, 0x40
mov eax, 0x40
cmovge edi, eax
cmp r14d, 0x3e8
jl 0x1400d7a07
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rbp]
mov r15, qword [rax]
test r15, r15
je 0x1400d7bd4
mov byte [rsp + 0x70], 0
mov rcx, qword [rsp + 0x30]
mov edi, dword [rcx + rbx*8 + 0x28]
mov rcx, qword [r15]
test rcx, rcx
je 0x1400d7bbf
mov rdx, rcx
not rdx
cmp qword [r15 + 8], rdx
jne 0x1400d8f1b
bswap rcx
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test r15, r15
jne 0x1400d7773
xor r15d, r15d
jmp 0x1400d7784
lea rax, [rsi + r15]
add rax, 0x1d
cmp byte [rax], 0
jne 0x1400d883f
mov r15, qword [rsp + 0x40]
jmp 0x1400d78e1
inc qword [rbp + 0x2d0]
add r12, 8
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
mov ebx, 1
xor ebp, ebp
mov rsi, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, r12
call rsi
test al, al
jne 0x1400d7b0c
jmp 0x1400d8084
pause
dec eax
jne 0x1400d7ae7
add ebp, ebx
add ebx, ebx
cmp ebx, 0x40
mov eax, 0x40
cmovge ebx, eax
cmp ebp, 0x3e8
jl 0x1400d7ad9
mov rcx, r12
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [r13]
mov rcx, qword [rsp + 0x40]
cmp rax, rcx
je 0x1400d8848
bswap rax
mov qword [rcx], rax
not rax
mov qword [rcx + 8], rax
mov qword [r13], rcx
shl rdi, 5
movzx eax, word [r14 + rdi + 0x18]
dec eax
mov word [r14 + rdi + 0x18], ax
test ax, ax
jle 0x1400d8004
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x70], xmm0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsp + 0x70], 0
je 0x1400d78e1
lea rcx, [rsp + 0x70]
call fcn.140005990
jmp 0x1400d78e1
movdqu xmm0, xmmword [rsi + 0x2a8]
pcmpeqd xmm1, xmm1
psubq xmm0, xmm1
movdqu xmmword [rsi + 0x2a8], xmm0
mov rcx, rsi
mov rdx, r13
call fcn.1400c2020
mov r15, qword [rdi]
test r15, r15
jne 0x1400d7454
jmp 0x1400d7916
xor eax, eax
jmp 0x1400d7470
xor ecx, ecx
jmp 0x1400d7a77
xor ecx, ecx
jmp 0x1400d79b4
xor eax, eax
jmp 0x1400d7755
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rcx, rbp
mov rdx, qword [rsp + 0x30]
mov r8d, r13d
mov r9, r12
call fcn.1400c21b0
test rax, rax
je 0x1400d885a
mov r15, rax
and rax, 0xffffffffffe00000
mov rcx, r15
shr rcx, 9
and ecx, 0xfe0
lea rbp, [rax + rcx]
add rbp, 0x1000
movzx edx, word [rbp + 0x1e]
mov rcx, rdx
neg rcx
shl rdx, 5
mov rax, rbp
sub rax, rdx
cmp byte [rax + 0x1d], 0
jne 0x1400d8194
shl rcx, 5
mov rax, qword [rbp + rcx + 0x10]
mov edi, dword [rax + 0x18]
jmp 0x1400d7a81
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, qword [rsp + 0x30]
mov r8d, ebp
mov r9, r12
call fcn.1400c21b0
test rax, rax
je 0x1400d886c
mov r15, rax
and rax, 0xffffffffffe00000
mov rcx, r15
shr rcx, 9
and ecx, 0xfe0
lea rbx, [rax + rcx]
add rbx, 0x1000
movzx edx, word [rbx + 0x1e]
mov rcx, rdx
neg rcx
shl rdx, 5
mov rax, rbx
sub rax, rdx
cmp byte [rax + 0x1d], 0
jne 0x1400d887e
shl rcx, 5
mov rax, qword [rbx + rcx + 0x10]
mov edi, dword [rax + 0x18]
jmp 0x1400d79be
mov qword [rsp + 0x70], 0
mov r15b, byte [0x140200b10]
test r15b, 1
jne 0x1400d8893
mov eax, 0x40
mov ecx, 0x40
test r12, r12
je 0x1400d7cf1
bsr rcx, r12
xor rcx, 0x3f
mov dword [rsp + 0x2c], ebp
sub rax, rcx
lea rcx, [0x1401c9f10]
mov cl, byte [rax + rcx]
mov rdx, r12
shr rdx, cl
and edx, 7
lea rcx, [0x1401c9f60]
mov rcx, qword [rcx + rax*8]
mov qword [rsp + 0x38], r12
and rcx, r12
lea rax, [rdx + rax*8]
cmp rcx, 1
sbb rax, 0xffffffffffffffff
lea rcx, [0x1401ca168]
movzx r14d, word [rcx + rax*2 + 0x400]
mov byte [rsp + 0x60], 0
mov rcx, qword [rsp + 0x30]
cmp byte [rcx + 2], 0
jne 0x1400d88bd
lea rax, [r14 + r14*4]
lea rbp, [rcx + rax*8]
add rbp, 0x10
lea rsi, [rcx + 8]
mov edi, 1
xor ebx, ebx
mov r12, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov r13d, 0x40
mov rcx, rsi
call r12
test al, al
jne 0x1400d7da2
jmp 0x1400d831c
pause
dec eax
jne 0x1400d7d81
add ebx, edi
add edi, edi
cmp edi, 0x40
cmovge edi, r13d
cmp ebx, 0x3e8
jl 0x1400d7d72
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rbp]
mov rbx, qword [rax]
test rbx, rbx
je 0x1400d8341
mov byte [rsp + 0x60], 0
lea rcx, [r14 + r14*4]
mov rdx, qword [rsp + 0x30]
mov ebp, dword [rdx + rcx*8 + 0x28]
mov rcx, qword [rbx]
test rcx, rcx
mov edi, dword [rsp + 0x2c]
je 0x1400d832b
mov rdx, rcx
not rdx
cmp qword [rbx + 8], rdx
jne 0x1400d8f1b
bswap rcx
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test rbx, rbx
je 0x1400d888c
test dil, 2
je 0x1400d7e11
cmp byte [rsp + 0x60], 0
je 0x1400d8a28
mov qword [rsp + 0x70], rbx
test r15b, 1
jne 0x1400d895d
mov r15, qword [rsp + 0x70]
jmp 0x1400d78e1
movdqu xmm0, xmmword [rbp + 0x2a8]
pcmpeqd xmm1, xmm1
psubq xmm0, xmm1
movdqu xmmword [rbp + 0x2a8], xmm0
mov rcx, rbp
mov rdx, rsi
call fcn.1400c2020
mov r15, qword [rdi]
test r15, r15
jne 0x1400d7739
jmp 0x1400d79e3
mov eax, edi
test edi, edi
jg 0x1400d7576
mov edx, dword [rsp + 0x4c]
jmp 0x1400d7582
mov al, byte [0x140200b10]
test al, 1
jne 0x1400d8062
mov rcx, qword [rsp + 0x40]
mov rax, rcx
and rax, 0xffffffffffe00000
shr rcx, 9
and ecx, 0xfe0
lea r14, [rax + rcx]
add r14, 0x1000
movzx ecx, word [r14 + 0x1e]
mov rdi, rcx
neg rdi
shl rcx, 5
mov r15, r14
sub r15, rcx
mov rcx, r15
and rcx, 0xfffffffffffff000
mov r13, qword [rcx]
cmp byte [r13], 2
je 0x1400d8977
cmp byte [r13 + 2], 0
je 0x1400d7f40
mov rax, rdi
shl rax, 5
mov rsi, qword [r14 + rax + 0x10]
cmp byte [rsi + 0x1c], 0
je 0x1400d7f40
mov ebx, dword [0x1402003c0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test ebp, ebp
jne 0x1400d843a
cmp rbx, 2
jb 0x1400d7f40
sub rsi, r13
add rsi, 0xfffffffffffffff0
sar rsi, 3
movabs rax, 0xcccccccccccccccd
imul rax, rsi
inc qword [rbx + 0x2c0]
cmp rax, 0x28
jbe 0x1400d8093
inc qword [rbx + 0x2d0]
add r13, 8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
mov ebx, 1
xor ebp, ebp
mov r12, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov esi, 0x40
mov rcx, r13
call r12
test al, al
jne 0x1400d7f8e
jmp 0x1400d8332
pause
dec eax
jne 0x1400d7f6e
add ebp, ebx
add ebx, ebx
cmp ebx, 0x40
cmovge ebx, esi
cmp ebp, 0x3e8
jl 0x1400d7f5f
mov rcx, r13
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [r15]
mov rcx, qword [rsp + 0x40]
cmp rax, rcx
je 0x1400d8a16
bswap rax
mov qword [rcx], rax
not rax
mov qword [rcx + 8], rax
mov qword [r15], rcx
shl rdi, 5
movzx eax, word [r14 + rdi + 0x18]
dec eax
mov word [r14 + rdi + 0x18], ax
test ax, ax
jle 0x1400d8041
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movdqa xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x70], xmm0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsp + 0x70], 0
jne 0x1400d8a19
xor r15d, r15d
jmp 0x1400d78e1
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400d7416
lea rdx, [rsp + 0x60]
mov rcx, r13
call fcn.1400b9250
jmp 0x1400d7b54
mov eax, r13d
test r13d, r13d
jg 0x1400d7951
jmp 0x1400d795a
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400d76fc
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400d7860
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.1400b9250
jmp 0x1400d7fce
mov eax, edi
test edi, edi
jg 0x1400d7a16
jmp 0x1400d7a1f
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1400f0310
mov rcx, rsi
call fcn.1400f0320
test al, al
je 0x1400d7e7f
jmp 0x1400d7fef
mov eax, ebx
test ebx, ebx
jg 0x1400d7ae7
jmp 0x1400d7aef
shl rax, 4
mov rcx, qword [rbx + rax]
bswap rcx
mov rdx, qword [rsp + 0x40]
mov qword [rdx], rcx
not rcx
mov qword [rdx + 8], rcx
mov qword [rbx + rax], rdx
inc byte [rbx + rax + 8]
inc qword [rbx + 0x2c8]
movzx r8d, byte [rbx + rax + 9]
cmp byte [rbx + rax + 8], r8b
jae 0x1400d8ab7
mov al, byte [rbx + 0x290]
test al, 1
je 0x1400d7fef
mov rcx, rbx
call fcn.1400b9720
jmp 0x1400d7fef
lea rax, [rsi + rsi*4]
mov rcx, qword [rsp + 0x30]
lea rbp, [rcx + rax*8]
add rbp, 0x10
lea r14, [rcx + 8]
mov edi, 1
xor ebx, ebx
mov r15, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, r14
call r15
test al, al
jne 0x1400d8144
jmp 0x1400d84d2
pause
dec eax
jne 0x1400d811a
add ebx, edi
add edi, edi
cmp edi, 0x40
mov eax, 0x40
cmovge edi, eax
cmp ebx, 0x3e8
mov r13d, dword [rsp + 0x2c]
jl 0x1400d810b
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rbp]
mov r15, qword [rax]
test r15, r15
je 0x1400d83bf
mov byte [rsp + 0x70], 0
lea rcx, [rsi + rsi*4]
mov rdx, qword [rsp + 0x30]
mov edi, dword [rdx + rcx*8 + 0x28]
mov rcx, qword [r15]
test rcx, rcx
je 0x1400d844e
mov rdx, rcx
not rdx
cmp qword [r15 + 8], rdx
jne 0x1400d8f1b
bswap rcx
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, r14
jmp 0x1400d7a84
shl rcx, 5
mov rdi, qword [rbp + rcx + 0x20]
jmp 0x1400d7a81
mov qword [rsp + 0x70], 0
mov bl, byte [0x140200b10]
test bl, 1
jne 0x1400d8b29
mov eax, 0x40
mov ecx, 0x40
test r12, r12
je 0x1400d81d1
bsr rcx, r12
xor rcx, 0x3f
mov byte [rsp + 0x4c], bl
sub rax, rcx
lea rcx, [0x1401c9f10]
mov cl, byte [rax + rcx]
mov rdx, r12
shr rdx, cl
and edx, 7
lea rcx, [0x1401c9f60]
mov rcx, qword [rcx + rax*8]
and rcx, r12
lea rax, [rdx + rax*8]
cmp rcx, 1
sbb rax, 0xffffffffffffffff
lea rcx, [0x1401ca168]
movzx r15d, word [rcx + rax*2 + 0x400]
mov byte [rsp + 0x60], 0
mov rcx, qword [rsp + 0x30]
cmp byte [rcx + 2], 0
jne 0x1400d8b53
mov r14, r15
lea rax, [r15 + r15*4]
lea rbp, [rcx + rax*8]
add rbp, 0x10
lea rsi, [rcx + 8]
mov edi, 1
xor ebx, ebx
mov r15, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov r12d, 0x40
mov rcx, rsi
call r15
test al, al
jne 0x1400d8285
jmp 0x1400d84e1
pause
dec eax
jne 0x1400d825f
add ebx, edi
add edi, edi
cmp edi, 0x40
cmovge edi, r12d
cmp ebx, 0x3e8
mov r13d, dword [rsp + 0x2c]
jl 0x1400d8250
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rbp]
mov rbx, qword [rax]
test rbx, rbx
je 0x1400d8455
mov byte [rsp + 0x60], 0
lea rcx, [r14 + r14*4]
mov rdx, qword [rsp + 0x30]
mov edi, dword [rdx + rcx*8 + 0x28]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400d8447
mov rdx, rcx
not rdx
cmp qword [rbx + 8], rdx
jne 0x1400d8f1b
bswap rcx
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test rbx, rbx
je 0x1400d8b22
test r13b, 2
je 0x1400d82f0
cmp byte [rsp + 0x60], 0
je 0x1400d8c63
mov r12, qword [rsp + 0x38]
mov qword [rsp + 0x70], rbx
test byte [rsp + 0x4c], 1
jne 0x1400d8bf4
mov r15, qword [rsp + 0x70]
jmp 0x1400d7784
mov rcx, rbp
call fcn.1400b9720
jmp 0x1400d78e1
mov eax, edi
test edi, edi
jg 0x1400d7d81
jmp 0x1400d7d89
xor ecx, ecx
jmp 0x1400d7de4
mov eax, ebx
test ebx, ebx
jg 0x1400d7f6e
jmp 0x1400d7f76
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rbp
mov rdx, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x2c]
mov r9, qword [rsp + 0x38]
call fcn.1400c21b0
test rax, rax
je 0x1400d8c7c
mov rbx, rax
and rax, 0xffffffffffe00000
mov rcx, rbx
shr rcx, 9
and ecx, 0xfe0
lea rbp, [rax + rcx]
add rbp, 0x1000
movzx edx, word [rbp + 0x1e]
mov rcx, rdx
neg rcx
shl rdx, 5
mov rax, rbp
sub rax, rdx
cmp byte [rax + 0x1d], 0
jne 0x1400d8c8d
shl rcx, 5
mov rax, qword [rbp + rcx + 0x10]
mov ebp, dword [rax + 0x18]
mov edi, dword [rsp + 0x2c]
jmp 0x1400d7dee
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rcx, rbp
mov rdx, qword [rsp + 0x30]
mov r8d, r13d
mov r9, r12
call fcn.1400c21b0
test rax, rax
je 0x1400d8c9b
mov r15, rax
and rax, 0xffffffffffe00000
mov rcx, r15
shr rcx, 9
and ecx, 0xfe0
lea rbp, [rax + rcx]
add rbp, 0x1000
movzx edx, word [rbp + 0x1e]
mov rcx, rdx
neg rcx
shl rdx, 5
mov rax, rbp
sub rax, rdx
cmp byte [rax + 0x1d], 0
jne 0x1400d8cb2
shl rcx, 5
mov rax, qword [rbp + rcx + 0x10]
mov edi, dword [rax + 0x18]
mov r13d, dword [rsp + 0x2c]
jmp 0x1400d818c
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400d7f09
xor ecx, ecx
jmp 0x1400d82c3
xor ecx, ecx
jmp 0x1400d8182
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rbp
mov rdx, qword [rsp + 0x30]
mov r8d, r13d
mov r9, qword [rsp + 0x38]
call fcn.1400c21b0
test rax, rax
je 0x1400d8ccd
mov rbx, rax
and rax, 0xffffffffffe00000
mov rcx, rbx
shr rcx, 9
and ecx, 0xfe0
lea rbp, [rax + rcx]
add rbp, 0x1000
movzx edx, word [rbp + 0x1e]
mov rcx, rdx
neg rcx
shl rdx, 5
mov rax, rbp
sub rax, rdx
cmp byte [rax + 0x1d], 0
jne 0x1400d8ce3
shl rcx, 5
mov rax, qword [rbp + rcx + 0x10]
mov edi, dword [rax + 0x18]
mov r13d, dword [rsp + 0x2c]
jmp 0x1400d82cd
mov eax, edi
test edi, edi
jg 0x1400d811a
jmp 0x1400d8122
mov eax, edi
test edi, edi
jg 0x1400d825f
jmp 0x1400d8267
lea rax, [r13*4]
add rax, r13
mov rcx, qword [rsp + 0x30]
lea rsi, [rcx + rax*8]
add rsi, 0x10
lea r14, [rcx + 8]
mov edi, 1
xor ebx, ebx
mov r15, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, r14
call r15
test al, al
jne 0x1400d854e
jmp 0x1400d884b
pause
dec eax
jne 0x1400d8529
add ebx, edi
add edi, edi
cmp edi, 0x40
mov eax, 0x40
cmovge edi, eax
cmp ebx, 0x3e8
jl 0x1400d851a
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rsi]
mov r15, qword [rax]
test r15, r15
je 0x1400d8a41
mov byte [rsp + 0x70], 0
lea rcx, [r13*4]
add rcx, r13
mov rdx, qword [rsp + 0x30]
mov edi, dword [rdx + rcx*8 + 0x28]
mov rcx, qword [r15]
test rcx, rcx
je 0x1400d881b
mov rdx, rcx
not rdx
cmp qword [r15 + 8], rdx
jne 0x1400d8f1b
bswap rcx
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, r14
jmp 0x1400d79c1
je 0x1400d7916
mov qword [rsp + 0x38], r12
mov edi, ebp
mov rbx, qword [rsp + 0x30]
mov byte [rbx + 2], 0
mov rcx, rbx
call fcn.1400e9130
mov rsi, rax
mov byte [rbx + 2], 1
inc qword [rax + 0x298]
cmp r13w, 0x29
jae 0x1400d8acd
mov rbx, r13
shl rbx, 4
lea r14, [rsi + rbx]
cmp qword [rsi + rbx], 0
je 0x1400d8ae7
inc qword [rsi + 0x2a0]
mov r15, qword [r14]
mov rax, qword [r15]
test rax, rax
je 0x1400d8822
mov rcx, rax
not rcx
cmp qword [r15 + 8], rcx
jne 0x1400d8f1b
dec byte [rsi + rbx + 8]
bswap rax
mov qword [r14], rax
lea rax, [rsi + rbx]
add rax, 0xa
mov ebp, edi
mov r12, qword [rsp + 0x38]
jmp 0x1400d7483
test bpl, 1
jne 0x1400d7fef
mov rcx, r12
call fcn.140152a90
mov rcx, rbx
mov rdx, rbp
mov r8, r12
call fcn.14019e4d0
mov edi, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test dil, dil
je 0x1400d75dd
test r13b, 1
je 0x1400d7aac
mov r15, qword [rsp + 0x40]
mov rcx, r15
mov rdx, r15
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0xf0]
call fcn.1401a4710
jmp 0x1400d78e1
lea rax, [r12 + 0xfff]
and rax, 0xfffffffffffff000
jmp 0x1400d7646
lea rcx, [rsp + 0x58]
mov rdx, qword [rsp + 0x40]
call fcn.1401a4770
test al, al
je 0x1400d7508
jmp 0x1400d7662
mov rax, qword [rbp + 0x20]
jmp 0x1400d75bb
test r13b, 1
jne 0x1400d7fef
jmp 0x1400d863f
mov rcx, rdi
shl rcx, 5
mov rdx, qword [r14 + rcx + 0x10]
cmp byte [rdx + 0x1c], 0
je 0x1400d781d
lea rdx, [r14 + rcx]
add rdx, 0x10
mov rbp, qword [0x1401f5ea0]
and ebp, 1
shl rbp, 0xe
add rbp, rax
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
shr rcx, 4
shr rbx, 7
and ebx, 0x3ff8
mov eax, 1
shl rax, cl
lock or qword [rbx + rbp + 0x4000], rax
mov rax, qword [rdx]
mov eax, dword [rax + 0x18]
mov rcx, rax
lock xadd qword [0x1401f5e90], rcx
add rcx, rax
mov rax, qword [0x1401f5e98]
cmp rcx, rax
jbe 0x1400d78e1
mov al, byte [0x1401f5eb0]
test al, 1
jne 0x1400d78e1
lea rcx, [0x1401f5e00]
mov edx, 1
call fcn.140152ac0
jmp 0x1400d78e1
je 0x1400d79e3
mov r14, r12
mov rdi, qword [rsp + 0x30]
mov byte [rdi + 2], 0
mov rcx, rdi
call fcn.1400e9130
mov rbp, rax
mov byte [rdi + 2], 1
inc qword [rax + 0x298]
cmp si, 0x29
jae 0x1400d8c0c
mov rbx, rsi
shl rbx, 4
lea rdi, [rbx + rbp]
cmp qword [rbp + rbx], 0
je 0x1400d8c27
inc qword [rbp + 0x2a0]
mov r15, qword [rdi]
mov rax, qword [r15]
test rax, rax
je 0x1400d883b
mov rcx, rax
not rcx
cmp qword [r15 + 8], rcx
jne 0x1400d8f1b
dec byte [rbp + rbx + 8]
bswap rax
mov qword [rdi], rax
lea rax, [rbx + rbp]
add rax, 0xa
mov r13d, dword [rsp + 0x2c]
mov r12, r14
jmp 0x1400d7767
mov rdx, rbp
add rdx, rax
shr r8, 1
mov rcx, rbp
call fcn.1400b9550
jmp 0x1400d78d3
xor ecx, ecx
jmp 0x1400d8592
xor eax, eax
jmp 0x1400d8617
mov rcx, r15
xor edx, edx
mov r8, rdi
call fcn.1400f5b50
jmp 0x1400d7784
xor eax, eax
jmp 0x1400d87e6
mov qword [rbp + 0x20], r12
jmp 0x1400d7aac
int3
mov eax, edi
test edi, edi
jg 0x1400d8529
jmp 0x1400d8531
xor r15d, r15d
movabs rdi, 0xaaaaaaaaaaaaaaaa
jmp 0x1400d7a81
movabs rdi, 0xaaaaaaaaaaaaaaaa
xor r15d, r15d
jmp 0x1400d79be
shl rcx, 5
mov rdi, qword [rbx + rcx + 0x20]
jmp 0x1400d79be
xor ebx, ebx
jmp 0x1400d7e11
lea rcx, [rsp + 0x70]
mov edx, ebp
mov r8, r12
mov r9, rsi
call fcn.1401a46e0
test al, al
je 0x1400d7cda
mov rcx, qword [rsp + 0x70]
mov rdx, r12
mov r8, rsi
jmp 0x1400d896d
mov esi, dword [0x1402003c0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test ebx, ebx
jne 0x1400d8cc0
cmp rsi, 1
jbe 0x1400d8cf1
inc qword [rsi + 0x298]
cmp r14w, 0x29
jae 0x1400d8d17
mov rbp, r14
shl rbp, 4
lea rdi, [rsi + rbp]
cmp qword [rsi + rbp], 0
je 0x1400d8dd0
inc qword [rsi + 0x2a0]
mov rbx, qword [rdi]
mov rax, qword [rbx]
test rax, rax
je 0x1400d8a3a
mov rcx, rax
not rcx
cmp qword [rbx + 8], rcx
jne 0x1400d8f1b
dec byte [rsi + rbp + 8]
bswap rax
mov qword [rdi], rax
lea rax, [rsi + rbp]
add rax, 0xa
test rbx, rbx
je 0x1400d8d25
movzx ebp, word [rax]
mov edi, dword [rsp + 0x2c]
jmp 0x1400d7e00
mov rcx, rbx
mov rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0xf0]
call fcn.1401a46d0
jmp 0x1400d7e20
mov rcx, rdi
shl rcx, 5
mov rdx, qword [r14 + rcx + 0x10]
cmp byte [rdx + 0x1c], 0
je 0x1400d7ecf
lea rdx, [r14 + rcx]
add rdx, 0x10
mov rbp, qword [0x1401f5ea0]
and ebp, 1
shl rbp, 0xe
add rbp, rax
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
shr rcx, 4
shr rbx, 7
and ebx, 0x3ff8
mov eax, 1
shl rax, cl
lock or qword [rbx + rbp + 0x4000], rax
mov rax, qword [rdx]
mov eax, dword [rax + 0x18]
mov rcx, rax
lock xadd qword [0x1401f5e90], rcx
add rcx, rax
mov rax, qword [0x1401f5e98]
cmp rcx, rax
jbe 0x1400d7fef
mov al, byte [0x1401f5eb0]
test al, 1
jne 0x1400d7fef
lea rcx, [0x1401f5e00]
mov edx, 1
call fcn.140152ac0
jmp 0x1400d7fef
int3
lea rcx, [rsp + 0x70]
call fcn.140005990
jmp 0x1400d7fef
mov rcx, rbx
xor edx, edx
mov r8, rbp
call fcn.1400f5b50
jmp 0x1400d7e11
xor eax, eax
jmp 0x1400d8936
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov rdx, qword [rsp + 0x30]
mov r8d, ebp
mov r9, r12
call fcn.1400c21b0
test rax, rax
je 0x1400d8e15
mov r15, rax
and rax, 0xffffffffffe00000
mov rcx, r15
shr rcx, 9
and ecx, 0xfe0
lea rbx, [rax + rcx]
add rbx, 0x1000
movzx edx, word [rbx + 0x1e]
mov rcx, rdx
neg rcx
shl rdx, 5
mov rax, rbx
sub rax, rdx
cmp byte [rax + 0x1d], 0
jne 0x1400d8e27
shl rcx, 5
mov rax, qword [rbx + rcx + 0x10]
mov edi, dword [rax + 0x18]
jmp 0x1400d859c
mov rdx, rbx
add rdx, rax
shr r8, 1
mov rcx, rbx
call fcn.1400b9550
jmp 0x1400d80cd
inc qword [rsi + 0x2b8]
inc qword [rsi + 0x2a8]
mov ebp, edi
mov r12, qword [rsp + 0x38]
jmp 0x1400d7916
movdqu xmm0, xmmword [rsi + 0x2a8]
pcmpeqd xmm1, xmm1
psubq xmm0, xmm1
movdqu xmmword [rsi + 0x2a8], xmm0
mov rcx, rsi
mov rdx, r13
call fcn.1400c2020
mov r15, qword [r14]
test r15, r15
mov ebp, edi
mov r12, qword [rsp + 0x38]
jne 0x1400d85fb
jmp 0x1400d7916
xor ebx, ebx
jmp 0x1400d82f0
lea rcx, [rsp + 0x70]
mov edx, r13d
mov r8, r12
mov r9, qword [rsp + 0xf0]
call fcn.1401a46e0
test al, al
je 0x1400d81ba
mov rcx, qword [rsp + 0x70]
jmp 0x1400d8bf7
mov esi, dword [0x1402003c0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test ebx, ebx
jne 0x1400d8e08
cmp rsi, 1
jbe 0x1400d8e35
inc qword [rsi + 0x298]
cmp r15w, 0x29
jae 0x1400d8e5b
mov rbp, r15
shl rbp, 4
lea rdi, [rsi + rbp]
cmp qword [rsi + rbp], 0
je 0x1400d8f20
inc qword [rsi + 0x2a0]
mov rbx, qword [rdi]
mov rax, qword [rbx]
test rax, rax
je 0x1400d8c75
mov rcx, rax
not rcx
cmp qword [rbx + 8], rcx
jne 0x1400d8f1b
dec byte [rsi + rbp + 8]
bswap rax
mov qword [rdi], rax
lea rax, [rsi + rbp]
add rax, 0xa
test rbx, rbx
je 0x1400d8e69
movzx edi, word [rax]
mov r13d, dword [rsp + 0x2c]
jmp 0x1400d82df
mov rcx, rbx
mov rdx, r12
mov r8, qword [rsp + 0xf0]
call fcn.1401a46d0
jmp 0x1400d8305
inc qword [rbp + 0x2b8]
inc qword [rbp + 0x2a8]
mov r13d, dword [rsp + 0x2c]
mov r12, r14
jmp 0x1400d79e3
movdqu xmm0, xmmword [rbp + 0x2a8]
pcmpeqd xmm1, xmm1
psubq xmm0, xmm1
movdqu xmmword [rbp + 0x2a8], xmm0
mov rcx, rbp
mov rdx, rsi
call fcn.1400c2020
mov r15, qword [rdi]
test r15, r15
mov r13d, dword [rsp + 0x2c]
mov r12, r14
jne 0x1400d87ce
jmp 0x1400d79e3
mov r8, rdi
mov rcx, rbx
xor edx, edx
call fcn.1400f5b50
jmp 0x1400d82f0
xor eax, eax
jmp 0x1400d8bcc
movabs rbp, 0xaaaaaaaaaaaaaaaa
xor ebx, ebx
jmp 0x1400d83b6
shl rcx, 5
mov rbp, qword [rbp + rcx + 0x20]
jmp 0x1400d83b6
xor r15d, r15d
mov r13d, dword [rsp + 0x2c]
movabs rdi, 0xaaaaaaaaaaaaaaaa
jmp 0x1400d818c
shl rcx, 5
mov rdi, qword [rbp + rcx + 0x20]
jmp 0x1400d8430
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400d88de
xor ebx, ebx
mov r13d, dword [rsp + 0x2c]
movabs rdi, 0xaaaaaaaaaaaaaaaa
jmp 0x1400d82cd
shl rcx, 5
mov rdi, qword [rbp + rcx + 0x20]
jmp 0x1400d84c8
je 0x1400d8d25
mov rdi, qword [rsp + 0x30]
mov byte [rdi + 2], 0
mov rcx, rdi
call fcn.1400e9130
mov rsi, rax
mov byte [rdi + 2], 1
inc qword [rax + 0x298]
jmp 0x1400d88ef
inc qword [rsi + 0x2b8]
inc qword [rsi + 0x2a8]
lea rsi, [r14 + r14*4]
mov rax, qword [rsp + 0x30]
lea rbp, [rax + rsi*8]
add rbp, 0x10
lea r14, [rax + 8]
mov edi, 1
xor ebx, ebx
mov r12, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov r13d, 0x40
mov rcx, r14
call r12
test al, al
jne 0x1400d8d7e
jmp 0x1400d8f54
pause
dec eax
jne 0x1400d8d5d
add ebx, edi
add edi, edi
cmp edi, 0x40
cmovge edi, r13d
cmp ebx, 0x3e8
jl 0x1400d8d4e
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rbp]
mov rbx, qword [rax]
test rbx, rbx
je 0x1400d8f67
mov byte [rsp + 0x60], 0
mov rcx, qword [rsp + 0x30]
mov ebp, dword [rcx + rsi*8 + 0x28]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400d8e04
mov rdx, rcx
not rdx
cmp qword [rbx + 8], rdx
jne 0x1400d8f1b
bswap rcx
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov edi, dword [rsp + 0x2c]
jmp 0x1400d7df7
movdqu xmm0, xmmword [rsi + 0x2a8]
pcmpeqd xmm1, xmm1
psubq xmm0, xmm1
movdqu xmmword [rsi + 0x2a8], xmm0
mov rcx, rsi
mov rdx, r14
call fcn.1400c2020
mov rbx, qword [rdi]
test rbx, rbx
jne 0x1400d891a
jmp 0x1400d8d25
xor ecx, ecx
jmp 0x1400d8db4
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400d8b74
movabs rdi, 0xaaaaaaaaaaaaaaaa
xor r15d, r15d
jmp 0x1400d859c
shl rcx, 5
mov rdi, qword [rbx + rcx + 0x20]
jmp 0x1400d859c
je 0x1400d8e69
mov rdi, qword [rsp + 0x30]
mov byte [rdi + 2], 0
mov rcx, rdi
call fcn.1400e9130
mov rsi, rax
mov byte [rdi + 2], 1
inc qword [rax + 0x298]
jmp 0x1400d8b85
inc qword [rsi + 0x2b8]
inc qword [rsi + 0x2a8]
lea rsi, [r15 + r15*4]
mov rax, qword [rsp + 0x30]
lea rbp, [rax + rsi*8]
add rbp, 0x10
lea r15, [rax + 8]
mov edi, 1
xor ebx, ebx
mov r12, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov r13d, 0x40
mov rcx, r15
call r12
test al, al
jne 0x1400d8ec2
jmp 0x1400d8fe1
pause
dec eax
jne 0x1400d8ea1
add ebx, edi
add edi, edi
cmp edi, 0x40
cmovge edi, r13d
cmp ebx, 0x3e8
jl 0x1400d8e92
mov rcx, r15
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rbp]
mov rbx, qword [rax]
test rbx, rbx
je 0x1400d8ff0
mov byte [rsp + 0x60], 0
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + rsi*8 + 0x28]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400d8f63
mov rdx, rcx
not rdx
cmp qword [rbx + 8], rdx
jne 0x1400d8f1b
bswap rcx
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov r13d, dword [rsp + 0x2c]
mov rdi, qword [rsp + 0x50]
jmp 0x1400d82d6
call 0x140152a70
movdqu xmm0, xmmword [rsi + 0x2a8]
pcmpeqd xmm1, xmm1
psubq xmm0, xmm1
movdqu xmmword [rsi + 0x2a8], xmm0
mov rcx, rsi
mov rdx, r15
call fcn.1400c2020
mov rbx, qword [rdi]
test rbx, rbx
jne 0x1400d8bb0
jmp 0x1400d8e69
mov eax, edi
test edi, edi
jg 0x1400d8d5d
jmp 0x1400d8d65
xor ecx, ecx
jmp 0x1400d8ef9
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rbp
mov rdx, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x2c]
mov r9, qword [rsp + 0x38]
call fcn.1400c21b0
test rax, rax
je 0x1400d905f
mov rbx, rax
and rax, 0xffffffffffe00000
mov rcx, rbx
shr rcx, 9
and ecx, 0xfe0
lea rbp, [rax + rcx]
add rbp, 0x1000
movzx edx, word [rbp + 0x1e]
mov rcx, rdx
neg rcx
shl rdx, 5
mov rax, rbp
sub rax, rdx
cmp byte [rax + 0x1d], 0
jne 0x1400d9077
shl rcx, 5
mov rax, qword [rbp + rcx + 0x10]
mov ebp, dword [rax + 0x18]
jmp 0x1400d8dbe
mov eax, edi
test edi, edi
jg 0x1400d8ea1
jmp 0x1400d8ea9
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rbp
mov rdx, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x2c]
mov r9, qword [rsp + 0x38]
call fcn.1400c21b0
test rax, rax
je 0x1400d9070
mov rbx, rax
and rax, 0xffffffffffe00000
mov rcx, rbx
shr rcx, 9
and ecx, 0xfe0
lea rbp, [rax + rcx]
add rbp, 0x1000
movzx edx, word [rbp + 0x1e]
mov rcx, rdx
neg rcx
shl rdx, 5
mov rax, rbp
sub rax, rdx
cmp byte [rax + 0x1d], 0
jne 0x1400d9085
shl rcx, 5
mov rax, qword [rbp + rcx + 0x10]
mov eax, dword [rax + 0x18]
jmp 0x1400d908e
movabs rbp, 0xaaaaaaaaaaaaaaaa
xor ebx, ebx
jmp 0x1400d8dbe
xor ebx, ebx
jmp 0x1400d8f03
shl rcx, 5
mov rbp, qword [rbp + rcx + 0x20]
jmp 0x1400d8dbe
shl rcx, 5
mov rax, qword [rbp + rcx + 0x20]
mov qword [rsp + 0x50], rax
jmp 0x1400d8f03