Function at 0x1400787d0
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, 0x98
mov r14, r9
mov r15d, edx
mov qword [rsp + 0x30], rcx
mov r9, qword [rsp + 0x100]
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0x90], rax
test r8, r8
jne 0x140078987
mov r13d, r15d
test r15b, 4
je 0x1400791fd
movabs r15, 0xaaaaaaaaaaaaaaaa
mov eax, 0x40
mov ecx, 0x40
test r14, r14
je 0x14007883f
bsr rcx, r14
xor rcx, 0x3f
sub rax, rcx
lea rcx, [0x14013adb0]
mov cl, byte [rax + rcx]
mov rdx, r14
shr rdx, cl
and edx, 7
lea rcx, [0x14013ae00]
mov rcx, qword [rcx + rax*8]
and rcx, r14
lea rax, [rdx + rax*8]
cmp rcx, 1
sbb rax, 0xffffffffffffffff
lea rcx, [0x14013a598]
movzx ebp, word [rcx + rax*2 + 0x400]
mov byte [rsp + 0x70], 0
mov qword [rsp + 0x80], r15
mov rsi, qword [rsp + 0x30]
cmp byte [rsi], 2
je 0x1400799ab
cmp byte [rsi + 2], 0
je 0x14007995c
mov edi, dword [0x14015e040]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test ebx, ebx
jne 0x140079382
cmp rdi, 2
jb 0x1400799c3
add qword [rdi + 0x5a0], 1
cmp word [0x1401572c0], bp
jb 0x140078f06
mov rsi, rbp
shl rsi, 4
mov rbx, rdi
add rbx, rsi
mov r12, qword [rdi + rsi]
test r12, r12
je 0x140078ff2
add qword [rdi + 0x5a8], 1
mov rax, qword [r12]
test rax, rax
je 0x140078e2c
mov rcx, rax
not rcx
cmp qword [r12 + 8], rcx
jne 0x14007a2bf
bswap rax
prefetcht0 byte [rax]
add byte [rdi + rsi + 8], 0xff
mov qword [rbx], rax
movzx eax, word [rdi + rsi + 0xa]
mov qword [rsp + 0x80], rax
sub qword [rdi + 0x590], rax
test r12, r12
je 0x140078f14
mov r15, qword [rsp + 0x80]
test r13b, 2
jne 0x1400799df
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140097620
mov rax, r12
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x48], r8
test r14, r14
je 0x1400793c7
cmp r14, 0x7fe00001
jae 0x1400799fc
mov eax, r15d
mov r13b, byte [0x14015fb10]
movabs rdx, 0xaaaaaaaaaaaaaaaa
mov rcx, rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x60], rdx
and eax, 4
je 0x1400797c5
xor r13d, r13d
test r13b, r13b
mov qword [rsp + 0x38], r14
jne 0x140079a5e
mov dword [rsp + 0x44], r15d
mov rcx, qword [rsp + 0x48]
mov rax, rcx
and rax, 0xffffffffffe00000
shr rcx, 9
and ecx, 0xfe0
lea rbp, [rax + rcx]
add rbp, 0x1000
movzx eax, byte [rax + rcx + 0x101e]
mov rdi, rax
neg rdi
shl rax, 5
mov rbx, rbp
sub rbx, rax
mov rax, rbx
and rax, 0xfffffffffffff000
mov rsi, qword [rax]
lea r14, [rsi + 8]
mov r12d, 1
mov dword [rsp + 0x5c], 0
mov r15, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, r14
call r15
test al, al
jne 0x140078a82
jmp 0x14007957e
pause
dec eax
jne 0x140078a51
mov ecx, dword [rsp + 0x5c]
add ecx, r12d
add r12d, r12d
cmp r12d, 0x40
mov eax, 0x40
cmovge r12d, eax
mov dword [rsp + 0x5c], ecx
cmp ecx, 0x3e8
jl 0x140078a42
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
shl rdi, 5
cmp byte [rbp + rdi + 0x1d], 0
jne 0x140079a7a
mov rax, qword [rbp + rdi + 0x10]
mov eax, dword [rax + 0x18]
mov r15d, dword [rsp + 0x44]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp + rdi + 0x10]
cmp byte [rax + 0x1c], 0
je 0x140079a0e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, 0x40
mov ecx, 0x40
mov r14, qword [rsp + 0x38]
test r14, r14
je 0x140078ad7
bsr rcx, r14
xor rcx, 0x3f
sub rax, rcx
lea rcx, [0x14013adb0]
mov cl, byte [rax + rcx]
mov rdx, r14
shr rdx, cl
and edx, 7
lea rcx, [0x14013ae00]
mov rcx, qword [rcx + rax*8]
and rcx, r14
lea rax, [rdx + rax*8]
cmp rcx, 1
sbb rax, 0xffffffffffffffff
lea rcx, [0x14013a598]
movzx eax, word [rcx + rax*2 + 0x400]
lea rax, [rax + rax*4]
cmp byte [rsi + rax*8 + 0x2c], 0
je 0x140079a83
mov eax, dword [rsi + rax*8 + 0x28]
movzx ecx, byte [rbp + 0x1e]
shl rcx, 5
neg rcx
mov rcx, qword [rbp + rcx + 0x10]
mov ecx, dword [rcx + 0x18]
cmp rax, rcx
je 0x140078fd7
test r15b, 4
je 0x14007964b
mov eax, 0x40
mov ecx, 0x40
test r14, r14
movabs rbx, 0xaaaaaaaaaaaaaaaa
je 0x140078b70
bsr rcx, r14
xor rcx, 0x3f
sub rax, rcx
lea rcx, [0x14013adb0]
mov cl, byte [rax + rcx]
mov rdx, r14
shr rdx, cl
and edx, 7
lea rcx, [0x14013ae00]
mov rcx, qword [rcx + rax*8]
and rcx, r14
lea rax, [rdx + rax*8]
cmp rcx, 1
sbb rax, 0xffffffffffffffff
lea rcx, [0x14013a598]
movzx ebp, word [rcx + rax*2 + 0x400]
mov byte [rsp + 0x70], 0
mov qword [rsp + 0x80], rbx
mov rsi, qword [rsp + 0x30]
cmp byte [rsi], 2
je 0x140079bf3
cmp byte [rsi + 2], 0
je 0x140079b73
mov edi, dword [0x14015e040]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test ebx, ebx
jne 0x140079593
cmp rdi, 2
jb 0x140079c0b
add qword [rdi + 0x5a0], 1
cmp word [0x1401572c0], bp
jb 0x140078e33
mov rsi, rbp
shl rsi, 4
mov rbx, rdi
add rbx, rsi
mov r12, qword [rdi + rsi]
test r12, r12
je 0x140079396
inc qword [rdi + 0x5a8]
mov rax, qword [r12]
test rax, rax
je 0x1400790f3
mov rcx, rax
not rcx
cmp qword [r12 + 8], rcx
jne 0x14007a2bf
bswap rax
prefetcht0 byte [rax]
dec byte [rdi + rsi + 8]
mov qword [rbx], rax
movzx eax, word [rdi + rsi + 0xa]
mov qword [rsp + 0x80], rax
sub qword [rdi + 0x590], rax
test r12, r12
je 0x140078e41
mov rsi, qword [rsp + 0x80]
test r15b, 2
jne 0x140079c27
test r12, r12
je 0x1400799fc
mov rax, qword [rsp + 0x60]
cmp rax, r14
ja 0x140078ca5
mov r14, rax
mov rcx, r12
mov rdi, qword [rsp + 0x48]
mov rdx, rdi
mov r8, r14
call fcn.140099ad0
mov al, byte [0x14015fb10]
test al, 1
je 0x140078cda
mov rcx, rdi
call fcn.140087dd0
mov rcx, rdi
int3
prefetcht0 byte [rdi]
mov rsi, rdi
and rsi, 0xffffffffffe00000
shr rdi, 9
and edi, 0xfe0
lea r14, [rsi + rdi]
add r14, 0x1000
movzx eax, byte [rsi + rdi + 0x101e]
mov r13, rax
neg r13
shl rax, 5
mov qword [rsp + 0x30], r14
sub r14, rax
prefetcht0 byte [r14]
mov rax, r14
and rax, 0xfffffffffffff000
mov r15, qword [rax]
cmp byte [r15], 2
je 0x140079a95
cmp byte [r15 + 2], 0
je 0x140079023
mov rax, r13
shl rax, 5
mov rcx, qword [rsp + 0x30]
mov rdi, qword [rcx + rax + 0x10]
lea rbx, [r15 + 0x10]
lea rax, [r15 + 0x1410]
cmp rax, rdi
setae al
cmp rbx, rdi
ja 0x140079c44
test al, al
je 0x140079023
mov ebp, dword [0x14015e040]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test esi, esi
jne 0x1400795a0
cmp rbp, 2
jb 0x140079023
sub rdi, rbx
sar rdi, 3
add qword [rbp + 0x5c8], 1
movabs rax, 0xcccccccccccccccd
imul rax, rdi
movzx ecx, word [0x1401572c0]
cmp rax, rcx
ja 0x14007901c
shl rax, 4
mov rcx, qword [rbp + rax]
bswap rcx
mov rdx, qword [rsp + 0x48]
mov qword [rdx], rcx
not rcx
mov qword [rdx + 8], rcx
mov qword [rbp + rax], rdx
mov dl, byte [rbp + rax + 8]
add dl, 1
mov byte [rbp + rax + 8], dl
movzx ecx, word [rbp + rax + 0xa]
add qword [rbp + 0x590], rcx
add qword [rbp + 0x5d0], 1
mov cl, byte [rbp + rax + 9]
cmp dl, cl
ja 0x140079c4b
mov al, byte [rbp + 0x598]
test al, 1
je 0x140078960
mov rcx, rbp
int3
xor eax, eax
jmp 0x140078929
inc qword [rdi + 0x5c0]
inc qword [rdi + 0x5b0]
lea rdi, [rbp*4]
add rdi, rbp
mov rax, qword [rsp + 0x30]
lea rsi, [rax + rdi*8]
add rsi, 0x10
lea r14, [rax + 8]
mov ebx, 1
xor ebp, ebp
mov r12, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, r14
call r12
test al, al
jne 0x140078e9f
jmp 0x1400797ce
pause
dec eax
jne 0x140078e7a
add ebp, ebx
add ebx, ebx
cmp ebx, 0x40
mov eax, 0x40
cmovge ebx, eax
cmp ebp, 0x3e8
jl 0x140078e6b
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rsi]
mov r12, qword [rax]
test r12, r12
je 0x14007917c
mov byte [rsp + 0x70], 0
mov rcx, qword [rsp + 0x30]
mov esi, dword [rcx + rdi*8 + 0x28]
mov rcx, qword [r12]
test rcx, rcx
je 0x1400793c0
mov rdx, rcx
not rdx
cmp qword [r12 + 8], rdx
jne 0x14007a2bf
bswap rcx
prefetcht0 byte [rcx]
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test r12, r12
mov r14, qword [rsp + 0x38]
jne 0x140078c85
xor r12d, r12d
jmp 0x140078c8f
inc qword [rdi + 0x5c0]
inc qword [rdi + 0x5b0]
mov qword [rsp + 0x38], r14
lea rdi, [rbp*4]
add rdi, rbp
mov rax, qword [rsp + 0x30]
lea rsi, [rax + rdi*8]
add rsi, 0x10
lea rcx, [rax + 8]
mov ebx, 1
xor ebp, ebp
mov r12, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov r14, rcx
call r12
test al, al
jne 0x140078f77
jmp 0x1400797dd
pause
dec eax
jne 0x140078f52
add ebp, ebx
mov rcx, r14
add ebx, ebx
cmp ebx, 0x40
mov eax, 0x40
cmovge ebx, eax
cmp ebp, 0x3e8
jl 0x140078f43
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rsi]
mov r12, qword [rax]
test r12, r12
je 0x1400790fa
mov byte [rsp + 0x70], 0
mov rcx, qword [rsp + 0x30]
mov r15d, dword [rcx + rdi*8 + 0x28]
mov rcx, qword [r12]
test rcx, rcx
je 0x14007938f
mov rdx, rcx
not rdx
cmp qword [r12 + 8], rdx
jne 0x14007a2bf
bswap rcx
prefetcht0 byte [rcx]
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test r12, r12
jne 0x140078956
jmp 0x140079564
lea rax, [rdi + rbp]
add rax, 0x1d
cmp byte [rax], 0
jne 0x140079cb3
mov r12, qword [rsp + 0x48]
jmp 0x140078960
inc qword [rdi + 0x5b8]
inc qword [rdi + 0x5b0]
mov rcx, rdi
mov rdx, rbp
int3
inc qword [rbp + 0x5d8]
add r15, 8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov esi, 1
xor edi, edi
mov rbp, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, r15
call rbp
test al, al
jne 0x140079073
jmp 0x1400797ec
pause
dec eax
jne 0x14007904e
add edi, esi
add esi, esi
cmp esi, 0x40
mov eax, 0x40
cmovge esi, eax
cmp edi, 0x3e8
jl 0x140079040
mov rcx, r15
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [r14]
mov rcx, qword [rsp + 0x48]
cmp rax, rcx
je 0x140079cbc
bswap rax
mov qword [rcx], rax
not rax
mov qword [rcx + 8], rax
mov qword [r14], rcx
shl r13, 5
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + r13 + 0x18]
dec eax
mov word [rcx + r13 + 0x18], ax
test ax, ax
jle 0x14007956c
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x80], xmm0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsp + 0x80], 0
je 0x140078960
lea rcx, [rsp + 0x80]
call fcn.140045120
jmp 0x140078960
xor eax, eax
jmp 0x140078c59
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, rsi
mov rdx, qword [rsp + 0x30]
mov r8d, r13d
mov r9, qword [rsp + 0x38]
call fcn.14005da40
test rax, rax
je 0x140079cbf
mov r12, rax
and rax, 0xffffffffffe00000
mov rcx, r12
shr rcx, 9
and ecx, 0xfe0
lea rbp, [rax + rcx]
add rbp, 0x1000
movzx edx, byte [rbp + 0x1e]
mov rcx, rdx
neg rcx
shl rdx, 5
mov rax, rbp
sub rax, rdx
cmp byte [rax + 0x1d], 0
jne 0x140079cc7
shl rcx, 5
mov rax, qword [rbp + rcx + 0x10]
mov r15d, dword [rax + 0x18]
jmp 0x140078fc0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, rsi
mov rdx, qword [rsp + 0x30]
mov r8d, r15d
mov r9, qword [rsp + 0x38]
call fcn.14005da40
test rax, rax
je 0x140079cd5
mov r12, rax
and rax, 0xffffffffffe00000
mov rcx, r12
shr rcx, 9
and ecx, 0xfe0
lea rbp, [rax + rcx]
add rbp, 0x1000
movzx edx, byte [rbp + 0x1e]
mov rcx, rdx
neg rcx
shl rdx, 5
mov rax, rbp
sub rax, rdx
cmp byte [rax + 0x1d], 0
jne 0x14007963d
shl rcx, 5
mov rax, qword [rbp + rcx + 0x10]
mov esi, dword [rax + 0x18]
jmp 0x140078ee7
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x70], 0
mov r15b, byte [0x14015fb10]
test r15b, 1
jne 0x140079cee
movabs r14, 0xaaaaaaaaaaaaaaaa
mov eax, 0x40
mov ecx, 0x40
mov rbp, qword [rsp + 0x38]
test rbp, rbp
je 0x140079242
bsr rcx, rbp
xor rcx, 0x3f
sub rax, rcx
lea rcx, [0x14013adb0]
mov cl, byte [rax + rcx]
mov rdx, rbp
shr rdx, cl
and edx, 7
lea rcx, [0x14013ae00]
mov rcx, qword [rcx + rax*8]
and rcx, rbp
lea rax, [rdx + rax*8]
cmp rcx, 1
sbb rax, 0xffffffffffffffff
lea rcx, [0x14013a598]
movzx ebx, word [rcx + rax*2 + 0x400]
mov byte [rsp + 0x60], 0
mov qword [rsp + 0x80], r14
mov rsi, qword [rsp + 0x30]
cmp byte [rsi], 2
je 0x140079d27
mov dword [rsp + 0x44], r13d
cmp byte [rsi + 2], 0
jne 0x140079d3f
lea rax, [rbx + rbx*4]
lea rdi, [rsi + rax*8]
add rdi, 0x10
lea r12, [rsi + 8]
mov ebp, 1
xor esi, esi
mov r13, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, r12
call r13
test al, al
jne 0x1400792fd
jmp 0x14007988a
pause
dec eax
jne 0x1400792d8
add esi, ebp
add ebp, ebp
cmp ebp, 0x40
mov eax, 0x40
cmovge ebp, eax
cmp esi, 0x3e8
jl 0x1400792c9
mov rcx, r12
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rdi]
mov rbp, qword [rax]
test rbp, rbp
je 0x140079802
mov byte [rsp + 0x60], 0
lea rcx, [rbx + rbx*4]
mov rdx, qword [rsp + 0x30]
mov r14d, dword [rdx + rcx*8 + 0x28]
mov rcx, qword [rbp]
test rcx, rcx
mov esi, dword [rsp + 0x44]
je 0x1400797fb
mov rdx, rcx
not rdx
cmp qword [rbp + 8], rdx
jne 0x14007a2bf
bswap rcx
prefetcht0 byte [rcx]
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test rbp, rbp
je 0x140079ce7
test sil, 2
jne 0x140079ddf
mov qword [rsp + 0x70], rbp
test r15b, 1
jne 0x140079d0d
mov r12, qword [rsp + 0x70]
jmp 0x140078960
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400788c4
xor ecx, ecx
jmp 0x140078fb9
inc qword [rdi + 0x5b8]
inc qword [rdi + 0x5b0]
mov rcx, rdi
mov rdx, rbp
int3
xor ecx, ecx
jmp 0x140078ee0
mov al, byte [0x14015fb10]
test al, 1
jne 0x1400795bc
mov rax, qword [rsp + 0x48]
prefetcht0 byte [rax]
mov rbx, rax
and rbx, 0xffffffffffe00000
shr rax, 9
and eax, 0xfe0
lea r14, [rbx + rax]
add r14, 0x1000
movzx eax, byte [r14 + 0x1e]
mov r13, rax
neg r13
shl rax, 5
mov r12, r14
sub r12, rax
prefetcht0 byte [r12]
mov rax, r12
and rax, 0xfffffffffffff000
mov r15, qword [rax]
cmp byte [r15], 2
je 0x140079dfc
cmp byte [r15 + 2], 0
je 0x1400794ad
mov rax, r13
shl rax, 5
mov rsi, qword [r14 + rax + 0x10]
lea rdi, [r15 + 0x10]
cmp rdi, rsi
ja 0x1400794ad
lea rax, [r15 + 0x1410]
cmp rax, rsi
jb 0x1400794ad
mov ebx, dword [0x14015e040]
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 0x140079899
cmp rbx, 2
jb 0x1400794ad
sub rsi, rdi
sar rsi, 3
inc qword [rbx + 0x5c8]
movabs rax, 0xcccccccccccccccd
imul rax, rsi
movzx ecx, word [0x1401572c0]
cmp rax, rcx
jbe 0x1400795db
inc qword [rbx + 0x5d8]
add r15, 8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov ebx, 1
xor ebp, ebp
mov rsi, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, r15
call rsi
test al, al
jne 0x1400794fd
jmp 0x1400798a6
pause
dec eax
jne 0x1400794d8
add ebp, ebx
add ebx, ebx
cmp ebx, 0x40
mov eax, 0x40
cmovge ebx, eax
cmp ebp, 0x3e8
jl 0x1400794ca
mov rcx, r15
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [r12]
mov rcx, qword [rsp + 0x48]
cmp rax, rcx
je 0x140079eca
bswap rax
mov qword [rcx], rax
not rax
mov qword [rcx + 8], rax
mov qword [r12], rcx
shl r13, 5
movzx eax, word [r14 + r13 + 0x18]
dec eax
mov word [r14 + r13 + 0x18], ax
test ax, ax
jle 0x1400795ad
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x80], xmm0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsp + 0x80], 0
jne 0x140079ecd
xor r12d, r12d
jmp 0x140078960
lea rdx, [rsp + 0x70]
mov rcx, r14
int3
mov eax, r12d
test r12d, r12d
jg 0x140078a51
mov ecx, dword [rsp + 0x5c]
jmp 0x140078a5e
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140078bf5
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140078d8f
lea rdx, [rsp + 0x70]
mov rcx, r12
int3
mov rsi, qword [rsp + 0x48]
mov rcx, rsi
call fcn.140087dd0
mov rcx, rsi
int3
shl rax, 4
mov rcx, qword [rbx + rax]
bswap rcx
mov rdx, qword [rsp + 0x48]
mov qword [rdx], rcx
not rcx
mov qword [rdx + 8], rcx
mov qword [rbx + rax], rdx
mov dl, byte [rbx + rax + 8]
inc dl
mov byte [rbx + rax + 8], dl
movzx ecx, word [rbx + rax + 0xa]
add qword [rbx + 0x590], rcx
inc qword [rbx + 0x5d0]
mov cl, byte [rbx + rax + 9]
cmp dl, cl
ja 0x140079f58
mov al, byte [rbx + 0x598]
test al, 1
je 0x140079564
mov rcx, rbx
int3
shl rcx, 5
mov rsi, qword [rbp + rcx + 0x20]
jmp 0x140078ee7
mov qword [rsp + 0x70], 0
mov r12b, byte [0x14015fb10]
test r12b, 1
movabs rdi, 0xaaaaaaaaaaaaaaaa
jne 0x140079f79
mov eax, 0x40
mov ecx, 0x40
test r14, r14
je 0x140079686
bsr rcx, r14
xor rcx, 0x3f
sub rax, rcx
lea rcx, [0x14013adb0]
mov cl, byte [rax + rcx]
mov rdx, r14
shr rdx, cl
and edx, 7
lea rcx, [0x14013ae00]
mov rcx, qword [rcx + rax*8]
and rcx, r14
lea rax, [rdx + rax*8]
cmp rcx, 1
sbb rax, 0xffffffffffffffff
lea rcx, [0x14013a598]
movzx esi, word [rcx + rax*2 + 0x400]
mov byte [rsp + 0x6f], 0
mov qword [rsp + 0x80], rdi
mov rbx, qword [rsp + 0x30]
cmp byte [rbx], 2
je 0x140079fb6
cmp byte [rbx + 2], 0
jne 0x140079fce
lea rax, [rsi + rsi*4]
lea rdi, [rbx + rax*8]
add rdi, 0x10
lea rcx, [rbx + 8]
mov ebx, 1
xor ebp, ebp
mov r14, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov r13, rcx
call r14
test al, al
jne 0x14007973c
jmp 0x14007994d
pause
dec eax
jne 0x140079717
add ebp, ebx
add ebx, ebx
cmp ebx, 0x40
mov eax, 0x40
cmovge ebx, eax
cmp ebp, 0x3e8
mov rcx, r13
jl 0x140079708
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rdi]
mov rbx, qword [rax]
test rbx, rbx
je 0x1400798bc
mov byte [rsp + 0x6f], 0
lea rcx, [rsi + rsi*4]
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx*8 + 0x28]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rbx]
test rcx, rcx
mov r14, qword [rsp + 0x38]
je 0x1400798b5
mov rdx, rcx
not rdx
cmp qword [rbx + 8], rdx
jne 0x14007a2bf
bswap rcx
prefetcht0 byte [rcx]
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test rbx, rbx
je 0x140079f72
test r15b, 2
jne 0x14007a075
mov qword [rsp + 0x70], rbx
test r12b, 1
jne 0x140079f9e
mov r12, qword [rsp + 0x70]
jmp 0x140078c8f
and r13b, 1
jmp 0x1400789cf
mov eax, ebx
test ebx, ebx
jg 0x140078e7a
jmp 0x140078e82
mov eax, ebx
test ebx, ebx
jg 0x140078f52
jmp 0x140078f5a
mov eax, esi
test esi, esi
jg 0x14007904e
jmp 0x140079056
xor ecx, ecx
jmp 0x140079346
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, rdi
mov rdx, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x44]
mov r9, qword [rsp + 0x38]
call fcn.14005da40
test rax, rax
je 0x14007a13f
mov rbp, rax
and rax, 0xffffffffffe00000
mov rcx, rbp
shr rcx, 9
and ecx, 0xfe0
lea rbx, [rax + rcx]
add rbx, 0x1000
movzx edx, byte [rbx + 0x1e]
mov rcx, rdx
neg rcx
shl rdx, 5
mov rax, rbx
sub rax, rdx
cmp byte [rax + 0x1d], 0
jne 0x14007a146
shl rcx, 5
mov rax, qword [rbx + rcx + 0x10]
mov r14d, dword [rax + 0x18]
mov esi, dword [rsp + 0x44]
jmp 0x14007934d
mov eax, ebp
test ebp, ebp
jg 0x1400792d8
jmp 0x1400792e0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140079474
mov eax, ebx
test ebx, ebx
jg 0x1400794d8
jmp 0x1400794e0
xor ecx, ecx
jmp 0x140079789
lea rax, [rsp + 0x6f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, rdi
mov rdx, qword [rsp + 0x30]
mov esi, r15d
mov r8d, r15d
mov r9, qword [rsp + 0x38]
call fcn.14005da40
test rax, rax
je 0x14007a154
mov rbx, rax
and rax, 0xffffffffffe00000
mov rcx, rbx
shr rcx, 9
and ecx, 0xfe0
lea rbp, [rax + rcx]
add rbp, 0x1000
movzx edx, byte [rbp + 0x1e]
mov rcx, rdx
neg rcx
shl rdx, 5
mov rax, rbp
sub rax, rdx
cmp byte [rax + 0x1d], 0
jne 0x14007a15b
shl rcx, 5
mov rax, qword [rbp + rcx + 0x10]
mov eax, dword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov r15d, esi
mov r14, qword [rsp + 0x38]
jmp 0x140079790
mov eax, ebx
test ebx, ebx
jg 0x140079717
jmp 0x14007971f
mov rbx, r14
lea rsi, [rbp*4]
add rsi, rbp
mov rdi, qword [rsp + 0x30]
lea rcx, [rdi + 8]
mov r14, rcx
call fcn.140073d70
mov rax, qword [rdi + rsi*8 + 0x10]
mov r12, qword [rax]
test r12, r12
je 0x140079f2d
mov byte [rsp + 0x70], 0
lea rcx, [rbp*4]
add rcx, rbp
mov rdx, qword [rsp + 0x30]
mov r15d, dword [rdx + rcx*8 + 0x28]
jmp 0x140078f95
mov al, byte [0x1401572b8]
cmp al, 2
jne 0x140078899
int3
lea r8, [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
mov edx, ebp
call fcn.140043460
mov r12, rax
jmp 0x140078945
cmp byte [rsp + 0x70], 0
jne 0x140078960
mov rcx, r12
xor edx, edx
mov r8, r15
call fcn.140099ee0
jmp 0x140078960
test r15b, 1
jne 0x140079564
mov rcx, r14
int3
mov rcx, rsi
mov rdx, rbx
mov r8, qword [rsp + 0x38]
int3
lea rcx, [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
int3
mov rax, qword [rbx + 0x20]
jmp 0x140078a99
lea rax, [r14 + 0xfff]
and rax, 0xfffffffffffff000
jmp 0x140078b29
mov al, byte [0x1401572b8]
cmp al, 2
je 0x14007a09a
mov rax, r13
shl rax, 5
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + rax + 0x10]
lea rdx, [r15 + 0x10]
cmp rdx, rcx
ja 0x140078d30
lea rdx, [r15 + 0x1410]
cmp rdx, rcx
jb 0x140078d30
mov edx, dword [rcx + 0x18]
mov rcx, qword [rsp + 0x30]
cmp byte [rcx + rax + 0x1d], 0
mov r15, rdx
jne 0x14007a0a4
mov rax, qword [0x140157290]
and eax, 1
shl rax, 0xe
lea rdi, [rax + rsi]
lea rbp, [rax + rsi]
add rbp, 0x4000
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
shr rcx, 4
shr ebx, 0xa
and ebx, 0x7ff
mov esi, 1
shl rsi, cl
mov rax, qword [rdi + rbx*8 + 0x4000]
mov rcx, rax
or rcx, rsi
lock cmpxchg qword [rbp + rbx*8], rcx
jne 0x140079b29
test rax, rsi
jne 0x14007a095
mov rax, rdx
lock xadd qword [0x140157280], rax
add rax, rdx
mov rcx, qword [0x140157288]
cmp rax, rcx
jbe 0x140079c65
mov rcx, qword [0x1401572b0]
call fcn.1400de0a0
mov esi, eax
jmp 0x140079c67
lea rsi, [rbp*4]
add rsi, rbp
mov rdi, qword [rsp + 0x30]
lea r14, [rdi + 8]
mov rcx, r14
call fcn.140073d70
mov rax, qword [rdi + rsi*8 + 0x10]
mov r12, qword [rax]
test r12, r12
je 0x14007a0ad
mov byte [rsp + 0x70], 0
lea rcx, [rbp*4]
add rcx, rbp
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx*8 + 0x28]
mov qword [rsp + 0x50], rcx
mov rcx, qword [r12]
test rcx, rcx
je 0x140079cac
mov rdx, rcx
not rdx
cmp qword [r12 + 8], rdx
jne 0x14007a2bf
bswap rcx
prefetcht0 byte [rcx]
mov qword [rax], rcx
inc word [rax + 0x18]
mov rsi, qword [rsp + 0x50]
jmp 0x140078ee7
mov al, byte [0x1401572b8]
cmp al, 2
jne 0x140078bca
int3
lea r8, [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
mov edx, ebp
call fcn.140043460
mov r12, rax
jmp 0x140078c74
cmp byte [rsp + 0x70], 0
jne 0x140078c8f
mov r8, rsi
mov rcx, r12
xor edx, edx
call fcn.140099ee0
jmp 0x140078c8f
xor eax, eax
jmp 0x140078d66
mov rdx, rbp
add rdx, rax
movzx r8d, cl
shr r8, 1
mov rcx, rbp
int3
xor esi, esi
cmp byte [0x1401572b9], 1
jne 0x140079c7f
mov rcx, qword [rsp + 0x48]
xor edx, edx
mov r8, r15
call fcn.140099ee0
test sil, sil
je 0x140078960
mov al, byte [0x1401572b8]
test al, al
jne 0x140078960
lea rcx, [0x140157280]
mov edx, 1
int3
xor ecx, ecx
jmp 0x140079be2
mov qword [rbx + 0x20], r14
jmp 0x140078fe8
int3
xor r12d, r12d
jmp 0x140078fc0
shl rcx, 5
mov r15, qword [rbp + rcx + 0x20]
jmp 0x140078fc0
xor r12d, r12d
movabs rsi, 0xaaaaaaaaaaaaaaaa
jmp 0x140078ee7
xor ebp, ebp
jmp 0x140079369
lea rcx, [rsp + 0x70]
mov edx, r13d
mov r8, qword [rsp + 0x38]
int3
mov rcx, rbp
mov rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x100]
call fcn.1401162d0
jmp 0x140079378
mov al, byte [0x1401572b8]
cmp al, 2
jne 0x14007929c
int3
call fcn.140073d30
cmp rax, 2
jb 0x14007a169
mov rsi, rax
inc qword [rax + 0x5a0]
cmp word [0x1401572c0], bx
jb 0x14007a185
mov rdi, rbx
shl rdi, 4
mov r12, rsi
add r12, rdi
mov rbp, qword [rsi + rdi]
test rbp, rbp
je 0x14007a1f3
inc qword [rsi + 0x5a8]
mov rax, qword [rbp]
test rax, rax
je 0x140079edf
mov rcx, rax
not rcx
cmp qword [rbp + 8], rcx
jne 0x14007a2bf
bswap rax
prefetcht0 byte [rax]
dec byte [rsi + rdi + 8]
mov qword [r12], rax
movzx eax, word [rsi + rdi + 0xa]
mov qword [rsp + 0x80], rax
sub qword [rsi + 0x590], rax
test rbp, rbp
je 0x14007a193
mov r14, qword [rsp + 0x80]
mov esi, dword [rsp + 0x44]
jmp 0x14007935f
cmp byte [rsp + 0x60], 0
jne 0x140079369
mov rcx, rbp
xor edx, edx
mov r8, r14
call fcn.140099ee0
jmp 0x140079369
mov al, byte [0x1401572b8]
cmp al, 2
je 0x14007a21e
mov rax, r13
shl rax, 5
mov rcx, qword [r14 + rax + 0x10]
lea rdx, [r15 + 0x10]
cmp rdx, rcx
ja 0x14007942b
lea rdx, [r15 + 0x1410]
cmp rdx, rcx
jb 0x14007942b
mov edx, dword [rcx + 0x18]
cmp byte [r14 + rax + 0x1d], 0
mov r14, rdx
jne 0x14007a228
mov rax, qword [0x140157290]
and eax, 1
shl rax, 0xe
lea rdi, [rax + rbx]
lea rbp, [rax + rbx]
add rbp, 0x4000
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
shr rcx, 4
shr ebx, 0xa
and ebx, 0x7ff
mov esi, 1
shl rsi, cl
mov rax, qword [rdi + rbx*8 + 0x4000]
mov rcx, rax
or rcx, rsi
lock cmpxchg qword [rbp + rbx*8], rcx
jne 0x140079e87
test rax, rsi
jne 0x14007a095
mov rax, rdx
lock xadd qword [0x140157280], rax
add rax, rdx
mov rcx, qword [0x140157288]
cmp rax, rcx
jbe 0x140079ee6
mov rcx, qword [0x1401572b0]
call fcn.1400de0a0
mov esi, eax
jmp 0x140079ee8
int3
lea rcx, [rsp + 0x80]
call fcn.140045120
jmp 0x140079564
xor eax, eax
jmp 0x140079da9
xor esi, esi
cmp byte [0x1401572b9], 1
jne 0x140079f00
mov rcx, qword [rsp + 0x48]
xor edx, edx
mov r8, r14
call fcn.140099ee0
test sil, sil
je 0x140079564
mov al, byte [0x1401572b8]
test al, al
jne 0x140079564
lea rcx, [0x140157280]
mov edx, 1
int3
mov rdx, qword [rsp + 0x30]
lea rcx, [rdx + rsi*8]
add rcx, 0x10
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov r8d, r13d
mov r9, rbx
jmp 0x14007911d
mov rdx, rbx
add rdx, rax
movzx r8d, cl
shr r8, 1
mov rcx, rbx
int3
xor ebx, ebx
jmp 0x1400797ac
lea rcx, [rsp + 0x70]
mov edx, r15d
mov r8, r14
mov r9, qword [rsp + 0x100]
int3
mov rcx, rbx
mov rdx, r14
mov r8, qword [rsp + 0x100]
call fcn.1401162d0
jmp 0x1400797bb
mov al, byte [0x1401572b8]
cmp al, 2
jne 0x1400796e0
int3
call fcn.140073d30
cmp rax, 2
jb 0x14007a236
mov rdi, rax
inc qword [rax + 0x5a0]
cmp word [0x1401572c0], si
jb 0x14007a252
mov r14, rsi
shl r14, 4
mov rbp, rdi
add rbp, r14
mov rbx, qword [rdi + r14]
test rbx, rbx
je 0x14007a2c4
inc qword [rdi + 0x5a8]
mov rax, qword [rbx]
test rax, rax
je 0x14007a138
mov rcx, rax
not rcx
cmp qword [rbx + 8], rcx
jne 0x14007a2bf
bswap rax
prefetcht0 byte [rax]
dec byte [rdi + r14 + 8]
mov qword [rbp], rax
movzx eax, word [rdi + r14 + 0xa]
mov qword [rsp + 0x80], rax
sub qword [rdi + 0x590], rax
test rbx, rbx
je 0x14007a260
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov r14, qword [rsp + 0x38]
jmp 0x1400797a2
cmp byte [rsp + 0x6f], 0
jne 0x14007a08b
mov rcx, rbx
xor edx, edx
mov r8, qword [rsp + 0x50]
call fcn.140099ee0
mov r14, qword [rsp + 0x38]
jmp 0x1400797ac
int3
int3
mov r15, qword [r14 + 0x20]
jmp 0x140079ae7
mov rdx, qword [rsp + 0x30]
lea rcx, [rdx + rsi*8]
add rcx, 0x10
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov r8d, r15d
mov r9, qword [rsp + 0x38]
call fcn.14005da40
test rax, rax
je 0x14007a2ef
mov r12, rax
and rax, 0xffffffffffe00000
mov rcx, r12
shr rcx, 9
and ecx, 0xfe0
lea rbp, [rax + rcx]
add rbp, 0x1000
movzx edx, byte [rbp + 0x1e]
mov rcx, rdx
neg rcx
shl rdx, 5
mov rax, rbp
sub rax, rdx
cmp byte [rax + 0x1d], 0
jne 0x14007a2f7
shl rcx, 5
mov rax, qword [rbp + rcx + 0x10]
mov eax, dword [rax + 0x18]
mov qword [rsp + 0x50], rax
jmp 0x140079be9
xor eax, eax
jmp 0x14007a037
xor ebp, ebp
jmp 0x140079881
shl rcx, 5
mov r14, qword [rbx + rcx + 0x20]
jmp 0x140079881
xor ebx, ebx
jmp 0x140079940
shl rcx, 5
mov rax, qword [rbp + rcx + 0x20]
jmp 0x14007993b
lea r8, [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
mov edx, ebx
call fcn.140043460
mov rbp, rax
jmp 0x140079dc5
inc qword [rsi + 0x5c0]
inc qword [rsi + 0x5b0]
lea rsi, [rbx + rbx*4]
mov rdi, qword [rsp + 0x30]
lea r12, [rdi + 8]
mov rcx, r12
call fcn.140073d70
mov rax, qword [rdi + rsi*8 + 0x10]
mov rbp, qword [rax]
test rbp, rbp
je 0x14007a309
mov byte [rsp + 0x60], 0
mov rcx, qword [rsp + 0x30]
mov r14d, dword [rcx + rsi*8 + 0x28]
mov rcx, qword [rbp]
test rcx, rcx
je 0x14007a232
mov rdx, rcx
not rdx
cmp qword [rbp + 8], rdx
jne 0x14007a2bf
bswap rcx
prefetcht0 byte [rcx]
mov qword [rax], rcx
inc word [rax + 0x18]
jmp 0x140079881
inc qword [rsi + 0x5b8]
inc qword [rsi + 0x5b0]
mov rcx, rsi
mov rdx, rbx
int3
int3
mov r14, qword [r12 + 0x20]
jmp 0x140079e45
xor ecx, ecx
jmp 0x14007a1e7
lea r8, [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
mov edx, esi
call fcn.140043460
mov rbx, rax
jmp 0x14007a055
inc qword [rdi + 0x5c0]
inc qword [rdi + 0x5b0]
lea rsi, [rsi + rsi*4]
mov rdi, qword [rsp + 0x30]
lea rcx, [rdi + 8]
mov r13, rcx
call fcn.140073d70
mov rax, qword [rdi + rsi*8 + 0x10]
mov rbx, qword [rax]
test rbx, rbx
je 0x14007a32e
mov byte [rsp + 0x6f], 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 0x14007a305
mov rdx, rcx
not rdx
cmp qword [rbx + 8], rdx
jne 0x14007a2bf
bswap rcx
prefetcht0 byte [rcx]
mov qword [rax], rcx
inc word [rax + 0x18]
jmp 0x140079943
call fcn.1400c2bc0
inc qword [rdi + 0x5b8]
inc qword [rdi + 0x5b0]
mov rcx, rdi
mov rdx, rsi
int3
xor r12d, r12d
jmp 0x140079be9
shl rcx, 5
mov rax, qword [rbp + rcx + 0x20]
jmp 0x14007a12e
xor ecx, ecx
jmp 0x14007a2b3
mov rdx, qword [rsp + 0x30]
lea rcx, [rdx + rsi*8]
add rcx, 0x10
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
jmp 0x14007981d
mov rdx, qword [rsp + 0x30]
lea rcx, [rdx + rsi*8]
add rcx, 0x10
lea rax, [rsp + 0x6f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov r8d, r15d
mov r9, qword [rsp + 0x38]
call fcn.14005da40
test rax, rax
je 0x14007a3a9
mov rbx, rax
and rax, 0xffffffffffe00000
mov rcx, rbx
shr rcx, 9
and ecx, 0xfe0
lea rbp, [rax + rcx]
add rbp, 0x1000
movzx edx, byte [rbp + 0x1e]
mov rcx, rdx
neg rcx
shl rdx, 5
mov rax, rbp
sub rax, rdx
cmp byte [rax + 0x1d], 0
jne 0x14007a3b0
shl rcx, 5
mov rax, qword [rbp + rcx + 0x10]
mov eax, dword [rax + 0x18]
jmp 0x14007a3b9
xor ebx, ebx
jmp 0x140079943
shl rcx, 5
mov rax, qword [rbp + rcx + 0x20]
mov qword [rsp + 0x50], rax
jmp 0x140079943