Function at 0x140074e80
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes
Get program files directory

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x10130
call fcn.140181870
sub rsp, rax
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rsp + 0x10180], rbx
mov rax, qword [0x140210348]
xor rax, rsp
mov qword [rsp + 0x10120], rax
mov rbx, rdx
mov qword [rsp + 0x60], rdx
mov r12, rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0xa0], rdx
call fcn.14013d07c
mov rcx, rax
xor r13d, r13d
mov edx, r13d
test rax, rax
setne dl
test edx, edx
jne 0x140074f02
mov ecx, 0x80004005
call fcn.140001c00
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x50], rsi
lea rdx, [0x14019cf88]
or rbp, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x140074f4b
movzx edi, dx
mov ecx, edi
call fcn.14013d654
test rax, rax
je 0x140074f6c
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400020e0
mov rsi, qword [rsp + 0x50]
jmp 0x140074f6c
xor eax, eax
mov rcx, rbp
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x50]
call fcn.140002390
mov rsi, qword [rsp + 0x50]
mov r14d, r13d
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rsp + 0x120]
call fcn.140160e90
lea rdx, [rsp + 0x120]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x26]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400755e6
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0x120]
repne scasw ax, word [rdi]
not rcx
cmp word [rsp + rcx*2 + 0x11c], 0x5c
jne 0x140074fd1
mov word [rsp + rcx*2 + 0x11c], ax
mov rcx, rbp
lea rdi, [rsp + 0x120]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
mov r14d, 1
test ecx, ecx
jne 0x140075052
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x1400750da
cmp dword [rdx + 0x10], eax
jge 0x140075024
cmp dword [rsi - 0xc], eax
jge 0x140075018
mov ecx, 0x80070057
call fcn.140001c00
int3
mov dword [rsi - 0x10], r13d
mov word [rsi], ax
jmp 0x1400750da
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14007503b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x50], rsi
jmp 0x1400750da
mov ebx, dword [rsi - 0x10]
lea r12, [rsp + 0x120]
sub r12, rsi
sar r12, 1
mov ecx, r14d
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x140075083
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140001df0
mov rsi, qword [rsp + 0x50]
cmp r12, rbx
ja 0x1400750a3
movsxd rax, edi
lea rbx, [rax + rax]
lea r8, [rsi + r12*2]
mov r9, rbx
mov rdx, rbx
mov rcx, rsi
call fcn.14015cf60
jmp 0x1400750c0
movsxd rax, edi
lea rbx, [rax + rax]
mov r9, rbx
lea r8, [rsp + 0x120]
mov rdx, rbx
mov rcx, rsi
call fcn.14015cd30
test edi, edi
js 0x1400755db
cmp edi, dword [rsi - 0xc]
jg 0x1400755db
mov dword [rsi - 0x10], edi
mov word [rbx + rsi], 0
xor eax, eax
mov rcx, rbp
lea r12, str.RealtekAudioHDA_
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
sub rcx, r14
mov qword [rsp + 0x58], rcx
mov rbx, r12
sub rbx, rsi
sar rbx, 1
mov r15d, dword [rsi - 0x10]
lea edi, [r15 + rcx]
mov edx, r14d
sub edx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, edx
jge 0x14007512d
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140001df0
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
cmp rbx, r15
ja 0x140075136
lea r12, [rsi + rbx*2]
movsxd rdx, ecx
add rdx, rdx
lea rcx, [rsi + r15*2]
mov r9, rdx
mov r8, r12
call fcn.14015cd30
test edi, edi
js 0x1400755d0
cmp edi, dword [rsi - 0xc]
jg 0x1400755d0
mov dword [rsi - 0x10], edi
movsxd rax, edi
mov word [rsi + rax*2], 0
mov r12, qword [rsp + 0x68]
mov r12, qword [r12]
mov edx, dword [r12 - 0x10]
mov dword [rsp + 0x58], edx
mov rbx, r12
sub rbx, rsi
sar rbx, 1
mov r15d, dword [rsi - 0x10]
lea edi, [r15 + rdx]
mov ecx, r14d
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400751af
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140001df0
mov rsi, qword [rsp + 0x50]
mov edx, dword [rsp + 0x58]
cmp rbx, r15
ja 0x1400751b8
lea r12, [rsi + rbx*2]
movsxd rdx, edx
add rdx, rdx
lea rcx, [rsi + r15*2]
mov r9, rdx
mov r8, r12
call fcn.14015cd30
test edi, edi
js 0x1400755c5
cmp edi, dword [rsi - 0xc]
jg 0x1400755c5
lea rax, [rsi - 0x10]
mov qword [rsp + 0x58], rax
mov dword [rax], edi
movsxd rax, edi
mov word [rsi + rax*2], 0
lea r12, [rsi - 0x18]
mov rcx, qword [r12]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [r12 + 0x10], 0
jl 0x14007521c
cmp rax, qword [r12]
jne 0x14007521c
mov rbx, r12
lock add dword [r12 + 0x10], r14d
jmp 0x140075262
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [r12 + 8]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x14007523a
call fcn.1400c5210
int3
mov eax, dword [r12 + 8]
mov dword [rbx + 8], eax
mov eax, dword [r12 + 8]
add eax, r14d
movsxd rdx, eax
lea r9, [rdx + rdx]
lea r8, [r12 + 0x18]
add rdx, rdx
lea rcx, [rbx + 0x18]
call fcn.14015cd30
add rbx, 0x18
mov qword [rsp + 0xa8], rbx
xor eax, eax
lea rdi, [0x14019cf88]
mov rsi, rbx
mov rcx, r14
repe cmpsw word [rsi], word [rdi]
je 0x140075287
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
jne 0x1400752ad
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400752db
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400752db
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140075346
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400752db
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, ebp
lock xadd dword [r12 + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400752f9
mov rcx, qword [r12]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, qword [rsp + 0x68]
mov rdx, qword [rax]
sub rdx, 0x18
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14007531d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov r12, qword [rsp + 0x60]
mov rdx, qword [r12]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x14007533f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140075641
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140075361
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
lea rdi, [0x14019cf88]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rbx]
mov rcx, r14
repe cmpsw word [rsi], word [rdi]
je 0x14007537f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x1400754c4
xor eax, eax
mov rcx, rbp
lea r15, [0x1401a1ccc]
mov rdi, r15
repne scasw ax, word [rdi]
not rcx
sub rcx, r14
mov qword [rsp + 0x70], rcx
mov rbx, r15
mov rsi, qword [rsp + 0x50]
sub rbx, rsi
sar rbx, 1
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x58], eax
lea edi, [rax + rcx]
mov edx, r14d
sub edx, dword [r12 + 0x10]
mov eax, dword [r12 + 0xc]
sub eax, edi
or eax, edx
jge 0x1400753ee
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140001df0
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x70]
mov eax, dword [rsp + 0x58]
cmp rbx, rax
ja 0x1400753fb
lea r15, [rsi + rbx*2]
movsxd rdx, ecx
add rdx, rdx
lea rcx, [rsi + rax*2]
mov r9, rdx
mov r8, r15
call fcn.14015cd30
test edi, edi
js 0x1400754b9
cmp edi, dword [rsi - 0xc]
jg 0x1400754b9
mov dword [rsi - 0x10], edi
movsxd rax, edi
mov word [rsi + rax*2], 0
mov r12, qword [rsp + 0x60]
mov r12, qword [r12]
mov edx, dword [r12 - 0x10]
mov dword [rsp + 0x58], edx
mov rbx, r12
sub rbx, rsi
sar rbx, 1
mov r15d, dword [rsi - 0x10]
lea edi, [r15 + rdx]
mov ecx, r14d
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x140075474
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140001df0
mov rsi, qword [rsp + 0x50]
mov edx, dword [rsp + 0x58]
cmp rbx, r15
ja 0x14007547d
lea r12, [rsi + rbx*2]
movsxd rdx, edx
add rdx, rdx
lea rcx, [rsi + r15*2]
mov r9, rdx
mov r8, r12
call fcn.14015cd30
test edi, edi
js 0x1400754ae
cmp edi, dword [rsi - 0xc]
jg 0x1400754ae
mov dword [rsi - 0x10], edi
movsxd rax, edi
mov word [rsi + rax*2], 0
mov rbx, qword [rsp + 0x60]
jmp 0x1400754c9
mov ecx, 0x80070057
call fcn.140001c00
int3
mov ecx, 0x80070057
call fcn.140001c00
int3
mov rsi, qword [rsp + 0x50]
cmp dword [rsi - 8], r14d
jle 0x1400754e1
mov edx, dword [rsi - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140001e50
mov rsi, qword [rsp + 0x50]
test rsi, rsi
jne 0x1400754ee
mov r14d, r13d
jmp 0x1400755a0
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0xb0]
call fcn.140160e90
mov dword [rsp + 0xb0], 0x68
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14007556e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, r13d
jmp 0x140075587
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, rbp
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov r13d, ecx
test ecx, ecx
js 0x1400755ba
cmp r13d, dword [rsi - 0xc]
jg 0x1400755ba
mov dword [rsi - 0x10], r13d
movsxd rax, r13d
mov word [rsi + rax*2], 0
mov r12, qword [rsp + 0x68]
jmp 0x1400755e6
mov ecx, 0x80070057
call fcn.140001c00
int3
mov ecx, 0x80070057
call fcn.140001c00
int3
mov ecx, 0x80070057
call fcn.140001c00
int3
mov ecx, 0x80070057
call fcn.140001c00
nop
lea rdx, [rsi - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140075602
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140075622
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbx]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x14007563e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r14d
mov rcx, qword [rsp + 0x10120]
xor rcx, rsp
call fcn.14015d000
mov rbx, qword [rsp + 0x10180]
add rsp, 0x10130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret