Function at 0x4021b0
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
mov edi, dword [ebp + 0xc]
jle 0x402ffa
mov eax, dword [edi + 8]
cmp word [eax], 0x5c
jne 0x4021dd
cmp word [eax + 2], 0x5c
je 0x4025b0
mov dword [esp + 8], 0xf003f
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.advapi32.dll_OpenSCManagerW]
mov dword [ebp - 0x50], eax
sub esp, 0xc
test eax, eax
je 0x402510
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 0x402420
cmp dword [ebp + 8], 3
je 0x402fed
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], 0
lea ebx, [edi + 0xc]
mov dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x18], 3
lea esi, [eax - 3]
xor eax, eax
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]
mov dword [esp + 8], 0xc
mov dword [esp + 4], str.displayname
mov eax, dword [ebx + eax*4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
jne 0x4022d6
mov eax, dword [ebp - 0x48]
mov edx, dword [ebx + eax*4]
lea ecx, [eax*4]
cmp word [edx + 0x18], 0
jne 0x4024f0
mov edx, dword [ebp + 8]
sub edx, 4
cmp eax, edx
jb 0x402500
lea eax, [ebp - 0x30]
mov dword [esp + 4], 8
lea ecx, [ebp - 0x48]
mov edx, ebx
mov dword [esp + 8], eax
mov eax, esi
mov dword [esp], str.binpath
call sym._parse_string_param
test eax, eax
jne 0x402378
lea eax, [ebp - 0x2c]
mov dword [esp + 4], 6
lea ecx, [ebp - 0x48]
mov edx, ebx
mov dword [esp + 8], eax
mov eax, esi
mov dword [esp], str.group
call sym._parse_string_param
test eax, eax
jne 0x402378
lea eax, [ebp - 0x28]
mov dword [esp + 4], 7
lea ecx, [ebp - 0x48]
mov edx, ebx
mov dword [esp + 8], eax
mov eax, esi
mov dword [esp], str.depend
call sym._parse_string_param
test eax, eax
jne 0x402378
lea eax, [ebp - 0x24]
mov dword [esp + 4], 4
lea ecx, [ebp - 0x48]
mov edx, ebx
mov dword [esp + 8], eax
mov eax, esi
mov dword [esp], str.obj
call sym._parse_string_param
test eax, eax
je 0x4025f0
lea esi, [esi]
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp eax, esi
jb 0x402290
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x402530
mov dword [esp + 0x1c], eax
mov edx, dword [ebp - 0x20]
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 0x402560
mov dword [esp], eax
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call edi
sub esp, 4
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call edi
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 0x4026f8
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 ebx, eax
test eax, eax
je 0x4028c0
xor eax, eax
cmp dword [ebp + 8], 3
je 0x40246e
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 dword [sym.imp.advapi32.dll_ChangeServiceConfig2W]
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x4024d0
test byte [0x404020], 2
je 0x4024d0
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], 0x404020
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 - 0x4c], eax
jmp 0x40240a
add edx, 0x18
mov dword [ebp - 0x34], edx
jmp 0x40237b
mov edx, dword [ebx + ecx + 4]
inc eax
mov dword [ebp - 0x34], edx
jmp 0x40237b
test byte [0x404020], 2
jne 0x402860
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 [0x404020], 2
jne 0x402890
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 edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
test byte [0x404020], 2
je 0x40240a
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], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40240a
test byte [0x404020], 1
je 0x40251d
mov dword [esp + 0xc], str.server_argument_not_supported_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404020
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov dword [ebp - 0x4c], 1
jmp 0x402524
lea eax, [ebp - 0x20]
mov dword [esp + 4], 9
lea ecx, [ebp - 0x48]
mov edx, ebx
mov dword [esp + 8], eax
mov eax, esi
mov dword [esp], str.password
call sym._parse_string_param
test eax, eax
jne 0x402378
lea eax, [ebp - 0x44]
mov dword [esp + 4], 4
lea ecx, [ebp - 0x48]
mov edx, ebx
mov dword [esp + 8], eax
mov eax, esi
mov dword [esp], str.tag
call sym._parse_string_param
test eax, eax
jne 0x402a04
lea eax, [ebp - 0x40]
mov dword [esp + 4], 5
lea ecx, [ebp - 0x48]
mov edx, ebx
mov dword [esp + 8], eax
mov eax, esi
mov dword [esp], str.type
call sym._parse_string_param
test eax, eax
jne 0x402d28
lea eax, [ebp - 0x3c]
mov dword [esp + 4], 6
lea ecx, [ebp - 0x48]
mov edx, ebx
mov dword [esp + 8], eax
mov eax, esi
mov dword [esp], 0x405308
call sym._parse_string_param
test eax, eax
jne 0x402d52
lea eax, [ebp - 0x38]
mov dword [esp + 4], 6
mov edx, ebx
lea ecx, [ebp - 0x48]
mov dword [esp + 8], eax
mov eax, esi
mov dword [esp], str.error
call sym._parse_string_param
mov edx, eax
mov eax, dword [ebp - 0x48]
test edx, edx
je 0x40237b
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 0x402f89
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x48]
jmp 0x40237b
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 0x4028e0
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]
mov dword [ebp - 0x58], eax
sub esp, 0xc
test eax, eax
je 0x4028c0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], 0
add edi, 0xc
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 0x40280f
jmp 0x402a7e
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 0x402800
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 0x402800
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 0x402acd
lea esi, [esi]
lea esi, [esi]
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp esi, eax
jbe 0x402a7e
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 0x402780
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 0x402800
mov dword [esp + 0xc], str.failed_to_open_service_manager_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40251d
mov dword [esp + 0xc], str.failed_to_parse_create_parameters_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40253d
test byte [0x404020], 2
jne 0x402a3b
mov dword [ebp - 0x4c], 1
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x40240a
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 0x40298b
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 0x402c78
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 0x4028c0
lea eax, [edi + 0xc]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
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 0x402ec6
test byte [0x404020], 2
jne 0x402ee7
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 - 0x4c], eax
jmp 0x40240a
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 esi, eax
test eax, eax
je 0x4028c0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_DeleteService]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x40296e
test byte [0x404020], 2
je 0x40296e
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], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40296e
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 0x402378
test byte [0x404020], 1
jne 0x402e73
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x48]
jmp 0x40237b
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], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
mov dword [ebp - 0x4c], 1
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x40240a
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 0x402aaf
test byte [0x404020], 2
jne 0x402f1d
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 0x4023fc
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 0x402c27
movzx edx, word [eax]
test dx, dx
je 0x402ed6
xor ecx, ecx
lea esi, [esi]
cmp dx, 0x2f
jne 0x402b04
xor edx, edx
inc ecx
mov word [eax], dx
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x402af8
shr ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x4c], eax
shl eax, 3
mov ebx, dword [ebp - 0x4c]
mov dword [esp], eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x402c1b
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x64], esi
xor ebx, ebx
mov dword [ebp - 0x60], edi
mov edi, edx
lea esi, [esi]
mov dword [esp], edi
mov eax, dword [ebp - 0x54]
lea esi, [ebx*8]
mov dword [esp + 4], 0x40547a
call eax
test eax, eax
jne 0x402bf8
mov eax, dword [ebp - 0x24]
mov dword [eax + ebx*8], 3
cmp word [edi], 0
je 0x402c47
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402b80
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 - 0x24]
mov dword [edx + esi + 4], eax
cmp word [edi], 0
je 0x402c40
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402bc0
sub eax, edi
add eax, 2
add edi, eax
inc ebx
cmp ebx, dword [ebp - 0x4c]
jne 0x402b48
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 0x402800
mov dword [esp + 4], str.restart
mov eax, dword [ebp - 0x54]
mov dword [esp], edi
call eax
test eax, eax
jne 0x402c51
mov eax, dword [ebp - 0x24]
mov dword [eax + esi], 1
jmp 0x402b71
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
test byte [0x404020], 2
jne 0x402dc0
mov dword [ebp - 0x4c], 1
jmp 0x402ac5
mov eax, 2
jmp 0x402bce
mov eax, 2
jmp 0x402b8e
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 0x402d7c
mov dword [eax + esi], 2
jmp 0x402b71
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 0x402d88
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 ebx, eax
test eax, eax
je 0x4028c0
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 0x402fb3
test byte [0x404020], 2
je 0x4024d0
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], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4024d0
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 0x402de9
mov dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x48]
jmp 0x40237b
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 0x402e9c
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x48]
jmp 0x40237b
mov dword [eax + esi], 0
jmp 0x402b71
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 0x402e13
mov edx, dword [edi + 8]
mov eax, dword [ebp - 0x50]
call sym._query_service
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
test eax, eax
sete al
movzx eax, al
mov dword [ebp - 0x4c], eax
jmp 0x40240a
mov dword [esp + 0xc], str.failed_to_parse_failure_parameters_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x402c34
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 0x402fc3
mov dword [ebp - 0x1c], 0x20
mov eax, dword [ebp - 0x48]
jmp 0x40237b
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 0x402f53
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
test byte [0x404020], 1
je 0x40240a
mov dword [esp + 0xc], str.SdSet_command_not_supported__faking_success_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404020
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x40240a
mov dword [esp + 0xc], str.tag_argument_not_supported_n
mov dword [esp + 8], str.parse_create_params
mov dword [esp + 4], 0x404020
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x402a2c
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 0x403013
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x48]
jmp 0x40237b
mov edx, dword [edi + 8]
mov eax, dword [ebp - 0x50]
call sym._query_service
jmp 0x40296e
mov dword [ebp - 0x4c], 1
mov eax, 8
jmp 0x402b1b
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], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40296e
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], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x402aaf
test byte [0x404020], 1
je 0x4028cd
mov dword [esp + 0xc], str.command_not_supported_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404020
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x4028cd
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 0x403039
mov dword [ebp - 0x14], 2
mov eax, dword [ebp - 0x48]
jmp 0x40237b
mov edx, dword [edi + 8]
mov eax, dword [ebp - 0x50]
call sym._query_service
jmp 0x4024d0
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 0x403063
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x48]
jmp 0x40237b
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.0
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
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 0x403089
mov dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x48]
jmp 0x40237b
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 0x4030d5
mov dword [ebp - 0x14], 3
mov eax, dword [ebp - 0x48]
jmp 0x40237b
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 0x4030af
mov dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x48]
jmp 0x40237b
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 0x4030ff
mov dword [ebp - 0x18], 3
mov eax, dword [ebp - 0x48]
jmp 0x40237b
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 0x403129
mov dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x48]
jmp 0x40237b
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 0x402378
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x48]
jmp 0x40237b
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 0x402378
mov dword [ebp - 0x18], 4
mov eax, dword [ebp - 0x48]
jmp 0x40237b
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 0x402378
or dword [ebp - 0x1c], 0x100
mov eax, dword [ebp - 0x48]
jmp 0x40237b