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

Disassembly:
sub esp, 0x144
push ebx
push ebp
push esi
push edi
push str.S3D.OnInstallButton
push str._s___
mov esi, ecx
push 6
mov dword [esp + 0x24], 1
call fcn.0040b7b0
add esp, 0xc
mov ecx, esi
call fcn.004068b0
push str.S3D.OnInstallButton
push str._s:_1:_DisableButtons___
push 5
call fcn.0040b7b0
add esp, 0xc
lea eax, [esi + 0x2dc]
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.00401800
lea ecx, [esp + 0x14]
call fcn.0040ff82
mov ebp, dword [0x457684]
mov edi, dword [0x45768c]
call fcn.00407a50
test eax, eax
je 0x40315b
push 0
call fcn.00407b70
add esp, 4
test ebp, ebp
je 0x403164
cmp ebp, 0xffffffff
jne 0x403175
push 0xf0000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test edi, edi
je 0x40317e
cmp edi, 0xffffffff
jne 0x403193
mov edx, dword [0x457688]
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 0x4031d5
push ebx
push str.S3D.OnInstallButton
push str._s:_StartService___failed_with_code__08X
push 5
call fcn.0040b7b0
add esp, 0x10
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x4031e3
cmp eax, 3
jne 0x4031f1
lea ecx, [esp + 0x38]
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov eax, dword [0x45768c]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x403205
cmp eax, 0xffffffff
jne 0x403208
push edi
call ebp
mov eax, dword [0x457684]
test eax, eax
je 0x403216
cmp eax, 0xffffffff
jne 0x403219
push edi
call ebp
cmp ebx, 0x422
jne 0x40326d
push str.Cannot_install:_the_driver_was_just_uninstalled.
mov ecx, esi
call fcn.004019c0
push str.It_was_scheduled_for_deletion_which_is_still_pending.
mov ecx, esi
call fcn.004019c0
mov ecx, esi
call fcn.00406610
mov eax, dword [esi + 0x288]
mov dword [esi + 0x290], 0xffffffff
cmp eax, 1
jne 0x403407
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x403407
push str.AEGISP
call fcn.00409400
add esp, 4
test eax, eax
jne 0x4033c3
lea edx, [esi + 0x2f0]
lea edi, [esi + 0x2e0]
push edx
push edi
mov ecx, 0x459f88
call fcn.00409200
lea eax, [esi + 0x2a4]
push eax
push edi
call fcn.00403440
add esp, 8
test eax, eax
jle 0x4032b2
xor edi, edi
jmp 0x4032b6
mov edi, dword [esp + 0x18]
call fcn.00403760
test eax, eax
jne 0x4032c7
mov dword [esi + 0x294], eax
jmp 0x4032da
cmp eax, 1
jne 0x4032da
mov eax, dword [esi + 0x294]
test eax, eax
je 0x4033c3
test edi, edi
jne 0x4033c3
mov eax, dword [esi + 0x248]
test eax, eax
jne 0x4033c3
mov ecx, dword [esi + 0x298]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [0x459ef8]
lea eax, [esp + 0x17]
push edx
push eax
push ecx
push 1
mov byte [esp + 0x27], 0
mov dword [esp + 0x28], 0xffffffff
call fcn.004034a0
add esp, 0x14
test al, al
jne 0x403342
push str.Driver_installation_complete__but_there_was_a_driver_registration_inconsistency_detected.
mov ecx, esi
call fcn.004019c0
push str.It_could_be_caused_by_errorneous_previous_installations___uninstallations.
mov ecx, esi
call fcn.004019c0
push str.The_driverll_work__but_the_accidental_deletion_protection_probably_wont_be_fully_functional.
jmp 0x403347
push str.Driver_installation_complete.
mov ecx, esi
call fcn.004019c0
mov al, byte [esp + 0x13]
test al, al
mov eax, str.Registered
jne 0x403360
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.004019c0
mov ecx, esi
call fcn.00406610
cmp dword [esi + 0x288], 1
jne 0x403407
mov eax, dword [esi + 0x290]
test eax, eax
jne 0x4033ad
mov ecx, esi
call fcn.004046e0
mov ecx, esi
call fcn.00404520
mov edx, dword [esi + 0x290]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x403407
mov dword [0x457668], 7
mov eax, dword [esi + 0x288]
cmp eax, 1
je 0x4033e2
mov dword [0x457674], str.__Installation_Failed
push str.S3D.OnInstallButton
push str._s:_2:_S3ActionUnsinstallThenStopThenInstall
push 5
mov dword [0x457678], 0x4151ec
call fcn.0040b7b0
add esp, 0xc
mov ecx, esi
call fcn.00404480
call fcn.00407a50
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x40341e
push 1
call fcn.00407b70
add esp, 4
push str.S3D.OnInstallButton
push str._s:__
push 6
call fcn.0040b7b0
add esp, 0x150
ret