Function at 0x409eb0
Capabilities:
Start service

Disassembly:
push 0xffffffffffffffff
push 0x4491b8
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x4563d0]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4563d0]
xor eax, esp
push eax
lea eax, [esp + 0x19c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1ac]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
push str.operation
lea eax, [esp + 0xb8]
push eax
push ebp
mov dword [esp + 0x1b0], ebx
call fcn.00405890
lea eax, [esp + 0xb4]
mov byte [esp + 0x1a4], 1
call fcn.004212f0
push 0x44dbd0
lea ecx, [esp + 0x9c]
push ecx
push ebp
call fcn.00405890
push str.displayname
lea edx, [esp + 0x10c]
push edx
push ebp
mov byte [esp + 0x1b0], 2
call fcn.00405890
push str.servicetype
lea eax, [esp + 0xd4]
push eax
push ebp
mov byte [esp + 0x1b0], 3
call fcn.00405890
lea eax, [esp + 0xd0]
mov byte [esp + 0x1a4], 4
call fcn.004212f0
push str.starttype
lea ecx, [esp + 0xf0]
push ecx
push ebp
call fcn.00405890
lea eax, [esp + 0xec]
mov byte [esp + 0x1a4], 5
call fcn.004212f0
push 0x44dc2c
lea edx, [esp + 0x128]
push edx
push ebp
call fcn.00405890
push str.description
lea eax, [esp + 0x17c]
push eax
push ebp
mov byte [esp + 0x1b0], 6
call fcn.00405890
push str.longdescription
lea ecx, [esp + 0x160]
push ecx
push ebp
mov byte [esp + 0x1b0], 7
call fcn.00405890
push str.dependencies
lea edx, [esp + 0x144]
push edx
push ebp
mov byte [esp + 0x1b0], 8
call fcn.00405890
push str.Service
mov byte [esp + 0x1a8], 9
push str.__s_
push 0x4575d0
xor eax, eax
call fcn.00419220
mov eax, dword [esp + 0xd4]
add dword [0x4575f0], 1
add esp, 0xc
push str.install
mov edi, 7
lea ecx, [esp + 0xb8]
call fcn.00403d20
test eax, eax
jne 0x40a188
cmp byte [esi + 0x244], bl
jne 0x40a653
mov ecx, dword [esp + 0x160]
mov eax, 8
cmp dword [esp + 0x174], eax
jae 0x40a095
lea ecx, [esp + 0x160]
cmp dword [esp + 0x158], eax
mov edx, dword [esp + 0x144]
jae 0x40a0ac
lea edx, [esp + 0x144]
cmp dword [esp + 0x13c], eax
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x128]
jae 0x40a0c7
lea edx, [esp + 0x128]
cmp dword [esp + 0x104], eax
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0xf0]
jae 0x40a0e2
lea edx, [esp + 0xf0]
cmp dword [esp + 0xe8], eax
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0xd4]
jae 0x40a0fd
lea edx, [esp + 0xd4]
cmp dword [esp + 0x120], eax
mov edi, dword [esp + 0x10c]
jae 0x40a114
lea edi, [esp + 0x10c]
cmp dword [esp + 0xb0], eax
mov eax, dword [esp + 0x9c]
jae 0x40a12b
lea eax, [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x34]
push edi
push eax
call fcn.00420700
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x40a39e
cmp byte [esi + 0x245], bl
jne 0x40a39e
push edi
push str.Error_0x_X_installing_service
push 0x4575d0
mov eax, 2
call fcn.00419220
mov dl, byte [esi + 0x245]
add esp, 0xc
neg dl
sbb edx, edx
not edx
and edx, edi
mov dword [esi + 0x38], edx
jmp 0x40a39e
mov eax, dword [esp + 0xc8]
push str.remove
mov edi, 6
lea ecx, [esp + 0xb8]
call fcn.00403d20
test eax, eax
jne 0x40a2a4
mov eax, dword [esp + 0x9c]
mov edi, 8
cmp dword [esp + 0xb0], edi
jae 0x40a1c9
lea eax, [esp + 0x9c]
push eax
push str.Removing_service__s
push 0x4575d0
xor eax, eax
call fcn.00419220
add esp, 0xc
cmp byte [esi + 0x244], bl
jne 0x40a653
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x40a39e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x40a39e
cmp dword [esp + 0xb0], edi
mov eax, dword [esp + 0x9c]
jae 0x40a228
lea eax, [esp + 0x9c]
push 4
push eax
mov eax, dword [esp + 0x20]
push eax
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x40a248
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
jne 0x40a25b
lea esi, [esp + 0x18]
call fcn.004206d0
mov esi, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40a26a
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, ebx
mov dword [esp + 0x18], ebx
je 0x40a39e
mov cl, byte [esi + 0x245]
neg cl
push edi
push str.Error_0x_X_removing_service
sbb ecx, ecx
not ecx
and ecx, edi
mov dword [esi + 0x38], ecx
push 0x4575d0
mov eax, 2
call fcn.00419220
add esp, 0xc
jmp 0x40a39e
mov eax, dword [esp + 0xc8]
push str.start
mov edi, 5
lea ecx, [esp + 0xb8]
call fcn.00403d20
test eax, eax
jne 0x40a855
mov eax, dword [esp + 0x9c]
mov edi, 8
cmp dword [esp + 0xb0], edi
jae 0x40a2e5
lea eax, [esp + 0x9c]
push eax
push str.Starting_service__s
push 0x4575d0
xor eax, eax
call fcn.00419220
add esp, 0xc
cmp byte [esi + 0x244], bl
jne 0x40a653
lea edx, [esp + 0x18]
push edx
call fcn.00420380
cmp eax, ebx
je 0x40a39e
cmp dword [esp + 0xb0], edi
mov eax, dword [esp + 0x9c]
jae 0x40a32f
lea eax, [esp + 0x9c]
lea esi, [esp + 0x18]
call fcn.004203b0
mov edi, eax
cmp edi, ebx
jne 0x40a34d
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
xor edi, edi
lea esi, [esp + 0x18]
call fcn.004206b0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40a365
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, ebx
mov dword [esp + 0x18], ebx
je 0x40a39a
mov eax, dword [esp + 0x14]
mov cl, byte [eax + 0x245]
neg cl
push edi
push str.Error_0x_X_while_starting_service
push 0x4575d0
sbb ecx, ecx
not ecx
and ecx, edi
mov dword [eax + 0x38], ecx
mov eax, 2
call fcn.00419220
add esp, 0xc
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x244], bl
jne 0x40a653
mov eax, dword [esp + 0xc8]
push str.install
mov edi, 7
lea ecx, [esp + 0xb8]
call fcn.00403d20
test eax, eax
jne 0x40a653
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov byte [esp + 0x1a4], 0xa
push 0xc
push str.servicename
lea esi, [esp + 0x34]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
call fcn.004031d0
lea ecx, [esp + 0x98]
push ecx
mov edx, esi
push edx
lea edi, [esp + 0x58]
mov byte [esp + 0x1ac], 0xb
call fcn.00416160
add esp, 8
push eax
lea esi, [esp + 0x70]
mov byte [esp + 0x1a8], 0xc
call fcn.00410de0
cmp dword [esp + 0x68], 8
jb 0x40a445
mov eax, dword [esp + 0x54]
push eax
call fcn.00422ece
add esp, 4
mov byte [esp + 0x1a4], 0xa
cmp dword [esp + 0x44], 8
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
jb 0x40a472
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00422ece
add esp, 4
push 0x44d4bc
lea edx, [esp + 0x80]
push edx
push ebp
call fcn.00405890
mov edi, eax
mov byte [esp + 0x1a4], 0xd
push 0xa
push str.usequence
lea esi, [esp + 0x34]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
call fcn.004031d0
push edi
mov eax, esi
push eax
lea edi, [esp + 0x58]
mov byte [esp + 0x1ac], 0xe
call fcn.00416160
add esp, 8
push eax
lea esi, [esp + 0x70]
mov byte [esp + 0x1a8], 0xf
call fcn.00410de0
cmp dword [esp + 0x68], 8
jb 0x40a4ee
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00422ece
add esp, 4
mov esi, 8
cmp dword [esp + 0x44], esi
mov edi, 7
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
jb 0x40a518
mov edx, dword [esp + 0x30]
push edx
call fcn.00422ece
add esp, 4
mov byte [esp + 0x1a4], 0xa
cmp dword [esp + 0x94], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
jb 0x40a546
mov eax, dword [esp + 0x80]
push eax
call fcn.00422ece
add esp, 4
push 0x44d5c4
lea ecx, [esp + 0x80]
push ecx
push ebp
call fcn.00405890
mov edi, eax
mov byte [esp + 0x1a4], 0x10
push 6
push str.group
lea esi, [esp + 0x34]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
call fcn.004031d0
push edi
mov edx, esi
push edx
lea edi, [esp + 0x58]
mov byte [esp + 0x1ac], 0x11
call fcn.00416160
add esp, 8
push eax
lea esi, [esp + 0x70]
mov byte [esp + 0x1a8], 0x12
call fcn.00410de0
cmp dword [esp + 0x68], 8
jb 0x40a5c2
mov eax, dword [esp + 0x54]
push eax
call fcn.00422ece
add esp, 4
mov esi, 8
cmp dword [esp + 0x44], esi
mov edi, 7
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
jb 0x40a5ec
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00422ece
add esp, 4
mov byte [esp + 0x1a4], 0xa
cmp dword [esp + 0x94], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
jb 0x40a61a
mov edx, dword [esp + 0x80]
push edx
call fcn.00422ece
add esp, 4
mov eax, dword [esp + 0x14]
push str.service
push eax
lea ecx, [esp + 0x74]
call fcn.0040dd20
mov eax, dword [esp + 0x70]
cmp eax, ebx
je 0x40a653
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x74]
push ecx
call fcn.00417520
mov edx, dword [esp + 0x74]
add esp, 4
push edx
call fcn.00422ece
add esp, 4
sub dword [0x4575f0], 1
mov edi, 8
cmp dword [esp + 0x158], edi
jb 0x40a678
mov eax, dword [esp + 0x144]
push eax
call fcn.00422ece
add esp, 4
cmp dword [esp + 0x174], edi
mov esi, 7
mov dword [esp + 0x158], esi
mov dword [esp + 0x154], ebx
mov word [esp + 0x144], bx
jb 0x40a6ac
mov ecx, dword [esp + 0x160]
push ecx
call fcn.00422ece
add esp, 4
cmp dword [esp + 0x190], edi
mov dword [esp + 0x174], esi
mov dword [esp + 0x170], ebx
mov word [esp + 0x160], bx
jb 0x40a6db
mov edx, dword [esp + 0x17c]
push edx
call fcn.00422ece
add esp, 4
cmp dword [esp + 0x13c], edi
mov dword [esp + 0x190], esi
mov dword [esp + 0x18c], ebx
mov word [esp + 0x17c], bx
jb 0x40a70a
mov eax, dword [esp + 0x128]
push eax
call fcn.00422ece
add esp, 4
cmp dword [esp + 0x104], edi
mov dword [esp + 0x13c], esi
mov dword [esp + 0x138], ebx
mov word [esp + 0x128], bx
jb 0x40a739
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.00422ece
add esp, 4
cmp dword [esp + 0xe8], edi
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], ebx
mov word [esp + 0xf0], bx
jb 0x40a768
mov edx, dword [esp + 0xd4]
push edx
call fcn.00422ece
add esp, 4
cmp dword [esp + 0x120], edi
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], ebx
mov word [esp + 0xd4], bx
jb 0x40a797
mov eax, dword [esp + 0x10c]
push eax
call fcn.00422ece
add esp, 4
cmp dword [esp + 0xb0], edi
mov dword [esp + 0x120], esi
mov dword [esp + 0x11c], ebx
mov word [esp + 0x10c], bx
jb 0x40a7c6
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.00422ece
add esp, 4
cmp dword [esp + 0xcc], edi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], bx
jb 0x40a7f5
mov edx, dword [esp + 0xb8]
push edx
call fcn.00422ece
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc8], ebx
mov word [esp + 0xb8], bx
je 0x40a81a
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40a829
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.00422834
add esp, 0x194
ret 4
mov eax, dword [esp + 0xc8]
push str.stop
mov edi, 4
lea ecx, [esp + 0xb8]
call fcn.00403d20
test eax, eax
jne 0x40a39e
cmp dword [esp + 0xb0], 8
mov eax, dword [esp + 0x9c]
jae 0x40a892
lea eax, [esp + 0x9c]
push eax
push str.Stopping_service__s
push 0x4575d0
xor eax, eax
call fcn.00419220
add esp, 0xc
cmp byte [esi + 0x244], bl
jne 0x40a653
lea edx, [esp + 0x18]
push edx
call fcn.00420380
mov edi, eax
cmp edi, ebx
jne 0x40a910
cmp dword [esp + 0xb0], 8
mov eax, dword [esp + 0x9c]
jae 0x40a8db
lea eax, [esp + 0x9c]
lea esi, [esp + 0x18]
call fcn.004203b0
mov edi, eax
cmp edi, ebx
jne 0x40a8ec
xor edi, edi
lea esi, [esp + 0x18]
call fcn.004206b0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40a904
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, ebx
mov dword [esp + 0x18], ebx
je 0x40a39a
cmp edi, 0x424
je 0x40a39a
mov esi, dword [esp + 0x14]
mov al, byte [esi + 0x245]
neg al
push edi
push str.Error_0x_X_while_stopping_service
sbb eax, eax
not eax
and eax, edi
mov dword [esi + 0x38], eax
jmp 0x40a28d