Function at 0x140004150
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 [0x14017a390]
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 fcn.1400ff100
lea r8, [0x140148214]
mov edx, 0x104
lea rcx, [rbp + 0x464]
call fcn.1400ffc40
lea r9, [rdi - 1]
mov r8, r14
mov edx, 0x104
lea rcx, [rbp + 0x66c]
call fcn.1400ff100
mov ecx, dword [0x140182324]
mov eax, dword [0x140182320]
lea ebx, [rdi + 1]
add ecx, eax
je 0x14000429a
mov dword [rsp + 0x50], edi
call fcn.140004ab0
mov qword [rsp + 0x48], rax
lock inc dword [rsp + 0x50]
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x140004225
call fcn.140004ab0
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.140004000
nop
mov qword [rsp + 0x48], rdi
mov eax, 0xffffffff
lock xadd dword [rsp + 0x50], eax
cmp eax, 1
js 0x140004295
nop
call fcn.140004c10
mov eax, 0xffffffff
lock xadd dword [rsp + 0x50], eax
cmp eax, 1
jns 0x140004280
lock inc dword [rsp + 0x50]
xor edx, edx
mov r8d, 0x260
lea rcx, [rbp + 0x200]
call fcn.1400f5c20
lea rcx, [rbp + 0x200]
call fcn.140004920
nop
xor edx, edx
mov r8d, 0x260
lea rcx, [rbp - 0x60]
call fcn.1400f5c20
lea rcx, [rbp - 0x60]
call fcn.140004920
nop
lea rcx, [rbp + 0x200]
call fcn.1400046f0
test eax, eax
jne 0x1400043a4
mov ecx, dword [0x140182324]
mov eax, dword [0x140182320]
add ecx, eax
je 0x14000435b
mov dword [rsp + 0x60], edi
call fcn.140004ab0
mov qword [rsp + 0x58], rax
lock inc dword [rsp + 0x60]
mov dword [rsp + 0x40], ebx
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x14000432a
call fcn.140004ab0
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.140004000
nop
mov eax, dword [rsp + 0x40]
test al, 1
je 0x14000439a
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 0x140004395
nop
call fcn.140004c10
mov eax, 0xffffffff
lock xadd dword [rsp + 0x60], eax
cmp eax, 1
jns 0x140004380
lock inc dword [rsp + 0x60]
mov edi, 0x65b
jmp 0x14000467b
lea rcx, [rbp - 0x60]
call fcn.1400046f0
test eax, eax
jne 0x140004474
mov ecx, dword [0x140182324]
mov eax, dword [0x140182320]
add ecx, eax
je 0x14000442a
mov dword [rsp + 0x70], edi
call fcn.140004ab0
mov qword [rsp + 0x68], rax
lock inc dword [rsp + 0x70]
mov dword [rsp + 0x40], 2
mov rax, qword [rsp + 0x68]
test rax, rax
jne 0x1400043f9
call fcn.140004ab0
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.140004000
nop
mov eax, dword [rsp + 0x40]
test al, 2
je 0x14000446a
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 0x140004465
nop
call fcn.140004c10
mov eax, 0xffffffff
lock xadd dword [rsp + 0x70], eax
cmp eax, 1
jns 0x140004450
lock inc dword [rsp + 0x70]
mov edi, 0x65b
jmp 0x14000467b
lea rbx, str.services_bdappservice.dll
mov rcx, qword [rbp + 0x200]
test rcx, rcx
je 0x1400044c7
mov rdx, qword [rcx - 0xc]
test rdx, rdx
je 0x1400044c7
mov r8, qword [rdx + 8]
test r8, r8
je 0x1400044c7
movsxd rax, r8d
dec rax
cmp rax, qword [rdx + 0x10]
ja 0x1400046c7
cmp word [rcx + rax*2], 0x5c
je 0x1400044c7
movsxd rax, r8d
cmp word [rcx + rax*2 - 2], 0x2f
je 0x1400044c7
lea rcx, [rbp + 0x200]
call fcn.140004df0
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x1400044d6
cmp ax, 0x2f
jne 0x1400044dc
add rbx, 2
jmp 0x1400044c7
mov rdx, rbx
lea rcx, [rbp + 0x200]
call fcn.140004f60
lea rbx, str.services_bdauxiliaryservice.dll
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140004540
mov rdx, qword [rcx - 0xc]
test rdx, rdx
je 0x140004540
mov r8, qword [rdx + 8]
test r8, r8
je 0x140004540
movsxd rax, r8d
dec rax
cmp rax, qword [rdx + 0x10]
ja 0x1400046c7
cmp word [rcx + rax*2], 0x5c
je 0x140004540
movsxd rax, r8d
cmp word [rcx + rax*2 - 2], 0x2f
je 0x140004540
lea rcx, [rbp - 0x60]
call fcn.140004df0
nop dword [rax + rax]
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x14000454f
cmp ax, 0x2f
jne 0x140004555
add rbx, 2
jmp 0x140004540
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.140004f60
lea rbx, [0x140147fbc]
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 0x140004592
mov r8d, 3
lea rdx, [0x140148330]
jmp 0x1400045b7
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 0x1400045bf
mov r8d, 4
lea rdx, str.core
mov rcx, rsi
call fcn.1400021f0
mov ecx, dword [0x140182324]
mov eax, dword [0x140182320]
add ecx, eax
je 0x140004640
mov dword [rbp - 0x80], edi
call fcn.140004ab0
mov qword [rsp + 0x78], rax
lock inc dword [rbp - 0x80]
mov dword [rsp + 0x40], 0x10
mov rax, qword [rsp + 0x78]
test rax, rax
jne 0x140004600
call fcn.140004ab0
mov qword [rsp + 0x78], rax
lock inc dword [rbp - 0x80]
mov rcx, qword [rsp + 0x78]
cmp qword [rsi + 0x18], 8
jb 0x14000460f
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.140004000
nop
mov eax, dword [rsp + 0x40]
test al, 0x10
je 0x14000467b
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 0x140004677
call fcn.140004c10
mov eax, 0xffffffff
lock xadd dword [rbp - 0x80], eax
cmp eax, 1
jns 0x140004663
lock inc dword [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.140004d40
nop
lea rcx, [rbp + 0x200]
call fcn.140004d40
nop
lea rcx, [rbp + 0x460]
call fcn.140004060
mov eax, edi
mov rcx, qword [rbp + 0x880]
xor rcx, rsp
call fcn.1400f2e00
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 fcn.1400f5e30
int3