Function at 0x401100
Capabilities:
Create service
Delete service
Get process heap flags
Modify service
Start service
Stop service
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xa8
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], ecx
cmp eax, 2
jle 0x402191
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
cmp word [eax], 0x5c
jne 0x401142
cmp word [eax + 2], 0x5c
je 0x4018a0
mov dword [esp + 8], 0xf003f
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._OpenSCManagerW_12
mov dword [ebp - 0x58], eax
sub esp, 0xc
test eax, eax
je 0x401810
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], str.create
mov edi, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov eax, dword [eax + 4]
mov dword [esp], eax
call edi
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x401590
cmp dword [ebp - 0x3c], 3
je 0x402185
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x48], 1
xor ebx, ebx
mov dword [ebp - 0x44], 3
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0x10
mov dword [ebp - 0x6c], 0
sub eax, 3
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x70], 0
lea esi, [esi]
mov dword [esp + 4], str.displayname
mov eax, dword [esi - 4]
mov dword [esp], eax
call edi
test eax, eax
mov eax, dword [esi - 4]
jne 0x401660
mov edx, dword [ebp - 0x3c]
lea ecx, [edx - 4]
cmp ecx, ebx
jbe 0x401660
mov ecx, dword [esi]
mov dword [esp + 4], str.binpath
mov dword [esp], eax
mov dword [ebp - 0x70], ecx
call edi
test eax, eax
jne 0x401234
mov eax, dword [esi]
mov dword [ebp - 0x5c], eax
mov dword [esp + 4], str.group
mov eax, dword [esi - 4]
mov dword [esp], eax
call edi
test eax, eax
jne 0x4016a1
mov eax, dword [esi]
mov dword [esp + 4], str.depend
mov dword [ebp - 0x68], eax
mov eax, dword [esi - 4]
mov dword [esp], eax
call edi
test eax, eax
jne 0x4016c3
mov eax, dword [esi]
mov dword [esp + 4], str.obj
mov dword [ebp - 0x60], eax
mov eax, dword [esi - 4]
mov dword [esp], eax
call edi
test eax, eax
jne 0x4016e5
mov eax, dword [esi]
mov dword [esp + 4], str.password
mov dword [ebp - 0x64], eax
mov eax, dword [esi - 4]
mov dword [esp], eax
call edi
test eax, eax
jne 0x4017b8
mov eax, dword [esi]
mov dword [esp + 4], str.tag
mov dword [ebp - 0x6c], eax
mov eax, dword [esi - 4]
mov dword [esp], eax
call edi
test eax, eax
jne 0x401760
mov eax, dword [esi - 4]
mov dword [esp + 4], 0x4040f8
mov dword [esp], eax
call edi
test eax, eax
jne 0x4012e1
test byte [section..data], 1
jne 0x401bdf
mov dword [esp + 4], str.type
mov eax, dword [esi - 4]
mov dword [esp], eax
call edi
test eax, eax
jne 0x4017e8
mov dword [esp + 4], 0x404128
mov eax, dword [esi]
mov dword [esp], eax
call edi
mov dword [esp + 4], str.share
test eax, eax
mov eax, 0x10
cmovne eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
mov eax, dword [esi]
mov dword [esp], eax
call edi
mov dword [esp + 4], str.kernel
test eax, eax
mov eax, 0x20
cmovne eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
mov eax, dword [esi]
mov dword [esp], eax
call edi
mov dword [esp + 4], str.filesys
mov edx, 1
test eax, eax
mov eax, dword [esi]
cmovne edx, dword [ebp - 0x40]
mov dword [esp], eax
mov dword [ebp - 0x40], edx
call edi
mov dword [esp + 4], 0x40415a
test eax, eax
mov eax, 2
cmovne eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
mov eax, dword [esi]
mov dword [esp], eax
call edi
mov dword [esp + 4], str.interact
test eax, eax
mov eax, 8
cmovne eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
mov eax, dword [esi]
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0x40]
mov dword [esp + 4], str.startstart
mov ecx, eax
mov eax, edx
or ah, 1
test ecx, ecx
cmovne eax, edx
mov dword [ebp - 0x40], eax
mov eax, dword [esi - 4]
mov dword [esp], eax
call edi
test eax, eax
jne 0x401788
mov dword [esp + 4], str.boot
mov eax, dword [esi]
mov dword [esp], eax
call edi
mov dword [esp + 4], str.system
test eax, eax
mov eax, 0
cmovne eax, dword [ebp - 0x44]
mov dword [ebp - 0x44], eax
mov eax, dword [esi]
mov dword [esp], eax
call edi
mov dword [esp + 4], str.auto
mov ecx, 1
test eax, eax
mov eax, dword [esi]
cmovne ecx, dword [ebp - 0x44]
mov dword [esp], eax
mov dword [ebp - 0x44], ecx
call edi
mov dword [esp + 4], str.demand
test eax, eax
mov eax, 2
cmovne eax, dword [ebp - 0x44]
mov dword [ebp - 0x44], eax
mov eax, dword [esi]
mov dword [esp], eax
call edi
mov dword [esp + 4], str.disabled
test eax, eax
mov eax, 3
cmovne eax, dword [ebp - 0x44]
mov dword [ebp - 0x44], eax
mov eax, dword [esi]
mov dword [esp], eax
call edi
mov dword [esp + 4], str.error
test eax, eax
mov eax, 4
cmovne eax, dword [ebp - 0x44]
mov dword [ebp - 0x44], eax
mov eax, dword [esi - 4]
mov dword [esp], eax
call edi
test eax, eax
jne 0x4014e0
mov dword [esp + 4], str.normal
mov eax, dword [esi]
mov dword [esp], eax
call edi
mov dword [esp + 4], str.severe
test eax, eax
mov eax, 1
cmovne eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
mov eax, dword [esi]
mov dword [esp], eax
call edi
mov dword [esp + 4], str.critical
mov ecx, 2
test eax, eax
mov eax, dword [esi]
cmovne ecx, dword [ebp - 0x48]
mov dword [esp], eax
mov dword [ebp - 0x48], ecx
call edi
mov dword [esp + 4], str.ignore
test eax, eax
mov eax, 3
cmovne eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
mov eax, dword [esi]
mov dword [esp], eax
call edi
test eax, eax
mov eax, 0
cmovne eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
lea esi, [esi]
add ebx, 1
add esi, 4
cmp dword [ebp - 0x4c], ebx
jne 0x4011f0
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x401833
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x68]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp - 0x64]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp - 0x60]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 0x20], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 0xc], 0xf01ff
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sym._CreateServiceW_52
sub esp, 0x34
test eax, eax
je 0x401850
mov dword [esp], eax
call sym._CloseServiceHandle_4
sub esp, 4
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sym._CloseServiceHandle_4
mov eax, dword [ebp - 0x54]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov ebx, dword [ebp - 0x50]
mov dword [esp + 4], str.description
mov eax, dword [ebx + 4]
mov dword [esp], eax
call edi
test eax, eax
jne 0x4018e0
mov dword [esp + 8], 2
mov eax, dword [ebx + 8]
mov edi, ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sym._OpenServiceW_12
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x401c31
xor eax, eax
cmp dword [ebp - 0x3c], 3
je 0x4015df
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._ChangeServiceConfig2W_12
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x40163c
test byte [section..data], 8
je 0x40163c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_set_service_description__u_n
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov dword [esp], ebx
call sym._CloseServiceHandle_4
xor eax, eax
sub esp, 4
test esi, esi
sete al
mov dword [ebp - 0x54], eax
jmp 0x401571
mov dword [esp + 4], str.binpath
mov dword [esp], eax
call edi
test eax, eax
jne 0x40167f
mov eax, dword [ebp - 0x3c]
sub eax, 4
cmp eax, ebx
ja 0x40122f
mov dword [esp + 4], str.group
mov eax, dword [esi - 4]
mov dword [esp], eax
call edi
test eax, eax
jne 0x4016a1
mov eax, dword [ebp - 0x3c]
sub eax, 4
cmp eax, ebx
ja 0x40124c
mov dword [esp + 4], str.depend
mov eax, dword [esi - 4]
mov dword [esp], eax
call edi
test eax, eax
jne 0x4016c3
mov eax, dword [ebp - 0x3c]
sub eax, 4
cmp eax, ebx
ja 0x401269
mov dword [esp + 4], str.obj
mov eax, dword [esi - 4]
mov dword [esp], eax
call edi
test eax, eax
jne 0x4016e5
mov eax, dword [ebp - 0x3c]
sub eax, 4
cmp eax, ebx
ja 0x401286
mov dword [esp + 4], str.password
mov eax, dword [esi - 4]
mov dword [esp], eax
call edi
test eax, eax
jne 0x4017b8
mov eax, dword [ebp - 0x3c]
sub eax, 4
cmp eax, ebx
ja 0x4012a3
mov dword [esp + 4], str.tag
mov eax, dword [esi - 4]
mov dword [esp], eax
call edi
test eax, eax
jne 0x401760
mov eax, dword [esi - 4]
mov dword [esp + 4], str.type
mov dword [esp], eax
call edi
mov dword [esp + 4], str.startstart
mov eax, dword [esi - 4]
mov dword [esp], eax
call edi
test eax, eax
jne 0x401788
mov dword [esp + 4], str.error
mov eax, dword [esi - 4]
mov dword [esp], eax
call edi
jmp 0x4014e0
mov dword [esp + 4], str.type
mov eax, dword [esi - 4]
mov dword [esp], eax
call edi
test eax, eax
jne 0x4017e8
mov eax, dword [ebp - 0x3c]
sub eax, 4
cmp eax, ebx
jbe 0x40172f
jmp 0x4012f9
mov dword [esp + 4], str.error
mov eax, dword [esi - 4]
mov dword [esp], eax
call edi
test eax, eax
jne 0x4014e0
mov eax, dword [ebp - 0x3c]
sub eax, 4
cmp eax, ebx
jbe 0x4014e0
jmp 0x401468
mov dword [esp + 4], str.tag
mov eax, dword [esi - 4]
mov dword [esp], eax
call edi
test eax, eax
jne 0x401760
mov edx, dword [ebp - 0x3c]
mov eax, dword [esi - 4]
lea ecx, [edx - 4]
cmp ecx, ebx
jbe 0x401722
jmp 0x4012c3
mov dword [esp + 4], str.startstart
mov eax, dword [esi - 4]
mov dword [esp], eax
call edi
test eax, eax
jne 0x401788
mov eax, dword [ebp - 0x3c]
sub eax, 4
cmp eax, ebx
jbe 0x401743
jmp 0x4013c3
test byte [section..data], 2
jne 0x401baf
mov dword [ebp - 0x54], 1
mov eax, dword [ebp - 0x54]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
test byte [section..data], 4
jne 0x401c08
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sym._CloseServiceHandle_4
sub esp, 4
jmp 0x40181d
mov dword [ebp - 0x54], 1
test byte [section..data], 8
je 0x401571
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_create_service__u_n
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401571
test byte [section..data], 1
je 0x40181d
mov dword [esp + 0xc], str.server_argument_not_supported_n
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov dword [ebp - 0x54], 1
jmp 0x401824
mov ebx, dword [ebp - 0x50]
mov dword [esp + 4], str.failure
mov eax, dword [ebx + 4]
mov dword [esp], eax
call edi
test eax, eax
jne 0x401c4a
mov dword [esp + 8], 2
mov eax, dword [ebx + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sym._OpenServiceW_12
mov dword [ebp - 0x60], eax
sub esp, 0xc
test eax, eax
je 0x401c31
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
sub eax, 3
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x54], eax
je 0x401f93
mov dword [ebp - 0x4c], 1
add ebx, 0x10
mov esi, edi
mov dword [ebp - 0x48], 0
mov edi, ebx
lea esi, [esi]
mov dword [esp + 4], str.reset
mov eax, dword [edi - 4]
mov dword [esp], eax
call esi
test eax, eax
jne 0x401dd0
mov eax, dword [ebp - 0x3c]
sub eax, 4
cmp dword [ebp - 0x48], eax
jb 0x401e9b
mov dword [esp + 4], str.rebootreboot
mov eax, dword [edi - 4]
mov dword [esp], eax
call esi
test eax, eax
jne 0x401e38
mov eax, dword [edi - 4]
mov dword [esp + 4], str.command
mov dword [esp], eax
call esi
mov dword [esp + 4], str.actions
mov eax, dword [edi - 4]
mov dword [esp], eax
call esi
test eax, eax
jne 0x401b91
mov eax, dword [ebp - 0x3c]
sub eax, 4
cmp dword [ebp - 0x48], eax
je 0x401f66
mov ebx, dword [edi]
cmp word [ebx], 0
je 0x401f3b
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4019f8
sub eax, ebx
add eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x40], eax
call eax
mov dword [ebp - 0x50], eax
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x401f66
xor eax, eax
nop
movzx edx, word [ebx + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x401a40
mov eax, dword [ebp - 0x50]
movzx edx, word [eax]
test dx, dx
je 0x401f82
xor ecx, ecx
lea esi, [esi]
cmp dx, 0x2f
jne 0x401a76
xor edx, edx
add ecx, 1
mov word [eax], dx
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x401a68
shr ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x44], eax
shl eax, 3
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x44]
mov dword [esp + 4], 0
mov ebx, dword fs:[0x18]
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x28], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
mov dword [ebp - 0x24], eax
sub esp, 0xc
test eax, eax
je 0x401f45
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x5c], edi
xor ebx, ebx
mov dword [ebp - 0x40], esi
mov esi, edx
nop
mov dword [esp], esi
mov eax, dword [ebp - 0x40]
lea edi, [ebx*8]
mov dword [esp + 4], 0x404310
call eax
test eax, eax
jne 0x401d90
mov eax, dword [ebp - 0x24]
mov dword [eax + ebx*8], 3
cmp word [esi], 0
je 0x401dbc
mov eax, esi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401b08
sub eax, esi
add eax, 2
add esi, eax
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcstol]
mov edx, dword [ebp - 0x24]
cmp word [esi], 0
mov dword [edx + edi + 4], eax
je 0x401e68
mov eax, esi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401b48
sub eax, esi
add eax, 2
add esi, eax
add ebx, 1
cmp ebx, dword [ebp - 0x44]
jne 0x401ad0
mov ecx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x5c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov esi, dword [ebp - 0x40]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov edx, dword [ebp - 0x4c]
add dword [ebp - 0x48], 1
add edi, 4
lea eax, [edx + 1]
cmp edx, dword [ebp - 0x54]
jae 0x401f93
mov dword [ebp - 0x4c], eax
jmp 0x401970
mov dword [esp + 0xc], str.failed_to_open_service_manager_n
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 4], 0x403000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
mov dword [ebp - 0x54], 1
jmp 0x401824
mov dword [esp + 0xc], str.tag_argument_not_supported_n
mov dword [esp + 8], str.parse_create_params
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x4012e1
mov dword [esp + 0xc], str.failed_to_parse_create_parameters_n
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 4], 0x403000
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x401840
test byte [section..data], 8
jne 0x401efe
mov dword [ebp - 0x54], 1
jmp 0x401571
mov ebx, dword [ebp - 0x50]
mov dword [esp + 4], str.delete
mov eax, dword [ebx + 4]
mov dword [esp], eax
call edi
test eax, eax
je 0x401d10
mov ebx, dword [ebp - 0x50]
mov dword [esp + 4], str.startstart
mov eax, dword [ebx + 4]
mov dword [esp], eax
call edi
test eax, eax
jne 0x401ff6
mov dword [esp + 8], 0x10
mov eax, dword [ebx + 8]
mov edi, ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sym._OpenServiceW_12
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x401c31
mov eax, dword [ebp - 0x3c]
add edi, 0xc
mov dword [esp], ebx
mov dword [esp + 8], edi
sub eax, 3
mov dword [esp + 4], eax
call sym._StartServiceW_12
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x40163c
test byte [section..data], 8
je 0x40163c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_start_service__u_n
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40163c
mov dword [esp + 8], 0x10000
mov eax, dword [ebx + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sym._OpenServiceW_12
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x401c31
mov dword [esp], eax
call sym._DeleteService_4
sub esp, 4
mov esi, eax
test eax, eax
jne 0x40163c
test byte [section..data], 8
je 0x40163c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_delete_service__u_n
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40163c
mov dword [esp + 4], str.restart
mov eax, dword [ebp - 0x40]
mov dword [esp], esi
call eax
test eax, eax
jne 0x401e78
mov eax, dword [ebp - 0x24]
cmp word [esi], 0
mov dword [eax + edi], 1
jne 0x401b03
mov eax, 2
jmp 0x401b16
mov dword [esp + 4], str.rebootreboot
mov eax, dword [edi - 4]
mov dword [esp], eax
call esi
test eax, eax
jne 0x401e38
mov edx, dword [ebp - 0x3c]
mov eax, dword [edi - 4]
sub edx, 4
cmp dword [ebp - 0x48], edx
jae 0x4019b2
mov edx, dword [edi]
mov dword [esp + 4], str.command
mov dword [esp], eax
mov dword [ebp - 0x30], edx
call esi
test eax, eax
jne 0x4019bf
mov eax, dword [edi]
mov dword [esp + 4], str.actions
mov dword [ebp - 0x2c], eax
mov eax, dword [edi - 4]
mov dword [esp], eax
call esi
test eax, eax
je 0x4019e6
jmp 0x401b91
mov dword [esp + 4], str.command
mov eax, dword [edi - 4]
mov dword [esp], eax
call esi
test eax, eax
jne 0x4019bf
mov eax, dword [ebp - 0x3c]
sub eax, 4
cmp dword [ebp - 0x48], eax
jae 0x4019bf
jmp 0x401e10
mov eax, 2
jmp 0x401b56
mov dword [esp + 4], str.rebootreboot
mov eax, dword [ebp - 0x40]
mov dword [esp], esi
call eax
test eax, eax
mov eax, dword [ebp - 0x24]
jne 0x401ed5
mov dword [eax + edi], 2
jmp 0x401af9
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [esp + 4], str.rebootreboot
mov dword [ebp - 0x34], eax
mov eax, dword [edi - 4]
mov dword [esp], eax
call esi
test eax, eax
jne 0x401ee1
mov eax, dword [edi - 4]
jmp 0x401df6
mov dword [eax + edi], 0
jmp 0x401af9
mov dword [esp + 4], str.command
mov eax, dword [edi - 4]
mov dword [esp], eax
call esi
test eax, eax
je 0x401e10
jmp 0x4019bf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_open_service__u_n
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov dword [ebp - 0x54], 1
jmp 0x401571
mov eax, 2
jmp 0x401a06
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test byte [section..data], 4
jne 0x4020f0
mov dword [ebp - 0x54], 1
mov eax, dword [ebp - 0x60]
jmp 0x401566
mov dword [ebp - 0x44], 1
mov eax, 8
jmp 0x401a8d
lea eax, [ebp - 0x34]
mov dword [esp + 4], 2
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sym._ChangeServiceConfig2W_12
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x401fc3
test byte [section..data], 8
jne 0x40214f
mov edx, dword [ebp - 0x24]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
xor eax, eax
sub esp, 0xc
test ebx, ebx
sete al
mov dword [ebp - 0x54], eax
jmp 0x401f7a
mov ebx, dword [ebp - 0x50]
mov dword [esp + 4], str.stop
mov eax, dword [ebx + 4]
mov dword [esp], eax
call edi
test eax, eax
jne 0x4020a0
mov dword [esp + 8], 0x20
mov eax, dword [ebx + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sym._OpenServiceW_12
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x401c31
lea eax, [ebp - 0x34]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp], ebx
call sym._ControlService_12
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x40163c
test byte [section..data], 8
je 0x40163c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_stop_service__u_n
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40163c
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], str.sdset
mov eax, dword [eax + 4]
mov dword [esp], eax
call edi
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x402119
test byte [section..data], 1
je 0x401571
mov dword [esp + 0xc], str.SdSet_command_not_supported__faking_success_n
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401571
mov dword [esp + 0xc], str.failed_to_parse_failure_parameters_n
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 4], 0x403000
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x401f73
test byte [section..data], 1
je 0x401c3e
mov dword [esp + 0xc], str.command_not_supported_n
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401c3e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_set_service_failure_actions__u_n
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401fc3
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sym._CloseServiceHandle_4
push ecx
mov dword [esp], str.Usage:_sc_command_servicename__parameter_value_...__n
call sym._wine_dbg_printf.constprop.0
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
nop
nop
nop
nop
nop
nop