Function at 0x140042480
Capabilities:
Accept command line arguments

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14009e018]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov qword [r11 + 8], rsi
mov qword [r11 + 0x10], rdi
mov qword [r11 + 0x18], r14
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rbp - 0x48]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, 0x78
mov rsi, rax
call fcn.140051c40
xor ebx, ebx
mov qword [0x1400a34c0], rax
lea rcx, [rbp - 0x50]
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x28], 7
mov qword [rax + 0x20], rbx
mov word [rax + 0x10], bx
mov qword [rax + 0x48], 7
mov qword [rax + 0x40], rbx
mov word [rax + 0x30], bx
mov qword [rax + 0x68], 7
mov qword [rax + 0x60], rbx
mov word [rax + 0x50], bx
call fcn.1400434d0
call fcn.14003f150
test eax, eax
jns 0x140042528
mov ebx, 0xfffffffd
jmp 0x140042a9a
mov ecx, 0x36dfc209
call fcn.14001a490
mov r14d, 0x5017
or rdi, 0xffffffffffffffff
movzx ecx, word [rax]
xor cx, r14w
mov word [rbp - 0x20], cx
movzx ecx, word [rax + 2]
xor cx, r14w
mov word [rbp - 0x1e], cx
movzx ecx, word [rax + 4]
xor cx, r14w
mov word [rbp - 0x1c], cx
movzx eax, word [rax + 6]
mov rcx, qword [0x1400a34c0]
xor ax, r14w
mov word [rbp - 0x1a], ax
mov word [rbp - 0x18], bx
test rcx, rcx
je 0x1400425ac
lea rdx, [rbp - 0x20]
mov rax, rdi
cmp word [rdx + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x140042582
mov rcx, qword [rcx + 0x70]
lea r8d, [rax*2 + 2]
lea r9, [rbp - 0x4c]
mov qword [rsp + 0x20], rbx
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rbp - 0x48], 1
jle 0x140042922
mov rcx, qword [rsi + 8]
lea rdx, str._install
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140042620
mov ecx, 0xcfddee52
call fcn.14001a490
movzx ecx, word [rax]
xor cx, r14w
mov word [rbp - 0x20], cx
movzx ecx, word [rax + 2]
xor cx, r14w
mov word [rbp - 0x1e], cx
movzx ecx, word [rax + 4]
xor cx, r14w
mov word [rbp - 0x1c], cx
lea rcx, [rbp - 0x20]
movzx eax, word [rax + 6]
xor ax, r14w
mov word [rbp - 0x18], bx
mov word [rbp - 0x1a], ax
call fcn.14003ade0
mov ecx, 3
call fcn.1400407e0
jmp 0x140042a9a
mov rcx, qword [rsi + 8]
lea rdx, str._installp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14004268a
mov ecx, 0xa93c01ce
call fcn.14001a490
movzx ecx, word [rax]
xor cx, r14w
mov word [rbp - 0x20], cx
movzx ecx, word [rax + 2]
xor cx, r14w
mov word [rbp - 0x1e], cx
movzx ecx, word [rax + 4]
xor cx, r14w
mov word [rbp - 0x1c], cx
lea rcx, [rbp - 0x20]
movzx eax, word [rax + 6]
xor ax, r14w
mov word [rbp - 0x18], bx
mov word [rbp - 0x1a], ax
call fcn.14003ade0
mov ecx, 2
call fcn.1400407e0
jmp 0x140042a9a
mov rcx, qword [rsi + 8]
lea rdx, str._run
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140042922
mov ecx, 0xd6bec664
call fcn.14001a490
movzx ecx, word [rax]
xor cx, r14w
mov word [rbp - 0x20], cx
movzx ecx, word [rax + 2]
xor cx, r14w
mov word [rbp - 0x1e], cx
movzx ecx, word [rax + 4]
xor cx, r14w
mov word [rbp - 0x1c], cx
lea rcx, [rbp - 0x20]
movzx eax, word [rax + 6]
xor ax, r14w
mov word [rbp - 0x18], bx
mov word [rbp - 0x1a], ax
call fcn.14003ade0
call fcn.140040dd0
test eax, eax
jne 0x140042792
mov ecx, 0xbed2b6de
call fcn.14001a490
movzx ecx, word [rax]
xor cx, r14w
mov word [rbp - 0x20], cx
movzx ecx, word [rax + 2]
xor cx, r14w
mov word [rbp - 0x1e], cx
movzx ecx, word [rax + 4]
xor cx, r14w
mov word [rbp - 0x1c], cx
lea rcx, [rbp - 0x20]
movzx eax, word [rax + 6]
xor ax, r14w
mov word [rbp - 0x18], bx
mov word [rbp - 0x1a], ax
call fcn.14003ade0
call fcn.140042280
test eax, eax
jne 0x140042792
mov ecx, 0x64206141
call fcn.14001a490
movzx ecx, word [rax]
xor cx, r14w
mov word [rbp - 0x20], cx
movzx ecx, word [rax + 2]
xor cx, r14w
mov word [rbp - 0x1e], cx
movzx ecx, word [rax + 4]
xor cx, r14w
mov word [rbp - 0x1c], cx
lea rcx, [rbp - 0x20]
movzx eax, word [rax + 6]
xor ax, r14w
mov word [rbp - 0x18], bx
mov word [rbp - 0x1a], ax
call fcn.14003ade0
mov ebx, edi
jmp 0x140042a9a
mov ecx, 0x1c21c6b
call fcn.14001a490
movzx ecx, word [rax]
xor cx, r14w
mov word [rbp - 0x20], cx
movzx ecx, word [rax + 2]
xor cx, r14w
mov word [rbp - 0x1e], cx
movzx ecx, word [rax + 4]
xor cx, r14w
mov word [rbp - 0x1c], cx
lea rcx, [rbp - 0x20]
movzx eax, word [rax + 6]
xor ax, r14w
mov word [rbp - 0x18], bx
mov word [rbp - 0x1a], ax
call fcn.14003ade0
call fcn.140041230
test eax, eax
jns 0x1400428d7
mov ecx, 0xa597983b
call fcn.14001a490
movzx ecx, word [rax]
xor cx, r14w
mov word [rbp - 0x20], cx
movzx ecx, word [rax + 2]
xor cx, r14w
mov word [rbp - 0x1e], cx
movzx ecx, word [rax + 4]
xor cx, r14w
mov word [rbp - 0x1c], cx
lea rcx, [rbp - 0x20]
movzx eax, word [rax + 6]
xor ax, r14w
mov word [rbp - 0x18], bx
mov word [rbp - 0x1a], ax
call fcn.14003ade0
call fcn.140042280
test eax, eax
jne 0x140042881
mov ecx, 0x7355533f
call fcn.14001a490
movzx ecx, word [rax]
xor cx, r14w
mov word [rbp - 0x20], cx
movzx ecx, word [rax + 2]
xor cx, r14w
mov word [rbp - 0x1e], cx
movzx ecx, word [rax + 4]
xor cx, r14w
mov word [rbp - 0x1c], cx
lea rcx, [rbp - 0x20]
movzx eax, word [rax + 6]
xor ax, r14w
mov word [rbp - 0x18], bx
mov word [rbp - 0x1a], ax
call fcn.14003ade0
mov ebx, edi
jmp 0x140042a9a
call fcn.140041230
test eax, eax
jns 0x1400428d7
mov ecx, 0xbb915c34
call fcn.14001a490
movzx ecx, word [rax]
xor cx, r14w
mov word [rbp - 0x20], cx
movzx ecx, word [rax + 2]
xor cx, r14w
mov word [rbp - 0x1e], cx
movzx ecx, word [rax + 4]
xor cx, r14w
mov word [rbp - 0x1c], cx
lea rcx, [rbp - 0x20]
movzx eax, word [rax + 6]
xor ax, r14w
mov word [rbp - 0x18], bx
mov word [rbp - 0x1a], ax
call fcn.14003ade0
mov ebx, edi
jmp 0x140042a9a
mov ecx, 0x7f95d8f5
call fcn.14001a490
movzx ecx, word [rax]
xor cx, r14w
mov word [rbp - 0x20], cx
movzx ecx, word [rax + 2]
xor cx, r14w
mov word [rbp - 0x1e], cx
movzx ecx, word [rax + 4]
xor cx, r14w
mov word [rbp - 0x1c], cx
lea rcx, [rbp - 0x20]
movzx eax, word [rax + 6]
xor ax, r14w
mov word [rbp - 0x18], bx
mov word [rbp - 0x1a], ax
call fcn.14003ade0
jmp 0x140042a9a
mov ecx, 0x8a122265
call fcn.14001a490
movzx ecx, word [rax]
xor cx, r14w
mov word [rbp - 0x20], cx
movzx ecx, word [rax + 2]
xor cx, r14w
mov word [rbp - 0x1e], cx
movzx ecx, word [rax + 4]
xor cx, r14w
mov word [rbp - 0x1c], cx
movzx eax, word [rax + 6]
mov rcx, qword [0x1400a34c0]
xor ax, r14w
mov word [rbp - 0x1a], ax
mov word [rbp - 0x18], bx
test rcx, rcx
je 0x1400429a3
lea rdx, [rbp - 0x20]
mov rax, rdi
cmp word [rdx + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x140042972
mov rcx, qword [rcx + 0x70]
lea r8d, [rax*2 + 2]
lea r9, [rbp - 0x4c]
mov qword [rsp + 0x20], rbx
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x1400a34c0]
cmp qword [rcx + 0x28], 8
lea rax, [rcx + 0x10]
jb 0x1400429b1
mov rax, qword [rax]
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x40]
lea rax, [0x140042be0]
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x28], rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140042a1c
mov ecx, 0x249d7c9e
call fcn.14001a490
movzx ecx, word [rax]
xor cx, r14w
mov word [rbp - 0x20], cx
movzx ecx, word [rax + 2]
xor cx, r14w
mov word [rbp - 0x1e], cx
movzx ecx, word [rax + 4]
xor cx, r14w
mov word [rbp - 0x1c], cx
lea rcx, [rbp - 0x20]
movzx eax, word [rax + 6]
xor ax, r14w
mov word [rbp - 0x18], bx
mov word [rbp - 0x1a], ax
call fcn.14003ade0
mov ecx, 0xf1911aec
call fcn.14001a490
movzx ecx, word [rax]
xor cx, r14w
mov word [rbp - 0x20], cx
movzx ecx, word [rax + 2]
xor cx, r14w
mov word [rbp - 0x1e], cx
movzx ecx, word [rax + 4]
xor cx, r14w
mov word [rbp - 0x1c], cx
movzx eax, word [rax + 6]
mov rcx, qword [0x1400a34c0]
xor ax, r14w
mov word [rbp - 0x1a], ax
mov word [rbp - 0x18], bx
test rcx, rcx
je 0x140042a9a
lea rax, [rbp - 0x20]
nop dword [rax]
cmp word [rax + rdi*2 + 2], bx
lea rdi, [rdi + 1]
jne 0x140042a70
mov rcx, qword [rcx + 0x70]
lea r8d, [rdi*2 + 2]
lea r9, [rbp - 0x4c]
mov qword [rsp + 0x20], rbx
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [rbp - 0x50], 0
mov r14, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
jne 0x140042abd
call fcn.1400434b0
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140051aa0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rbp
ret