Function at 0x40f8c0
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x228
mov eax, dword [0x428930]
xor eax, esp
mov dword [esp + 0x224], eax
cmp dword [esp + 0x230], 1
push ebp
mov ebp, dword [esp + 0x238]
jge 0x40f906
push 1
call fcn.004086a0
add esp, 4
pop ebp
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00414aec
add esp, 0x228
ret
push esi
push edi
mov edi, dword [ebp]
push 5
mov dword [esp + 0x14], edi
call fcn.0040ca50
mov esi, eax
add esp, 4
test esi, esi
jne 0x40f95d
push 0x400001fb
call fcn.0041439a
add eax, 0x40
push eax
call fcn.004022a0
add esp, 8
xor eax, eax
cmp byte [esp + 0x244], al
pop edi
setne al
pop esi
pop ebp
dec eax
and eax, 2
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00414aec
add esp, 0x228
ret
push ebx
mov ebx, dword [esp + 0x23c]
mov eax, 4
cmp ebx, 0x80
ja case.0x40f979.4
movzx ecx, byte [ebx + 0x40fcd8]
jmp dword [ecx*4 + 0x40fcc4]
mov eax, 0x14
jmp case.0x40f979.4
mov eax, 0x44
jmp case.0x40f979.4
mov eax, 0x24
jmp case.0x40f979.4
mov eax, 0x104
push 0x100
lea edx, [esp + 0x38]
push edx
push eax
push edi
push esi
call fcn.0040ca90
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x40f9d1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
cmp byte [esp + 0x248], al
setne al
dec eax
and eax, 3
jmp 0x40fac1
test ebx, ebx
jne 0x40fb3a
mov eax, dword [esp + 0x240]
push ebp
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
mov ebx, eax
call ebp
cmp ebx, 0x3e5
jne 0x40fa0a
xor ebx, ebx
jmp 0x40fa15
cmp dword [esp + 0x10], 0
je 0x40fb05
mov ecx, dword [esp + 0x14]
push 0
push 0x20019
push 0
push ecx
mov dword [esp + 0x20], 0
call fcn.0040ad20
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fa62
push 0
lea edx, [esp + 0x14]
push edx
push str.AppThrottle
push esi
call fcn.0040a360
add esp, 0x10
cmp eax, 1
je 0x40fa5b
mov dword [esp + 0x10], 0x5dc
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
push eax
push 1
push edi
push 0
lea esi, [esp + 0x28]
call fcn.0040c4d0
add esp, 0x10
push edi
mov esi, eax
call ebp
test esi, esi
je 0x40fada
push 0
call fcn.0040e880
mov ecx, dword [esp + 0x20]
add esp, 4
push eax
push ecx
call fcn.0040e980
add esp, 4
push eax
lea edx, [esp + 0x3c]
push edx
push 0x40000227
call fcn.0041439a
add eax, 0x40
push eax
call fcn.004022a0
add esp, 0x14
xor eax, eax
cmp byte [esp + 0x248], al
sete al
mov ecx, dword [esp + 0x234]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00414aec
add esp, 0x228
ret
push ebx
call fcn.004020f0
add esp, 4
push eax
push 0
call fcn.0040e880
add esp, 4
push eax
lea eax, [esp + 0x3c]
push eax
push str._s:__s:__s
call fcn.00415612
add esp, 0x10
xor eax, eax
jmp 0x40fac1
push edi
call ebp
push ebx
call fcn.004020f0
add esp, 4
push eax
push 0
call fcn.0040e880
add esp, 4
push eax
lea ecx, [esp + 0x3c]
push ecx
push str._s:__s:__s
call fcn.0041439a
add eax, 0x40
push eax
call fcn.00414f48
jmp 0x40fab2
lea edx, [esp + 0x18]
push edx
cmp ebx, 4
jne 0x40fbae
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x40fb84
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040e980
push eax
push 0x421a0c
call fcn.00415612
movzx eax, byte [esp + 0x254]
add esp, 0xc
neg eax
sbb eax, eax
and eax, dword [esp + 0x1c]
jmp 0x40fac1
push eax
call fcn.004020f0
add esp, 4
push eax
lea ecx, [esp + 0x38]
push ecx
push str._s:__s_n
call fcn.0041439a
add eax, 0x40
push eax
call fcn.00414f48
add esp, 0x10
jmp 0x40fab5
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, eax
call esi
cmp ebp, 0x3e5
jne 0x40fbdf
xor ebp, ebp
jmp 0x40fbe6
cmp dword [esp + 0x10], 0
je 0x40fc65
mov ecx, dword [esp + 0x14]
push 0
push ecx
push edi
push ebx
lea esi, [esp + 0x28]
call fcn.0040c4d0
add esp, 0x10
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40fc2a
push ebx
call fcn.0040e880
mov edx, dword [esp + 0x20]
add esp, 4
push eax
push edx
call fcn.0040e980
add esp, 4
push eax
lea eax, [esp + 0x3c]
push eax
jmp 0x40fa9f
push ebp
call fcn.004020f0
add esp, 4
push eax
push ebx
call fcn.0040e880
add esp, 4
push eax
lea ecx, [esp + 0x3c]
push ecx
push str._s:__s:__s
call fcn.00415612
movzx eax, byte [esp + 0x258]
add esp, 0x10
neg eax
sbb eax, eax
and eax, dword [esp + 0x1c]
jmp 0x40fac1
push edi
call esi
push ebp
call fcn.004020f0
add esp, 4
push eax
push ebx
call fcn.0040e880
add esp, 4
push eax
lea edx, [esp + 0x3c]
push edx
push str._s:__s:__s
call fcn.0041439a
add eax, 0x40
push eax
call fcn.00414f48
add esp, 0x14
cmp ebp, 0x426
jne 0x40fab5
cmp ebx, 5
je 0x40fcb1
cmp ebx, 1
jne 0x40fab5
xor eax, eax
cmp byte [esp + 0x248], al
setne al
jmp 0x40fac1