Function at 0x140001660
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 [0x14003f010]
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, [0x140031d6c]
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 [0x1400403d8]
mov eax, dword [0x1400403d4]
lea ebx, [rdi + 1]
add ecx, eax
je 0x1400017ab
mov dword [rsp + 0x50], edi
call fcn.140001f90
mov qword [rsp + 0x48], rax
lock inc dword [rsp + 0x50]
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x140001738
call fcn.140001f90
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.140001510
nop
mov qword [rsp + 0x48], rdi
mov eax, 0xffffffff
lock xadd dword [rsp + 0x50], eax
cmp eax, 1
js 0x1400017a6
call fcn.140002270
mov eax, 0xffffffff
lock xadd dword [rsp + 0x50], eax
cmp eax, 1
jns 0x140001791
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.140001e30
nop
xor edx, edx
mov r8d, 0x260
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x60]
call fcn.140001e30
nop
lea rcx, [rbp + 0x200]
call fcn.140001c00
test eax, eax
jne 0x1400018b4
mov ecx, dword [0x1400403d8]
mov eax, dword [0x1400403d4]
add ecx, eax
je 0x14000186c
mov dword [rsp + 0x60], edi
call fcn.140001f90
mov qword [rsp + 0x58], rax
lock inc dword [rsp + 0x60]
mov dword [rsp + 0x40], ebx
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x14000183b
call fcn.140001f90
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.140001510
nop
mov eax, dword [rsp + 0x40]
test al, 1
je 0x1400018aa
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 0x1400018a5
call fcn.140002270
mov eax, 0xffffffff
lock xadd dword [rsp + 0x60], eax
cmp eax, 1
jns 0x140001890
lock inc dword [rsp + 0x60]
mov edi, 0x65b
jmp 0x140001b8b
lea rcx, [rbp - 0x60]
call fcn.140001c00
test eax, eax
jne 0x140001984
mov ecx, dword [0x1400403d8]
mov eax, dword [0x1400403d4]
add ecx, eax
je 0x14000193a
mov dword [rsp + 0x70], edi
call fcn.140001f90
mov qword [rsp + 0x68], rax
lock inc dword [rsp + 0x70]
mov dword [rsp + 0x40], 2
mov rax, qword [rsp + 0x68]
test rax, rax
jne 0x140001909
call fcn.140001f90
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.140001510
nop
mov eax, dword [rsp + 0x40]
test al, 2
je 0x14000197a
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 0x140001975
nop
call fcn.140002270
mov eax, 0xffffffff
lock xadd dword [rsp + 0x70], eax
cmp eax, 1
jns 0x140001960
lock inc dword [rsp + 0x70]
mov edi, 0x65b
jmp 0x140001b8b
lea rbx, str.services_bdappservice.dll
mov rcx, qword [rbp + 0x200]
test rcx, rcx
je 0x1400019d7
mov rdx, qword [rcx - 0xc]
test rdx, rdx
je 0x1400019d7
mov r8, qword [rdx + 8]
test r8, r8
je 0x1400019d7
movsxd rax, r8d
dec rax
cmp rax, qword [rdx + 0x10]
ja 0x140001bd7
cmp word [rcx + rax*2], 0x5c
je 0x1400019d7
movsxd rax, r8d
cmp word [rcx + rax*2 - 2], 0x2f
je 0x1400019d7
lea rcx, [rbp + 0x200]
call fcn.140002420
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x1400019e6
cmp ax, 0x2f
jne 0x1400019ec
add rbx, 2
jmp 0x1400019d7
mov rdx, rbx
lea rcx, [rbp + 0x200]
call fcn.140002590
lea rbx, str.services_bdauxiliaryservice.dll
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140001a50
mov rdx, qword [rcx - 0xc]
test rdx, rdx
je 0x140001a50
mov r8, qword [rdx + 8]
test r8, r8
je 0x140001a50
movsxd rax, r8d
dec rax
cmp rax, qword [rdx + 0x10]
ja 0x140001bd7
cmp word [rcx + rax*2], 0x5c
je 0x140001a50
movsxd rax, r8d
cmp word [rcx + rax*2 - 2], 0x2f
je 0x140001a50
lea rcx, [rbp - 0x60]
call fcn.140002420
nop dword [rax + rax]
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x140001a5f
cmp ax, 0x2f
jne 0x140001a65
add rbx, 2
jmp 0x140001a50
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.140002590
lea rbx, [0x140031f08]
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 0x140001aa2
mov r8d, 3
lea rdx, [0x140031e90]
jmp 0x140001ac7
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 0x140001acf
mov r8d, 4
lea rdx, str.core
mov rcx, rsi
call fcn.1400020f0
mov ecx, dword [0x1400403d8]
mov eax, dword [0x1400403d4]
add ecx, eax
je 0x140001b50
mov dword [rbp - 0x80], edi
call fcn.140001f90
mov qword [rsp + 0x78], rax
lock inc dword [rbp - 0x80]
mov dword [rsp + 0x40], 0x10
mov rax, qword [rsp + 0x78]
test rax, rax
jne 0x140001b10
call fcn.140001f90
mov qword [rsp + 0x78], rax
lock inc dword [rbp - 0x80]
mov rcx, qword [rsp + 0x78]
cmp qword [rsi + 0x18], 8
jb 0x140001b1f
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.140001510
nop
mov eax, dword [rsp + 0x40]
test al, 0x10
je 0x140001b8b
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 0x140001b87
call fcn.140002270
mov eax, 0xffffffff
lock xadd dword [rbp - 0x80], eax
cmp eax, 1
jns 0x140001b73
lock inc dword [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.140002380
nop
lea rcx, [rbp + 0x200]
call fcn.140002380
nop
lea rcx, [rbp + 0x460]
call fcn.140001570
mov eax, edi
mov rcx, qword [rbp + 0x880]
xor rcx, rsp
call fcn.14002cae0
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