Function at 0x14015fa70
Capabilities:
Get thread local storage value
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd0
movapd xmmword [rsp + 0xc0], xmm6
mov edi, r9d
mov rbx, r8
mov r15, rdx
mov r14, rcx
mov rax, qword [0x14033f038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x60]
mov qword [rsi + 0x50], rax
movapd xmm0, xmmword [0x140301d60]
movapd xmmword [rsi + 0x40], xmm0
movapd xmmword [rsi + 0x30], xmm0
movapd xmmword [rsi + 0x20], xmm0
movapd xmmword [rsi + 0x10], xmm0
movapd xmmword [rsi], xmm0
lea rdx, str.Read
lea r8, str....._base_files_file_win.cc
lea r12, [rsp + 0x30]
mov rcx, r12
mov r9d, 0x44
call fcn.14004f270
mov rcx, rsi
mov rdx, r12
xor r8d, r8d
call fcn.1400cd290
mov esi, 0xffffffff
test r15, r15
js 0x14015fb61
test edi, edi
js 0x14015fb61
xorpd xmm0, xmm0
movapd xmmword [rsp + 0x40], xmm0
movapd xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
lea r9, [rsp + 0x58]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [r14]
mov qword [rsp + 0x20], r12
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14015fddf
mov esi, dword [rsp + 0x58]
test esi, esi
js 0x14015ff1f
call fcn.14016ed94
mov ebp, dword [rax]
call fcn.14016ed94
mov dword [rax], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [0x14035aab0]
cmp rbx, 1
jbe 0x14015fe02
mov r14, qword [rsp + 0x68]
mov ecx, dword [0x1403411e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14015fe50
mov rcx, qword [rbx]
shl rcx, 4
mov qword [rax + rcx], r14
mov ecx, dword [rbx + 8]
mov rdx, qword [rbx]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov r14, qword [rsp + 0x60]
test r14, r14
je 0x14015fbde
cmp qword [rsp + 0x68], 0
je 0x14015fcd8
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.14016ed94
mov dword [rax], ebp
cmp byte [rsp + 0x98], 0
je 0x14015fc10
mov rdi, qword [rsp + 0xa8]
test rdi, rdi
jne 0x14015fd4a
mov byte [rsp + 0x98], 0
mov rax, qword [rsp + 0x78]
test rax, rax
jne 0x14015fe74
mov rdi, qword [rsp + 0x88]
mov qword [rsp + 0x88], 0
test rdi, rdi
jne 0x14015fedc
mov rax, qword [rsp + 0x78]
test rax, rax
jne 0x14015fef1
xor ecx, ecx
mov rax, qword [0x1403428e0]
and rax, rcx
cmp rax, qword [0x1403428c8]
je 0x14015ff0b
mov qword [rsp + 0x78], 0
mov rcx, qword [rsp + 0x68]
mov rax, qword [0x1403428e0]
and rax, rcx
cmp rax, qword [0x1403428c8]
je 0x14015ff15
mov qword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x60]
mov rax, qword [0x1403428e0]
and rax, rcx
cmp rax, qword [0x1403428c8]
je 0x14015fd40
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140171860
mov eax, esi
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rbx, qword [r14 + 0x28]
add rbx, 0x28
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14015fdf5
mov qword [r14 + 0x20], 0
cmp byte [r14 + 0x3a], 0
jne 0x14015fd2b
cmp byte [r14 + 0x38], 0
mov rcx, qword [r14 + 0x28]
jne 0x14015fe63
dec dword [rcx + 0x120]
cmp byte [r14 + 0x18], 0
je 0x14015ff27
cmp byte [r14 + 0x19], 0
je 0x14015fdc5
mov word [r14 + 0x38], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x14015fbde
call fcn.1401571d0
jmp 0x14015fcac
mov rax, qword [fcn.14007a620]
lea rbx, [rsp + 0x58]
mov rcx, rbx
call qword [case.0x140211850.0]
mov r15, qword [rsp + 0xa0]
mov rdx, qword [rbx]
xor eax, eax
cmp rdx, r15
setns al
movabs r12, 0x7fffffffffffffff
add rax, r12
mov r14, rdx
sub r14, r15
cmovo r14, rax
cmp r14, 0xf4240
jge 0x14015ff29
mov rdi, qword [rsp + 0xa8]
test rdi, rdi
je 0x14015fc08
lock dec dword [rdi]
jne 0x14015fc08
mov rcx, rdi
call fcn.14011feb0
mov rcx, rdi
call fcn.14016eccc
jmp 0x14015fc08
cmp byte [r14 + 0x39], 0
mov rcx, qword [r14 + 0x28]
jne 0x140160079
dec dword [rcx + 0x124]
jmp 0x14015fd2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x14015fb61
mov rcx, rbx
call fcn.140047ff0
jmp 0x14015fcf1
lea rcx, [0x14035aab0]
call fcn.14006d330
test al, al
je 0x14016008a
xorpd xmm0, xmm0
movupd xmmword [0x14035aab8], xmm0
lea r14, [0x14035aab0]
lea rbx, [0x14035aab8]
mov rcx, rbx
xor edx, edx
call fcn.140041af0
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
mov r9, r14
call fcn.14006d410
jmp 0x14015fb94
test r14, r14
je 0x14015fbc8
call fcn.140001120
jmp 0x14015fbaf
dec qword [rcx + 0x100]
call fcn.140131b40
jmp 0x14015fd15
mov ecx, dword [rsp + 0x80]
cmp dword [rax + 0x18], ecx
jbe 0x14015fc1e
mov rax, qword [rax + 0x10]
shl rcx, 7
cmp dword [rax + rcx + 0x68], 0
je 0x14015fc1e
mov rbx, qword [0x140352ad8]
lea rdi, [rbx + 0xc8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140160096
mov rcx, qword [rsp + 0x78]
sub rbx, 0xffffffffffffff80
mov edx, dword [rsp + 0x80]
mov r8, rbx
call fcn.1402081c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x14015fc1e
mov rcx, rdi
call fcn.1402077d0
mov rcx, rdi
call fcn.14016eccc
jmp 0x14015fc3b
mov rcx, qword [rax + 8]
lock dec dword [rcx + 0x38]
mov rax, qword [rax + 8]
lock inc dword [rax + 0x3c]
mov rcx, qword [rsp + 0x78]
jmp 0x14015fc4b
call fcn.1401571d0
jmp 0x14015fc62
call fcn.1401571d0
jmp 0x14015fc87
int3
ud2
mov rax, qword [rdi + 0x1f0]
mov ecx, 0x3938700
lea r8, [rcx + rax]
sar r8, 0x3f
btc r8, 0x3f
add rcx, rax
cmovo rcx, r8
cmp rcx, rdx
jg 0x14015ff78
lea rbx, [rsp + 0x30]
mov rcx, rbx
call fcn.140131030
mov rbx, qword [rbx]
test rbx, rbx
je 0x14015ff78
lock dec dword [rbx]
jne 0x14015ff78
mov rcx, rbx
call fcn.14011feb0
mov rcx, rbx
call fcn.14016eccc
mov rax, qword [rdi + 0x1f0]
xor ecx, ecx
cmp r15, rax
setns cl
add rcx, r12
sub r15, rax
movabs r12, 0x8000000000000001
cmovo r15, rcx
lea rax, [r15 + r12]
cmp rax, 2
jae 0x14015ffb8
shr r15, 0x3f
lea rax, [0x140308b10]
movsd xmm0, qword [rax + r15*8]
jmp 0x14015ffbd
cvtsi2sd xmm0, r15
divsd xmm0, qword [0x140308b20]
call fcn.1401ae0e0
movsd xmm6, qword [0x1402eea60]
ucomisd xmm6, xmm0
jae 0x14015ffec
xor eax, eax
ucomisd xmm0, qword [0x1402eea78]
mov ebx, 0x7fffffff
cmovb ebx, eax
jmp 0x14015fff8
maxsd xmm0, qword [0x1402eea78]
cvttsd2si ebx, xmm0
add r12, r14
cmp r12, 2
jb 0x140160013
xorps xmm0, xmm0
cvtsi2sd xmm0, r14
divsd xmm0, qword [0x140308b20]
jmp 0x14016001b
movsd xmm0, qword [0x140308b28]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jae 0x140160034
addsd xmm0, qword [0x1402eea68]
call fcn.1401adce4
jmp 0x140160041
addsd xmm0, qword [0x1402ee600]
call fcn.1401ae0e0
ucomisd xmm6, xmm0
jae 0x14016005d
xor eax, eax
ucomisd xmm0, qword [0x1402eea78]
mov r8d, 0x7fffffff
cmovb r8d, eax
jmp 0x14016006a
maxsd xmm0, qword [0x1402eea78]
cvttsd2si r8d, xmm0
mov rcx, rdi
mov edx, ebx
call fcn.140225e50
jmp 0x14015fd96
dec qword [rcx + 0x108]
call fcn.140131b40
jmp 0x14015fd2b
mov rbx, qword [0x14035aab0]
jmp 0x14015fb94
mov rcx, rdi
call fcn.140047ff0
jmp 0x14015feb6