Function at 0x408350
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5414a0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x59ff60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.0040da10
test eax, eax
jne 0x4083a8
push 0x5525c0
call fcn.00524997
add esp, 4
push str.Arp_Intelligent_Protection
call fcn.00403640
push str.AIPS
call fcn.00403680
mov eax, dword [ebp + 8]
add esp, 8
xor ebx, ebx
cmp eax, 1
jle 0x40875f
add esi, 8
dec eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x4c], eax
jmp 0x4083e0
mov edx, dword [esi - 4]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [edx], 0
jne 0x4083fe
xor ecx, ecx
jmp 0x40840c
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408403
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004029c0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
mov eax, 5
cmovae ecx, dword [ebp - 0x28]
cmp esi, eax
mov dword [ebp - 4], 0
cmovb eax, esi
mov dword [ebp - 0x48], eax
test eax, eax
je 0x408498
mov edi, eax
mov edx, str.setup
sub edi, 4
jb 0x408459
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40845e
add ecx, 4
add edx, 4
sub edi, 4
jae 0x408448
cmp edi, 0xfffffffc
je 0x408492
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x40848b
cmp edi, 0xfffffffd
je 0x408492
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x40848b
cmp edi, 0xfffffffe
je 0x408492
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x40848b
cmp edi, 0xffffffff
je 0x408492
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x408492
sbb eax, eax
or eax, 1
jmp 0x408494
xor eax, eax
test eax, eax
jne 0x4084ac
cmp esi, 5
jae 0x4084a2
or eax, 0xffffffff
jmp 0x4084aa
xor eax, eax
cmp esi, 5
setne al
test eax, eax
sete al
test al, al
je 0x4084e3
mov esi, dword [ebp - 0x44]
push ecx
mov ecx, esp
mov dword [ebp - 0x48], esp
push dword [esi + 4]
call fcn.00401bb0
push ecx
mov ecx, esp
mov byte [ebp - 4], 1
push dword [esi]
call fcn.00401bb0
mov byte [ebp - 4], 0
call fcn.004042f0
add esp, 8
jmp 0x40872e
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
cmp edi, 0x10
mov eax, 9
cmovae ecx, dword [ebp - 0x28]
cmp esi, eax
cmovb eax, esi
push eax
push str.noservice
push ecx
call fcn.00403740
add esp, 0xc
test eax, eax
jne 0x408521
cmp esi, 9
jae 0x408517
or eax, 0xffffffff
jmp 0x40851f
xor eax, eax
cmp esi, 9
setne al
test eax, eax
sete al
test al, al
jne 0x408726
cmp edi, 0x10
lea eax, [ebp - 0x28]
mov edi, 7
cmovae eax, dword [ebp - 0x28]
cmp esi, edi
cmovb edi, esi
push edi
push str.console
push eax
call fcn.00403740
add esp, 0xc
test eax, eax
jne 0x408567
cmp esi, 7
jae 0x40855d
or eax, 0xffffffff
jmp 0x408565
xor eax, eax
cmp esi, 7
setne al
test eax, eax
sete al
test al, al
jne 0x408726
push dword [ebp - 0x48]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push str.start
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00403740
add esp, 0xc
test eax, eax
jne 0x4085a6
cmp esi, 5
jae 0x40859c
or eax, 0xffffffff
jmp 0x4085a4
xor eax, eax
cmp esi, 5
setne al
test eax, eax
sete al
test al, al
je 0x4085cc
push str.RpcSs
call fcn.004082a0
call fcn.00403630
push eax
call fcn.00403de0
add esp, 8
mov ebx, eax
jmp 0x40872b
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, 4
cmovae ecx, dword [ebp - 0x28]
cmp esi, eax
cmovb eax, esi
push eax
push str.stop
push ecx
call fcn.00403740
add esp, 0xc
test eax, eax
jne 0x408608
cmp esi, 4
jae 0x4085fe
or eax, 0xffffffff
jmp 0x408606
xor eax, eax
cmp esi, 4
setne al
test eax, eax
sete al
test al, al
je 0x408624
call fcn.00403630
push eax
call fcn.00403ec0
add esp, 4
mov ebx, eax
jmp 0x40872b
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push str.install
push eax
call fcn.00403740
add esp, 0xc
test eax, eax
jne 0x408656
cmp esi, 7
jae 0x40864c
or eax, 0xffffffff
jmp 0x408654
xor eax, eax
cmp esi, 7
setne al
test eax, eax
sete al
test al, al
je 0x408669
call fcn.00403a60
mov ebx, eax
jmp 0x40872b
lea eax, [ebp - 0x28]
push str.remove
push eax
call fcn.00408230
add esp, 8
test al, al
je 0x40868a
call fcn.00403d30
mov ebx, eax
jmp 0x40872b
lea eax, [ebp - 0x28]
push str.running
push eax
call fcn.00408230
add esp, 8
test al, al
je 0x4086b7
call fcn.00403630
push eax
call fcn.00403910
xor ebx, ebx
add esp, 4
cmp eax, 4
sete bl
jmp 0x40872b
lea eax, [ebp - 0x28]
push str.status
push eax
call fcn.00408230
add esp, 8
test al, al
je 0x4086fa
call fcn.00403630
push eax
call fcn.00403910
add esp, 4
mov ebx, eax
call fcn.00403630
cmp dword [eax + 0x14], 0x10
jb 0x4086e9
mov eax, dword [eax]
push ebx
push eax
push str._s_service_status____ld__n
call fcn.00524997
add esp, 0xc
jmp 0x40872b
lea eax, [ebp - 0x40]
push eax
call fcn.004034e0
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40870e
mov eax, dword [eax]
push eax
push str._s__noserviceconsolestartstopinstallremoverunningstatus__n
call fcn.00524997
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.00401cf0
jmp 0x40872b
call fcn.004042e0
mov esi, dword [ebp - 0x44]
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x408746
push dword [ebp - 0x28]
call fcn.00408e11
add esp, 4
add esi, 4
dec dword [ebp - 0x4c]
mov dword [ebp - 0x44], esi
jne 0x4083e0
cmp dword [ebp + 8], 1
jle 0x40875f
mov eax, ebx
jmp 0x408771
call fcn.00404330
push str.Arp_Intelligent_Protection_Service_n
call fcn.00524997
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00525164
mov esp, ebp
pop ebp
ret