Function at 0x140052d30
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 [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x90], rax
test r8, r8
jne 0x140052ee7
mov r13d, r15d
test r15b, 4
je 0x14005375d
movabs r15, 0xaaaaaaaaaaaaaaaa
mov eax, 0x40
mov ecx, 0x40
test r14, r14
je 0x140052d9f
bsr rcx, r14
xor rcx, 0x3f
sub rax, rcx
lea rcx, [0x1400da260]
mov cl, byte [rax + rcx]
mov rdx, r14
shr rdx, cl
and edx, 7
lea rcx, [0x1400da2b0]
mov rcx, qword [rcx + rax*8]
and rcx, r14
lea rax, [rdx + rax*8]
cmp rcx, 1
sbb rax, 0xffffffffffffffff
lea rcx, [0x1400d9a40]
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 0x140053f0b
cmp byte [rsi + 2], 0
je 0x140053ebc
mov edi, dword [0x1400f5420]
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 0x1400538e2
cmp rdi, 2
jb 0x140053f23
add qword [rdi + 0x5a0], 1
cmp word [0x1400ef230], bp
jb 0x140053466
mov rsi, rbp
shl rsi, 4
mov rbx, rdi
add rbx, rsi
mov r12, qword [rdi + rsi]
test r12, r12
je 0x140053552
add qword [rdi + 0x5a8], 1
mov rax, qword [r12]
test rax, rax
je 0x14005338c
mov rcx, rax
not rcx
cmp qword [r12 + 8], rcx
jne 0x14005481f
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 0x140053474
mov r15, qword [rsp + 0x80]
test r13b, 2
jne 0x140053f3f
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140066890
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 0x140053927
cmp r14, 0x7fe00001
jae 0x140053f5c
mov eax, r15d
mov r13b, byte [0x1400f6b10]
movabs rdx, 0xaaaaaaaaaaaaaaaa
mov rcx, rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x60], rdx
and eax, 4
je 0x140053d25
xor r13d, r13d
test r13b, r13b
mov qword [rsp + 0x38], r14
jne 0x140053fbe
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 0x140052fe2
jmp 0x140053ade
pause
dec eax
jne 0x140052fb1
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 0x140052fa2
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
shl rdi, 5
cmp byte [rbp + rdi + 0x1d], 0
jne 0x140053fda
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 0x140053f6e
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 0x140053037
bsr rcx, r14
xor rcx, 0x3f
sub rax, rcx
lea rcx, [0x1400da260]
mov cl, byte [rax + rcx]
mov rdx, r14
shr rdx, cl
and edx, 7
lea rcx, [0x1400da2b0]
mov rcx, qword [rcx + rax*8]
and rcx, r14
lea rax, [rdx + rax*8]
cmp rcx, 1
sbb rax, 0xffffffffffffffff
lea rcx, [0x1400d9a40]
movzx eax, word [rcx + rax*2 + 0x400]
lea rax, [rax + rax*4]
cmp byte [rsi + rax*8 + 0x2c], 0
je 0x140053fe3
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 0x140053537
test r15b, 4
je 0x140053bab
mov eax, 0x40
mov ecx, 0x40
test r14, r14
movabs rbx, 0xaaaaaaaaaaaaaaaa
je 0x1400530d0
bsr rcx, r14
xor rcx, 0x3f
sub rax, rcx
lea rcx, [0x1400da260]
mov cl, byte [rax + rcx]
mov rdx, r14
shr rdx, cl
and edx, 7
lea rcx, [0x1400da2b0]
mov rcx, qword [rcx + rax*8]
and rcx, r14
lea rax, [rdx + rax*8]
cmp rcx, 1
sbb rax, 0xffffffffffffffff
lea rcx, [0x1400d9a40]
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 0x140054153
cmp byte [rsi + 2], 0
je 0x1400540d3
mov edi, dword [0x1400f5420]
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 0x140053af3
cmp rdi, 2
jb 0x14005416b
add qword [rdi + 0x5a0], 1
cmp word [0x1400ef230], bp
jb 0x140053393
mov rsi, rbp
shl rsi, 4
mov rbx, rdi
add rbx, rsi
mov r12, qword [rdi + rsi]
test r12, r12
je 0x1400538f6
inc qword [rdi + 0x5a8]
mov rax, qword [r12]
test rax, rax
je 0x140053653
mov rcx, rax
not rcx
cmp qword [r12 + 8], rcx
jne 0x14005481f
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 0x1400533a1
mov rsi, qword [rsp + 0x80]
test r15b, 2
jne 0x140054187
test r12, r12
je 0x140053f5c
mov rax, qword [rsp + 0x60]
cmp rax, r14
ja 0x140053205
mov r14, rax
mov rcx, r12
mov rdi, qword [rsp + 0x48]
mov rdx, rdi
mov r8, r14
call fcn.140068d40
mov al, byte [0x1400f6b10]
test al, 1
je 0x14005323a
mov rcx, rdi
call fcn.14005a820
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 0x140053ff5
cmp byte [r15 + 2], 0
je 0x140053583
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 0x1400541a4
test al, al
je 0x140053583
mov ebp, dword [0x1400f5420]
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 0x140053b00
cmp rbp, 2
jb 0x140053583
sub rdi, rbx
sar rdi, 3
add qword [rbp + 0x5c8], 1
movabs rax, 0xcccccccccccccccd
imul rax, rdi
movzx ecx, word [0x1400ef230]
cmp rax, rcx
ja 0x14005357c
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 0x1400541ab
mov al, byte [rbp + 0x598]
test al, 1
je 0x140052ec0
mov rcx, rbp
int3
xor eax, eax
jmp 0x140052e89
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 0x1400533ff
jmp 0x140053d2e
pause
dec eax
jne 0x1400533da
add ebp, ebx
add ebx, ebx
cmp ebx, 0x40
mov eax, 0x40
cmovge ebx, eax
cmp ebp, 0x3e8
jl 0x1400533cb
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rsi]
mov r12, qword [rax]
test r12, r12
je 0x1400536dc
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 0x140053920
mov rdx, rcx
not rdx
cmp qword [r12 + 8], rdx
jne 0x14005481f
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 0x1400531e5
xor r12d, r12d
jmp 0x1400531ef
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 0x1400534d7
jmp 0x140053d3d
pause
dec eax
jne 0x1400534b2
add ebp, ebx
mov rcx, r14
add ebx, ebx
cmp ebx, 0x40
mov eax, 0x40
cmovge ebx, eax
cmp ebp, 0x3e8
jl 0x1400534a3
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rsi]
mov r12, qword [rax]
test r12, r12
je 0x14005365a
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 0x1400538ef
mov rdx, rcx
not rdx
cmp qword [r12 + 8], rdx
jne 0x14005481f
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 0x140052eb6
jmp 0x140053ac4
lea rax, [rdi + rbp]
add rax, 0x1d
cmp byte [rax], 0
jne 0x140054213
mov r12, qword [rsp + 0x48]
jmp 0x140052ec0
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 0x1400535d3
jmp 0x140053d4c
pause
dec eax
jne 0x1400535ae
add edi, esi
add esi, esi
cmp esi, 0x40
mov eax, 0x40
cmovge esi, eax
cmp edi, 0x3e8
jl 0x1400535a0
mov rcx, r15
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [r14]
mov rcx, qword [rsp + 0x48]
cmp rax, rcx
je 0x14005421c
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 0x140053acc
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 0x140052ec0
lea rcx, [rsp + 0x80]
call fcn.1400360a0
jmp 0x140052ec0
xor eax, eax
jmp 0x1400531b9
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.140040570
test rax, rax
je 0x14005421f
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 0x140054227
shl rcx, 5
mov rax, qword [rbp + rcx + 0x10]
mov r15d, dword [rax + 0x18]
jmp 0x140053520
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.140040570
test rax, rax
je 0x140054235
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 0x140053b9d
shl rcx, 5
mov rax, qword [rbp + rcx + 0x10]
mov esi, dword [rax + 0x18]
jmp 0x140053447
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x70], 0
mov r15b, byte [0x1400f6b10]
test r15b, 1
jne 0x14005424e
movabs r14, 0xaaaaaaaaaaaaaaaa
mov eax, 0x40
mov ecx, 0x40
mov rbp, qword [rsp + 0x38]
test rbp, rbp
je 0x1400537a2
bsr rcx, rbp
xor rcx, 0x3f
sub rax, rcx
lea rcx, [0x1400da260]
mov cl, byte [rax + rcx]
mov rdx, rbp
shr rdx, cl
and edx, 7
lea rcx, [0x1400da2b0]
mov rcx, qword [rcx + rax*8]
and rcx, rbp
lea rax, [rdx + rax*8]
cmp rcx, 1
sbb rax, 0xffffffffffffffff
lea rcx, [0x1400d9a40]
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 0x140054287
mov dword [rsp + 0x44], r13d
cmp byte [rsi + 2], 0
jne 0x14005429f
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 0x14005385d
jmp 0x140053dea
pause
dec eax
jne 0x140053838
add esi, ebp
add ebp, ebp
cmp ebp, 0x40
mov eax, 0x40
cmovge ebp, eax
cmp esi, 0x3e8
jl 0x140053829
mov rcx, r12
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rdi]
mov rbp, qword [rax]
test rbp, rbp
je 0x140053d62
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 0x140053d5b
mov rdx, rcx
not rdx
cmp qword [rbp + 8], rdx
jne 0x14005481f
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 0x140054247
test sil, 2
jne 0x14005433f
mov qword [rsp + 0x70], rbp
test r15b, 1
jne 0x14005426d
mov r12, qword [rsp + 0x70]
jmp 0x140052ec0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140052e24
xor ecx, ecx
jmp 0x140053519
inc qword [rdi + 0x5b8]
inc qword [rdi + 0x5b0]
mov rcx, rdi
mov rdx, rbp
int3
xor ecx, ecx
jmp 0x140053440
mov al, byte [0x1400f6b10]
test al, 1
jne 0x140053b1c
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 0x14005435c
cmp byte [r15 + 2], 0
je 0x140053a0d
mov rax, r13
shl rax, 5
mov rsi, qword [r14 + rax + 0x10]
lea rdi, [r15 + 0x10]
cmp rdi, rsi
ja 0x140053a0d
lea rax, [r15 + 0x1410]
cmp rax, rsi
jb 0x140053a0d
mov ebx, dword [0x1400f5420]
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 0x140053df9
cmp rbx, 2
jb 0x140053a0d
sub rsi, rdi
sar rsi, 3
inc qword [rbx + 0x5c8]
movabs rax, 0xcccccccccccccccd
imul rax, rsi
movzx ecx, word [0x1400ef230]
cmp rax, rcx
jbe 0x140053b3b
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 0x140053a5d
jmp 0x140053e06
pause
dec eax
jne 0x140053a38
add ebp, ebx
add ebx, ebx
cmp ebx, 0x40
mov eax, 0x40
cmovge ebx, eax
cmp ebp, 0x3e8
jl 0x140053a2a
mov rcx, r15
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [r12]
mov rcx, qword [rsp + 0x48]
cmp rax, rcx
je 0x14005442a
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 0x140053b0d
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 0x14005442d
xor r12d, r12d
jmp 0x140052ec0
lea rdx, [rsp + 0x70]
mov rcx, r14
int3
mov eax, r12d
test r12d, r12d
jg 0x140052fb1
mov ecx, dword [rsp + 0x5c]
jmp 0x140052fbe
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140053155
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400532ef
lea rdx, [rsp + 0x70]
mov rcx, r12
int3
mov rsi, qword [rsp + 0x48]
mov rcx, rsi
call fcn.14005a820
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 0x1400544b8
mov al, byte [rbx + 0x598]
test al, 1
je 0x140053ac4
mov rcx, rbx
int3
shl rcx, 5
mov rsi, qword [rbp + rcx + 0x20]
jmp 0x140053447
mov qword [rsp + 0x70], 0
mov r12b, byte [0x1400f6b10]
test r12b, 1
movabs rdi, 0xaaaaaaaaaaaaaaaa
jne 0x1400544d9
mov eax, 0x40
mov ecx, 0x40
test r14, r14
je 0x140053be6
bsr rcx, r14
xor rcx, 0x3f
sub rax, rcx
lea rcx, [0x1400da260]
mov cl, byte [rax + rcx]
mov rdx, r14
shr rdx, cl
and edx, 7
lea rcx, [0x1400da2b0]
mov rcx, qword [rcx + rax*8]
and rcx, r14
lea rax, [rdx + rax*8]
cmp rcx, 1
sbb rax, 0xffffffffffffffff
lea rcx, [0x1400d9a40]
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 0x140054516
cmp byte [rbx + 2], 0
jne 0x14005452e
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 0x140053c9c
jmp 0x140053ead
pause
dec eax
jne 0x140053c77
add ebp, ebx
add ebx, ebx
cmp ebx, 0x40
mov eax, 0x40
cmovge ebx, eax
cmp ebp, 0x3e8
mov rcx, r13
jl 0x140053c68
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rdi]
mov rbx, qword [rax]
test rbx, rbx
je 0x140053e1c
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 0x140053e15
mov rdx, rcx
not rdx
cmp qword [rbx + 8], rdx
jne 0x14005481f
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 0x1400544d2
test r15b, 2
jne 0x1400545d5
mov qword [rsp + 0x70], rbx
test r12b, 1
jne 0x1400544fe
mov r12, qword [rsp + 0x70]
jmp 0x1400531ef
and r13b, 1
jmp 0x140052f2f
mov eax, ebx
test ebx, ebx
jg 0x1400533da
jmp 0x1400533e2
mov eax, ebx
test ebx, ebx
jg 0x1400534b2
jmp 0x1400534ba
mov eax, esi
test esi, esi
jg 0x1400535ae
jmp 0x1400535b6
xor ecx, ecx
jmp 0x1400538a6
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.140040570
test rax, rax
je 0x14005469f
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 0x1400546a6
shl rcx, 5
mov rax, qword [rbx + rcx + 0x10]
mov r14d, dword [rax + 0x18]
mov esi, dword [rsp + 0x44]
jmp 0x1400538ad
mov eax, ebp
test ebp, ebp
jg 0x140053838
jmp 0x140053840
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400539d4
mov eax, ebx
test ebx, ebx
jg 0x140053a38
jmp 0x140053a40
xor ecx, ecx
jmp 0x140053ce9
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.140040570
test rax, rax
je 0x1400546b4
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 0x1400546bb
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 0x140053cf0
mov eax, ebx
test ebx, ebx
jg 0x140053c77
jmp 0x140053c7f
mov rbx, r14
lea rsi, [rbp*4]
add rsi, rbp
mov rdi, qword [rsp + 0x30]
lea rcx, [rdi + 8]
mov r14, rcx
call fcn.140050790
mov rax, qword [rdi + rsi*8 + 0x10]
mov r12, qword [rax]
test r12, r12
je 0x14005448d
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 0x1400534f5
mov al, byte [0x1400ef228]
cmp al, 2
jne 0x140052df9
int3
lea r8, [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
mov edx, ebp
call fcn.1400343e0
mov r12, rax
jmp 0x140052ea5
cmp byte [rsp + 0x70], 0
jne 0x140052ec0
mov rcx, r12
xor edx, edx
mov r8, r15
call fcn.140069150
jmp 0x140052ec0
test r15b, 1
jne 0x140053ac4
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 0x140052ff9
lea rax, [r14 + 0xfff]
and rax, 0xfffffffffffff000
jmp 0x140053089
mov al, byte [0x1400ef228]
cmp al, 2
je 0x1400545fa
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 0x140053290
lea rdx, [r15 + 0x1410]
cmp rdx, rcx
jb 0x140053290
mov edx, dword [rcx + 0x18]
mov rcx, qword [rsp + 0x30]
cmp byte [rcx + rax + 0x1d], 0
mov r15, rdx
jne 0x140054604
mov rax, qword [0x1400ef200]
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 0x140054089
test rax, rsi
jne 0x1400545f5
mov rax, rdx
lock xadd qword [0x1400ef1f0], rax
add rax, rdx
mov rcx, qword [0x1400ef1f8]
cmp rax, rcx
jbe 0x1400541c5
mov rcx, qword [str._J_r_]
call fcn.1400bb9a0
mov esi, eax
jmp 0x1400541c7
lea rsi, [rbp*4]
add rsi, rbp
mov rdi, qword [rsp + 0x30]
lea r14, [rdi + 8]
mov rcx, r14
call fcn.140050790
mov rax, qword [rdi + rsi*8 + 0x10]
mov r12, qword [rax]
test r12, r12
je 0x14005460d
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 0x14005420c
mov rdx, rcx
not rdx
cmp qword [r12 + 8], rdx
jne 0x14005481f
bswap rcx
prefetcht0 byte [rcx]
mov qword [rax], rcx
inc word [rax + 0x18]
mov rsi, qword [rsp + 0x50]
jmp 0x140053447
mov al, byte [0x1400ef228]
cmp al, 2
jne 0x14005312a
int3
lea r8, [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
mov edx, ebp
call fcn.1400343e0
mov r12, rax
jmp 0x1400531d4
cmp byte [rsp + 0x70], 0
jne 0x1400531ef
mov r8, rsi
mov rcx, r12
xor edx, edx
call fcn.140069150
jmp 0x1400531ef
xor eax, eax
jmp 0x1400532c6
mov rdx, rbp
add rdx, rax
movzx r8d, cl
shr r8, 1
mov rcx, rbp
int3
xor esi, esi
cmp byte [0x1400ef229], 1
jne 0x1400541df
mov rcx, qword [rsp + 0x48]
xor edx, edx
mov r8, r15
call fcn.140069150
test sil, sil
je 0x140052ec0
mov al, byte [0x1400ef228]
test al, al
jne 0x140052ec0
lea rcx, [0x1400ef1f0]
mov edx, 1
int3
xor ecx, ecx
jmp 0x140054142
mov qword [rbx + 0x20], r14
jmp 0x140053548
int3
xor r12d, r12d
jmp 0x140053520
shl rcx, 5
mov r15, qword [rbp + rcx + 0x20]
jmp 0x140053520
xor r12d, r12d
movabs rsi, 0xaaaaaaaaaaaaaaaa
jmp 0x140053447
xor ebp, ebp
jmp 0x1400538c9
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.1400bc5d0
jmp 0x1400538d8
mov al, byte [0x1400ef228]
cmp al, 2
jne 0x1400537fc
int3
call fcn.140050750
cmp rax, 2
jb 0x1400546c9
mov rsi, rax
inc qword [rax + 0x5a0]
cmp word [0x1400ef230], bx
jb 0x1400546e5
mov rdi, rbx
shl rdi, 4
mov r12, rsi
add r12, rdi
mov rbp, qword [rsi + rdi]
test rbp, rbp
je 0x140054753
inc qword [rsi + 0x5a8]
mov rax, qword [rbp]
test rax, rax
je 0x14005443f
mov rcx, rax
not rcx
cmp qword [rbp + 8], rcx
jne 0x14005481f
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 0x1400546f3
mov r14, qword [rsp + 0x80]
mov esi, dword [rsp + 0x44]
jmp 0x1400538bf
cmp byte [rsp + 0x60], 0
jne 0x1400538c9
mov rcx, rbp
xor edx, edx
mov r8, r14
call fcn.140069150
jmp 0x1400538c9
mov al, byte [0x1400ef228]
cmp al, 2
je 0x14005477e
mov rax, r13
shl rax, 5
mov rcx, qword [r14 + rax + 0x10]
lea rdx, [r15 + 0x10]
cmp rdx, rcx
ja 0x14005398b
lea rdx, [r15 + 0x1410]
cmp rdx, rcx
jb 0x14005398b
mov edx, dword [rcx + 0x18]
cmp byte [r14 + rax + 0x1d], 0
mov r14, rdx
jne 0x140054788
mov rax, qword [0x1400ef200]
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 0x1400543e7
test rax, rsi
jne 0x1400545f5
mov rax, rdx
lock xadd qword [0x1400ef1f0], rax
add rax, rdx
mov rcx, qword [0x1400ef1f8]
cmp rax, rcx
jbe 0x140054446
mov rcx, qword [str._J_r_]
call fcn.1400bb9a0
mov esi, eax
jmp 0x140054448
int3
lea rcx, [rsp + 0x80]
call fcn.1400360a0
jmp 0x140053ac4
xor eax, eax
jmp 0x140054309
xor esi, esi
cmp byte [0x1400ef229], 1
jne 0x140054460
mov rcx, qword [rsp + 0x48]
xor edx, edx
mov r8, r14
call fcn.140069150
test sil, sil
je 0x140053ac4
mov al, byte [0x1400ef228]
test al, al
jne 0x140053ac4
lea rcx, [0x1400ef1f0]
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 0x14005367d
mov rdx, rbx
add rdx, rax
movzx r8d, cl
shr r8, 1
mov rcx, rbx
int3
xor ebx, ebx
jmp 0x140053d0c
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.1400bc5d0
jmp 0x140053d1b
mov al, byte [0x1400ef228]
cmp al, 2
jne 0x140053c40
int3
call fcn.140050750
cmp rax, 2
jb 0x140054796
mov rdi, rax
inc qword [rax + 0x5a0]
cmp word [0x1400ef230], si
jb 0x1400547b2
mov r14, rsi
shl r14, 4
mov rbp, rdi
add rbp, r14
mov rbx, qword [rdi + r14]
test rbx, rbx
je 0x140054824
inc qword [rdi + 0x5a8]
mov rax, qword [rbx]
test rax, rax
je 0x140054698
mov rcx, rax
not rcx
cmp qword [rbx + 8], rcx
jne 0x14005481f
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 0x1400547c0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov r14, qword [rsp + 0x38]
jmp 0x140053d02
cmp byte [rsp + 0x6f], 0
jne 0x1400545eb
mov rcx, rbx
xor edx, edx
mov r8, qword [rsp + 0x50]
call fcn.140069150
mov r14, qword [rsp + 0x38]
jmp 0x140053d0c
int3
int3
mov r15, qword [r14 + 0x20]
jmp 0x140054047
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.140040570
test rax, rax
je 0x14005484f
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 0x140054857
shl rcx, 5
mov rax, qword [rbp + rcx + 0x10]
mov eax, dword [rax + 0x18]
mov qword [rsp + 0x50], rax
jmp 0x140054149
xor eax, eax
jmp 0x140054597
xor ebp, ebp
jmp 0x140053de1
shl rcx, 5
mov r14, qword [rbx + rcx + 0x20]
jmp 0x140053de1
xor ebx, ebx
jmp 0x140053ea0
shl rcx, 5
mov rax, qword [rbp + rcx + 0x20]
jmp 0x140053e9b
lea r8, [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
mov edx, ebx
call fcn.1400343e0
mov rbp, rax
jmp 0x140054325
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.140050790
mov rax, qword [rdi + rsi*8 + 0x10]
mov rbp, qword [rax]
test rbp, rbp
je 0x140054869
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 0x140054792
mov rdx, rcx
not rdx
cmp qword [rbp + 8], rdx
jne 0x14005481f
bswap rcx
prefetcht0 byte [rcx]
mov qword [rax], rcx
inc word [rax + 0x18]
jmp 0x140053de1
inc qword [rsi + 0x5b8]
inc qword [rsi + 0x5b0]
mov rcx, rsi
mov rdx, rbx
int3
int3
mov r14, qword [r12 + 0x20]
jmp 0x1400543a5
xor ecx, ecx
jmp 0x140054747
lea r8, [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
mov edx, esi
call fcn.1400343e0
mov rbx, rax
jmp 0x1400545b5
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.140050790
mov rax, qword [rdi + rsi*8 + 0x10]
mov rbx, qword [rax]
test rbx, rbx
je 0x14005488e
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 0x140054865
mov rdx, rcx
not rdx
cmp qword [rbx + 8], rdx
jne 0x14005481f
bswap rcx
prefetcht0 byte [rcx]
mov qword [rax], rcx
inc word [rax + 0x18]
jmp 0x140053ea3
call fcn.14008fb00
inc qword [rdi + 0x5b8]
inc qword [rdi + 0x5b0]
mov rcx, rdi
mov rdx, rsi
int3
xor r12d, r12d
jmp 0x140054149
shl rcx, 5
mov rax, qword [rbp + rcx + 0x20]
jmp 0x14005468e
xor ecx, ecx
jmp 0x140054813
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 0x140053d7d
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.140040570
test rax, rax
je 0x140054909
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 0x140054910
shl rcx, 5
mov rax, qword [rbp + rcx + 0x10]
mov eax, dword [rax + 0x18]
jmp 0x140054919
xor ebx, ebx
jmp 0x140053ea3
shl rcx, 5
mov rax, qword [rbp + rcx + 0x20]
mov qword [rsp + 0x50], rax
jmp 0x140053ea3