Function at 0x140002270
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor r9d, r9d
mov qword [0x1400045d8], rcx
mov rbx, r8
xor ecx, ecx
xor r8d, r8d
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
nop dword [rax + rax]
xor esi, esi
lea rdx, [rsp + 0x34]
mov rcx, rbx
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
mov ebp, esi
mov qword [rsp + 0x40], rsi
mov edi, esi
mov byte [rsp + 0x80], sil
mov dword [rsp + 0x34], esi
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
nop dword [rax + rax]
mov r13, rax
test rax, rax
je 0x140002563
mov ebx, esi
cmp dword [rsp + 0x34], esi
jle 0x140002563
mov rsi, rax
xor r12d, r12d
test edi, edi
js 0x140002572
mov r14, qword [rsi]
mov ecx, 0xfffd
movzx eax, word [r14]
sub ax, 0x2d
test cx, ax
jne 0x1400023d2
add r14, 2
cmp word [r14], r12w
je 0x1400023d2
lea rdx, str.InstallWiaDevice
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
jne 0x140002359
mov r15b, 1
mov byte [rsp + 0x80], r15b
jmp 0x1400023da
lea rdx, str.WindowHandle
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
jne 0x140002481
lea eax, [rbx + 1]
cmp eax, dword [rsp + 0x34]
jge 0x1400023cd
xor edx, edx
add rsi, 8
mov ebx, eax
mov rcx, qword [rsi]
lea r8d, [rdx + 0xa]
call qword [sym.imp.msvcrt.dll_wcstoul]
nop dword [rax + rax]
mov ebp, eax
mov ecx, eax
mov qword [rsp + 0x40], rbp
call qword [sym.imp.USER32.dll_IsWindow]
nop dword [rax + rax]
mov r14, qword [rsp + 0x38]
mov r15b, byte [rsp + 0x80]
mov r12d, dword [rsp + 0x30]
test eax, eax
jne 0x1400023e4
mov edi, 0x80070578
jmp 0x1400023e4
mov edi, 0x80070057
mov r15b, byte [rsp + 0x80]
mov r12d, dword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
inc ebx
add rsi, 8
cmp ebx, dword [rsp + 0x34]
jl 0x1400022fd
xor esi, esi
test edi, edi
js 0x140002572
test r15b, r15b
je 0x140002545
lea rcx, str.sti_ci.dll
mov edi, esi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140002528
lea rdx, str.AddDevice
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x1400024fc
call qword [sym.imp.USER32.dll_GetDesktopWindow]
nop dword [rax + rax]
mov rcx, rax
movabs r10, 0x941d273818569270
mov r9d, 5
lea r8, [0x140003452]
mov rdx, rbx
mov rax, rsi
call qword [vtable.H_.0]
jmp 0x140002517
mov r15d, r12d
mov rbp, r12
lea r12, str.WiaPropertiesVersion1
mov rdx, qword [r12]
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
je 0x1400024ba
inc r15d
inc rbp
add r12, 0x10
cmp r15d, 3
jb 0x14000248e
jmp 0x1400023d2
mov r15b, byte [rsp + 0x80]
lea eax, [rbx + 1]
cmp eax, dword [rsp + 0x34]
jge 0x1400024f2
add rsi, 8
mov ebx, eax
add rbp, rbp
lea rax, str.WiaPropertiesVersion1
mov r14, qword [rsi]
mov r12d, dword [rax + rbp*8 + 8]
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x38], r14
jmp 0x1400023e4
mov edi, 0x80070057
jmp 0x1400023da
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x140002517
movzx edi, ax
or edi, 0x80070000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
jmp 0x140002572
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x140002572
movzx edi, ax
or edi, 0x80070000
jmp 0x140002572
test r14, r14
je 0x14000255e
mov rcx, qword [rsp + 0x40]
mov r8, r14
mov edx, r12d
call fcn.140001d30
mov edi, eax
jmp 0x140002572
mov rbp, qword [rsp + 0x40]
mov rcx, rbp
call fcn.140001bb8
mov edi, eax
test r13, r13
je 0x140002581
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
lea r11, [rsp + 0x50]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret