Function at 0x401380
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 0x4022cc
mov eax, dword [edi + 8]
cmp word [eax], 0x5c
jne 0x4013bc
cmp word [eax + 2], 0x5c
je 0x4017b0
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 0x4016f8
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 0x401608
cmp dword [ebp - 0x5c], 3
je 0x4022bf
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 0x4014b6
mov eax, dword [ebp - 0x54]
mov edx, dword [ebx + eax*4]
lea ecx, [eax*4]
cmp word [edx + 0x18], 0
jne 0x4016d8
mov edx, dword [ebp - 0x5c]
sub edx, 4
cmp eax, edx
jb 0x4016e8
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 0x401558
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 0x401558
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 0x401558
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 0x4017f0
lea esi, [esi]
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp eax, esi
jb 0x401470
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x401720
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 0x401758
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 0x4018f8
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 0x401ac0
xor eax, eax
cmp dword [ebp - 0x5c], 3
je 0x401656
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 0x4016b8
test byte [section..data], 2
je 0x4016b8
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], 0x404000
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 0x4015ea
add edx, 0x18
mov dword [ebp - 0x40], edx
jmp 0x40155b
mov edx, dword [ebx + ecx + 4]
inc eax
mov dword [ebp - 0x40], edx
jmp 0x40155b
test byte [section..data], 2
jne 0x401a60
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 0x401a90
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 [section..data], 2
je 0x4015ea
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], 0x404000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4015ea
test byte [section..data], 1
je 0x401705
mov dword [esp + 0xc], str.server_argument_not_supported_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov dword [ebp - 0x60], 1
jmp 0x40170c
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 0x401558
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 0x401c04
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 0x401ff0
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 0x40201a
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 0x40155b
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 0x40225b
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x54]
jmp 0x40155b
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 0x401ae0
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 0x401ac0
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 0x401a0f
jmp 0x401c7e
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 0x401a00
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 0x401a00
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 0x401ce8
lea esi, [esi]
lea esi, [esi]
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp edi, eax
jbe 0x401c7e
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 0x401980
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 0x401a00
mov dword [esp + 0xc], str.failed_to_open_service_manager_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401705
mov dword [esp + 0xc], str.failed_to_parse_create_parameters_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40172d
test byte [section..data], 2
jne 0x401c3b
mov dword [ebp - 0x60], 1
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x4015ea
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 0x401b8b
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 0x401f40
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 0x401ac0
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 0x40218e
test byte [section..data], 2
jne 0x4021b9
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 0x4015ea
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 0x401ac0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_DeleteService]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x401b6e
test byte [section..data], 2
je 0x401b6e
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], 0x404000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401b6e
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 0x401558
test byte [section..data], 1
jne 0x40213b
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x54]
jmp 0x40155b
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], 0x404000
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 0x4015ea
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 0x401caf
test byte [section..data], 2
jne 0x4021ef
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 0x4015dc
mov ebx, dword [ebp - 0x44]
cmp word [ebx], 0
je 0x4021af
mov eax, ebx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x401d00
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 0x401eec
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 0x401d50
mov eax, dword [ebp - 0x60]
movzx edx, word [eax]
test dx, dx
je 0x40219e
xor ecx, ecx
lea esi, [esi]
cmp dx, 0x2f
jne 0x401d84
xor edx, edx
inc ecx
mov word [eax], dx
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x401d78
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 0x401ecb
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 0x401ea8
mov eax, dword [ebp - 0x30]
mov dword [eax + ebx*8], 3
cmp word [edi], 0
je 0x401f36
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401e18
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 0x401f05
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401e58
sub eax, edi
add eax, 2
add edi, eax
inc ebx
cmp ebx, dword [ebp - 0x5c]
jne 0x401de0
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 0x401a00
mov dword [esp + 4], str.restart
mov eax, dword [ebp - 0x68]
mov dword [esp], edi
call eax
test eax, eax
jne 0x401f0f
mov eax, dword [ebp - 0x30]
mov dword [eax + esi], 1
jmp 0x401e09
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 [section..data], 2
jne 0x402088
mov dword [ebp - 0x60], 1
jmp 0x401ce0
mov eax, 2
jmp 0x401e66
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 0x402044
mov dword [eax + esi], 2
jmp 0x401e09
mov eax, 2
jmp 0x401e26
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 0x402050
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 0x401ac0
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 0x402285
test byte [section..data], 2
je 0x4016b8
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], 0x404000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4016b8
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 0x4020b1
mov dword [ebp - 0x28], 0x10
mov eax, dword [ebp - 0x54]
jmp 0x40155b
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 0x402164
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x54]
jmp 0x40155b
mov dword [eax + esi], 0
jmp 0x401e09
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 0x4020db
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 0x4015ea
mov dword [esp + 0xc], str.failed_to_parse_failure_parameters_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401ef9
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 0x402295
mov dword [ebp - 0x28], 0x20
mov eax, dword [ebp - 0x54]
jmp 0x40155b
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 0x402225
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
test byte [section..data], 1
je 0x4015ea
mov dword [esp + 0xc], str.SdSet_command_not_supported__faking_success_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x4015ea
mov dword [esp + 0xc], str.tag_argument_not_supported_n
mov dword [esp + 8], str.parse_create_params
mov dword [esp + 4], 0x404000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401c2c
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 0x4022e5
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x54]
jmp 0x40155b
mov edx, dword [edi + 8]
mov eax, dword [ebp - 0x64]
call sym._query_service
jmp 0x401b6e
mov dword [ebp - 0x5c], 1
mov eax, 8
jmp 0x401d9b
mov eax, 2
jmp 0x401d0e
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], 0x404000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401b6e
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], 0x404000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401caf
test byte [section..data], 1
je 0x401acd
mov dword [esp + 0xc], str.command_not_supported_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401acd
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 0x40230b
mov dword [ebp - 0x20], 2
mov eax, dword [ebp - 0x54]
jmp 0x40155b
mov edx, dword [edi + 8]
mov eax, dword [ebp - 0x64]
call sym._query_service
jmp 0x4016b8
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 0x402335
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x54]
jmp 0x40155b
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 0x40235b
mov dword [ebp - 0x24], 2
mov eax, dword [ebp - 0x54]
jmp 0x40155b
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 0x4023a7
mov dword [ebp - 0x20], 3
mov eax, dword [ebp - 0x54]
jmp 0x40155b
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 0x402381
mov dword [ebp - 0x28], 2
mov eax, dword [ebp - 0x54]
jmp 0x40155b
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 0x4023d1
mov dword [ebp - 0x24], 3
mov eax, dword [ebp - 0x54]
jmp 0x40155b
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 0x4023fb
mov dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x54]
jmp 0x40155b
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 0x401558
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x54]
jmp 0x40155b
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 0x401558
mov dword [ebp - 0x24], 4
mov eax, dword [ebp - 0x54]
jmp 0x40155b
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 0x401558
or dword [ebp - 0x28], 0x100
mov eax, dword [ebp - 0x54]
jmp 0x40155b