Function at 0x140009e48
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x10], 0xfffffffffffffffe
and dword [rbp - 0x40], 0
xor edi, edi
lea rdx, [rbp + 0x40]
mov rcx, qword [rcx]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r15, rax
test rax, rax
je 0x14000a1f8
xor ebx, ebx
cmp dword [rbp + 0x40], ebx
jle 0x14000a1ef
mov rsi, rax
or r12d, 0xffffffff
lea r14d, [rdi + 1]
mov rdx, qword [rsi]
lea rcx, [rbp + 0x48]
call fcn.1400052f0
nop
lea rcx, [rbp + 0x48]
call fcn.1400072b0
lea rdx, [0x140036f90]
lea rcx, [rbp + 0x58]
call fcn.140005408
nop
lea rcx, [rbp + 0x58]
call fcn.1400072b0
mov rdx, qword [rax]
test rdx, rdx
je 0x140009eee
mov rcx, qword [rbp + 0x48]
cmp dword [rcx - 0x10], 0
jl 0x140009eee
call fcn.1400111d4
test rax, rax
je 0x140009eee
sub rax, qword [rbp + 0x48]
sar rax, 1
test eax, eax
je 0x140009f44
mov rdx, qword [rbp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140009f0f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140009f2f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add ebx, r14d
add rsi, 8
cmp ebx, dword [rbp + 0x40]
jge 0x14000a1ef
jmp 0x140009e97
call fcn.140005e30
mov rcx, rax
test rax, rax
je 0x14000a209
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x50], rax
mov rax, qword [0x140036f90]
mov r8d, dword [rax - 0x10]
mov rax, qword [rbp + 0x48]
mov r9d, dword [rax - 0x10]
sub r9d, r8d
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x48]
call fcn.140007410
mov dword [rbp - 0x40], r14d
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.140007328
and r14d, 0xfffffffe
mov dword [rbp - 0x40], r14d
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140009fbe
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, str.UpdateReplaceState_Wait
lea rcx, [rbp - 0x30]
call fcn.1400052f0
nop
mov rcx, rax
call fcn.1400072b0
mov rbx, qword [rax]
lea rcx, [rbp + 0x50]
call fcn.1400072b0
test rbx, rbx
je 0x140009ffa
mov rcx, qword [rax]
cmp dword [rcx - 0x10], 0
jl 0x140009ffa
mov rdx, rbx
call fcn.1400111d4
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14000a01a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, str.UpdateReplaceState_Replace
lea rcx, [rbp - 0x28]
call fcn.1400052f0
nop
mov rcx, rax
call fcn.1400072b0
mov rbx, qword [rax]
lea rcx, [rbp + 0x50]
call fcn.1400072b0
mov rdi, rax
test rbx, rbx
je 0x14000a060
mov rcx, qword [rax]
cmp dword [rcx - 0x10], 0
jl 0x14000a060
mov rdx, rbx
call fcn.1400111d4
mov rbx, rax
test rax, rax
jne 0x14000a065
mov ebx, r12d
jmp 0x14000a06b
sub rbx, qword [rdi]
sar rbx, 1
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14000a08b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor edi, edi
cmp ebx, r12d
setne dil
lea rdx, str.UpdateReplaceState_RunShell
lea rcx, [rbp - 0x20]
call fcn.1400052f0
nop
mov rcx, rax
call fcn.1400072b0
mov rbx, qword [rax]
lea rcx, [rbp + 0x50]
call fcn.1400072b0
mov rsi, rax
test rbx, rbx
je 0x14000a0da
mov rcx, qword [rax]
cmp dword [rcx - 0x10], 0
jl 0x14000a0da
mov rdx, rbx
call fcn.1400111d4
mov rbx, rax
test rax, rax
jne 0x14000a0df
mov ebx, r12d
jmp 0x14000a0e5
sub rbx, qword [rsi]
sar rbx, 1
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14000a105
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, 2
cmp ebx, r12d
cmovne edi, eax
lea rdx, str.UpdateReplaceState_RunNewVersion
lea rcx, [rbp - 0x18]
call fcn.1400052f0
nop
mov rcx, rax
call fcn.1400072b0
mov rbx, qword [rax]
lea rcx, [rbp + 0x50]
call fcn.1400072b0
mov rsi, rax
test rbx, rbx
je 0x14000a156
mov rcx, qword [rax]
cmp dword [rcx - 0x10], 0
jl 0x14000a156
mov rdx, rbx
call fcn.1400111d4
mov rbx, rax
test rax, rax
jne 0x14000a15b
mov ebx, r12d
jmp 0x14000a161
sub rbx, qword [rsi]
sar rbx, 1
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14000a181
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, 3
cmp ebx, r12d
cmovne edi, eax
mov rdx, qword [rbp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14000a1ad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14000a1ce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x48]
add rdx, 0xffffffffffffffe8
mov ecx, r12d
lock xadd dword [rdx + 0x10], ecx
add ecx, r12d
test ecx, ecx
jg 0x14000a1ef
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140005bc4
int3