Function at 0x1400a9519
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2c8
movaps xmmword [rsp + 0x2b0], xmm6
mov rsi, r9
mov r13, r8
mov r12, rdx
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x2a8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movaps xmm6, xmmword [0x1401146a0]
movaps xmmword [rsp + 0x30], xmm6
cmp byte [rcx + 0x17], 0
jns 0x1400a99b3
mov rdx, qword [rcx]
mov r8, qword [rcx + 8]
lea rcx, [rsp + 0x30]
call fcn.140063364
movabs r14, 0x7fffffffffffffef
mov ecx, 0x40
call fcn.140076ec8
mov qword [rsp + 0x80], rax
lea rcx, [r14 + 0x31]
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x88], 0x18
movaps xmm0, xmmword [0x140117f00]
movups xmmword [rax + 0x20], xmm0
movaps xmm0, xmmword [0x140117ef0]
movups xmmword [rax + 0x10], xmm0
movaps xmm0, xmmword [str.embedded_browser_webview]
movups xmmword [rax], xmm0
mov word [rax + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
mov rcx, rax
call fcn.140077408
cmp rax, r14
ja 0x1400a99c9
mov rdi, rax
mov qword [rsp + 0x28], rsi
cmp rax, 0xb
jae 0x1400a9617
lea rsi, [rsp + 0x68]
mov byte [rsi + 0x17], dil
test rdi, rdi
jne 0x1400a9643
jmp 0x1400a9654
lea rbp, [rdi + 8]
and rbp, 0xfffffffffffffff8
mov rcx, rbp
add rcx, rbp
call fcn.140076ec8
mov rsi, rax
mov qword [rsp + 0x68], rax
lea rax, [r14 + 0x11]
or rax, rbp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x70], rdi
mov r8, rdi
add r8, rdi
mov rcx, rsi
mov rdx, rbx
call fcn.14007be20
mov word [rsi + rdi*2], 0
lea rbx, [rsp + 0xa0]
lea rdx, [rsp + 0x68]
lea r15, [rsp + 0x80]
mov rcx, rbx
mov r8, r15
call fcn.140043dd0
movzx esi, byte [rbx + 0x17]
test sil, sil
jns 0x1400a968b
mov rsi, qword [rsp + 0xa8]
js 0x1400a99d3
cmp byte [rsp + 0x7f], 0
jns 0x1400a96a2
mov rcx, qword [rsp + 0x68]
call fcn.140076eb8
cmp byte [rsp + 0x97], 0
jns 0x1400a96b9
mov rcx, qword [rsp + 0x80]
call fcn.140076eb8
test rsi, rsi
jne 0x1400a97d2
mov ecx, 0x30
call fcn.140076ec8
mov qword [rsp + 0xa0], rax
lea rcx, [r14 + 0x29]
mov qword [rsp + 0xb0], rcx
mov qword [rsp + 0xa8], 0x12
mov ecx, dword [0x140117fd6]
mov dword [rax + 0x20], ecx
movups xmm0, xmmword [0x140117fc6]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [str.SOFTWAREPolicies_]
movups xmmword [rax], xmm0
mov word [rax + 0x24], 0
mov rcx, r12
xor edx, edx
mov r8, rbx
call fcn.1400c2878
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
cmp byte [rsp + 0xb7], 0
jns 0x1400a9746
mov rbx, qword [rsp + 0xa0]
lea rsi, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
lea r9, str.UserDataDir
mov ecx, 1
xor edx, edx
mov r8, rbx
call fcn.1400baaf3
test al, al
jne 0x1400a9958
cmp byte [rsp + 0xb7], 0
jns 0x1400a9785
mov r8, qword [rsp + 0xa0]
jmp 0x1400a978d
lea r8, [rsp + 0xa0]
mov qword [rsp + 0x20], rsi
lea r9, str.UserDataDir
mov ecx, 2
xor edx, edx
call fcn.1400baaf3
test al, al
jne 0x1400a9958
cmp byte [rsp + 0x97], 0
js 0x1400a99e5
cmp byte [rsp + 0xb7], 0
jns 0x1400a97d2
mov rcx, qword [rsp + 0xa0]
call fcn.140076eb8
movzx esi, byte [rsp + 0x47]
test sil, sil
mov rdx, qword [rsp + 0x38]
mov rax, rsi
cmovs rax, rdx
test rax, rax
je 0x1400a9a65
mov ebx, esi
shr bl, 7
lea rbp, [rsp + 0x30]
mov rdi, qword [rsp + 0x30]
test bl, 1
mov rcx, rbp
cmovne rcx, rdi
movzx eax, word [rcx + rax*2 - 2]
cmp ax, 0x5c
je 0x1400a9994
cmp ax, 0x2f
je 0x1400a9994
lea rcx, [rsp + 0x30]
call fcn.1400a9cea
test al, al
je 0x1400a9a65
lea rsi, [rsp + 0xa0]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.14007c4d0
cmp byte [rsp + 0x47], 0
jns 0x1400a9859
mov rdx, qword [rsp + 0x30]
jmp 0x1400a985e
lea rdx, [rsp + 0x30]
mov r8d, 0x104
mov rcx, rsi
call fcn.1400783d0
test rax, rax
je 0x1400a99f7
lea rcx, [rsp + 0xa0]
call fcn.140077408
cmp rax, r14
ja 0x1400a9a13
mov rbx, rax
cmp rax, 0xb
jae 0x1400a98a2
mov byte [rsp + 0x97], bl
test rbx, rbx
jne 0x1400a98d5
jmp 0x1400a98eb
lea rsi, [rbx + 8]
and rsi, 0xfffffffffffffff8
lea rcx, [rsi + rsi]
call fcn.140076ec8
mov r15, rax
mov qword [rsp + 0x80], rax
add r14, 0x11
or r14, rsi
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x88], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0xa0]
mov rcx, r15
call fcn.14007be20
mov word [r15 + rbx*2], 0
cmp byte [r13 + 0x17], 0
js 0x1400a9a20
mov rax, qword [rsp + 0x90]
mov qword [r13 + 0x10], rax
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [r13], xmm0
mov sil, 1
cmp byte [rsp + 0x47], 0
jns 0x1400a992a
mov rcx, qword [rsp + 0x30]
call fcn.140076eb8
mov rcx, qword [rsp + 0x2a8]
xor rcx, rsp
call fcn.140079ea0
mov eax, esi
movaps xmm6, xmmword [rsp + 0x2b0]
add rsp, 0x2c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x68]
lea rdx, [rsp + 0x80]
call fcn.1400e5994
cmp byte [rsp + 0x47], 0
jns 0x1400a997b
mov rcx, qword [rsp + 0x30]
call fcn.140076eb8
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x30], xmm0
jmp 0x1400a97ad
test bl, 1
je 0x1400a9a2e
lea rax, [rdx - 1]
mov qword [rsp + 0x38], rax
lea rax, [rdi + rdx*2]
add rax, 0xfffffffffffffffe
jmp 0x1400a9a3e
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x30], xmm0
jmp 0x1400a9585
lea rcx, [rsp + 0x68]
call fcn.1400ac2dc
mov rcx, qword [rsp + 0xa0]
call fcn.140076eb8
jmp 0x1400a9691
mov rcx, qword [rsp + 0x80]
call fcn.140076eb8
jmp 0x1400a97bb
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
jmp 0x1400a98f2
lea rcx, [rsp + 0x80]
call fcn.1400ac2dc
mov rcx, qword [r13]
call fcn.140076eb8
jmp 0x1400a98fd
lea rax, [rsi - 1]
mov byte [rsp + 0x47], al
lea rax, [rsp + rsi*2]
add rax, 0x2e
mov word [rax], 0
movzx esi, byte [rsp + 0x47]
mov ebx, esi
shr bl, 7
test sil, sil
mov rdx, qword [rsp + 0x38]
mov rax, rsi
cmovs rax, rdx
test rax, rax
jne 0x1400a97f9
lea rbp, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov rdx, rbp
call fcn.14006b090
lea rbx, [rsp + 0xa0]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rbx + 0x10], rax
movaps xmmword [rbx], xmm6
lea rdx, str.LOCALAPPDATA
mov rcx, rbx
call fcn.1400e56d8
movzx eax, byte [rbx + 0x17]
test al, al
jns 0x1400a9aaf
mov rax, qword [rsp + 0xa8]
test rax, rax
je 0x1400a9c6e
movaps xmm0, xmmword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rcx
movaps xmm1, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x30], xmm1
movzx ecx, byte [rsp + 0x47]
test cl, cl
cmovs rcx, qword [rsp + 0x38]
cmovs rbp, qword [rsp + 0x30]
movaps xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], rax
cmp word [rbp + rcx*2 - 2], 0x5c
je 0x1400a9b15
lea rcx, [rsp + 0x30]
mov dx, 0x5c
call fcn.1400443dc
lea rsi, [rsp + 0x30]
mov rcx, r12
mov dl, 1
mov r8, rsi
call fcn.1400c2878
mov rcx, rsi
mov dx, 0x5c
call fcn.1400443dc
lea rdx, str.User_Data
mov rcx, rsi
call fcn.140052c64
lea rbp, [rsp + 0x80]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rbp + 0x10], rax
movaps xmmword [rbp], xmm6
mov ecx, 0x20
call fcn.140076ec8
lea rdi, [rsp + 0x68]
mov qword [rdi], rax
lea rcx, [r14 + 0x21]
mov qword [rdi + 0x10], rcx
mov qword [rdi + 8], 0xf
movups xmm0, xmmword [0x140117f2e]
movups xmmword [rax + 0xe], xmm0
movaps xmm0, xmmword [str.edge_kiosk_type]
movups xmmword [rax], xmm0
mov word [rax + 0x1e], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
mov rcx, rax
call fcn.140077408
lea rsi, [rsp + 0x50]
mov rcx, rsi
mov rdx, rbx
mov r8, rax
call fcn.140070e26
mov rcx, rbp
mov rdx, rsi
mov r8, rdi
call fcn.140043dd0
cmp byte [rsi + 0x17], 0
jns 0x1400a9bdb
mov rcx, qword [rsp + 0x50]
call fcn.140076eb8
cmp byte [rsp + 0x7f], 0
jns 0x1400a9bec
mov rcx, qword [rsp + 0x68]
call fcn.140076eb8
lea rdx, str.fullscreen
lea rcx, [rsp + 0x80]
call fcn.14006e5b3
test al, al
jne 0x1400a9c1c
lea rdx, str.public_browsing
lea rcx, [rsp + 0x80]
call fcn.14006e5b3
test al, al
je 0x1400a9c2d
lea rdx, str._Kiosk
lea rcx, [rsp + 0x30]
call fcn.140052c64
cmp byte [rsp + 0x97], 0
jns 0x1400a9c44
mov rcx, qword [rsp + 0x80]
call fcn.140076eb8
mov dil, 1
cmp byte [rsp + 0xb7], 0
jns 0x1400a9c5e
mov rcx, qword [rsp + 0xa0]
call fcn.140076eb8
test dil, dil
jne 0x1400a9833
xor esi, esi
jmp 0x1400a9919
xor edi, edi
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400a9c47
mov esi, eax
inc esi
xor edi, edi
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
call fcn.14006387c
cmp byte [rsp + 0xb7], 0
jns 0x1400a9ca4
mov rbx, qword [rsp + 0xa0]
mov ecx, esi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400a9c47
mov edx, eax
movzx eax, byte [rsp + 0xb7]
test al, al
jns 0x1400a9cc9
mov rax, qword [rsp + 0xa8]
cmp rax, rdx
jbe 0x1400a9ce3
lea rcx, [rsp + 0xa0]
xor r8d, r8d
call fcn.14006387c
jmp 0x1400a9ab8
xor edi, edi
jmp 0x1400a9c47