Function at 0x401c60
Capabilities:
Accept command line arguments
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 8], 1
mov esi, eax
jne 0x401ca5
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
push 0x41ade8
push dword [esi + 4]
call fcn.00405584
add esp, 8
test eax, eax
je 0x401ebf
push str._uninstall
push dword [esi + 4]
call fcn.00405584
add esp, 8
test eax, eax
je 0x401ebf
push 0x41ae18
push dword [esi + 4]
call fcn.00405584
add esp, 8
test eax, eax
je 0x401e68
push str._install
push dword [esi + 4]
call fcn.00405584
add esp, 8
test eax, eax
je 0x401e68
push 0x41ae40
push dword [esi + 4]
call fcn.00405584
add esp, 8
test eax, eax
je 0x401e68
push str._updateservice
push dword [esi + 4]
call fcn.00405584
add esp, 8
test eax, eax
je 0x401e68
push 0x41ae80
push dword [esi + 4]
call fcn.00405584
add esp, 8
test eax, eax
je 0x401e44
push str._autostart
push dword [esi + 4]
call fcn.00405584
add esp, 8
test eax, eax
je 0x401e44
push 0x41aeb0
push dword [esi + 4]
call fcn.00405584
add esp, 8
test eax, eax
je 0x401e1c
push str._manualstart
push dword [esi + 4]
call fcn.00405584
add esp, 8
test eax, eax
je 0x401e1c
push 0x41aee8
push dword [esi + 4]
call fcn.00405584
add esp, 8
test eax, eax
je 0x401e01
push str._stop
push dword [esi + 4]
call fcn.00405584
add esp, 8
test eax, eax
je 0x401e01
push 0x41af00
push dword [esi + 4]
call fcn.00405584
add esp, 8
test eax, eax
je 0x401de9
push str._start
push dword [esi + 4]
call fcn.00405584
add esp, 8
test eax, eax
jne 0x401c91
xor ecx, ecx
call fcn.00402540
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
mov ecx, 1
call fcn.00402540
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
call fcn.00402440
test eax, eax
jne 0x401e2c
xor ecx, ecx
call fcn.00402350
xor ecx, ecx
call fcn.00402820
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
call fcn.00402440
test eax, eax
je 0x401ea7
mov ecx, 1
call fcn.00402820
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
call fcn.00402440
test eax, eax
je 0x401ea7
call fcn.00402490
mov esi, eax
test esi, esi
je 0x401e86
mov ecx, 1
call fcn.00402540
call fcn.00402630
test esi, esi
je 0x401eae
xor ecx, ecx
call fcn.00402540
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
xor ecx, ecx
call fcn.00402350
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x401ef3
push 0xf01ff
push str.ADSafeSvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x401f08
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x20], 1
je 0x401f26
lea eax, [ebp - 0x24]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004044b0
mov esp, ebp
pop ebp
ret