Function at 0x401380
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
cmp dword [ebp + 8], 2
jle 0x4021c1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
cmp word [eax], 0x5c
jne 0x4013ad
cmp word [eax + 2], 0x5c
je 0x401790
mov dword [esp + 8], 0xf003f
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.advapi32.dll_OpenSCManagerW]
mov dword [ebp - 0x54], eax
sub esp, 0xc
test eax, eax
je 0x401710
mov dword [esp + 4], str.create
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [ebp - 0x5c], eax
call eax
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x401610
cmp dword [ebp + 8], 3
je 0x4021b4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], 0
xor ebx, ebx
mov dword [ebp - 0x1c], 0x10
lea esi, [eax + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], 1
lea edi, [eax - 3]
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
mov dword [ebp - 0x4c], edi
lea esi, [esi]
lea esi, [esi]
lea edi, [ebx*4]
mov dword [esp + 8], 0xc
lea edx, [esi + edi]
mov dword [esp + 4], str.displayname
mov eax, dword [edx]
mov dword [ebp - 0x50], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
jne 0x4014ba
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
cmp word [eax + 0x18], 0
jne 0x4016e8
mov eax, dword [ebp + 8]
sub eax, 4
cmp ebx, eax
jb 0x401700
lea eax, [ebp - 0x30]
mov dword [esp + 4], 8
lea ecx, [ebp - 0x48]
mov edx, esi
mov dword [esp + 8], eax
mov dword [esp], str.binpath
mov edi, dword [ebp - 0x4c]
mov eax, edi
call sym._parse_string_param
test eax, eax
jne 0x401560
lea eax, [ebp - 0x2c]
mov dword [esp + 4], 6
lea ecx, [ebp - 0x48]
mov edx, esi
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp], str.group
call sym._parse_string_param
test eax, eax
jne 0x401560
lea eax, [ebp - 0x28]
mov dword [esp + 4], 7
lea ecx, [ebp - 0x48]
mov edx, esi
mov dword [esp + 8], eax
mov dword [esp], str.depend
mov eax, dword [ebp - 0x4c]
call sym._parse_string_param
test eax, eax
jne 0x401560
lea eax, [ebp - 0x24]
mov dword [esp + 4], 4
lea ecx, [ebp - 0x48]
mov edx, esi
mov dword [esp + 8], eax
mov dword [esp], str.obj
mov eax, dword [ebp - 0x4c]
call sym._parse_string_param
test eax, eax
je 0x4017c0
lea esi, [esi]
nop
mov ebx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
add ebx, 1
mov dword [ebp - 0x48], ebx
cmp ebx, eax
jb 0x401470
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x401740
mov edx, dword [ebp - 0x20]
mov dword [esp + 0x30], edx
mov edx, dword [ebp - 0x24]
mov dword [esp + 0x2c], edx
mov edx, dword [ebp - 0x28]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], edx
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], 0xf01ff
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CreateServiceW]
sub esp, 0x34
test eax, eax
je 0x401770
mov dword [esp], eax
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call edi
sub esp, 4
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call edi
sub esp, 4
mov eax, dword [ebp - 0x58]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.description
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x5c]
call eax
test eax, eax
jne 0x4018c8
mov dword [esp + 8], 2
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x401a70
xor eax, eax
cmp dword [ebp + 8], 3
je 0x401667
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 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 dword [sym.imp.advapi32.dll_ChangeServiceConfig2W]
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x4016c8
test byte [0x403000], 2
je 0x4016c8
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.0
lea esi, [esi]
mov dword [esp], ebx
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call edi
xor eax, eax
sub esp, 4
test esi, esi
sete al
mov dword [ebp - 0x58], eax
jmp 0x4015fa
add eax, 0x18
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
jmp 0x401563
mov eax, dword [esi + edi + 4]
add ebx, 1
mov dword [ebp - 0x34], eax
jmp 0x401563
test byte [0x403000], 2
je 0x40175c
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.0
jmp 0x40175c
test byte [0x403000], 2
jne 0x401a40
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
sub esp, 4
mov dword [ebp - 0x58], 1
jmp 0x401605
test byte [0x403000], 2
jne 0x401c2e
mov dword [ebp - 0x58], 1
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x4015fa
test byte [0x403000], 1
je 0x40175c
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.0
jmp 0x40175c
lea eax, [ebp - 0x20]
mov dword [esp + 4], 9
lea ecx, [ebp - 0x48]
mov edx, esi
mov dword [esp + 8], eax
mov dword [esp], str.password
mov eax, dword [ebp - 0x4c]
call sym._parse_string_param
test eax, eax
jne 0x401560
lea eax, [ebp - 0x44]
mov dword [esp + 4], 4
lea ecx, [ebp - 0x48]
mov edx, esi
mov dword [esp + 8], eax
mov dword [esp], str.tag
mov eax, dword [ebp - 0x4c]
call sym._parse_string_param
test eax, eax
jne 0x401bf7
lea eax, [ebp - 0x40]
mov dword [esp + 4], 5
lea ecx, [ebp - 0x48]
mov edx, esi
mov dword [esp + 8], eax
mov dword [esp], str.type
mov eax, dword [ebp - 0x4c]
call sym._parse_string_param
test eax, eax
jne 0x401ef8
lea eax, [ebp - 0x3c]
mov dword [esp + 4], 6
lea ecx, [ebp - 0x48]
mov edx, esi
mov dword [esp + 8], eax
mov dword [esp], 0x405308
mov eax, dword [ebp - 0x4c]
call sym._parse_string_param
test eax, eax
jne 0x401f22
lea eax, [ebp - 0x38]
mov dword [esp + 4], 6
lea ecx, [ebp - 0x48]
mov edx, esi
mov dword [esp + 8], eax
mov dword [esp], str.error
mov eax, dword [ebp - 0x4c]
call sym._parse_string_param
mov ebx, dword [ebp - 0x48]
test eax, eax
je 0x401563
mov ebx, dword [ebp - 0x38]
mov dword [esp + 4], str.normal
mov dword [esp], ebx
mov eax, dword [ebp - 0x5c]
call eax
test eax, eax
jne 0x40213f
mov dword [ebp - 0x14], 1
mov ebx, dword [ebp - 0x48]
jmp 0x401563
mov dword [esp + 4], str.failure
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x5c]
call eax
test eax, eax
jne 0x401ab8
mov dword [esp + 8], 2
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x401a70
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
add eax, 0xc
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x40], 0
sub edi, 3
je 0x401c67
mov dword [ebp - 0x58], esi
mov esi, eax
jmp 0x4019f1
lea eax, [ebp - 0x30]
mov dword [esp + 4], 7
lea ecx, [ebp - 0x40]
mov edx, esi
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp], 0x405446
call sym._parse_string_param
test eax, eax
jne 0x4019e0
lea eax, [ebp - 0x2c]
mov dword [esp + 4], 8
lea ecx, [ebp - 0x40]
mov edx, esi
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp], str.command
call sym._parse_string_param
test eax, eax
jne 0x4019e0
lea eax, [ebp - 0x38]
mov dword [esp + 4], 8
lea ecx, [ebp - 0x40]
mov edx, esi
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp], str.actions
call sym._parse_string_param
test eax, eax
jne 0x401cbe
lea esi, [esi]
lea esi, [esi]
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
cmp eax, edi
jae 0x401c64
lea eax, [ebp - 0x3c]
mov dword [esp + 4], 6
lea ecx, [ebp - 0x40]
mov edx, esi
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp], str.reset
call sym._parse_string_param
test eax, eax
je 0x401960
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [ebp - 0x34], eax
jmp 0x4019e0
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.0
jmp 0x40174d
test byte [0x403000], 2
je 0x40177d
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.0
jmp 0x40177d
mov dword [esp + 4], str.delete
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x5c]
call eax
test eax, eax
je 0x401b73
mov dword [esp + 4], str.start
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x5c]
call eax
test eax, eax
jne 0x401e43
mov dword [esp + 8], 0x10
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x401a70
mov eax, dword [ebp + 0xc]
add eax, 0xc
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], esi
sub eax, 3
mov dword [esp + 4], eax
call dword [sym.imp.advapi32.dll_StartServiceW]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x402068
test byte [0x403000], 2
jne 0x4020f6
mov dword [esp], esi
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call edi
xor eax, eax
sub esp, 4
test ebx, ebx
sete al
mov dword [ebp - 0x58], eax
jmp 0x4015fa
mov dword [esp + 8], 0x10000
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x401a70
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_DeleteService]
sub esp, 4
mov esi, eax
test eax, eax
jne 0x4016c8
test byte [0x403000], 2
je 0x4016c8
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.0
jmp 0x4016c8
mov dword [esp + 4], 0x40528c
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
mov eax, dword [ebp - 0x5c]
call eax
mov ebx, dword [ebp - 0x48]
test eax, eax
jne 0x401563
test byte [0x403000], 1
jne 0x401fbd
mov dword [ebp - 0x10], 1
jmp 0x401563
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.0
jmp 0x40177d
mov esi, dword [ebp - 0x58]
lea eax, [ebp - 0x34]
mov dword [esp + 4], 2
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_ChangeServiceConfig2W]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x401c95
test byte [0x403000], 2
jne 0x4020c0
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 - 0x58], eax
mov dword [esp], esi
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call edi
sub esp, 4
jmp 0x4015fa
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x40224b
movzx edx, word [eax]
test dx, dx
je 0x40207b
xor ecx, ecx
lea esi, [esi]
nop
cmp dx, 0x2f
jne 0x401cf6
xor ebx, ebx
add ecx, 1
mov word [eax], bx
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x401ce8
shr ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x4c], eax
shl eax, 3
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x28], ecx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4022b0
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x60], esi
xor ebx, ebx
mov dword [ebp - 0x64], edi
mov edi, edx
lea esi, [esi]
mov dword [esp + 4], 0x40547a
lea esi, [ebx*8]
mov dword [esp], edi
mov eax, dword [ebp - 0x5c]
call eax
test eax, eax
jne 0x401de8
mov eax, dword [ebp - 0x24]
mov dword [eax + ebx*8], 3
cmp word [edi], 0
je 0x401e12
mov ecx, edi
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x401d70
sub ecx, edi
add ecx, 2
add edi, ecx
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 - 0x24]
mov dword [edx + esi + 4], eax
cmp word [edi], 0
je 0x401e0b
mov eax, edi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x401db0
sub eax, edi
lea edx, [eax + 2]
mov eax, dword [ebp - 0x4c]
add ebx, 1
add edi, edx
cmp ebx, eax
jne 0x401d38
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x60]
mov edi, dword [ebp - 0x64]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x4019e0
mov dword [esp + 4], str.restart
mov dword [esp], edi
mov eax, dword [ebp - 0x5c]
call eax
test eax, eax
jne 0x401e1c
mov eax, dword [ebp - 0x24]
mov dword [eax + esi], 1
jmp 0x401d61
mov edx, 2
jmp 0x401dbe
mov ecx, 2
jmp 0x401d7e
mov dword [esp + 4], str.reboot
mov dword [esp], edi
mov eax, dword [ebp - 0x5c]
call eax
test eax, eax
mov eax, dword [ebp - 0x24]
jne 0x401f4c
mov dword [eax + esi], 2
jmp 0x401d61
mov dword [esp + 4], str.stop
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x5c]
call eax
test eax, eax
jne 0x401f58
mov dword [esp + 8], 0x20
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x401a70
lea eax, [ebp - 0x34]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_ControlService]
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x40212c
test byte [0x403000], 2
je 0x4016c8
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.0
jmp 0x4016c8
mov ebx, dword [ebp - 0x40]
mov dword [esp + 4], 0x4052bc
mov dword [esp], ebx
mov eax, dword [ebp - 0x5c]
call eax
test eax, eax
jne 0x401f96
mov dword [ebp - 0x1c], 0x10
mov ebx, dword [ebp - 0x48]
jmp 0x401563
mov ebx, dword [ebp - 0x3c]
mov dword [esp + 4], str.boot
mov dword [esp], ebx
mov eax, dword [ebp - 0x5c]
call eax
test eax, eax
jne 0x402041
mov dword [ebp - 0x18], 0
mov ebx, dword [ebp - 0x48]
jmp 0x401563
mov dword [eax + esi], 0
jmp 0x401d61
mov dword [esp + 4], str.query
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x5c]
call eax
test eax, eax
jne 0x401fe6
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x54]
call dbg.query_service
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
test eax, eax
sete al
movzx eax, al
mov dword [ebp - 0x58], eax
jmp 0x4015fa
mov dword [esp + 4], str.share
mov dword [esp], ebx
mov eax, dword [ebp - 0x5c]
call eax
test eax, eax
jne 0x402166
mov dword [ebp - 0x1c], 0x20
mov ebx, dword [ebp - 0x48]
jmp 0x401563
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.0
jmp 0x401c22
mov dword [esp + 4], str.sdset
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x5c]
call eax
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x40208c
test byte [0x403000], 1
je 0x401784
xor edx, edx
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], edx
call sym._wine_dbg_log.constprop.0
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x4015fa
mov dword [esp + 4], str.system
mov dword [esp], ebx
mov eax, dword [ebp - 0x5c]
call eax
test eax, eax
jne 0x40218d
mov dword [ebp - 0x18], 1
mov ebx, dword [ebp - 0x48]
jmp 0x401563
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x54]
call dbg.query_service
jmp 0x401b56
mov dword [ebp - 0x4c], 1
mov eax, 8
jmp 0x401d0d
test byte [0x403000], 1
je 0x40177d
xor eax, eax
mov dword [esp + 0xc], str.command_not_supported_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], global___dbch
mov dword [esp], eax
call sym._wine_dbg_log.constprop.0
jmp 0x40177d
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.0
jmp 0x401c95
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.0
jmp 0x401b56
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x54]
call dbg.query_service
jmp 0x4016c8
mov dword [esp + 4], str.severe
mov dword [esp], ebx
mov eax, dword [ebp - 0x5c]
call eax
test eax, eax
jne 0x4021da
mov dword [ebp - 0x14], 2
mov ebx, dword [ebp - 0x48]
jmp 0x401563
mov dword [esp + 4], str.kernel
mov dword [esp], ebx
mov eax, dword [ebp - 0x5c]
call eax
test eax, eax
jne 0x402201
mov dword [ebp - 0x1c], 1
mov ebx, dword [ebp - 0x48]
jmp 0x401563
mov dword [esp + 4], str.auto
mov dword [esp], ebx
mov eax, dword [ebp - 0x5c]
call eax
test eax, eax
jne 0x402228
mov dword [ebp - 0x18], 2
mov ebx, dword [ebp - 0x48]
jmp 0x401563
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
push eax
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 dword [esp + 4], str.critical
mov dword [esp], ebx
mov eax, dword [ebp - 0x5c]
call eax
test eax, eax
jne 0x4022c1
mov dword [ebp - 0x14], 3
mov ebx, dword [ebp - 0x48]
jmp 0x401563
mov dword [esp + 4], str.filesys
mov dword [esp], ebx
mov eax, dword [ebp - 0x5c]
call eax
test eax, eax
jne 0x4022e6
mov dword [ebp - 0x1c], 2
mov ebx, dword [ebp - 0x48]
jmp 0x401563
mov dword [esp + 4], str.demand
mov dword [esp], ebx
mov eax, dword [ebp - 0x5c]
call eax
test eax, eax
jne 0x402289
mov dword [ebp - 0x18], 3
mov ebx, dword [ebp - 0x48]
jmp 0x401563
mov esi, dword [ebp - 0x58]
test byte [0x403000], 2
jne 0x402263
mov dword [ebp - 0x58], 1
jmp 0x401cab
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.0
jmp 0x402257
mov dword [esp], ebx
mov dword [esp + 4], str.disabled
mov eax, dword [ebp - 0x5c]
call eax
mov ebx, dword [ebp - 0x48]
test eax, eax
jne 0x401563
mov dword [ebp - 0x18], 4
jmp 0x401563
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x58]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x40224e
mov dword [esp], ebx
mov dword [esp + 4], str.ignore
mov eax, dword [ebp - 0x5c]
call eax
mov ebx, dword [ebp - 0x48]
test eax, eax
jne 0x401563
xor edi, edi
mov dword [ebp - 0x14], edi
jmp 0x401563
mov dword [esp + 4], 0x4052ee
mov dword [esp], ebx
mov eax, dword [ebp - 0x5c]
call eax
test eax, eax
jne 0x402309
mov dword [ebp - 0x1c], 8
mov ebx, dword [ebp - 0x48]
jmp 0x401563
mov dword [esp], ebx
mov dword [esp + 4], str.interact
mov eax, dword [ebp - 0x5c]
call eax
mov ebx, dword [ebp - 0x48]
test eax, eax
jne 0x401563
or dword [ebp - 0x1c], 0x100
jmp 0x401563