Function at 0x406790
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4275ed
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x441018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov edi, 7
mov dword [ebp - 0x34], eax
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], edi
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.api_ms_win_shcore_obsolete_l1_1_0.dll_CommandLineToArgvW]
mov dword [ebp - 0x60], eax
xor esi, esi
nop dword [eax]
cmp esi, dword [ebp - 0x68]
jge 0x406988
push str._repair
push dword [eax + esi*4]
call fcn.00414555
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x60]
jne 0x4068ba
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.00406580
mov esi, eax
cmp edi, 8
jb 0x406879
mov edx, dword [ebp - 0x44]
lea ecx, [edi*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40686f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406ba3
push ecx
push edx
call fcn.0040f504
add esp, 8
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x4068b3
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4068a9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406ba3
push ecx
push edx
call fcn.0040f504
add esp, 8
mov eax, esi
jmp 0x406b80
push str._svcroot
push dword [eax + esi*4]
call fcn.00414555
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x60]
jne 0x406903
mov edx, dword [eax + esi*4 + 4]
inc esi
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x64], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4068e0
sub ecx, dword [ebp - 0x64]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00406fc0
mov eax, dword [ebp - 0x60]
inc esi
jmp 0x406810
push str._params
push dword [eax + esi*4]
call fcn.00414555
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x60]
jne 0x406949
mov edx, dword [eax + esi*4 + 4]
inc esi
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406924
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.00406fc0
mov edi, dword [ebp - 0x30]
inc esi
mov eax, dword [ebp - 0x60]
jmp 0x406810
push str._silent
push dword [eax + esi*4]
call fcn.00414555
add esp, 8
test eax, eax
jne 0x4068fa
push eax
push 0x434510
lea ecx, [ebp - 0x2c]
call fcn.00406fc0
push 7
push str._silent
lea ecx, [ebp - 0x44]
call fcn.00406fc0
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0x30]
jmp 0x40698f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x406a2a
cmp edi, 8
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
call fcn.00405b70
mov ecx, dword [ebp - 0x30]
mov esi, eax
cmp ecx, 8
jb 0x4069e5
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4069db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406ba3
push ecx
push edx
call fcn.0040f504
add esp, 8
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x4068b3
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406a19
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406ba3
push ecx
push edx
call fcn.0040f504
add esp, 8
mov eax, esi
jmp 0x406b80
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x19
jb 0x406b9e
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0x19
cmovae eax, dword [ebp - 0x2c]
push 0x434624
push ecx
push eax
push ecx
push dword [ebp - 0x64]
lea ecx, [ebp - 0x5c]
call fcn.004084c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
cmovae ecx, dword [ebp - 0x5c]
call fcn.00408970
test eax, eax
jne 0x406aa1
cmp edi, 8
lea eax, [ebp - 0x44]
push 1
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x2c]
push eax
mov edx, str.VantageServiceUninst.exe
call fcn.004053b0
add esp, 8
cmp eax, 0xc8
jne 0x406a9e
lea ecx, [ebp - 0x2c]
call fcn.00406310
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x48]
cmp ecx, 8
jb 0x406adb
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406ad1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406ba3
push ecx
push edx
call fcn.0040f504
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp edi, 8
jb 0x406b26
mov ecx, dword [ebp - 0x44]
lea edi, [edi*2 + 2]
mov eax, ecx
cmp edi, 0x1000
jb 0x406b1c
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406ba3
push edi
push ecx
call fcn.0040f504
add esp, 8
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x406b5c
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406b52
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406ba3
push ecx
push edx
call fcn.0040f504
add esp, 8
xor eax, eax
jmp 0x406b80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040f4f6
mov esp, ebp
pop ebp
ret 0x10
call fcn.00402df0
call fcn.00414471
int3