Function at 0x41fc56
Capabilities:
Delete service
Enumerate gui resources
Get graphical window text
Query service status
Start service

Disassembly:
push 0x494
mov eax, 0x44abd3
call fcn.004386f7
mov dword [ebp - 0x47c], ecx
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x498], edi
mov dword [ebp - 0x494], edi
mov dword [ebp - 0x490], edi
push 0x406490
push 0x406275
push 6
push 4
lea eax, [ebp - 0x438]
push eax
mov byte [ebp - 4], 1
call fcn.0043a7ab
mov ebx, 0x4676b0
push ebx
lea ecx, [ebp - 0x480]
mov byte [ebp - 4], 2
call fcn.0040620b
push ebx
lea ecx, [ebp - 0x488]
mov byte [ebp - 4], 3
call fcn.0040620b
push 0x2c
lea eax, [ebp - 0x498]
push eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov ebx, edi
mov esi, esp
push eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x458], ebx
mov dword [ebp - 0x468], edi
mov dword [ebp - 0x474], edi
mov dword [ebp - 0x48c], edi
mov dword [ebp - 0x484], edi
call fcn.0040693a
add eax, 0x10
pop ecx
mov dword [esi], eax
call fcn.0041954e
mov eax, dword [ebp - 0x494]
mov esi, dword [ebp - 0x498]
add esp, 0xc
sub eax, esi
push 0x18
cdq
pop ecx
idiv ecx
cmp eax, 5
jb 0x4203e0
cmp eax, 6
ja 0x4203e0
cmp esi, dword [ebp - 0x494]
je 0x41fd8a
lea ebx, [ebp - 0x438]
cmp edi, 6
jae 0x41fd76
cmp dword [esi + 0x14], 8
jb 0x41fd52
mov eax, dword [esi]
jmp 0x41fd54
mov eax, esi
push eax
mov ecx, ebx
call fcn.00409f9c
push dword [ebx]
push edi
push str.Parameter__1_d_____2_s__n
push str.CUninstallActions::Test
push 4
call fcn.00405a24
add esp, 0x14
push 0x18
pop ecx
add esi, ecx
inc edi
add ebx, 4
cmp esi, dword [ebp - 0x494]
jne 0x41fd43
mov ebx, dword [ebp - 0x458]
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x480]
call fcn.004065c3
mov esi, dword [ebp - 0x480]
cmp dword [esi - 0xc], 0
jne 0x41fdb0
xor ebx, ebx
inc ebx
jmp 0x42042a
mov eax, dword [ebp - 0x424]
cmp dword [eax - 0xc], 0
je 0x41fddd
push ecx
add eax, 0xfffffff0
mov edi, esp
push eax
call fcn.0040693a
pop ecx
mov ecx, dword [ebp - 0x47c]
add eax, 0x10
mov dword [edi], eax
call fcn.0041bf94
test eax, eax
je 0x41fda8
push str.CHK_APPCLASS
lea ecx, [ebp - 0x438]
call fcn.004069bd
mov edi, dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x41fe32
xor eax, eax
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x464]
push eax
push 0x41dcf8
mov dword [ebp - 0x464], esi
call edi
mov edi, dword [ebp - 0x460]
test edi, edi
jne 0x41fecd
jmp 0x41fda8
push str.CHK_APPTITLE
lea ecx, [ebp - 0x438]
call fcn.004069bd
test eax, eax
jne 0x41fe50
inc eax
and dword [ebp - 0x460], 0
jmp 0x41fdff
push str.CHK_APPTITLE_INCLUDE
lea ecx, [ebp - 0x438]
call fcn.004069bd
test eax, eax
jne 0x41fe69
push 2
pop eax
jmp 0x41fe47
push str.CHK_SERVICE
lea ecx, [ebp - 0x438]
call fcn.004069bd
test eax, eax
jne 0x4203d6
push 0x400f003f
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x48c], eax
test eax, eax
je 0x41fda8
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x474], eax
test eax, eax
jne 0x41febb
xor ebx, ebx
inc ebx
jmp 0x420419
mov eax, dword [ebp - 0x478]
mov edi, dword [ebp - 0x468]
mov dword [ebp - 0x470], eax
lea eax, [ebp - 0x484]
push eax
push str.0x_x
push dword [ebp - 0x42c]
call fcn.0043a53b
add esp, 0xc
test eax, eax
jg 0x41ff08
push 0xa
lea eax, [ebp - 0x4a0]
push eax
push dword [ebp - 0x42c]
call fcn.0043a4af
add esp, 0xc
mov dword [ebp - 0x484], eax
test edi, edi
je 0x4202e2
push 0x4676b0
lea ecx, [ebp - 0x468]
call fcn.0040620b
push 0x4676b0
lea ecx, [ebp - 0x46c]
mov byte [ebp - 4], 5
call fcn.0040620b
and dword [ebp - 0x458], 0
and dword [ebp - 0x49c], 0
push edi
mov byte [ebp - 4], 6
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41ff64
push 0x208
lea eax, [ebp - 0x420]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp - 0x484]
xor ecx, ecx
sub eax, ecx
je 0x42023c
dec eax
je 0x42011f
sub eax, 0xf
je 0x420070
sub eax, 0x10
je 0x42003b
sub eax, 0xe0
jne 0x4202c2
lea eax, [ebp - 0x464]
push eax
push 0x41de82
mov dword [ebp - 0x460], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ebx, dword [ebp - 0x470]
mov dword [ebp - 0x458], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
xor eax, eax
sub ecx, eax
je 0x420013
dec ecx
je 0x42000f
dec ecx
jne 0x42001d
mov dword [ebp - 0x460], eax
lea eax, [ebp - 0x464]
push eax
push 0x41dcf8
mov dword [ebp - 0x464], esi
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [ebp - 0x460]
jmp 0x42001d
push esi
push eax
jmp 0x420015
push eax
push esi
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
jne 0x41ffd0
mov ebx, dword [ebp - 0x458]
test ebx, ebx
je 0x4202bf
push ebx
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x4202bf
lea eax, [ebp - 0x464]
push eax
push 0x41de82
mov dword [ebp - 0x460], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
push ecx
mov ecx, esp
push str.SET_VARSIGNED__0x00000000_TERMINATEPROC_DIRECT___1
call fcn.00406234
mov ecx, dword [ebp - 0x47c]
call fcn.00419677
jmp 0x4202bf
lea eax, [ebp - 0x464]
push eax
push 0x41de82
mov dword [ebp - 0x460], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov edi, dword [sym.imp.USER32.dll_SetCursor]
push eax
mov dword [ebp - 0x470], eax
call edi
mov ecx, dword [ebp - 0x47c]
mov dword [ebp - 0x478], eax
lea eax, [ebp - 0x458]
push eax
push 0xb
push str._WAITTIME_
call fcn.0042085c
mov ecx, dword [ebp - 0x458]
mov ebx, dword [ebp - 0x49c]
mov edx, 0x2710
test eax, eax
cmove ecx, edx
mov dword [ebp - 0x458], ecx
mov esi, ecx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0x3e8
call fcn.0040ce56
push dword [ebp - 0x470]
call edi
cmp ebx, esi
jb 0x4200e1
mov eax, dword [ebp - 0x478]
mov esi, dword [ebp - 0x480]
test eax, eax
je 0x4202bf
push eax
call edi
jmp 0x4202bf
lea eax, [ebp - 0x420]
push eax
mov ebx, 0xfae
lea eax, [ebp - 0x468]
push ebx
push eax
call fcn.0040ceea
mov ecx, dword [0x467018]
add esp, 0xc
push ebx
call fcn.00407ad2
mov ebx, eax
push 0
push ebx
call fcn.00406857
pop ecx
pop ecx
test eax, eax
je 0x420164
push ebx
push eax
lea ecx, [ebp - 0x46c]
call fcn.00409864
push dword [0x468654]
lea ecx, [ebp - 0x46c]
push 0x44df48
call fcn.00409a22
mov ebx, dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, dword [0x467018]
push 0xfae
call fcn.00407b07
push eax
push dword [ebp - 0x46c]
mov eax, dword [ebp - 0x47c]
push dword [ebp - 0x468]
push dword [eax + 0x24]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x458], eax
cmp eax, 4
jne 0x42022f
mov ecx, dword [ebp - 0x470]
xor edx, edx
sub ecx, edx
je 0x42021b
dec ecx
je 0x420217
dec ecx
jne 0x420227
lea eax, [ebp - 0x464]
push eax
push 0x41dcf8
mov dword [ebp - 0x460], edx
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [ebp - 0x460]
push 0x208
lea eax, [ebp - 0x420]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x468]
push 0xfae
push eax
call fcn.0040ceea
add esp, 0xc
jmp 0x420221
push esi
push edx
jmp 0x42021d
push edx
push esi
call ebx
mov edi, eax
mov eax, dword [ebp - 0x458]
test edi, edi
jne 0x420180
xor ebx, ebx
cmp eax, 2
setne bl
jmp 0x4202c2
lea eax, [ebp - 0x420]
push eax
mov ebx, 0xfad
lea eax, [ebp - 0x468]
push ebx
push eax
call fcn.0040ceea
mov ecx, dword [0x467018]
add esp, 0xc
push ebx
call fcn.00407ad2
mov edi, eax
push 0
push edi
call fcn.00406857
pop ecx
pop ecx
test eax, eax
je 0x420281
push edi
push eax
lea ecx, [ebp - 0x46c]
call fcn.00409864
push dword [0x468654]
lea ecx, [ebp - 0x46c]
push 0x44df48
call fcn.00409a22
mov ecx, dword [0x467018]
push ebx
call fcn.00407b07
push eax
push dword [ebp - 0x46c]
mov eax, dword [ebp - 0x47c]
push dword [ebp - 0x468]
push dword [eax + 0x24]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x46c]
lea ecx, [ecx - 0x10]
call fcn.00409a06
mov ecx, dword [ebp - 0x468]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.00409a06
mov edi, dword [ebp - 0x474]
test edi, edi
je 0x420419
push 0x1c
lea eax, [ebp - 0x454]
push 0
push eax
call fcn.00438dc0
mov eax, dword [ebp - 0x484]
xor ecx, ecx
add esp, 0xc
sub eax, ecx
je 0x420364
dec eax
je 0x420329
sub eax, 0xf
jne 0x4203cd
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
jmp 0x4203cd
lea eax, [ebp - 0x454]
xor ebx, ebx
push eax
inc ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x420356
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x454]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4203cd
cmp dword [ebp - 0x450], ebx
jne 0x42033d
jmp 0x4203cd
push ecx
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x4203ca
lea eax, [ebp - 0x454]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
call edi
test eax, eax
je 0x4203c4
mov ebx, dword [ebp - 0x474]
cmp dword [ebp - 0x450], 4
je 0x4203b0
push dword [ebp - 0x43c]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x454]
push eax
push ebx
call edi
test eax, eax
jne 0x42038b
jmp 0x4203c4
push str.Service_start._n
push str.CUninstallActions::Test
push 4
call fcn.00405a24
add esp, 0xc
mov edi, dword [ebp - 0x474]
xor ebx, ebx
inc ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x420419
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x42042a
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
lea eax, [ebp - 0x488]
push str.CUninstallActions::Test_invalid_parameters.___s_
push eax
call fcn.00406ea6
add esp, 0xc
push 0x10
push str.Internal_Error
push dword [ebp - 0x488]
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, dword [ebp - 0x480]
mov eax, dword [ebp - 0x48c]
test eax, eax
je 0x42042a
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x488]
lea ecx, [ecx - 0x10]
call fcn.00409a06
lea ecx, [esi - 0x10]
call fcn.00409a06
push 0x406490
push 6
push 4
lea eax, [ebp - 0x438]
push eax
mov byte [ebp - 4], 1
call fcn.00438e50
lea ecx, [ebp - 0x498]
call fcn.004052ea
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00409a06
mov eax, ebx
call fcn.004386a6
ret 4