Function at 0x401370
Capabilities:
Create service
Delete service
Modify service
Start service
Stop service
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp ebx, 2
jle 0x40218f
mov eax, dword [edi + 8]
cmp word [eax], 0x5c
jne 0x40139f
cmp word [eax + 2], 0x5c
je 0x401830
mov dword [esp + 8], 0xf003f
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.advapi32.dll_OpenSCManagerW]
sub esp, 0xc
mov dword [ebp - 0x50], eax
test eax, eax
je 0x401790
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 - 0x54], eax
call eax
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4016c0
cmp ebx, 3
je 0x402182
mov dword [ebp - 0x34], 0
lea esi, [edi + 0xc]
sub ebx, 3
mov dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x48], 0
lea esi, [esi]
lea eax, [ebp - 0x34]
mov dword [esp + 4], 0xc
lea ecx, [ebp - 0x48]
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 0x401612
lea eax, [ebp - 0x30]
mov dword [esp + 4], 8
lea ecx, [ebp - 0x48]
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 0x401612
lea eax, [ebp - 0x2c]
mov dword [esp + 4], 6
lea ecx, [ebp - 0x48]
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 0x401612
lea eax, [ebp - 0x28]
mov dword [esp + 4], 7
lea ecx, [ebp - 0x48]
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 0x401612
lea eax, [ebp - 0x24]
mov dword [esp + 4], 4
lea ecx, [ebp - 0x48]
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 0x401612
lea eax, [ebp - 0x20]
mov dword [esp + 4], 9
lea ecx, [ebp - 0x48]
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 0x401612
lea eax, [ebp - 0x44]
mov dword [esp + 4], 4
lea ecx, [ebp - 0x48]
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 0x401b75
lea eax, [ebp - 0x40]
mov dword [esp + 4], 5
lea ecx, [ebp - 0x48]
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 0x401e70
lea eax, [ebp - 0x3c]
mov dword [esp + 4], 6
lea ecx, [ebp - 0x48]
mov edx, esi
mov dword [esp + 8], eax
mov eax, ebx
mov dword [esp], 0x405308
call sym._parse_string_param
test eax, eax
jne 0x401ee7
lea eax, [ebp - 0x38]
mov dword [esp + 4], 6
lea ecx, [ebp - 0x48]
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 0x401612
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], str.normal
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
test eax, eax
jne 0x40213c
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
cmp eax, ebx
jb 0x401450
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4017b0
mov edx, dword [ebp - 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], edx
mov edx, dword [ebp - 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x2c], edx
mov edx, dword [ebp - 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x28], edx
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x34]
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 - 0x50]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CreateServiceW]
sub esp, 0x34
test eax, eax
je 0x4017e0
mov dword [esp], eax
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call esi
sub esp, 4
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x4c]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.description
mov eax, dword [edi + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
test eax, eax
jne 0x401870
mov dword [esp + 8], 2
mov eax, dword [edi + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x401a30
xor eax, eax
cmp ebx, 3
je 0x40170d
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], esi
call dword [sym.imp.advapi32.dll_ChangeServiceConfig2W]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x401770
test byte [0x403000], 2
je 0x401770
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], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.2
lea esi, [esi]
nop
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 - 0x4c], eax
jmp 0x4016a6
test byte [0x403000], 2
jne 0x4019d0
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp - 0x4c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x403000], 2
jne 0x401a00
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp - 0x4c]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x4c], 1
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
test byte [0x403000], 2
je 0x4016a6
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], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.2
jmp 0x4016a6
test byte [0x403000], 1
je 0x40179d
mov dword [esp + 0xc], str.server_argument_not_supported_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.2
mov dword [ebp - 0x4c], 1
jmp 0x4017a4
mov dword [esp + 4], str.failure
mov eax, dword [edi + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
test eax, eax
jne 0x401a50
mov dword [esp + 8], 2
mov eax, dword [edi + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov dword [ebp - 0x58], eax
test eax, eax
je 0x401a30
mov esi, ebx
add edi, 0xc
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x40], 0
sub esi, 3
jne 0x401981
jmp 0x401bf3
lea eax, [ebp - 0x30]
mov dword [esp + 4], 7
lea ecx, [ebp - 0x40]
mov edx, edi
mov dword [esp + 8], eax
mov eax, esi
mov dword [esp], 0x405446
call sym._parse_string_param
test eax, eax
jne 0x401970
lea eax, [ebp - 0x2c]
mov dword [esp + 4], 8
lea ecx, [ebp - 0x40]
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 0x401970
lea eax, [ebp - 0x38]
mov dword [esp + 4], 8
lea ecx, [ebp - 0x40]
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 0x401c42
lea esi, [esi]
nop
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
cmp eax, esi
jae 0x401bf3
lea eax, [ebp - 0x3c]
mov dword [esp + 4], 6
lea ecx, [ebp - 0x40]
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 0x4018f1
mov eax, dword [ebp - 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [ebp - 0x34], eax
jmp 0x401970
mov dword [esp + 0xc], str.failed_to_open_service_manager_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.2
jmp 0x40179d
mov dword [esp + 0xc], str.failed_to_parse_create_parameters_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.2
jmp 0x4017bd
test byte [0x403000], 2
jne 0x401bb0
mov dword [ebp - 0x4c], 1
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x4016a6
mov dword [esp + 4], str.delete
mov eax, dword [edi + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
test eax, eax
je 0x401b11
mov dword [esp + 4], str.start
mov eax, dword [edi + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
test eax, eax
jne 0x401dc0
mov dword [esp + 8], 0x10
mov eax, dword [edi + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x401a30
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 0x401fa6
test byte [0x403000], 2
je 0x401770
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], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.2
jmp 0x401770
mov dword [esp + 8], 0x10000
mov eax, dword [edi + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x401a30
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_DeleteService]
sub esp, 4
mov edi, eax
test eax, eax
jne 0x401b58
test byte [0x403000], 2
jne 0x402066
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 - 0x4c], eax
jmp 0x4016a6
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], 0x40528c
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
test eax, eax
jne 0x401612
test byte [0x403000], 1
jne 0x402016
mov dword [ebp - 0x10], 1
jmp 0x401612
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], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.2
mov dword [ebp - 0x4c], 1
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x4016a6
lea eax, [ebp - 0x34]
mov dword [esp + 4], 2
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_ChangeServiceConfig2W]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x401c24
test byte [0x403000], 2
jne 0x4020e3
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
xor eax, eax
test ebx, ebx
sete al
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x58]
jmp 0x401698
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x401da3
movzx edx, word [eax]
test dx, dx
je 0x40209c
xor ecx, ecx
lea esi, [esi]
nop
cmp dx, 0x2f
jne 0x401c7e
xor edx, edx
add ecx, 1
mov word [eax], dx
add eax, 2
movzx edx, word [eax]
test dx, dx
jne 0x401c70
shr ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x4c], eax
shl eax, 3
mov edx, dword [ebp - 0x4c]
mov dword [esp], eax
mov dword [ebp - 0x28], edx
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x401d97
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x64], esi
xor ebx, ebx
mov dword [ebp - 0x60], edi
mov edi, edx
lea esi, [esi]
nop
mov dword [esp], edi
mov eax, dword [ebp - 0x54]
lea esi, [ebx*8]
mov dword [esp + 4], 0x40547a
call eax
test eax, eax
jne 0x401d70
mov eax, dword [ebp - 0x24]
mov dword [eax + ebx*8], 3
cmp word [edi], 0
je 0x401eb0
mov eax, edi
add eax, 2
cmp word [eax], 0
jne 0x401cf5
sub eax, edi
sar eax, 1
lea eax, [eax + 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 ecx, dword [ebp - 0x24]
mov dword [ecx + esi + 4], eax
cmp word [edi], 0
je 0x401ea0
mov eax, edi
add eax, 2
cmp word [eax], 0
jne 0x401d34
sub eax, edi
sar eax, 1
lea eax, [eax + eax + 2]
add edi, eax
add ebx, 1
cmp ebx, dword [ebp - 0x4c]
jne 0x401cc0
mov eax, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x60]
mov esi, dword [ebp - 0x64]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x401970
mov dword [esp + 4], str.restart
mov eax, dword [ebp - 0x54]
mov dword [esp], edi
call eax
test eax, eax
jne 0x401ec0
mov eax, dword [ebp - 0x24]
mov dword [eax + esi], 1
jmp 0x401ce9
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
test byte [0x403000], 2
jne 0x401f4a
mov dword [ebp - 0x4c], 1
jmp 0x401c3a
mov dword [esp + 4], str.stop
mov eax, dword [edi + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
test eax, eax
jne 0x401f0e
mov dword [esp + 8], 0x20
mov eax, dword [edi + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x401a30
lea eax, [ebp - 0x34]
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 0x401fa6
test byte [0x403000], 2
je 0x401770
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], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.2
jmp 0x401770
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], 0x4052bc
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
test eax, eax
jne 0x401f7f
mov dword [ebp - 0x1c], 0x10
jmp 0x401612
mov eax, 2
jmp 0x401d45
mov eax, 2
jmp 0x401d06
mov dword [esp + 4], str.reboot
mov eax, dword [ebp - 0x54]
mov dword [esp], edi
call eax
test eax, eax
mov eax, dword [ebp - 0x24]
jne 0x401f73
mov dword [eax + esi], 2
jmp 0x401ce9
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], str.boot
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
test eax, eax
jne 0x40203f
mov dword [ebp - 0x18], 0
jmp 0x401612
mov dword [esp + 4], str.query
mov eax, dword [edi + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
test eax, eax
jne 0x401fb6
mov edx, dword [edi + 8]
mov eax, dword [ebp - 0x50]
call dbg.query_service
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
test eax, eax
sete al
movzx eax, al
mov dword [ebp - 0x4c], eax
jmp 0x4016a6
mov dword [esp + 0xc], str.failed_to_parse_failure_parameters_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.2
jmp 0x401db0
mov dword [eax + esi], 0
jmp 0x401ce9
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], str.share
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
test eax, eax
jne 0x402119
mov dword [ebp - 0x1c], 0x20
jmp 0x401612
mov edx, dword [edi + 8]
mov eax, dword [ebp - 0x50]
call dbg.query_service
jmp 0x401770
mov dword [esp + 4], str.sdset
mov eax, dword [edi + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4020ad
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
test byte [0x403000], 1
je 0x4016a6
mov dword [esp + 0xc], str.SdSet_command_not_supported__faking_success_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.2
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x4016a6
mov dword [esp + 0xc], str.tag_argument_not_supported_n
mov dword [esp + 8], str.parse_create_params
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.2
jmp 0x401b9d
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], str.system
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
test eax, eax
jne 0x40215f
mov dword [ebp - 0x18], 1
jmp 0x401612
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], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.2
jmp 0x401b58
mov eax, 8
mov dword [ebp - 0x4c], 1
jmp 0x401c94
test byte [0x403000], 1
je 0x401a3d
mov dword [esp + 0xc], str.command_not_supported_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.2
jmp 0x401a3d
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], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.2
jmp 0x401c24
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], str.kernel
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
test eax, eax
jne 0x4021a8
mov dword [ebp - 0x1c], 1
jmp 0x401612
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], str.severe
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
test eax, eax
jne 0x4021cb
mov dword [ebp - 0x14], 2
jmp 0x401612
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], str.auto
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
test eax, eax
jne 0x4021ee
mov dword [ebp - 0x18], 2
jmp 0x401612
mov eax, dword [ebp - 0x50]
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.4
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], str.filesys
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
test eax, eax
jne 0x402238
mov dword [ebp - 0x1c], 2
jmp 0x401612
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], str.critical
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
test eax, eax
jne 0x40225b
mov dword [ebp - 0x14], 3
jmp 0x401612
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], str.demand
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
test eax, eax
jne 0x402211
mov dword [ebp - 0x18], 3
jmp 0x401612
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], str.disabled
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
test eax, eax
jne 0x401612
mov dword [ebp - 0x18], 4
jmp 0x401612
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], 0x4052ee
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
test eax, eax
jne 0x402282
mov dword [ebp - 0x1c], 8
jmp 0x401612
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], str.ignore
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
test eax, eax
jne 0x401612
mov dword [ebp - 0x14], 0
jmp 0x401612
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], str.interact
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
test eax, eax
jne 0x401612
or dword [ebp - 0x1c], 0x100
jmp 0x401612