Function at 0x140002000
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x890]
sub rsp, 0x990
mov rax, qword [0x140098010]
xor rax, rsp
mov qword [rbp + 0x880], rax
mov rsi, rcx
xor edi, edi
mov dword [rsp + 0x40], edi
call qword [sym.imp.WINMM.dll_timeGetTime]
mov dword [rbp + 0x460], eax
lea r9, [rdi - 1]
lea r14, str.GetRunningFolderId
mov r8, r14
mov edx, 0x102
lea rcx, [rbp + 0x464]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea r8, [0x1400802d4]
mov edx, 0x104
lea rcx, [rbp + 0x464]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r9, [rdi - 1]
mov r8, r14
mov edx, 0x104
lea rcx, [rbp + 0x66c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov ecx, dword [0x14009c6fc]
mov eax, dword [0x14009c6f8]
lea ebx, [rdi + 1]
add ecx, eax
je 0x14000214b
mov dword [rsp + 0x50], edi
call fcn.140002930
mov qword [rsp + 0x48], rax
lock inc dword [rsp + 0x50]
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x1400020d8
call fcn.140002930
mov qword [rsp + 0x48], rax
lock inc dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov dword [rbp - 0x78], 0x20
lea rax, [rbp + 0x464]
mov qword [rsp + 0x30], rax
lea rax, str.____s
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x66c]
mov qword [rsp + 0x20], rax
lea r9, [0x140000000]
lea r8, [rbp - 0x78]
movsx edx, bx
call fcn.140001eb0
nop
mov qword [rsp + 0x48], rdi
mov eax, 0xffffffff
lock xadd dword [rsp + 0x50], eax
cmp eax, 1
js 0x140002146
call fcn.140002cc0
mov eax, 0xffffffff
lock xadd dword [rsp + 0x50], eax
cmp eax, 1
jns 0x140002131
lock inc dword [rsp + 0x50]
xor edx, edx
mov r8d, 0x260
lea rcx, [rbp + 0x200]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x200]
call fcn.1400027d0
nop
xor edx, edx
mov r8d, 0x260
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x60]
call fcn.1400027d0
nop
lea rcx, [rbp + 0x200]
call fcn.1400025a0
test eax, eax
jne 0x140002254
mov ecx, dword [0x14009c6fc]
mov eax, dword [0x14009c6f8]
add ecx, eax
je 0x14000220c
mov dword [rsp + 0x60], edi
call fcn.140002930
mov qword [rsp + 0x58], rax
lock inc dword [rsp + 0x60]
mov dword [rsp + 0x40], ebx
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x1400021db
call fcn.140002930
mov qword [rsp + 0x58], rax
lock inc dword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
mov dword [rbp - 0x74], 4
lea rax, str.bd::PathString::AskExeFolder_failed
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [0x140000000]
lea r8, [rbp - 0x74]
movsx edx, di
call fcn.140001eb0
nop
mov eax, dword [rsp + 0x40]
test al, 1
je 0x14000224a
and eax, 0xfffffffe
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x58], rdi
mov eax, 0xffffffff
lock xadd dword [rsp + 0x60], eax
cmp eax, 1
js 0x140002245
call fcn.140002cc0
mov eax, 0xffffffff
lock xadd dword [rsp + 0x60], eax
cmp eax, 1
jns 0x140002230
lock inc dword [rsp + 0x60]
mov edi, 0x65b
jmp 0x14000252b
lea rcx, [rbp - 0x60]
call fcn.1400025a0
test eax, eax
jne 0x140002324
mov ecx, dword [0x14009c6fc]
mov eax, dword [0x14009c6f8]
add ecx, eax
je 0x1400022da
mov dword [rsp + 0x70], edi
call fcn.140002930
mov qword [rsp + 0x68], rax
lock inc dword [rsp + 0x70]
mov dword [rsp + 0x40], 2
mov rax, qword [rsp + 0x68]
test rax, rax
jne 0x1400022a9
call fcn.140002930
mov qword [rsp + 0x68], rax
lock inc dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov dword [rbp - 0x70], 4
lea rax, str.bd::PathString::AskExeFolder_failed
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [0x140000000]
lea r8, [rbp - 0x70]
movsx edx, di
call fcn.140001eb0
nop
mov eax, dword [rsp + 0x40]
test al, 2
je 0x14000231a
and eax, 0xfffffffd
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x68], rdi
mov eax, 0xffffffff
lock xadd dword [rsp + 0x70], eax
cmp eax, 1
js 0x140002315
nop
call fcn.140002cc0
mov eax, 0xffffffff
lock xadd dword [rsp + 0x70], eax
cmp eax, 1
jns 0x140002300
lock inc dword [rsp + 0x70]
mov edi, 0x65b
jmp 0x14000252b
lea rbx, str.services_bdappservice.dll
mov rcx, qword [rbp + 0x200]
test rcx, rcx
je 0x140002377
mov rdx, qword [rcx - 0xc]
test rdx, rdx
je 0x140002377
mov r8, qword [rdx + 8]
test r8, r8
je 0x140002377
movsxd rax, r8d
dec rax
cmp rax, qword [rdx + 0x10]
ja 0x140002577
cmp word [rcx + rax*2], 0x5c
je 0x140002377
movsxd rax, r8d
cmp word [rcx + rax*2 - 2], 0x2f
je 0x140002377
lea rcx, [rbp + 0x200]
call fcn.140002e70
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x140002386
cmp ax, 0x2f
jne 0x14000238c
add rbx, 2
jmp 0x140002377
mov rdx, rbx
lea rcx, [rbp + 0x200]
call fcn.140002fe0
lea rbx, str.services_bdauxiliaryservice.dll
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x1400023f0
mov rdx, qword [rcx - 0xc]
test rdx, rdx
je 0x1400023f0
mov r8, qword [rdx + 8]
test r8, r8
je 0x1400023f0
movsxd rax, r8d
dec rax
cmp rax, qword [rdx + 0x10]
ja 0x140002577
cmp word [rcx + rax*2], 0x5c
je 0x1400023f0
movsxd rax, r8d
cmp word [rcx + rax*2 - 2], 0x2f
je 0x1400023f0
lea rcx, [rbp - 0x60]
call fcn.140002e70
nop dword [rax + rax]
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x1400023ff
cmp ax, 0x2f
jne 0x140002405
add rbx, 2
jmp 0x1400023f0
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.140002fe0
lea rbx, [0x140080468]
mov rcx, rbx
mov rax, qword [rbp + 0x200]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140002442
mov r8d, 3
lea rdx, [0x1400803f0]
jmp 0x140002467
mov rax, qword [rbp - 0x60]
test rax, rax
cmovne rbx, rax
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000246f
mov r8d, 4
lea rdx, str.core
mov rcx, rsi
call fcn.140002a90
mov ecx, dword [0x14009c6fc]
mov eax, dword [0x14009c6f8]
add ecx, eax
je 0x1400024f0
mov dword [rbp - 0x80], edi
call fcn.140002930
mov qword [rsp + 0x78], rax
lock inc dword [rbp - 0x80]
mov dword [rsp + 0x40], 0x10
mov rax, qword [rsp + 0x78]
test rax, rax
jne 0x1400024b0
call fcn.140002930
mov qword [rsp + 0x78], rax
lock inc dword [rbp - 0x80]
mov rcx, qword [rsp + 0x78]
cmp qword [rsi + 0x18], 8
jb 0x1400024bf
mov rsi, qword [rsi]
mov dword [rbp - 0x6c], 0x10
mov qword [rsp + 0x30], rsi
lea rax, str.Detected_folder_type:__s
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [0x140000000]
lea r8, [rbp - 0x6c]
movsx edx, di
call fcn.140001eb0
nop
mov eax, dword [rsp + 0x40]
test al, 0x10
je 0x14000252b
and eax, 0xffffffef
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x78], rdi
mov eax, 0xffffffff
lock xadd dword [rbp - 0x80], eax
cmp eax, 1
js 0x140002527
call fcn.140002cc0
mov eax, 0xffffffff
lock xadd dword [rbp - 0x80], eax
cmp eax, 1
jns 0x140002513
lock inc dword [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.140002dd0
nop
lea rcx, [rbp + 0x200]
call fcn.140002dd0
nop
lea rcx, [rbp + 0x460]
call fcn.140001f10
mov eax, edi
mov rcx, qword [rbp + 0x880]
xor rcx, rsp
call fcn.14003edb0
lea r11, [rsp + 0x990]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
xor edx, edx
xor ecx, ecx
call sub.VCRUNTIME140.dll__CxxThrowException
int3