Function at 0x409df0
Capabilities:
Start service

Disassembly:
push 0xffffffffffffffff
push 0x449668
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x4563c4]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4563c4]
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.004057e0
lea eax, [esp + 0xb4]
mov byte [esp + 0x1a4], 1
call fcn.00421250
push 0x44dbe8
lea ecx, [esp + 0x9c]
push ecx
push ebp
call fcn.004057e0
push str.displayname
lea edx, [esp + 0x10c]
push edx
push ebp
mov byte [esp + 0x1b0], 2
call fcn.004057e0
push str.servicetype
lea eax, [esp + 0xd4]
push eax
push ebp
mov byte [esp + 0x1b0], 3
call fcn.004057e0
lea eax, [esp + 0xd0]
mov byte [esp + 0x1a4], 4
call fcn.00421250
push str.starttype
lea ecx, [esp + 0xf0]
push ecx
push ebp
call fcn.004057e0
lea eax, [esp + 0xec]
mov byte [esp + 0x1a4], 5
call fcn.00421250
push 0x44dc44
lea edx, [esp + 0x128]
push edx
push ebp
call fcn.004057e0
push str.description
lea eax, [esp + 0x17c]
push eax
push ebp
mov byte [esp + 0x1b0], 6
call fcn.004057e0
push str.longdescription
lea ecx, [esp + 0x160]
push ecx
push ebp
mov byte [esp + 0x1b0], 7
call fcn.004057e0
push str.dependencies
lea edx, [esp + 0x144]
push edx
push ebp
mov byte [esp + 0x1b0], 8
call fcn.004057e0
push str.Service
mov byte [esp + 0x1a8], 9
push str.__s_
push 0x4575e0
xor eax, eax
call fcn.00419140
mov eax, dword [esp + 0xd4]
add dword [0x457600], 1
add esp, 0xc
push str.install
lea edi, [ebx + 7]
lea ecx, [esp + 0xb8]
call fcn.00403c20
test eax, eax
jne 0x40a0c6
cmp byte [esi + 0x244], bl
jne 0x40a591
mov ecx, dword [esp + 0x160]
mov eax, 8
cmp dword [esp + 0x174], eax
jae 0x409fd3
lea ecx, [esp + 0x160]
cmp dword [esp + 0x158], eax
mov edx, dword [esp + 0x144]
jae 0x409fea
lea edx, [esp + 0x144]
cmp dword [esp + 0x13c], eax
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x128]
jae 0x40a005
lea edx, [esp + 0x128]
cmp dword [esp + 0x104], eax
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0xf0]
jae 0x40a020
lea edx, [esp + 0xf0]
cmp dword [esp + 0xe8], eax
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0xd4]
jae 0x40a03b
lea edx, [esp + 0xd4]
cmp dword [esp + 0x120], eax
mov edi, dword [esp + 0x10c]
jae 0x40a052
lea edi, [esp + 0x10c]
cmp dword [esp + 0xb0], eax
mov eax, dword [esp + 0x9c]
jae 0x40a069
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.00420660
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x40a2dc
cmp byte [esi + 0x245], bl
jne 0x40a2dc
push edi
push str.Error_0x_X_installing_service
push 0x4575e0
mov eax, 2
call fcn.00419140
mov dl, byte [esi + 0x245]
add esp, 0xc
neg dl
sbb edx, edx
not edx
and edx, edi
mov dword [esi + 0x38], edx
jmp 0x40a2dc
mov eax, dword [esp + 0xc8]
push str.remove
mov edi, 6
lea ecx, [esp + 0xb8]
call fcn.00403c20
test eax, eax
jne 0x40a1e2
mov eax, dword [esp + 0x9c]
mov edi, 8
cmp dword [esp + 0xb0], edi
jae 0x40a107
lea eax, [esp + 0x9c]
push eax
push str.Removing_service__s
push 0x4575e0
xor eax, eax
call fcn.00419140
add esp, 0xc
cmp byte [esi + 0x244], bl
jne 0x40a591
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x40a2dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x40a2dc
cmp dword [esp + 0xb0], edi
mov eax, dword [esp + 0x9c]
jae 0x40a166
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 0x40a186
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
jne 0x40a199
lea esi, [esp + 0x18]
call fcn.00420630
mov esi, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40a1a8
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, ebx
mov dword [esp + 0x18], ebx
je 0x40a2dc
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 0x4575e0
mov eax, 2
call fcn.00419140
add esp, 0xc
jmp 0x40a2dc
mov eax, dword [esp + 0xc8]
push str.start
mov edi, 5
lea ecx, [esp + 0xb8]
call fcn.00403c20
test eax, eax
jne 0x40a793
mov eax, dword [esp + 0x9c]
mov edi, 8
cmp dword [esp + 0xb0], edi
jae 0x40a223
lea eax, [esp + 0x9c]
push eax
push str.Starting_service__s
push 0x4575e0
xor eax, eax
call fcn.00419140
add esp, 0xc
cmp byte [esi + 0x244], bl
jne 0x40a591
lea edx, [esp + 0x18]
push edx
call fcn.004202e0
cmp eax, ebx
je 0x40a2dc
cmp dword [esp + 0xb0], edi
mov eax, dword [esp + 0x9c]
jae 0x40a26d
lea eax, [esp + 0x9c]
lea esi, [esp + 0x18]
call fcn.00420310
mov edi, eax
cmp edi, ebx
jne 0x40a28b
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.00420610
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40a2a3
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, ebx
mov dword [esp + 0x18], ebx
je 0x40a2d8
mov eax, dword [esp + 0x14]
mov cl, byte [eax + 0x245]
neg cl
push edi
push str.Error_0x_X_while_starting_service
push 0x4575e0
sbb ecx, ecx
not ecx
and ecx, edi
mov dword [eax + 0x38], ecx
mov eax, 2
call fcn.00419140
add esp, 0xc
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x244], bl
jne 0x40a591
mov eax, dword [esp + 0xc8]
push str.install
mov edi, 7
lea ecx, [esp + 0xb8]
call fcn.00403c20
test eax, eax
jne 0x40a591
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.004030c0
lea ecx, [esp + 0x98]
push ecx
mov edx, esi
push edx
lea edi, [esp + 0x58]
mov byte [esp + 0x1ac], 0xb
call fcn.00416050
add esp, 8
push eax
lea esi, [esp + 0x70]
mov byte [esp + 0x1a8], 0xc
call fcn.00410ce0
cmp dword [esp + 0x68], 8
jb 0x40a383
mov eax, dword [esp + 0x54]
push eax
call fcn.00422b32
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 0x40a3b0
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00422b32
add esp, 4
push 0x44d4d4
lea edx, [esp + 0x80]
push edx
push ebp
call fcn.004057e0
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.004030c0
push edi
mov eax, esi
push eax
lea edi, [esp + 0x58]
mov byte [esp + 0x1ac], 0xe
call fcn.00416050
add esp, 8
push eax
lea esi, [esp + 0x70]
mov byte [esp + 0x1a8], 0xf
call fcn.00410ce0
cmp dword [esp + 0x68], 8
jb 0x40a42c
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00422b32
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 0x40a456
mov edx, dword [esp + 0x30]
push edx
call fcn.00422b32
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 0x40a484
mov eax, dword [esp + 0x80]
push eax
call fcn.00422b32
add esp, 4
push 0x44d5dc
lea ecx, [esp + 0x80]
push ecx
push ebp
call fcn.004057e0
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.004030c0
push edi
mov edx, esi
push edx
lea edi, [esp + 0x58]
mov byte [esp + 0x1ac], 0x11
call fcn.00416050
add esp, 8
push eax
lea esi, [esp + 0x70]
mov byte [esp + 0x1a8], 0x12
call fcn.00410ce0
cmp dword [esp + 0x68], 8
jb 0x40a500
mov eax, dword [esp + 0x54]
push eax
call fcn.00422b32
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 0x40a52a
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00422b32
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 0x40a558
mov edx, dword [esp + 0x80]
push edx
call fcn.00422b32
add esp, 4
mov eax, dword [esp + 0x14]
push str.service
push eax
lea ecx, [esp + 0x74]
call fcn.0040dc40
mov eax, dword [esp + 0x70]
cmp eax, ebx
je 0x40a591
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x74]
push ecx
call fcn.00417420
mov edx, dword [esp + 0x74]
add esp, 4
push edx
call fcn.00422b32
add esp, 4
sub dword [0x457600], 1
mov edi, 8
cmp dword [esp + 0x158], edi
jb 0x40a5b6
mov eax, dword [esp + 0x144]
push eax
call fcn.00422b32
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 0x40a5ea
mov ecx, dword [esp + 0x160]
push ecx
call fcn.00422b32
add esp, 4
cmp dword [esp + 0x190], edi
mov dword [esp + 0x174], esi
mov dword [esp + 0x170], ebx
mov word [esp + 0x160], bx
jb 0x40a619
mov edx, dword [esp + 0x17c]
push edx
call fcn.00422b32
add esp, 4
cmp dword [esp + 0x13c], edi
mov dword [esp + 0x190], esi
mov dword [esp + 0x18c], ebx
mov word [esp + 0x17c], bx
jb 0x40a648
mov eax, dword [esp + 0x128]
push eax
call fcn.00422b32
add esp, 4
cmp dword [esp + 0x104], edi
mov dword [esp + 0x13c], esi
mov dword [esp + 0x138], ebx
mov word [esp + 0x128], bx
jb 0x40a677
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.00422b32
add esp, 4
cmp dword [esp + 0xe8], edi
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], ebx
mov word [esp + 0xf0], bx
jb 0x40a6a6
mov edx, dword [esp + 0xd4]
push edx
call fcn.00422b32
add esp, 4
cmp dword [esp + 0x120], edi
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], ebx
mov word [esp + 0xd4], bx
jb 0x40a6d5
mov eax, dword [esp + 0x10c]
push eax
call fcn.00422b32
add esp, 4
cmp dword [esp + 0xb0], edi
mov dword [esp + 0x120], esi
mov dword [esp + 0x11c], ebx
mov word [esp + 0x10c], bx
jb 0x40a704
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.00422b32
add esp, 4
cmp dword [esp + 0xcc], edi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], bx
jb 0x40a733
mov edx, dword [esp + 0xb8]
push edx
call fcn.00422b32
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 0x40a758
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40a767
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.00422b23
add esp, 0x194
ret 4
mov eax, dword [esp + 0xc8]
push str.stop
mov edi, 4
lea ecx, [esp + 0xb8]
call fcn.00403c20
test eax, eax
jne 0x40a2dc
cmp dword [esp + 0xb0], 8
mov eax, dword [esp + 0x9c]
jae 0x40a7d0
lea eax, [esp + 0x9c]
push eax
push str.Stopping_service__s
push 0x4575e0
xor eax, eax
call fcn.00419140
add esp, 0xc
cmp byte [esi + 0x244], bl
jne 0x40a591
lea edx, [esp + 0x18]
push edx
call fcn.004202e0
mov edi, eax
cmp edi, ebx
jne 0x40a84e
cmp dword [esp + 0xb0], 8
mov eax, dword [esp + 0x9c]
jae 0x40a819
lea eax, [esp + 0x9c]
lea esi, [esp + 0x18]
call fcn.00420310
mov edi, eax
cmp edi, ebx
jne 0x40a82a
xor edi, edi
lea esi, [esp + 0x18]
call fcn.00420610
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40a842
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, ebx
mov dword [esp + 0x18], ebx
je 0x40a2d8
cmp edi, 0x424
je 0x40a2d8
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 0x40a1cb