Function at 0x1400a9940
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov word [str.X:Program_FilesWindowsApps], cx
xor r15d, r15d
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
call fcn.14005bba0
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x17], r15
mov qword [rbp + 0x1f], r15
call fcn.14005bba0
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x37], r15
mov r14d, r15d
lea rcx, str.X:Program_FilesWindowsApps
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400a9dc5
lea rcx, str.X:Program_FilesWindowsApps
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x1400a9dc5
mov rcx, qword [0x1404580e0]
sub rcx, qword [0x1404580d8]
movabs rax, 0x7b301ecc07b301ed
imul rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1400a9dc5
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], r15
mov word [rbp - 0x39], r15w
lea r8d, [r15 + 0xd]
lea rdx, [0x1403341a8]
lea rcx, [rbp - 0x39]
call fcn.14004db90
lea rcx, [rbp - 0x39]
call fcn.14007d390
lea edx, [r15 + 1]
lea r8d, [r15 + 3]
lea rcx, str.X:Program_FilesWindowsApps
call fcn.140052070
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400a9a6f
lea r9, [rbp + 0x27]
lea r8, str.X:Program_FilesWindowsApps
lea rdx, [0x14007cf80]
mov rcx, rax
call fcn.140052330
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0x2f], r15
jbe 0x1400a9dc5
cmp dword [0x140455b64], r15d
jne 0x1400a9dc5
mov rax, qword [rbp + 0x27]
mov rdi, qword [rax]
cmp rdi, rax
je 0x1400a9bf8
nop word [rax + rax]
cmp dword [0x140455b64], 0
jne 0x1400a9dc5
cmp qword [rdi + 0x38], 8
jb 0x1400a9aba
mov rdx, qword [rdi + 0x20]
jmp 0x1400a9abe
lea rdx, [rdi + 0x20]
lea rcx, [rbp - 0x19]
call fcn.14004d8f0
mov rcx, rax
call fcn.14007d390
mov rbx, qword [0x1404580d8]
cmp rbx, qword [0x1404580e0]
je 0x1400a9ba4
cmp dword [0x140455b64], 0
jne 0x1400a9dc5
cmp qword [rbx + 0x40], 8
jb 0x1400a9afd
mov rdx, qword [rbx + 0x28]
jmp 0x1400a9b01
lea rdx, [rbx + 0x28]
cmp qword [rdi + 0x38], 8
jb 0x1400a9b0e
mov rcx, qword [rdi + 0x20]
jmp 0x1400a9b12
lea rcx, [rdi + 0x20]
xor r8d, r8d
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
je 0x1400a9b31
add rbx, 0x85
cmp rbx, qword [0x1404580e0]
jne 0x1400a9ae3
jmp 0x1400a9ba4
mov rcx, qword [rdi + 0x40]
call fcn.140052250
mov rbx, rax
mov qword [rbp - 1], 7
mov qword [rbp - 9], r15
mov word [rbp - 0x19], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rdi + 0x20]
lea rcx, [rbp - 0x19]
call fcn.14004e170
mov qword [rbp + 7], rbx
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x17]
call fcn.140056330
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0x17]
call fcn.1400563b0
nop
mov r8, qword [rbp - 1]
cmp r8, 8
jb 0x1400a9ba4
inc r8
mov rdx, qword [rbp - 0x19]
lea rcx, [rbp - 0x19]
call fcn.14004e100
cmp byte [rdi + 0x19], 0
jne 0x1400a9bee
mov rax, qword [rdi + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1400a9bce
mov rdi, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1400a9bee
mov rdi, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400a9bc0
jmp 0x1400a9bee
mov rax, qword [rdi + 8]
cmp byte [rax + 0x19], 0
jne 0x1400a9beb
cmp rdi, qword [rax + 0x10]
jne 0x1400a9beb
mov rdi, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400a9bd8
mov rdi, rax
cmp rdi, qword [rbp + 0x27]
jne 0x1400a9aa0
cmp qword [rbp + 0x1f], 0
jbe 0x1400a9dc5
mov rax, qword [rbp + 0x17]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400a9d38
cmp dword [0x140455b64], 0
jne 0x1400a9d38
mov qword [rbp + 0x37], r15
lea rdi, [rbx + 0x20]
cmp qword [rdi + 0x18], 8
jb 0x1400a9c34
mov rdx, qword [rdi]
jmp 0x1400a9c37
mov rdx, rdi
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], r15
mov word [rbp - 0x39], r15w
cmp word [rdx], 0
jne 0x1400a9c53
mov r8, r15
jmp 0x1400a9c6b
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400a9c60
lea rcx, [rbp - 0x39]
call fcn.14004db90
lea rcx, [rbp - 0x39]
call fcn.14007d390
cmp qword [rdi + 0x18], 8
jb 0x1400a9c87
mov rdi, qword [rdi]
mov edx, 1
lea r8d, [rdx + 2]
mov rcx, rdi
call fcn.140052070
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400a9cc6
lea r9, [rbp + 0x37]
mov r8, rdi
lea rdx, [0x14007d250]
mov rcx, rax
call fcn.140052330
mov edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1400a9cdb
mov rcx, qword [rbp + 0x37]
test rcx, rcx
je 0x1400a9cdb
mov rax, qword [rbx + 0x40]
mov qword [rax + 0x28], rcx
add r14, qword [rbp + 0x37]
cmp byte [rbx + 0x19], 0
jne 0x1400a9d2e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1400a9d0e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1400a9d2e
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400a9d00
jmp 0x1400a9d2e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400a9d2b
cmp rbx, qword [rax + 0x10]
jne 0x1400a9d2b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400a9d18
mov rbx, rax
cmp rbx, qword [rbp + 0x17]
jne 0x1400a9c13
lea rcx, [rbp + 0x27]
call fcn.14007e8b0
test r14, r14
je 0x1400a9dc5
call fcn.14007e670
mov rbx, rax
mov qword [rax + 0x68], r14
mov dword [rax + 0x71], r15d
mov dword [rax + 4], 0x1e
lea rcx, [rax + 0x48]
mov r8d, reloc.WS2_32.dll_listen
lea rdx, [0x140334100]
call fcn.14004db90
lea rdi, [rbx + 0x75]
lea rax, [rbp + 0x17]
cmp rdi, rax
je 0x1400a9db8
mov rdx, qword [rdi]
mov rdx, qword [rdx + 8]
mov rcx, rdi
call fcn.140068590
mov rax, qword [rdi]
mov qword [rax + 8], rax
mov rax, qword [rdi]
mov qword [rax], rax
mov rax, qword [rdi]
mov qword [rax + 0x10], rax
mov qword [rdi + 8], r15
movzx r8d, byte [rbp - 0x49]
lea rdx, [rbp + 0x17]
mov rcx, rdi
call fcn.1400686d0
mov byte [rbx + 0x70], 1
mov rcx, rbx
call fcn.14007e170
nop
mov r8, qword [rbp + 0x17]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x41]
lea rcx, [rbp + 0x17]
call fcn.140067fb0
mov rcx, qword [rbp + 0x17]
call fcn.140125e0c
nop
mov r8, qword [rbp + 0x27]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x41]
lea rcx, [rbp + 0x27]
call fcn.140067fb0
mov rcx, qword [rbp + 0x27]
call fcn.140125e0c
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140125a70
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret