Function at 0x1400bfea0
Capabilities:
Check if file exists
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
movapd xmmword [rsp + 0xe0], xmm6
mov edi, r8d
mov r12, rdx
mov qword [rsp + 0x40], rcx
mov rax, qword [0x14033f038]
xor rax, rsp
mov qword [rsp + 0xd8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x80]
mov qword [r14 + 0x50], rax
movapd xmm0, xmmword [0x140301d60]
movapd xmmword [r14 + 0x40], xmm0
movapd xmmword [r14 + 0x30], xmm0
movapd xmmword [r14 + 0x20], xmm0
movapd xmmword [r14 + 0x10], xmm0
movapd xmmword [r14], xmm0
lea rdx, str.DoInitialize
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x58]
mov rcx, r15
mov r9d, 0x175
call fcn.14004f270
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400cd290
mov eax, edi
and eax, 1
neg eax
and eax, 3
test dil, 2
mov ecx, 1
cmove ecx, eax
test dil, 4
mov eax, 4
cmovne ecx, eax
test dil, 8
mov edx, 2
cmove edx, ecx
test dil, 0x10
mov r8d, 5
cmove r8d, edx
test r8d, r8d
je 0x1400c02af
mov ecx, edi
and ecx, 0x40
shl ecx, 0x18
test dil, 0x80
cmove eax, ecx
mov ebp, edi
rol ebp, 0x1a
mov ecx, edi
shl ecx, 0xb
and ecx, 0x20000000
mov edx, edi
shr edx, 4
and edx, 0x10000
and ebp, 0x80000100
or ebp, ecx
or ebp, edx
or ebp, eax
mov eax, edi
shr eax, 8
and eax, 3
mov r14d, edi
shr r14d, 0xd
and r14d, 4
or r14d, eax
xor r14d, 3
mov ebx, edi
and ebx, 0x400
mov eax, ebx
shl eax, 0x14
mov ecx, edi
shr ecx, 3
and ecx, 0x100
or ecx, eax
mov eax, edi
shr eax, 0xb
and eax, 2
or eax, ecx
mov ecx, edi
shl ecx, 0xd
and ecx, 0x4000000
or ecx, eax
mov esi, edi
shl esi, 8
and esi, 0xa000000
or esi, ecx
cmp byte [r12 + 0x17], 0
mov qword [rsp + 0x48], r12
jns 0x1400c002b
mov rax, qword [rsp + 0x48]
mov r12, qword [rax]
mov dword [rsp + 0x54], r8d
mov dword [rsp + 0x20], r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov rcx, r12
mov edx, ebp
mov r8d, r14d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
mov r13, qword [rsp + 0x40]
cmp qword [r13], rax
je 0x1400c00a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov rax, qword [r13]
inc rax
cmp rax, 2
jae 0x1400c0462
mov rax, r15
inc rax
cmp rax, 2
jb 0x1400c0094
mov rax, qword [rsp + 0x40]
mov qword [rax], r15
call fcn.1400412c0
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x40]
mov r15, qword [rax]
inc r15
cmp r15, 1
ja 0x1400c00bb
call fcn.14007dc50
test al, al
jne 0x1400c04fe
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x1400c00f4
shr ebx, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], bl
test dil, 4
jne 0x1400c0296
test dil, 0xa
je 0x1400c0104
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x28], 1
jmp 0x1400c0104
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400cce30
mov dword [rsi + 0x24], eax
call fcn.14016ed94
mov ebp, dword [rax]
call fcn.14016ed94
mov dword [rax], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [0x14035aab0]
cmp rdi, 1
jbe 0x1400c02cb
mov rbx, qword [rsp + 0x88]
mov ecx, dword [0x1403411e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400c0319
mov rcx, qword [rdi]
shl rcx, 4
mov qword [rax + rcx], rbx
mov ecx, dword [rdi + 8]
mov rdx, qword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rbx, qword [rsp + 0x80]
test rbx, rbx
je 0x1400c018a
cmp qword [rsp + 0x88], 0
je 0x1400c049f
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.14016ed94
mov dword [rax], ebp
cmp byte [rsp + 0xb8], 0
je 0x1400c01bc
mov rsi, qword [rsp + 0xc8]
test rsi, rsi
jne 0x1400c03e7
mov byte [rsp + 0xb8], 0
mov rax, qword [rsp + 0x98]
test rax, rax
jne 0x1400c032c
mov rsi, qword [rsp + 0xa8]
mov qword [rsp + 0xa8], 0
test rsi, rsi
jne 0x1400c0397
mov rax, qword [rsp + 0x98]
test rax, rax
jne 0x1400c03ac
xor ecx, ecx
mov rax, qword [0x1403428e0]
and rax, rcx
cmp rax, qword [0x1403428c8]
je 0x1400c03c9
mov qword [rsp + 0x98], 0
mov rcx, qword [rsp + 0x88]
mov rax, qword [0x1403428e0]
and rax, rcx
cmp rax, qword [0x1403428c8]
je 0x1400c03d3
mov qword [rsp + 0x88], 0
mov rcx, qword [rsp + 0x80]
mov rax, qword [0x1403428e0]
and rax, rcx
cmp rax, qword [0x1403428c8]
je 0x1400c03dd
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140171860
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov rax, qword [rsp + 0x40]
setne byte [rax + 0x28]
jmp 0x1400c0104
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x24], 0xffffffff
jmp 0x1400c0104
lea rcx, [0x14035aab0]
call fcn.14006d330
test al, al
je 0x1400c05a1
xorpd xmm0, xmm0
movupd xmmword [0x14035aab8], xmm0
lea rbx, [0x14035aab0]
lea rdi, [0x14035aab8]
mov rcx, rdi
xor edx, edx
call fcn.140041af0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14006d410
jmp 0x1400c0137
test rbx, rbx
je 0x1400c016e
call fcn.140001120
jmp 0x1400c0155
mov ecx, dword [rsp + 0xa0]
cmp dword [rax + 0x18], ecx
jbe 0x1400c01cd
mov rax, qword [rax + 0x10]
shl rcx, 7
cmp dword [rax + rcx + 0x68], 0
je 0x1400c01cd
mov rdi, qword [0x140352ad8]
lea rsi, [rdi + 0xc8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400c0594
mov rcx, qword [rsp + 0x98]
sub rdi, 0xffffffffffffff80
mov edx, dword [rsp + 0xa0]
mov r8, rdi
call fcn.1402081c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x1400c01cd
mov rcx, rsi
call fcn.1402077d0
mov rcx, rsi
call fcn.14016eccc
jmp 0x1400c01ea
mov rcx, qword [rax + 8]
lock dec dword [rcx + 0x38]
mov rax, qword [rax + 8]
lock inc dword [rax + 0x3c]
mov rcx, qword [rsp + 0x98]
jmp 0x1400c01fd
call fcn.1401571d0
jmp 0x1400c0214
call fcn.1401571d0
jmp 0x1400c023f
call fcn.1401571d0
jmp 0x1400c026a
mov rax, qword [fcn.14007a620]
lea rdi, [rsp + 0x78]
mov rcx, rdi
call qword [case.0x140211850.0]
mov r14, qword [rsp + 0xc0]
mov rdx, qword [rdi]
xor eax, eax
cmp rdx, r14
setns al
movabs r15, 0x7fffffffffffffff
add rax, r15
mov rbx, rdx
sub rbx, r14
cmovo rbx, rax
cmp rbx, 0xf4240
jge 0x1400c05ad
mov rsi, qword [rsp + 0xc8]
test rsi, rsi
je 0x1400c01b4
lock dec dword [rsi]
jne 0x1400c01b4
mov rcx, rsi
call fcn.14011feb0
mov rcx, rsi
call fcn.14016eccc
jmp 0x1400c01b4
call fcn.1400412c0
mov rax, qword [rsp + 0x40]
mov r13, qword [rax]
mov rcx, qword [0x14035abe0]
test rcx, rcx
je 0x1400c0565
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r13
call qword [case.0x140211850.0]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
jmp 0x1400c007b
mov rdi, qword [rbx + 0x28]
add rdi, 0x28
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400c0576
mov qword [rbx + 0x20], 0
cmp byte [rbx + 0x3a], 0
jne 0x1400c04ea
cmp byte [rbx + 0x38], 0
mov rcx, qword [rbx + 0x28]
jne 0x1400c0583
dec dword [rcx + 0x120]
cmp byte [rbx + 0x18], 0
je 0x1400c063c
cmp byte [rbx + 0x19], 0
je 0x1400c054f
mov word [rbx + 0x38], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x1400c018a
mov rax, qword [rsp + 0x48]
cmp byte [rax + 0x17], 0
jns 0x1400c0516
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x28], esi
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x48]
mov edx, ebp
mov r8d, r14d
xor r9d, r9d
call fcn.140226070
mov rcx, qword [rsp + 0x40]
mov rdx, rax
call fcn.140041220
jmp 0x1400c00bb
cmp byte [rbx + 0x39], 0
mov rcx, qword [rbx + 0x28]
jne 0x1400c06ff
dec dword [rcx + 0x124]
jmp 0x1400c04ea
call fcn.1400bf420
mov rcx, qword [0x14035abe0]
jmp 0x1400c047f
mov rcx, rdi
call fcn.140047ff0
jmp 0x1400c04b8
dec qword [rcx + 0x100]
call fcn.140131b40
jmp 0x1400c04da
mov rcx, rsi
call fcn.140047ff0
jmp 0x1400c036e
mov rdi, qword [0x14035aab0]
jmp 0x1400c0137
mov rax, qword [rsi + 0x1f0]
mov ecx, 0x3938700
lea r8, [rcx + rax]
sar r8, 0x3f
btc r8, 0x3f
add rcx, rax
cmovo rcx, r8
cmp rcx, rdx
jg 0x1400c05fc
lea rdi, [rsp + 0x58]
mov rcx, rdi
call fcn.140131030
mov rdi, qword [rdi]
test rdi, rdi
je 0x1400c05fc
lock dec dword [rdi]
jne 0x1400c05fc
mov rcx, rdi
call fcn.14011feb0
mov rcx, rdi
call fcn.14016eccc
mov rax, qword [rsi + 0x1f0]
xor ecx, ecx
cmp r14, rax
setns cl
add rcx, r15
sub r14, rax
movabs r15, 0x8000000000000001
cmovo r14, rcx
lea rax, [r14 + r15]
cmp rax, 2
jae 0x1400c063e
shr r14, 0x3f
lea rax, [0x140308b10]
movsd xmm0, qword [rax + r14*8]
jmp 0x1400c0643
ud2
cvtsi2sd xmm0, r14
divsd xmm0, qword [0x140308b20]
call fcn.1401ae0e0
movsd xmm6, qword [0x1402eea60]
ucomisd xmm6, xmm0
jae 0x1400c0672
xor eax, eax
ucomisd xmm0, qword [0x1402eea78]
mov edi, 0x7fffffff
cmovb edi, eax
jmp 0x1400c067e
maxsd xmm0, qword [0x1402eea78]
cvttsd2si edi, xmm0
add r15, rbx
cmp r15, 2
jb 0x1400c0699
xorps xmm0, xmm0
cvtsi2sd xmm0, rbx
divsd xmm0, qword [0x140308b20]
jmp 0x1400c06a1
movsd xmm0, qword [0x140308b28]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jae 0x1400c06ba
addsd xmm0, qword [0x1402eea68]
call fcn.1401adce4
jmp 0x1400c06c7
addsd xmm0, qword [0x1402ee600]
call fcn.1401ae0e0
ucomisd xmm6, xmm0
jae 0x1400c06e3
xor eax, eax
ucomisd xmm0, qword [0x1402eea78]
mov r8d, 0x7fffffff
cmovb r8d, eax
jmp 0x1400c06f0
maxsd xmm0, qword [0x1402eea78]
cvttsd2si r8d, xmm0
mov rcx, rsi
mov edx, edi
call fcn.140225e50
jmp 0x1400c0433
dec qword [rcx + 0x108]
call fcn.140131b40
jmp 0x1400c04ea