Function at 0x402f00
Capabilities:
Query service status
Start service
Stop service
Terminate process

Disassembly:
sub esp, 0x144
push ebx
push ebp
push esi
push edi
push 0x40f99c
push str._s___
mov esi, ecx
push 6
mov dword [esp + 0x24], 1
call fcn.0040a380
add esp, 0xc
mov ecx, esi
call fcn.00405e80
push 0x40f99c
push str._s:_1:_DisableButtons___
push 5
call fcn.0040a380
add esp, 0xc
lea eax, [esi + 0x2d8]
lea ecx, [esp + 0x14]
push str.___Installing
push eax
push ecx
call sub.MFC42u.DLL_operator
mov eax, dword [eax]
mov ecx, esi
push eax
call fcn.004017c0
lea ecx, [esp + 0x14]
call fcn.0040eb62
mov ebp, dword [0x447a0c]
mov edi, dword [0x447a14]
call fcn.00407010
test eax, eax
je 0x402f8b
push 0
call fcn.00407130
add esp, 4
test ebp, ebp
je 0x402f94
cmp ebp, 0xffffffff
jne 0x402fa5
push 0xf0000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test edi, edi
je 0x402fae
cmp edi, 0xffffffff
jne 0x402fc3
mov edx, dword [0x447a10]
push edx
push str.AEGISP
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebp, ebp
mov ebx, eax
jne 0x403005
push ebx
push 0x40f99c
push str._s:_StartService___failed_with_code__08X
push 5
call fcn.0040a380
add esp, 0x10
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x403013
cmp eax, 3
jne 0x403021
lea ecx, [esp + 0x38]
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov eax, dword [0x447a14]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x403035
cmp eax, 0xffffffff
jne 0x403038
push edi
call ebp
mov eax, dword [0x447a0c]
test eax, eax
je 0x403046
cmp eax, 0xffffffff
jne 0x403049
push edi
call ebp
cmp ebx, 0x422
jne 0x403085
push str.Cannot_install:_the_driver_was_just_uninstalled.
mov ecx, esi
call fcn.00401980
push str.It_was_scheduled_for_deletion_which_is_still_pending.
mov ecx, esi
call fcn.00401980
mov ecx, esi
call fcn.00405be0
cmp dword [esi + 0x288], 1
jne 0x4031f9
push 0
call dword [sym.imp.MSVCRT.dll_exit]
push str.AEGISP
call fcn.004082d0
add esp, 4
test eax, eax
jne 0x4031b5
lea edx, [esi + 0x2ec]
lea edi, [esi + 0x2dc]
push edx
push edi
mov ecx, 0x44a300
call fcn.004080d0
lea eax, [esi + 0x2a0]
push eax
push edi
call fcn.00403230
add esp, 8
test eax, eax
jl 0x4030ca
xor edi, edi
jmp 0x4030ce
mov edi, dword [esp + 0x18]
call fcn.00403550
test eax, eax
jne 0x4030df
mov dword [esi + 0x290], eax
jmp 0x4030f2
cmp eax, 1
jne 0x4030f2
mov eax, dword [esi + 0x290]
test eax, eax
je 0x4031b5
test edi, edi
jne 0x4031b5
mov eax, dword [esi + 0x248]
test eax, eax
jne 0x4031b5
mov ecx, dword [esi + 0x294]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [0x44a270]
lea eax, [esp + 0x17]
push edx
push eax
push ecx
push 1
mov byte [esp + 0x27], 0
mov dword [esp + 0x28], 0xffffffff
call fcn.00403290
add esp, 0x14
test al, al
jne 0x40315a
push str.Driver_installation_complete__but_there_was_a_driver_registration_inconsistency_detected.
mov ecx, esi
call fcn.00401980
push str.It_could_be_caused_by_errorneous_previous_installations___uninstallations.
mov ecx, esi
call fcn.00401980
push str.The_driverll_work__but_the_accidental_deletion_protection_probably_wont_be_fully_functional.
jmp 0x40315f
push str.Driver_installation_complete.
mov ecx, esi
call fcn.00401980
mov al, byte [esp + 0x13]
test al, al
mov eax, str.Registered
jne 0x403178
mov eax, str.NOT_registered
mov edx, dword [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x5c]
push str._nRegistration_status:__s___u_registrations_total_.
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
call fcn.00401980
mov ecx, esi
call fcn.00405be0
cmp dword [esi + 0x288], 1
jne 0x4031f9
push 0
call dword [sym.imp.MSVCRT.dll_exit]
mov dword [0x4479f0], 7
mov eax, dword [esi + 0x288]
cmp eax, 1
je 0x4031d4
mov dword [0x4479fc], str.__Installation_Failed
push 0x40f99c
push str._s:_2:_S3ActionUnsinstallThenStopThenInstall
push 5
mov dword [0x447a00], 0x4130e0
call fcn.0040a380
add esp, 0xc
mov ecx, esi
call fcn.004041d0
call fcn.00407010
test eax, eax
je 0x40320c
push 1
call fcn.00407130
add esp, 4
push 0x40f99c
push str._s:__
push 6
call fcn.0040a380
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret