Function at 0x40f8b0
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 0x40f8f6
push 1
call fcn.004086a0
add esp, 4
pop ebp
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00414adc
add esp, 0x228
ret
push esi
push edi
mov edi, dword [ebp]
push 5
mov dword [esp + 0x14], edi
call fcn.0040ca40
mov esi, eax
add esp, 4
test esi, esi
jne 0x40f94d
push 0x400001fb
call fcn.0041438a
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.00414adc
add esp, 0x228
ret
push ebx
mov ebx, dword [esp + 0x23c]
mov eax, 4
cmp ebx, 0x80
ja case.0x40f969.4
movzx ecx, byte [ebx + 0x40fcc8]
jmp dword [ecx*4 + 0x40fcb4]
mov eax, 0x14
jmp case.0x40f969.4
mov eax, 0x44
jmp case.0x40f969.4
mov eax, 0x24
jmp case.0x40f969.4
mov eax, 0x104
push 0x100
lea edx, [esp + 0x38]
push edx
push eax
push edi
push esi
call fcn.0040ca80
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x40f9c1
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 0x40fab1
test ebx, ebx
jne 0x40fb2a
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 0x40f9fa
xor ebx, ebx
jmp 0x40fa05
cmp dword [esp + 0x10], 0
je 0x40faf5
mov ecx, dword [esp + 0x14]
push 0
push 0x20019
push 0
push ecx
mov dword [esp + 0x20], 0
call fcn.0040ad10
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fa52
push 0
lea edx, [esp + 0x14]
push edx
push str.AppThrottle
push esi
call fcn.0040a350
add esp, 0x10
cmp eax, 1
je 0x40fa4b
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.0040c4c0
add esp, 0x10
push edi
mov esi, eax
call ebp
test esi, esi
je 0x40faca
push 0
call fcn.0040e870
mov ecx, dword [esp + 0x20]
add esp, 4
push eax
push ecx
call fcn.0040e970
add esp, 4
push eax
lea edx, [esp + 0x3c]
push edx
push 0x40000227
call fcn.0041438a
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.00414adc
add esp, 0x228
ret
push ebx
call fcn.004020f0
add esp, 4
push eax
push 0
call fcn.0040e870
add esp, 4
push eax
lea eax, [esp + 0x3c]
push eax
push str._s:__s:__s
call fcn.00415602
add esp, 0x10
xor eax, eax
jmp 0x40fab1
push edi
call ebp
push ebx
call fcn.004020f0
add esp, 4
push eax
push 0
call fcn.0040e870
add esp, 4
push eax
lea ecx, [esp + 0x3c]
push ecx
push str._s:__s:__s
call fcn.0041438a
add eax, 0x40
push eax
call fcn.00414f38
jmp 0x40faa2
lea edx, [esp + 0x18]
push edx
cmp ebx, 4
jne 0x40fb9e
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x40fb74
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040e970
push eax
push 0x4219ec
call fcn.00415602
movzx eax, byte [esp + 0x254]
add esp, 0xc
neg eax
sbb eax, eax
and eax, dword [esp + 0x1c]
jmp 0x40fab1
push eax
call fcn.004020f0
add esp, 4
push eax
lea ecx, [esp + 0x38]
push ecx
push str._s:__s_n
call fcn.0041438a
add eax, 0x40
push eax
call fcn.00414f38
add esp, 0x10
jmp 0x40faa5
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 0x40fbcf
xor ebp, ebp
jmp 0x40fbd6
cmp dword [esp + 0x10], 0
je 0x40fc55
mov ecx, dword [esp + 0x14]
push 0
push ecx
push edi
push ebx
lea esi, [esp + 0x28]
call fcn.0040c4c0
add esp, 0x10
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40fc1a
push ebx
call fcn.0040e870
mov edx, dword [esp + 0x20]
add esp, 4
push eax
push edx
call fcn.0040e970
add esp, 4
push eax
lea eax, [esp + 0x3c]
push eax
jmp 0x40fa8f
push ebp
call fcn.004020f0
add esp, 4
push eax
push ebx
call fcn.0040e870
add esp, 4
push eax
lea ecx, [esp + 0x3c]
push ecx
push str._s:__s:__s
call fcn.00415602
movzx eax, byte [esp + 0x258]
add esp, 0x10
neg eax
sbb eax, eax
and eax, dword [esp + 0x1c]
jmp 0x40fab1
push edi
call esi
push ebp
call fcn.004020f0
add esp, 4
push eax
push ebx
call fcn.0040e870
add esp, 4
push eax
lea edx, [esp + 0x3c]
push edx
push str._s:__s:__s
call fcn.0041438a
add eax, 0x40
push eax
call fcn.00414f38
add esp, 0x14
cmp ebp, 0x426
jne 0x40faa5
cmp ebx, 5
je 0x40fca1
cmp ebx, 1
jne 0x40faa5
xor eax, eax
cmp byte [esp + 0x248], al
setne al
jmp 0x40fab1