Function at 0x418c20
Capabilities:
Enumerate services
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ea9a
mov eax, dword fs:[0]
push eax
mov eax, 0x16204
call fcn.00436b90
mov eax, dword [0x469644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1610c], eax
sub esp, 0x1c
mov esi, esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x16110], esp
mov edi, 7
xor ecx, ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push 0x14
mov eax, str.Win_Service_Kommando
mov word [esi], cx
call fcn.00404210
call fcn.00410a60
add esp, 0x1c
push ebx
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x16110], esp
xor edx, edx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push 1
mov eax, 0x45ee24
mov word [esi], dx
call fcn.00404210
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 1
mov dword [ebp - 0x16144], esp
xor eax, eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push ebx
lea edx, [ebp + 0xc]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.00403a30
lea ecx, [ebp - 0x16120]
mov byte [ebp - 4], bl
call fcn.00406a10
add esp, 0x3c
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1611c]
mov esi, dword [ebp - 0x16120]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
xor ecx, ecx
cmp eax, 1
jae 0x418d8f
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x16110], esp
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push 0xf
mov eax, 0x45ee28
mov word [esi], cx
call fcn.00404210
call fcn.00410b20
mov eax, dword [ebp - 0x16120]
add esp, 0x1c
cmp eax, ebx
je 0x418d62
mov edi, dword [ebp - 0x1611c]
call fcn.0040c070
mov edx, dword [ebp - 0x16120]
push edx
call fcn.00426e9f
add esp, 4
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x16118], ebx
mov dword [ebp - 0x1611c], ebx
mov dword [ebp - 0x16120], ebx
jb 0x41a05e
mov eax, dword [ebp + 0xc]
push eax
call fcn.00426e9f
add esp, 4
jmp 0x41a05e
push ebx
mov word [ebp - 0x1606c], cx
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x1606c]
mov dword [ebp - 0x16058], edi
mov dword [ebp - 0x1605c], ebx
call fcn.00403a30
sub esp, 0x1c
mov byte [ebp - 4], 3
mov edx, esp
mov dword [ebp - 0x16110], esp
push str.Kommando:
push edx
lea ebx, [ebp - 0x1606c]
call fcn.00404920
add esp, 8
call fcn.00410b20
mov eax, dword [ebp - 0x1605c]
add esp, 0x1c
push str.LIST
mov edi, 4
mov ecx, ebx
call fcn.00404da0
test eax, eax
jne 0x419557
mov eax, dword [ebp - 0x1610c]
push str.winservices.csv
add eax, 0x140
push eax
lea ecx, [ebp - 0x16088]
push ecx
call fcn.00412f20
sub esp, 0x10
mov byte [ebp - 4], 4
mov edx, esp
mov dword [ebp - 0x16110], esp
push str.File:
push edx
lea ebx, [ebp - 0x16088]
call fcn.00404920
add esp, 8
call fcn.00410b20
add esp, 0x1c
lea eax, [ebp - 0x16210]
push eax
call fcn.00412c70
mov ecx, ebx
lea esi, [ebp - 0x16210]
mov byte [ebp - 4], 5
call fcn.0041b4d0
xor ebx, ebx
cmp dword [ebp - 0x161b8], ebx
jne 0x418f6d
sub esp, 0x1c
mov eax, str.Datei_konnte_nicht_ge
mov ecx, esp
mov dword [ebp - 0x16110], esp
call fcn.00402770
call fcn.00410b20
add esp, 0x1c
lea ecx, [ebp - 0x161b0]
mov byte [ebp - 4], 4
call fcn.00412d80
lea ecx, [ebp - 0x161b0]
push ecx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004244b8
mov edi, 8
add esp, 4
cmp dword [ebp - 0x16074], edi
jb 0x418ed0
mov edx, dword [ebp - 0x16088]
push edx
call fcn.00426e9f
add esp, 4
xor eax, eax
mov esi, 7
mov dword [ebp - 0x16074], esi
mov dword [ebp - 0x16078], ebx
mov word [ebp - 0x16088], ax
cmp dword [ebp - 0x16058], edi
jb 0x418f01
mov ecx, dword [ebp - 0x1606c]
push ecx
call fcn.00426e9f
add esp, 4
mov eax, dword [ebp - 0x16120]
xor edx, edx
mov dword [ebp - 0x16058], esi
mov dword [ebp - 0x1605c], ebx
mov word [ebp - 0x1606c], dx
cmp eax, ebx
je 0x418f41
mov edi, dword [ebp - 0x1611c]
call fcn.0040c070
mov eax, dword [ebp - 0x16120]
push eax
call fcn.00426e9f
add esp, 4
mov edi, 8
xor ebx, ebx
cmp dword [ebp + 0x20], edi
mov dword [ebp - 0x16120], ebx
mov dword [ebp - 0x1611c], ebx
mov dword [ebp - 0x16118], ebx
jb 0x41a05e
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00426e9f
add esp, 4
jmp 0x41a05e
mov eax, str.Name_DisplayName_CurrentState_ProcessId_ProcessPath_
lea ecx, [ebp - 0x160a8]
mov dword [ebp - 0x1614c], ebx
call fcn.00402770
lea edx, [ebp - 0x160a8]
push edx
lea eax, [ebp - 0x16210]
push eax
mov byte [ebp - 4], 6
call fcn.00413050
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00412aa0
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x418fcd
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x418fcd
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x418feb
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], ebx
jne 0x418fe5
or eax, 4
push ebx
call fcn.00401b10
push 4
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x1610c], esi
mov edi, 8
cmp esi, ebx
je 0x41943c
push ebx
lea edx, [ebp - 0x16110]
push edx
lea eax, [ebp - 0x16148]
push eax
lea ecx, [ebp - 0x16100]
push ecx
push 0x16000
lea edx, [ebp - 0x16010]
push edx
push 3
push 0x10
push ebx
push esi
mov dword [ebp - 0x16148], ebx
mov dword [ebp - 0x16110], ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
setne al
test al, al
je 0x419416
mov dword [ebp - 0x16144], ebx
cmp dword [ebp - 0x16148], ebx
jbe 0x419433
lea eax, [ebp - 0x16004]
mov dword [ebp - 0x16108], eax
nop
inc dword [ebp - 0x1614c]
xor ebx, ebx
xor ecx, ecx
mov edi, 7
push ebx
mov eax, 0x45d4fc
lea esi, [ebp - 0x16050]
mov dword [ebp - 0x1603c], edi
mov dword [ebp - 0x16040], ebx
mov word [ebp - 0x16050], cx
call fcn.00404210
mov edx, dword [ebp - 0x16108]
mov byte [ebp - 4], 7
mov eax, dword [edx - 0xc]
xor ecx, ecx
mov word [ebp - 0x16030], cx
mov ecx, eax
mov dword [ebp - 0x1601c], edi
mov dword [ebp - 0x16020], ebx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4190d0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x16030]
call fcn.00404210
mov edi, esi
lea esi, [ebp - 0x16050]
mov byte [ebp - 4], 8
call fcn.00404be0
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1601c], 8
jb 0x419118
mov edx, dword [ebp - 0x16030]
push edx
call fcn.00426e9f
add esp, 4
push 1
mov eax, 0x45ee24
lea ecx, [ebp - 0x16050]
call fcn.00404f00
mov ebx, dword [ebp - 0x16108]
mov eax, dword [ebx - 8]
xor ecx, ecx
mov word [ebp - 0x16030], cx
mov ecx, eax
mov dword [ebp - 0x1601c], 7
mov dword [ebp - 0x16020], 0
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x419155
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x16030]
call fcn.00404210
mov edx, esi
push 0
push edx
or eax, 0xffffffff
lea esi, [ebp - 0x16050]
mov byte [ebp - 4], 9
call fcn.00404e10
mov edi, 8
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1601c], edi
jb 0x4191a7
mov eax, dword [ebp - 0x16030]
push eax
call fcn.00426e9f
add esp, 4
push 1
mov eax, 0x45ee24
lea ecx, [ebp - 0x16050]
call fcn.00404f00
mov eax, dword [ebx]
dec eax
cmp eax, 6
ja case.default.0x4191c1
jmp dword [eax*4 + 0x41a07c]
mov eax, str.CONTINUE_PENDING
jmp 0x419213
lea edx, [ebp - 0x16050]
push edx
mov eax, str.PAUSE_PENDING
jmp 0x41921a
lea eax, [ebp - 0x16050]
push eax
mov eax, str.PAUSED
jmp 0x41921a
mov eax, str.RUNNING
jmp 0x419213
lea edx, [ebp - 0x16050]
push edx
mov eax, str.START_PENDING
jmp 0x41921a
lea eax, [ebp - 0x16050]
push eax
mov eax, str.STOP_PENDING
jmp 0x41921a
mov eax, str.STOPPED
lea ecx, [ebp - 0x16050]
push ecx
call fcn.00404bb0
push 1
mov eax, 0x45ee24
lea ecx, [ebp - 0x16050]
call fcn.00404f00
mov eax, dword [ebx + 0x18]
push eax
lea edx, [ebp - 0x160c4]
push edx
call fcn.004063a0
add esp, 8
push 0
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x16050]
mov byte [ebp - 4], 0xa
call fcn.00404e10
mov byte [ebp - 4], 7
cmp dword [ebp - 0x160b0], edi
jb 0x419274
mov eax, dword [ebp - 0x160c4]
push eax
call fcn.00426e9f
add esp, 4
push 1
mov eax, 0x45ee24
lea ecx, [ebp - 0x16050]
call fcn.00404f00
mov ecx, dword [ebx - 0xc]
mov edx, dword [ebp - 0x1610c]
push 1
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x41934a
lea eax, [ebp - 0x16164]
push eax
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x419332
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x419329
mov eax, dword [ebp - 0x16164]
push eax
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x16164]
push ecx
push ebx
mov edi, eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x419309
mov eax, dword [edi + 0xc]
lea edx, [ebp - 0x16050]
push edx
call fcn.00404bb0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [ebp - 0x16108]
jmp 0x419343
lea eax, [ebp - 0x16050]
push eax
mov eax, str.Failed__QueryServiceConfig_
call fcn.00404bb0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [ebp - 0x16108]
jmp 0x419343
lea ecx, [ebp - 0x16050]
push ecx
jmp 0x419339
lea edx, [ebp - 0x16050]
push edx
mov eax, str.Failed__QueryServiceConfig_
call fcn.00404bb0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 1
mov eax, 0x45ee24
lea ecx, [ebp - 0x16050]
call fcn.00404f00
lea eax, [ebp - 0x16050]
push eax
lea ecx, [ebp - 0x16210]
push ecx
call fcn.00413050
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00412aa0
mov edx, dword [esi]
mov eax, dword [edx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x4193a2
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x4193a2
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x4193c2
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x4193bb
or eax, 4
push 0
call fcn.00401b10
mov byte [ebp - 4], 6
cmp dword [ebp - 0x1603c], 8
jb 0x4193de
mov edx, dword [ebp - 0x16050]
push edx
call fcn.00426e9f
add esp, 4
mov eax, dword [ebp - 0x16144]
inc eax
add ebx, 0x2c
mov dword [ebp - 0x16144], eax
mov dword [ebp - 0x16108], ebx
cmp eax, dword [ebp - 0x16148]
jb 0x419070
mov esi, dword [ebp - 0x1610c]
push esi
mov edi, 8
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x419459
sub esp, 0x1c
mov eax, str.EnumServicesStatusEx_failed
mov ecx, esp
mov dword [ebp - 0x1610c], esp
call fcn.00402770
call fcn.00410b20
add esp, 0x1c
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x419459
sub esp, 0x1c
mov eax, str.Datei_konnte_nicht_ge
mov ecx, esp
mov dword [ebp - 0x16100], esp
call fcn.00402770
call fcn.00410b20
add esp, 0x1c
lea eax, [ebp - 0x1620c]
call fcn.00403cc0
test eax, eax
jne 0x419490
mov eax, dword [ebp - 0x16210]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x16204]
lea ecx, [ebp + ecx - 0x16210]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x41948a
or eax, 4
push ebx
call fcn.00401b10
mov ecx, dword [ebp - 0x1614c]
push ecx
lea edx, [ebp - 0x160c4]
push edx
call fcn.004063a0
sub esp, 0x14
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ebp - 0x16100], esp
push eax
mov eax, str._services
call fcn.0040f880
add esp, 4
call fcn.00410b20
add esp, 0x1c
cmp dword [ebp - 0x160b0], edi
jb 0x4194df
mov eax, dword [ebp - 0x160c4]
push eax
call fcn.00426e9f
add esp, 4
cmp dword [ebp - 0x16094], edi
jb 0x4194f6
mov ecx, dword [ebp - 0x160a8]
push ecx
call fcn.00426e9f
add esp, 4
xor edx, edx
lea ecx, [ebp - 0x161b0]
mov dword [ebp - 0x16094], 7
mov dword [ebp - 0x16098], ebx
mov word [ebp - 0x160a8], dx
mov byte [ebp - 4], 4
call fcn.00412d80
lea eax, [ebp - 0x161b0]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004244b8
add esp, 4
cmp dword [ebp - 0x16074], edi
jb 0x419fb5
mov ecx, dword [ebp - 0x16088]
push ecx
call fcn.00426e9f
add esp, 4
jmp 0x419fb5
mov ecx, dword [ebp - 0x1611c]
mov esi, dword [ebp - 0x16120]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jae 0x419613
sub esp, 0x1c
mov eax, 0x45ee28
mov ecx, esp
mov dword [ebp - 0x16100], esp
call fcn.00402770
call fcn.00410b20
mov ebx, 8
add esp, 0x1c
cmp dword [ebp - 0x16058], ebx
jb 0x4195ba
mov ecx, dword [ebp - 0x1606c]
push ecx
call fcn.00426e9f
add esp, 4
mov eax, dword [ebp - 0x16120]
xor esi, esi
xor edx, edx
mov dword [ebp - 0x16058], 7
mov dword [ebp - 0x1605c], esi
mov word [ebp - 0x1606c], dx
cmp eax, esi
je 0x4195f9
mov edi, dword [ebp - 0x1611c]
call fcn.0040c070
mov eax, dword [ebp - 0x16120]
push eax
call fcn.00426e9f
add esp, 4
cmp dword [ebp + 0x20], ebx
mov dword [ebp - 0x16120], esi
mov dword [ebp - 0x1611c], esi
mov dword [ebp - 0x16118], esi
jmp 0x418f56
xor edx, edx
lea eax, [esi + 0x1c]
push edx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x16088]
mov dword [ebp - 0x16074], 7
mov dword [ebp - 0x16078], 0
mov word [ebp - 0x16088], dx
call fcn.00403a30
sub esp, 0x1c
mov byte [ebp - 4], 0xc
mov eax, esp
mov dword [ebp - 0x16100], esp
push str.Service:
push eax
lea ebx, [ebp - 0x16088]
call fcn.00404920
add esp, 8
call fcn.00410b20
mov eax, dword [ebp - 0x1605c]
add esp, 0x1c
xor bl, bl
push str.START
mov edi, 5
lea ecx, [ebp - 0x1606c]
mov byte [ebp - 0x16101], bl
call fcn.00404da0
test eax, eax
jne 0x41969e
mov byte [ebp - 0x16101], 1
jmp 0x4196e1
mov eax, dword [ebp - 0x1605c]
push str.STOP
mov edi, 4
lea ecx, [ebp - 0x1606c]
call fcn.00404da0
test eax, eax
jne 0x4196c1
mov bl, 1
jmp 0x4196e1
mov esi, str.RESTART
lea ecx, [ebp - 0x1606c]
call fcn.00414690
test al, al
je 0x41a018
mov bl, 1
mov byte [ebp - 0x16101], bl
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x1610c], eax
test eax, eax
jne 0x419762
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x16030]
push ecx
call fcn.004063a0
push eax
mov edx, str.OpenSCManager_fehlgeschlagen__ErrorCode:
lea eax, [ebp - 0x16050]
mov byte [ebp - 4], 0xd
call fcn.00404a00
sub esp, 0x10
mov byte [ebp - 4], 0xe
mov ecx, esp
mov dword [ebp - 0x16100], esp
push eax
mov eax, 0x45d75c
call fcn.0040f880
add esp, 4
call fcn.00410b20
add esp, 0x1c
lea esi, [ebp - 0x16050]
call fcn.004027b0
lea esi, [ebp - 0x16030]
call fcn.004027b0
jmp 0x41a035
cmp dword [ebp - 0x16074], 8
mov ecx, dword [ebp - 0x16088]
jae 0x419777
lea ecx, [ebp - 0x16088]
push 0xf003f
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x16108], esi
test esi, esi
jne 0x419805
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x16030]
push edx
call fcn.004063a0
push eax
mov edx, str.OpenService_fehlgeschlagen__ErrorCode:
lea eax, [ebp - 0x16050]
mov byte [ebp - 4], 0xf
call fcn.00404a00
sub esp, 0x10
mov byte [ebp - 4], 0x10
mov ecx, esp
mov dword [ebp - 0x16100], esp
push eax
mov eax, 0x45d75c
call fcn.0040f880
add esp, 4
call fcn.00410b20
add esp, 0x1c
lea esi, [ebp - 0x16050]
call fcn.004027b0
lea esi, [ebp - 0x16030]
call fcn.004027b0
mov eax, dword [ebp - 0x1610c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41a035
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemTime]
test bl, bl
je 0x419bfc
lea ecx, [ebp - 0x160c4]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x160c0], 4
jne 0x419bdf
lea edx, [ebp - 0x160c4]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
setne al
test al, al
je 0x419b76
sub esp, 0x1c
mov eax, str.Service_wird_gestoppt
mov ecx, esp
mov dword [ebp - 0x16100], esp
call fcn.00402770
call fcn.00410b20
add esp, 0x1c
lea eax, [ebp - 0x16130]
push eax
call edi
mov ecx, dword [ebp - 0x16130]
mov edx, dword [ebp - 0x1612c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x16128]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x16124]
mov dword [eax + 8], ecx
push 0x3c
lea esi, [ebp - 0x16028]
mov dword [eax + 0xc], edx
call fcn.00407550
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x16140], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x1613c], edx
mov edx, dword [eax + 0xc]
add esp, 0x14
lea eax, [ebp - 0x16160]
push eax
mov dword [ebp - 0x16138], ecx
mov dword [ebp - 0x16134], edx
call edi
mov ecx, dword [ebp - 0x16160]
mov edx, dword [ebp - 0x1615c]
mov eax, dword [ebp - 0x16158]
push 0
push 0
mov dword [ebp - 0x16130], ecx
mov ecx, dword [ebp - 0x16154]
push 0
push 0
mov dword [ebp - 0x1612c], edx
mov dword [ebp - 0x16128], eax
mov dword [ebp - 0x16124], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
jmp 0x419920
mov eax, dword [ebp - 0x16108]
lea edx, [ebp - 0x160c4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ecx, dword [ebp - 0x160c0]
mov eax, ecx
dec eax
je 0x419b2f
sub eax, 2
je 0x419995
push ecx
lea ecx, [ebp - 0x160e0]
push ecx
call fcn.004063a0
mov ecx, eax
sub esp, 0x14
mov byte [ebp - 4], 0x11
mov eax, esp
mov dword [ebp - 0x16100], esp
push ecx
mov edx, str.Unbekannter_Service_Status
call fcn.00404a00
add esp, 4
call fcn.00410b20
add esp, 0x1c
lea esi, [ebp - 0x160e0]
mov byte [ebp - 4], 0xc
call fcn.004027b0
mov eax, str.Die_Pr
jmp 0x419b34
lea edx, [ebp - 0x16160]
push edx
call edi
mov ecx, dword [ebp - 0x16140]
mov edx, dword [ebp - 0x1613c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x16138]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x16134]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x16160]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x1615c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x16158]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x16154]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00407450
add esp, 0x20
cmp eax, 1
jne 0x419a42
sub esp, 0x1c
mov eax, str.Service_wurde_innerhalb_des_Timeouts_nicht_beendet
mov ecx, esp
mov dword [ebp - 0x16100], esp
call fcn.00402770
call fcn.00410b20
mov eax, str.Die_Pr
mov ecx, esp
mov dword [ebp - 0x16100], esp
call fcn.00402770
call fcn.00410b20
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [ebp - 0x16101], 0
jmp 0x419b53
lea eax, [ebp - 0x160a0]
push eax
call edi
mov ecx, dword [ebp - 0x16130]
mov edx, dword [ebp - 0x1612c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x16128]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x16124]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x160a0]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x1609c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x16098]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x16094]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00407450
add esp, 0x20
cmp eax, 1
jne 0x419b53
sub esp, 0x1c
mov eax, str.Warten_bis_Service_gestoppt_wurde
mov ecx, esp
mov dword [ebp - 0x16100], esp
call fcn.00402770
call fcn.00410b20
add esp, 0x1c
lea eax, [ebp - 0x16028]
push eax
call edi
mov ecx, dword [ebp - 0x16028]
mov edx, dword [ebp - 0x16024]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x16020]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x1601c]
mov dword [eax + 8], ecx
push 5
lea esi, [ebp - 0x16048]
mov dword [eax + 0xc], edx
call fcn.00407550
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x16130], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x1612c], edx
mov edx, dword [eax + 0xc]
add esp, 0x14
mov dword [ebp - 0x16128], ecx
mov dword [ebp - 0x16124], edx
jmp 0x419b53
mov eax, str.Service_wurde_gestoppt
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x16100], esp
call fcn.00402770
call fcn.00410b20
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1f4
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x419920
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x419bfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x16050]
push eax
call fcn.004063a0
push eax
mov edx, str.Service_stoppen_fehlgeschlagen__ErrorCode:
lea eax, [ebp - 0x160e0]
mov byte [ebp - 4], 0x12
call fcn.00404a00
sub esp, 0x10
mov byte [ebp - 4], 0x13
mov ecx, esp
mov dword [ebp - 0x16100], esp
push eax
mov eax, 0x45d75c
call fcn.0040f880
add esp, 4
call fcn.00410b20
add esp, 0x1c
lea esi, [ebp - 0x160e0]
call fcn.004027b0
lea esi, [ebp - 0x16050]
mov byte [ebp - 4], 0xc
call fcn.004027b0
jmp 0x419bfc
sub esp, 0x1c
mov eax, str.Service_l
mov ecx, esp
mov dword [ebp - 0x16100], esp
call fcn.00402770
call fcn.00410b20
add esp, 0x1c
cmp byte [ebp - 0x16101], 0
je 0x419f8b
mov ecx, dword [ebp - 0x16108]
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
setne al
test al, al
je 0x419f28
sub esp, 0x1c
mov eax, str.Service_wird_gestartet
mov ecx, esp
mov dword [ebp - 0x16100], esp
call fcn.00402770
call fcn.00410b20
add esp, 0x1c
lea edx, [ebp - 0x16028]
push edx
call edi
mov ecx, dword [ebp - 0x16028]
mov edx, dword [ebp - 0x16024]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x16020]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x1601c]
mov dword [eax + 8], ecx
push 0x3c
lea esi, [ebp - 0x16048]
mov dword [eax + 0xc], edx
call fcn.00407550
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x16140], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x1613c], edx
mov edx, dword [eax + 0xc]
add esp, 0x14
lea eax, [ebp - 0x16028]
push eax
mov dword [ebp - 0x16138], ecx
mov dword [ebp - 0x16134], edx
call edi
mov ecx, dword [ebp - 0x16028]
mov edx, dword [ebp - 0x16024]
mov eax, dword [ebp - 0x16020]
push 0
push 0
mov dword [ebp - 0x16130], ecx
mov ecx, dword [ebp - 0x1601c]
push 0
push 0
mov dword [ebp - 0x1612c], edx
mov dword [ebp - 0x16128], eax
mov dword [ebp - 0x16124], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
mov eax, dword [ebp - 0x16108]
lea edx, [ebp - 0x160e0]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ecx, dword [ebp - 0x160dc]
mov eax, ecx
sub eax, 2
je 0x419d93
sub eax, 2
je 0x419d6a
push ecx
lea ecx, [ebp - 0x160fc]
push ecx
call fcn.004063a0
mov ecx, eax
sub esp, 0x14
mov byte [ebp - 4], 0x14
mov eax, esp
mov dword [ebp - 0x16100], esp
push ecx
mov edx, str.Unbekannter_Service_Status
call fcn.00404a00
add esp, 4
call fcn.00410b20
add esp, 0x1c
lea esi, [ebp - 0x160fc]
mov byte [ebp - 4], 0xc
call fcn.004027b0
push ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x419f08
sub esp, 0x1c
mov eax, str.Service_wurde_gestartet
mov ecx, esp
mov dword [ebp - 0x16100], esp
call fcn.00402770
call fcn.00410b20
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x419f08
lea edx, [ebp - 0x16028]
push edx
call edi
mov ecx, dword [ebp - 0x16140]
mov edx, dword [ebp - 0x1613c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x16138]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x16134]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x16028]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x16024]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x16020]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x1601c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00407450
add esp, 0x20
cmp eax, 1
jne 0x419e1d
sub esp, 0x1c
mov eax, str.Service_wurde_innerhalb_des_Timeouts_nicht_gestartet
mov ecx, esp
mov dword [ebp - 0x16100], esp
call fcn.00402770
call fcn.00410b20
mov eax, str.Die_Pr
jmp 0x419d72
lea eax, [ebp - 0x160a0]
push eax
call edi
mov ecx, dword [ebp - 0x16130]
mov edx, dword [ebp - 0x1612c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x16128]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x16124]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x160a0]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x1609c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x16098]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x16094]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00407450
add esp, 0x20
cmp eax, 1
jne 0x419f08
sub esp, 0x1c
mov eax, str.Warten_bis_Service_gestartet_wurde
mov ecx, esp
mov dword [ebp - 0x16100], esp
call fcn.00402770
call fcn.00410b20
add esp, 0x1c
lea eax, [ebp - 0x16160]
push eax
call edi
mov ecx, dword [ebp - 0x16160]
mov edx, dword [ebp - 0x1615c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x16158]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x16154]
mov dword [eax + 8], ecx
push 5
lea esi, [ebp - 0x16048]
mov dword [eax + 0xc], edx
call fcn.00407550
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x16130], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x1612c], edx
mov edx, dword [eax + 0xc]
add esp, 0x14
mov dword [ebp - 0x16128], ecx
mov dword [ebp - 0x16124], edx
push 0x1f4
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x419cf1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x419f8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x160e0]
push eax
call fcn.004063a0
push eax
mov edx, str.Service_starten_fehlgeschlagen__ErrorCode:
lea eax, [ebp - 0x160fc]
mov byte [ebp - 4], 0x15
call fcn.00404a00
sub esp, 0x10
mov byte [ebp - 4], 0x16
mov ecx, esp
mov dword [ebp - 0x16100], esp
push eax
mov eax, 0x45d75c
call fcn.0040f880
add esp, 4
call fcn.00410b20
add esp, 0x1c
lea esi, [ebp - 0x160fc]
call fcn.004027b0
lea esi, [ebp - 0x160e0]
call fcn.004027b0
mov ecx, dword [ebp - 0x16108]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ecx
call esi
mov edx, dword [ebp - 0x1610c]
push edx
call esi
lea esi, [ebp - 0x16088]
call fcn.004027b0
mov edi, 8
xor ebx, ebx
cmp dword [ebp - 0x16058], edi
jb 0x419fcc
mov eax, dword [ebp - 0x1606c]
push eax
call fcn.00426e9f
add esp, 4
mov eax, dword [ebp - 0x16120]
xor ecx, ecx
mov dword [ebp - 0x16058], 7
mov dword [ebp - 0x1605c], ebx
mov word [ebp - 0x1606c], cx
cmp eax, ebx
je 0x41a010
mov edi, dword [ebp - 0x1611c]
call fcn.0040c070
mov edx, dword [ebp - 0x16120]
push edx
call fcn.00426e9f
add esp, 4
mov edi, 8
xor ebx, ebx
cmp dword [ebp + 0x20], edi
jmp 0x418d66
sub esp, 0x1c
mov eax, str.Unbekannter_Win_Service_Befehl
mov ecx, esp
mov dword [ebp - 0x16100], esp
call fcn.00402770
call fcn.00410a60
add esp, 0x1c
lea esi, [ebp - 0x16088]
call fcn.004027b0
lea esi, [ebp - 0x1606c]
call fcn.004027b0
lea esi, [ebp - 0x16120]
call fcn.00408030
lea esi, [ebp + 0xc]
call fcn.004027b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042575d
mov esp, ebp
pop ebp
ret 0x20