Function at 0x401380
Capabilities:
Create service
Delete service
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, 0x9c
mov ebx, dword [ecx]
mov edi, dword [ecx + 4]
cmp ebx, 2
jle 0x4021af
mov eax, dword [edi + 8]
cmp word [eax], 0x5c
jne 0x4013b9
cmp word [eax + 2], 0x5c
je 0x401850
mov dword [esp + 8], 0xf003f
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.advapi32.dll_OpenSCManagerW]
mov dword [ebp - 0x64], eax
sub esp, 0xc
test eax, eax
je 0x4017a0
mov dword [esp + 4], str.create
mov eax, dword [edi + 4]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [ebp - 0x68], eax
call eax
mov dword [ebp - 0x60], eax
test eax, eax
jne 0x4016d0
cmp ebx, 3
je 0x4021a2
mov dword [ebp - 0x30], 0x10
pxor xmm0, xmm0
lea esi, [edi + 0xc]
sub ebx, 3
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x5c], 0
movups xmmword [ebp - 0x48], xmm0
nop
lea eax, [ebp - 0x48]
mov dword [esp + 4], 0xc
lea ecx, [ebp - 0x5c]
mov edx, esi
mov dword [esp + 8], eax
mov eax, ebx
mov dword [esp], str.displayname
call sym._parse_string_param
test eax, eax
jne 0x401618
lea eax, [ebp - 0x44]
mov dword [esp + 4], 8
lea ecx, [ebp - 0x5c]
mov edx, esi
mov dword [esp + 8], eax
mov eax, ebx
mov dword [esp], str.binpath
call sym._parse_string_param
test eax, eax
jne 0x401618
lea eax, [ebp - 0x40]
mov dword [esp + 4], 6
lea ecx, [ebp - 0x5c]
mov edx, esi
mov dword [esp + 8], eax
mov eax, ebx
mov dword [esp], str.group
call sym._parse_string_param
test eax, eax
jne 0x401618
lea eax, [ebp - 0x3c]
mov dword [esp + 4], 7
lea ecx, [ebp - 0x5c]
mov edx, esi
mov dword [esp + 8], eax
mov eax, ebx
mov dword [esp], str.depend
call sym._parse_string_param
test eax, eax
jne 0x401618
lea eax, [ebp - 0x38]
mov dword [esp + 4], 4
lea ecx, [ebp - 0x5c]
mov edx, esi
mov dword [esp + 8], eax
mov eax, ebx
mov dword [esp], str.obj
call sym._parse_string_param
test eax, eax
jne 0x401618
lea eax, [ebp - 0x34]
mov dword [esp + 4], 9
lea ecx, [ebp - 0x5c]
mov edx, esi
mov dword [esp + 8], eax
mov eax, ebx
mov dword [esp], str.password
call sym._parse_string_param
test eax, eax
jne 0x401618
lea eax, [ebp - 0x58]
mov dword [esp + 4], 4
lea ecx, [ebp - 0x5c]
mov edx, esi
mov dword [esp + 8], eax
mov eax, ebx
mov dword [esp], str.tag
call sym._parse_string_param
test eax, eax
jne 0x401ba0
lea eax, [ebp - 0x54]
mov dword [esp + 4], 5
lea ecx, [ebp - 0x5c]
mov edx, esi
mov dword [esp + 8], eax
mov eax, ebx
mov dword [esp], str.type
call sym._parse_string_param
test eax, eax
jne 0x401ee0
lea eax, [ebp - 0x50]
mov dword [esp + 4], 6
lea ecx, [ebp - 0x5c]
mov edx, esi
mov dword [esp + 8], eax
mov eax, ebx
mov dword [esp], 0x404308
call sym._parse_string_param
test eax, eax
jne 0x401f07
lea eax, [ebp - 0x4c]
mov dword [esp + 4], 6
lea ecx, [ebp - 0x5c]
mov edx, esi
mov dword [esp + 8], eax
mov eax, ebx
mov dword [esp], str.error
call sym._parse_string_param
test eax, eax
je 0x401618
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], str.normal
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x40215c
mov dword [ebp - 0x28], 1
lea esi, [esi]
mov eax, dword [ebp - 0x5c]
add eax, 1
mov dword [ebp - 0x5c], eax
cmp eax, ebx
jb 0x401450
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4017c8
mov dword [esp + 0x1c], eax
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], edx
mov edx, dword [ebp - 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x2c], edx
mov edx, dword [ebp - 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x28], edx
mov edx, dword [ebp - 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 0x20], edx
mov dword [esp + 0xc], 0xf01ff
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CreateServiceW]
sub esp, 0x34
test eax, eax
je 0x401800
mov dword [esp], eax
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call esi
sub esp, 4
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x60]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 4], str.description
mov eax, dword [edi + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x401890
mov dword [esp + 8], 2
mov eax, dword [edi + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x401a50
xor eax, eax
cmp ebx, 3
je 0x40171d
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_ChangeServiceConfig2W]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x401780
test byte [section..data], 2
je 0x401780
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_set_service_description__lu_n
mov dword [esp + 8], str.wmain
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x403000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
nop
lea esi, [esi]
mov dword [esp], esi
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call esi
xor eax, eax
sub esp, 4
test ebx, ebx
sete al
mov dword [ebp - 0x60], eax
jmp 0x4016ac
test byte [section..data], 2
jne 0x4019f0
mov dword [ebp - 0x60], 1
mov eax, dword [ebp - 0x60]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
test byte [section..data], 2
jne 0x401a20
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov dword [ebp - 0x60], 1
mov eax, dword [ebp - 0x60]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [ebp - 0x60], 1
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
test byte [section..data], 2
je 0x4016ac
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_create_service__lu_n
mov dword [esp + 8], str.wmain
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x403000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4016ac
test byte [section..data], 1
je 0x4017ad
mov dword [esp + 0xc], str.server_argument_not_supported_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov dword [ebp - 0x60], 1
jmp 0x4017b4
mov dword [esp + 4], str.failure
mov eax, dword [edi + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x401a70
mov dword [esp + 8], 2
mov eax, dword [edi + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
mov dword [ebp - 0x6c], eax
sub esp, 0xc
test eax, eax
je 0x401a50
mov esi, ebx
mov dword [ebp - 0x48], 0
add edi, 0xc
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x54], 0
sub esi, 3
jne 0x4019a1
jmp 0x401c20
lea eax, [ebp - 0x44]
mov dword [esp + 4], 7
lea ecx, [ebp - 0x54]
mov edx, edi
mov dword [esp + 8], eax
mov eax, esi
mov dword [esp], 0x404446
call sym._parse_string_param
test eax, eax
jne 0x401990
lea eax, [ebp - 0x40]
mov dword [esp + 4], 8
lea ecx, [ebp - 0x54]
mov edx, edi
mov dword [esp + 8], eax
mov eax, esi
mov dword [esp], str.command
call sym._parse_string_param
test eax, eax
jne 0x401990
lea eax, [ebp - 0x4c]
mov dword [esp + 4], 8
lea ecx, [ebp - 0x54]
mov edx, edi
mov dword [esp + 8], eax
mov eax, esi
mov dword [esp], str.actions
call sym._parse_string_param
test eax, eax
jne 0x401c70
nop
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x54], eax
cmp eax, esi
jae 0x401c20
lea eax, [ebp - 0x50]
mov dword [esp + 4], 6
lea ecx, [ebp - 0x54]
mov edx, edi
mov dword [esp + 8], eax
mov eax, esi
mov dword [esp], str.reset
call sym._parse_string_param
test eax, eax
je 0x401918
mov eax, dword [ebp - 0x50]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [ebp - 0x48], eax
jmp 0x401990
mov dword [esp + 0xc], str.failed_to_open_service_manager_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x403000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4017ad
mov dword [esp + 0xc], str.failed_to_parse_create_parameters_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x403000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4017d5
test byte [section..data], 2
jne 0x401bd8
mov dword [ebp - 0x60], 1
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x4016ac
mov dword [esp + 4], str.delete
mov eax, dword [edi + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
je 0x401b38
mov dword [esp + 4], str.start
mov eax, dword [edi + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x401e30
mov dword [esp + 8], 0x10
mov eax, dword [edi + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x401a50
lea eax, [edi + 0xc]
sub ebx, 3
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call dword [sym.imp.advapi32.dll_StartServiceW]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x401fc6
test byte [section..data], 2
je 0x401780
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_start_service__lu_n
mov dword [esp + 8], str.wmain
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x403000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401780
mov dword [esp + 8], 0x10000
mov eax, dword [edi + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x401a50
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_DeleteService]
sub esp, 4
mov edi, eax
test eax, eax
jne 0x401b7f
test byte [section..data], 2
jne 0x402086
mov dword [esp], ebx
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call esi
xor eax, eax
sub esp, 4
test edi, edi
sete al
mov dword [ebp - 0x60], eax
jmp 0x4016ac
mov eax, dword [ebp - 0x58]
mov dword [esp + 4], 0x40428c
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x401618
test byte [section..data], 1
jne 0x402036
mov dword [ebp - 0x24], 1
jmp 0x401618
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_open_service__lu_n
mov dword [esp + 8], str.wmain
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x403000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
mov dword [ebp - 0x60], 1
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x4016ac
lea eax, [ebp - 0x48]
mov dword [esp + 4], 2
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_ChangeServiceConfig2W]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x401c51
test byte [section..data], 2
jne 0x402103
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
xor eax, eax
test ebx, ebx
sete al
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x6c]
jmp 0x40169e
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [ebp - 0x70], eax
test eax, eax
je 0x401dc7
movzx edx, word [eax]
test dx, dx
je 0x4020bc
xor ecx, ecx
lea esi, [esi]
cmp dx, 0x2f
jne 0x401ca6
xor edx, edx
add ecx, 1
mov word [eax], dx
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x401c98
shr ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x60], eax
shl eax, 3
mov edx, dword [ebp - 0x60]
mov dword [esp], eax
mov dword [ebp - 0x3c], edx
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x401dbb
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x78], esi
xor ebx, ebx
mov dword [ebp - 0x74], edi
mov edi, edx
lea esi, [esi]
mov dword [esp], edi
mov eax, dword [ebp - 0x68]
lea esi, [ebx*8]
mov dword [esp + 4], 0x40447a
call eax
test eax, eax
jne 0x401d98
mov eax, dword [ebp - 0x38]
mov dword [eax + ebx*8], 3
cmp word [edi], 0
je 0x401df0
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401d20
sub eax, edi
add eax, 2
add edi, eax
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcstol]
mov edx, dword [ebp - 0x38]
mov dword [edx + esi + 4], eax
cmp word [edi], 0
je 0x401de0
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401d60
sub eax, edi
add eax, 2
add edi, eax
add ebx, 1
cmp ebx, dword [ebp - 0x60]
jne 0x401ce8
mov eax, dword [ebp - 0x70]
mov edi, dword [ebp - 0x74]
mov esi, dword [ebp - 0x78]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x401990
mov dword [esp + 4], str.restart
mov eax, dword [ebp - 0x68]
mov dword [esp], edi
call eax
test eax, eax
jne 0x401e00
mov eax, dword [ebp - 0x38]
mov dword [eax + esi], 1
jmp 0x401d11
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
test byte [section..data], 2
jne 0x401f76
mov dword [ebp - 0x60], 1
jmp 0x401c67
mov eax, 2
jmp 0x401d6e
mov eax, 2
jmp 0x401d2e
mov dword [esp + 4], str.reboot
mov eax, dword [ebp - 0x68]
mov dword [esp], edi
call eax
test eax, eax
mov eax, dword [ebp - 0x38]
jne 0x401f2e
mov dword [eax + esi], 2
jmp 0x401d11
mov dword [esp + 4], str.stop
mov eax, dword [edi + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x401f3a
mov dword [esp + 8], 0x20
mov eax, dword [edi + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x401a50
lea eax, [ebp - 0x48]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_ControlService]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x401fc6
test byte [section..data], 2
je 0x401780
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_stop_service__lu_n
mov dword [esp + 8], str.wmain
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x403000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401780
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], 0x4042bc
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x401f9f
mov dword [ebp - 0x30], 0x10
jmp 0x401618
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], str.boot
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x40205f
mov dword [ebp - 0x2c], 0
jmp 0x401618
mov dword [eax + esi], 0
jmp 0x401d11
mov dword [esp + 4], str.query
mov eax, dword [edi + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x401fd6
mov edx, dword [edi + 8]
mov eax, dword [ebp - 0x64]
call sym._query_service
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
test eax, eax
sete al
movzx eax, al
mov dword [ebp - 0x60], eax
jmp 0x4016ac
mov dword [esp + 0xc], str.failed_to_parse_failure_parameters_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x403000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401dd4
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], str.share
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x402139
mov dword [ebp - 0x30], 0x20
jmp 0x401618
mov edx, dword [edi + 8]
mov eax, dword [ebp - 0x64]
call sym._query_service
jmp 0x401780
mov dword [esp + 4], str.sdset
mov eax, dword [edi + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
mov dword [ebp - 0x60], eax
test eax, eax
jne 0x4020cd
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
test byte [section..data], 1
je 0x4016ac
mov dword [esp + 0xc], str.SdSet_command_not_supported__faking_success_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x4016ac
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 0x401bc8
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], str.system
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x40217f
mov dword [ebp - 0x2c], 1
jmp 0x401618
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_delete_service__lu_n
mov dword [esp + 8], str.wmain
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x403000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401b7f
mov dword [ebp - 0x60], 1
mov eax, 8
jmp 0x401cbd
test byte [section..data], 1
je 0x401a5d
mov dword [esp + 0xc], str.command_not_supported_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401a5d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_set_service_failure_actions__lu_n
mov dword [esp + 8], str.wmain
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x403000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401c51
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], str.kernel
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x4021c8
mov dword [ebp - 0x30], 1
jmp 0x401618
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], str.severe
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x4021eb
mov dword [ebp - 0x28], 2
jmp 0x401618
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], str.auto
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x40220e
mov dword [ebp - 0x2c], 2
jmp 0x401618
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
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]
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], str.filesys
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x402231
mov dword [ebp - 0x30], 2
jmp 0x401618
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], str.critical
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x402254
mov dword [ebp - 0x28], 3
jmp 0x401618
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], str.demand
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x40227b
mov dword [ebp - 0x2c], 3
jmp 0x401618
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], 0x4042ee
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x4022a2
mov dword [ebp - 0x30], 8
jmp 0x401618
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], str.ignore
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x401618
mov dword [ebp - 0x28], 0
jmp 0x401618
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], str.disabled
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x401618
mov dword [ebp - 0x2c], 4
jmp 0x401618
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], str.interact
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x401618
or dword [ebp - 0x30], 0x100
jmp 0x401618