Function at 0x4021b0
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 edi, dword [ecx + 4]
mov dword [ebp - 0x5c], eax
cmp eax, 2
jle 0x4030fc
mov eax, dword [edi + 8]
cmp word [eax], 0x5c
jne 0x4021ec
cmp word [eax + 2], 0x5c
je 0x4025e0
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 0x402528
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 0x402438
cmp dword [ebp - 0x5c], 3
je 0x4030ef
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x40], 0
lea ebx, [edi + 0xc]
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], 3
lea esi, [eax - 3]
xor eax, eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x54], 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 0x4022e6
mov eax, dword [ebp - 0x54]
mov edx, dword [ebx + eax*4]
lea ecx, [eax*4]
cmp word [edx + 0x18], 0
jne 0x402508
mov edx, dword [ebp - 0x5c]
sub edx, 4
cmp eax, edx
jb 0x402518
lea eax, [ebp - 0x3c]
mov dword [esp + 4], 8
lea ecx, [ebp - 0x54]
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 0x402388
lea eax, [ebp - 0x38]
mov dword [esp + 4], 6
lea ecx, [ebp - 0x54]
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 0x402388
lea eax, [ebp - 0x34]
mov dword [esp + 4], 7
lea ecx, [ebp - 0x54]
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 0x402388
lea eax, [ebp - 0x30]
mov dword [esp + 4], 4
lea ecx, [ebp - 0x54]
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 0x402620
lea esi, [esi]
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp eax, esi
jb 0x4022a0
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x402550
mov dword [esp + 0x1c], eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], edx
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x2c], edx
mov edx, dword [ebp - 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x28], edx
mov edx, dword [ebp - 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x40]
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 0x402588
mov dword [esp], eax
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call edi
sub esp, 4
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call edi
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 0x402728
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 ebx, eax
test eax, eax
je 0x4028f0
xor eax, eax
cmp dword [ebp - 0x5c], 3
je 0x402486
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
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 0x4024e8
test byte [0x404020], 2
je 0x4024e8
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 - 0x60], eax
jmp 0x40241a
add edx, 0x18
mov dword [ebp - 0x40], edx
jmp 0x40238b
mov edx, dword [ebx + ecx + 4]
inc eax
mov dword [ebp - 0x40], edx
jmp 0x40238b
test byte [0x404020], 2
jne 0x402890
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 [0x404020], 2
jne 0x4028c0
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 edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
test byte [0x404020], 2
je 0x40241a
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 0x40241a
test byte [0x404020], 1
je 0x402535
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 - 0x60], 1
jmp 0x40253c
lea eax, [ebp - 0x2c]
mov dword [esp + 4], 9
lea ecx, [ebp - 0x54]
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 0x402388
lea eax, [ebp - 0x50]
mov dword [esp + 4], 4
lea ecx, [ebp - 0x54]
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 0x402a34
lea eax, [ebp - 0x4c]
mov dword [esp + 4], 5
lea ecx, [ebp - 0x54]
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 0x402e20
lea eax, [ebp - 0x48]
mov dword [esp + 4], 6
lea ecx, [ebp - 0x54]
mov edx, ebx
mov dword [esp + 8], eax
mov eax, esi
mov dword [esp], 0x405308
call sym._parse_string_param
test eax, eax
jne 0x402e4a
lea eax, [ebp - 0x44]
mov dword [esp + 4], 6
mov edx, ebx
lea ecx, [ebp - 0x54]
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 - 0x54]
test edx, edx
je 0x40238b
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], str.normal
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x40308b
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x54]
jmp 0x40238b
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 0x402910
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 0x4028f0
lea esi, [edi + 0xc]
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x4c], 0
sub edi, 3
jne 0x40283f
jmp 0x402aae
lea eax, [ebp - 0x3c]
mov dword [esp + 4], 7
lea ecx, [ebp - 0x4c]
mov edx, esi
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp], 0x405446
call sym._parse_string_param
test eax, eax
jne 0x402830
lea eax, [ebp - 0x38]
mov dword [esp + 4], 8
lea ecx, [ebp - 0x4c]
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 0x402830
lea eax, [ebp - 0x44]
mov dword [esp + 4], 8
lea ecx, [ebp - 0x4c]
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 0x402b18
lea esi, [esi]
lea esi, [esi]
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp edi, eax
jbe 0x402aae
lea eax, [ebp - 0x48]
mov dword [esp + 4], 6
lea ecx, [ebp - 0x4c]
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 0x4027b0
mov eax, dword [ebp - 0x48]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [ebp - 0x40], eax
jmp 0x402830
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 0x402535
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 0x40255d
test byte [0x404020], 2
jne 0x402a6b
mov dword [ebp - 0x60], 1
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x40241a
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 0x4029bb
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 0x402d70
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 0x4028f0
lea eax, [edi + 0xc]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x5c]
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 0x402fbe
test byte [0x404020], 2
jne 0x402fe9
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 - 0x60], eax
jmp 0x40241a
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 esi, eax
test eax, eax
je 0x4028f0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_DeleteService]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x40299e
test byte [0x404020], 2
je 0x40299e
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 0x40299e
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], 0x40528c
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x402388
test byte [0x404020], 1
jne 0x402f6b
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x54]
jmp 0x40238b
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 - 0x60], 1
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x40241a
lea eax, [ebp - 0x40]
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 0x402adf
test byte [0x404020], 2
jne 0x40301f
mov edx, dword [ebp - 0x30]
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 - 0x60], eax
mov eax, dword [ebp - 0x6c]
jmp 0x40240c
mov ebx, dword [ebp - 0x44]
cmp word [ebx], 0
je 0x402fdf
mov eax, ebx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x402b30
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 - 0x70], eax
call eax
mov dword [ebp - 0x60], eax
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x402d1c
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [ebx + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x402b80
mov eax, dword [ebp - 0x60]
movzx edx, word [eax]
test dx, dx
je 0x402fce
xor ecx, ecx
lea esi, [esi]
cmp dx, 0x2f
jne 0x402bb4
xor edx, edx
inc ecx
mov word [eax], dx
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x402ba8
shr ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x5c], eax
shl eax, 3
mov ebx, dword [ebp - 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [ebp - 0x34], ebx
mov ebx, dword fs:[0x18]
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x70]
call eax
mov dword [ebp - 0x30], eax
sub esp, 0xc
test eax, eax
je 0x402cfb
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x70], 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], 0x40547a
call eax
test eax, eax
jne 0x402cd8
mov eax, dword [ebp - 0x30]
mov dword [eax + ebx*8], 3
cmp word [edi], 0
je 0x402d66
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402c48
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 - 0x30]
mov dword [edx + esi + 4], eax
cmp word [edi], 0
je 0x402d35
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402c88
sub eax, edi
add eax, 2
add edi, eax
inc ebx
cmp ebx, dword [ebp - 0x5c]
jne 0x402c10
mov ebx, dword [ebp - 0x60]
mov esi, dword [ebp - 0x70]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x30]
mov edi, dword [ebp - 0x74]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x402830
mov dword [esp + 4], str.restart
mov eax, dword [ebp - 0x68]
mov dword [esp], edi
call eax
test eax, eax
jne 0x402d3f
mov eax, dword [ebp - 0x30]
mov dword [eax + esi], 1
jmp 0x402c39
mov eax, dword [ebp - 0x60]
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 [0x404020], 2
jne 0x402eb8
mov dword [ebp - 0x60], 1
jmp 0x402b10
mov eax, 2
jmp 0x402c96
mov dword [esp + 4], str.reboot
mov eax, dword [ebp - 0x68]
mov dword [esp], edi
call eax
test eax, eax
mov eax, dword [ebp - 0x30]
jne 0x402e74
mov dword [eax + esi], 2
jmp 0x402c39
mov eax, 2
jmp 0x402c56
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 0x402e80
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 ebx, eax
test eax, eax
je 0x4028f0
lea eax, [ebp - 0x40]
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 0x4030b5
test byte [0x404020], 2
je 0x4024e8
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 0x4024e8
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], 0x4052bc
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x402ee1
mov dword [ebp - 0x28], 0x10
mov eax, dword [ebp - 0x54]
jmp 0x40238b
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], str.boot
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x402f94
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x54]
jmp 0x40238b
mov dword [eax + esi], 0
jmp 0x402c39
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 0x402f0b
mov edx, dword [edi + 8]
mov eax, dword [ebp - 0x64]
call sym._query_service
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
test eax, eax
sete al
movzx eax, al
mov dword [ebp - 0x60], eax
jmp 0x40241a
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 0x402d29
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], str.share
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x4030c5
mov dword [ebp - 0x28], 0x20
mov eax, dword [ebp - 0x54]
jmp 0x40238b
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 0x403055
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
test byte [0x404020], 1
je 0x40241a
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 0x40241a
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 0x402a5c
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], str.system
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x403115
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x54]
jmp 0x40238b
mov edx, dword [edi + 8]
mov eax, dword [ebp - 0x64]
call sym._query_service
jmp 0x40299e
mov dword [ebp - 0x5c], 1
mov eax, 8
jmp 0x402bcb
mov eax, 2
jmp 0x402b3e
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 0x40299e
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 0x402adf
test byte [0x404020], 1
je 0x4028fd
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 0x4028fd
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], str.severe
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x40313b
mov dword [ebp - 0x20], 2
mov eax, dword [ebp - 0x54]
jmp 0x40238b
mov edx, dword [edi + 8]
mov eax, dword [ebp - 0x64]
call sym._query_service
jmp 0x4024e8
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], str.kernel
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x403165
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x54]
jmp 0x40238b
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 - 0x48]
mov dword [esp + 4], str.auto
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x40318b
mov dword [ebp - 0x24], 2
mov eax, dword [ebp - 0x54]
jmp 0x40238b
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], str.critical
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x4031d7
mov dword [ebp - 0x20], 3
mov eax, dword [ebp - 0x54]
jmp 0x40238b
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], str.filesys
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x4031b1
mov dword [ebp - 0x28], 2
mov eax, dword [ebp - 0x54]
jmp 0x40238b
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], str.demand
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x403201
mov dword [ebp - 0x24], 3
mov eax, dword [ebp - 0x54]
jmp 0x40238b
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], 0x4052ee
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x40322b
mov dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x54]
jmp 0x40238b
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], str.ignore
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x402388
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x54]
jmp 0x40238b
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], str.disabled
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x402388
mov dword [ebp - 0x24], 4
mov eax, dword [ebp - 0x54]
jmp 0x40238b
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], str.interact
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
test eax, eax
jne 0x402388
or dword [ebp - 0x28], 0x100
mov eax, dword [ebp - 0x54]
jmp 0x40238b