Function at 0x14003a330
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x268
mov qword [rsp + 0x230], 0xfffffffffffffffe
mov rax, qword [0x1402aa808]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp qword [rsp + 0x278], 0
je 0x14003a37a
cmp qword [rsp + 0x280], 0
jne 0x14003a392
lea rdx, [0x140200550]
mov ecx, 2
call fcn.14001c160
xor eax, eax
jmp 0x14003aac7
mov dword [rsp + 0x90], 1
call fcn.140018340
add rax, 0x158
mov rcx, rax
call fcn.14000d370
mov qword [rsp + 0x80], rax
call fcn.140018340
add rax, 0x158
mov rcx, rax
call fcn.14000c560
mov qword [rsp + 0xb8], rax
call fcn.140018340
add rax, 0x158
lea rdx, [rsp + 0x98]
mov rcx, rax
call fcn.14000bba0
nop
call fcn.140018340
add rax, 0x158
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14000bfa0
nop
lea rcx, [rsp + 0x60]
call fcn.1400109a0
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x280]
call fcn.14004c2f0
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x58], 0
cmp qword [rsp + 0x88], 0
jne 0x14003a4b4
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x58]
inc ecx
mov dword [rsp + 0x58], ecx
cmp eax, 0x64
jle 0x14003a492
lea rdx, str.CInstallAction::doExecuteBaseInstaller__window_handle_n
mov ecx, 2
call fcn.14001c160
mov dword [rsp + 0x1f4], 0
lea rcx, [rsp + 0x60]
call fcn.140010770
nop
lea rcx, [rsp + 0x98]
call fcn.1400114e0
mov eax, dword [rsp + 0x1f4]
jmp 0x14003aac7
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x280]
call fcn.14004c2f0
mov qword [rsp + 0x88], rax
jmp 0x14003a434
mov qword [rsp + 0xc0], 0
jmp 0x14003a4d5
mov rax, qword [rsp + 0xc0]
inc rax
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0xc0], rax
jae 0x14003aa9a
mov rdx, qword [rsp + 0x278]
lea rcx, [rsp + 0xd8]
call fcn.1400033c0
nop
lea rax, [rsp + 0x1f8]
mov qword [rsp + 0x220], rax
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x60]
call fcn.1400109d0
mov rdx, rax
mov rcx, qword [rsp + 0x220]
call fcn.140010440
mov qword [rsp + 0x238], rax
mov rax, qword [rsp + 0x238]
mov qword [rsp + 0x240], rax
call fcn.140018340
add rax, 0x158
mov rdx, qword [rsp + 0x240]
mov rcx, rax
call fcn.14000c5f0
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.140010580
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x98]
call fcn.140010b80
add rax, 0x28
mov rcx, rax
call fcn.140003530
mov qword [rsp + 0xc8], rax
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x98]
call fcn.140010b80
add rax, 0x50
mov rcx, rax
call fcn.140003530
mov qword [rsp + 0x100], rax
lea rcx, [rsp + 0xd8]
call fcn.140003530
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003aa43
lea rcx, [rsp + 0x1e0]
call fcn.140040a50
nop
lea rcx, [rsp + 0x1e8]
call fcn.140001cf0
nop
lea rcx, [rsp + 0x110]
call fcn.140001cf0
nop
mov dword [rsp + 0x108], 0
mov dword [rsp + 0x15c], 0
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xc8]
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x110]
call fcn.140002800
lea rcx, [rsp + 0xd8]
call fcn.140003530
mov rdx, rax
lea rcx, [rsp + 0x1e8]
call fcn.1400185f0
lea rdx, [0x140200544]
lea rcx, [rsp + 0x1e8]
call fcn.14000fd10
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x1e8]
call fcn.14000fce0
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x60]
call fcn.1400109d0
mov rdx, rax
lea rcx, [rsp + 0x118]
call fcn.140010440
nop
lea rdx, [0x140200630]
lea rcx, [rsp + 0x118]
call fcn.14002ef10
test eax, eax
jne 0x14003a70f
call fcn.140018340
add rax, 0x158
mov rcx, rax
call fcn.1400405b0
test eax, eax
je 0x14003a70f
lea rdx, [0x140200548]
lea rcx, [rsp + 0x1e8]
call fcn.14000fd10
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x170]
call fcn.1401ac6a0
mov dword [rsp + 0x170], VarBstrFromDisp
xor edx, edx
lea rcx, [rsp + 0x1e8]
call fcn.140001da0
mov r8, rax
lea rdx, str.CInstallAction::doExecuteBaseInstaller__strCmdLine____1_s____n
mov ecx, 5
call fcn.14001c160
mov rcx, qword [rsp + 0x280]
call fcn.14004c490
mov rcx, qword [rsp + 0x280]
call fcn.14004c370
xor edx, edx
mov eax, 0x64
div qword [rsp + 0x50]
imul rax, qword [rsp + 0xc0]
mov dword [rsp + 0x158], eax
xor edx, edx
mov eax, 0x64
div qword [rsp + 0x50]
mov rcx, qword [rsp + 0xc0]
inc rcx
imul rax, rcx
mov dword [rsp + 0x160], eax
xor edx, edx
lea rcx, [rsp + 0x1e8]
call fcn.140001da0
lea rcx, [rsp + 0x140]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x170]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14003a9ee
mov rcx, qword [rsp + 0x148]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0x64
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x1f0], eax
call fcn.14000e450
mov eax, dword [rsp + 0x160]
cmp dword [rsp + 0x158], eax
jge 0x14003a87d
mov eax, dword [rsp + 0x158]
inc eax
mov dword [rsp + 0x158], eax
xor r8d, r8d
mov edx, dword [rsp + 0x158]
mov rcx, qword [rsp + 0x280]
call fcn.14004ba40
cmp dword [rsp + 0x1f0], 0x102
je 0x14003a81c
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x58], 0
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x280]
call fcn.14004c4d0
mov dword [rsp + 0x108], eax
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x248], eax
cmp dword [rsp + 0x248], 0
jb 0x14003a98d
cmp dword [rsp + 0x248], 1
jbe 0x14003a8fe
cmp dword [rsp + 0x248], 2
je 0x14003a961
cmp dword [rsp + 0x248], 3
je 0x14003a96e
jmp 0x14003a98d
mov dword [rsp + 0x90], 0
mov rcx, qword [rsp + 0x280]
call fcn.14004c4f0
mov dword [rsp + 0x15c], eax
cmp dword [rsp + 0x15c], 0xf
je 0x14003a93b
cmp dword [rsp + 0x15c], 0x48
je 0x14003a93b
cmp dword [rsp + 0x15c], 0x13
jne 0x14003a946
mov dword [rsp + 0x90], 1
mov r8d, dword [rsp + 0x15c]
lea rdx, str.CInstallAction::doExecuteBaseInstaller__ErrorCode___1_x__n
mov ecx, 4
call fcn.14001c160
jmp 0x14003a998
mov dword [rsp + 0x90], 1
jmp 0x14003a998
mov dword [rsp + 0x90], 1
mov rax, qword [rsp + 0x270]
mov dword [rax + 0xe8], 1
jmp 0x14003a998
mov dword [rsp + 0x90], 0
mov eax, dword [rsp + 0x108]
cmp rax, 4
jb 0x14003a9bc
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x58]
inc ecx
mov dword [rsp + 0x58], ecx
cmp eax, 0x64
jl 0x14003a8a0
mov r8d, dword [rsp + 0x108]
lea rdx, str.CInstallAction::doExecuteBaseInstaller__nExitCode___1_d__n
mov ecx, 4
call fcn.14001c160
xor r8d, r8d
mov edx, dword [rsp + 0x160]
mov rcx, qword [rsp + 0x280]
call fcn.14004ba40
jmp 0x14003aa0a
lea rdx, [0x1402007b8]
mov ecx, 2
call fcn.14001c160
mov dword [rsp + 0x90], 0
lea rcx, [rsp + 0x118]
call fcn.140003430
nop
lea rcx, [rsp + 0x110]
call fcn.140001d50
nop
lea rcx, [rsp + 0x1e8]
call fcn.140001d50
nop
lea rcx, [rsp + 0x1e0]
call fcn.140040a70
jmp 0x14003aa6f
lea rcx, [rsp + 0xd8]
call fcn.140003530
mov r8, rax
lea rdx, [0x1402007f8]
mov ecx, 2
call fcn.14001c160
mov dword [rsp + 0x90], 0
cmp dword [rsp + 0x90], 0
jne 0x14003aa88
lea rcx, [rsp + 0xd8]
call fcn.140003430
jmp 0x14003aa9a
lea rcx, [rsp + 0xd8]
call fcn.140003430
jmp 0x14003a4c2
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x228], eax
lea rcx, [rsp + 0x60]
call fcn.140010770
nop
lea rcx, [rsp + 0x98]
call fcn.1400114e0
mov eax, dword [rsp + 0x228]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401ab2d0
add rsp, 0x268
ret