Function at 0x6bd15d60
Capabilities:
Get hostname
Query service status
Start service

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, 0xd8
mov eax, dword [ecx]
mov dword [ebp - 0xb0], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x78], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x74], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x70], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x6c], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x88], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x84], eax
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x80], eax
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x7c], eax
mov eax, dword [ecx + 0x24]
mov dword [ebp - 0x98], eax
mov eax, dword [ecx + 0x28]
mov dword [ebp - 0x94], eax
mov eax, dword [ecx + 0x2c]
mov dword [ebp - 0x90], eax
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x8c], eax
mov eax, dword [ecx + 0x34]
mov dword [ebp - 0xa8], eax
mov eax, dword [ecx + 0x38]
mov dword [ebp - 0xa4], eax
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0xa0], eax
mov eax, dword [ecx + 0x40]
mov dword [ebp - 0x9c], eax
test byte [0x6bd1c058], 8
jne 0x6bd16060
movzx eax, word [ebp - 0x88]
cmp ax, 1
jbe 0x6bd15f98
cmp ax, 8
je 0x6bd15f80
test byte [0x6bd1c058], 1
jne 0x6bd160d8
lea eax, [ebp - 0x64]
lea edi, [ebp - 0x5c]
mov dword [ebp - 0x64], 0x10
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetComputerNameW]
sub esp, 8
test eax, eax
je 0x6bd16030
movzx eax, word [ebp - 0x78]
cmp ax, 1
jbe 0x6bd15eae
cmp ax, 8
je 0x6bd15e80
test byte [0x6bd1c058], 1
jne 0x6bd1641d
mov ebx, 0x80070035
jmp 0x6bd16046
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x6bd15eae
movzx edx, word [eax]
test dx, dx
je 0x6bd15eae
cmp dx, 0x5c
je 0x6bd16398
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x6bd163ab
test byte [0x6bd1c058], 8
jne 0x6bd16108
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.advapi32.dll_OpenSCManagerW]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x6bd164d6
mov dword [esp + 8], 0x14
mov dword [esp + 4], str.Schedule
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x6bd16000
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_StartServiceW]
sub esp, 0xc
test eax, eax
jne 0x6bd16180
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x420
je 0x6bd16180
test byte [0x6bd1c058], 4
jne 0x6bd16430
mov dword [esp], ebx
mov ebx, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call ebx
sub esp, 4
mov dword [esp], esi
call ebx
mov ebx, 0x80041315
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x44
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x6bd15f98
cmp word [eax], 0
jne 0x6bd15e25
lea esi, [esi]
movzx eax, word [ebp - 0x98]
cmp ax, 1
jbe 0x6bd15fc8
cmp ax, 8
jne 0x6bd15e25
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x6bd15fc8
cmp word [eax], 0
jne 0x6bd15e25
lea esi, [esi]
nop
movzx eax, word [ebp - 0xa8]
cmp ax, 1
jbe 0x6bd15e32
cmp ax, 8
jne 0x6bd15e25
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x6bd15e32
cmp word [eax], 0
je 0x6bd15e32
jmp 0x6bd15e25
test byte [0x6bd1c058], 4
jne 0x6bd16138
mov dword [esp], esi
mov ebx, 0x80041315
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x44
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovg ebx, eax
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x44
lea eax, [ebp - 0xa8]
call sym._wine_dbgstr_variant_3
mov edi, eax
lea eax, [ebp - 0x98]
call sym._wine_dbgstr_variant_3
mov esi, eax
lea eax, [ebp - 0x88]
call sym._wine_dbgstr_variant_3
mov ebx, eax
lea eax, [ebp - 0x78]
call sym._wine_dbgstr_variant_3
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xb0]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6bd213fc
mov dword [esp + 8], str.TaskService_Connect
mov dword [esp + 4], 0x6bd1c058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x6bd15e0a
mov dword [esp + 0xc], str.user_domain_password_are_ignored_n
mov dword [esp + 8], str.TaskService_Connect
mov dword [esp + 4], 0x6bd1c058
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_3
jmp 0x6bd15e32
mov dword [esp + 0xc], str.Trying_to_start_Schedule_service_n
mov dword [esp + 8], str.start_schedsvc
mov dword [esp + 4], 0x6bd1c058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x6bd15ebb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_open_scheduler_service___lu__n
mov ebx, 0x80041315
mov dword [esp + 8], str.start_schedsvc
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x6bd1c058
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
sub esp, 4
jmp 0x6bd16046
mov eax, dword [sym.imp.kernel32.dll_GetTickCount64]
mov dword [ebp - 0xac], eax
call eax
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb8], edi
mov esi, eax
mov edi, edx
jmp 0x6bd161e6
cmp dword [ebp - 0x38], 4
je 0x6bd162a8
mov eax, dword [ebp - 0xac]
call eax
mov ecx, 0x7530
sub eax, esi
sbb edx, edi
cmp ecx, eax
mov ecx, 0
sbb ecx, edx
jb 0x6bd16460
mov dword [esp], 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [ebp - 0x38]
sub esp, 4
cmp eax, 2
jne 0x6bd16488
lea eax, [ebp - 0x60]
mov dword [esp + 0xc], 0x24
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_QueryServiceStatusEx]
sub esp, 0x14
test eax, eax
jne 0x6bd161a0
mov esi, dword [ebp - 0xb4]
test byte [0x6bd1c058], 4
je 0x6bd15f4f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_query_scheduler_status___lu__n
mov dword [esp + 8], str.start_schedsvc
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x6bd1c058
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
mov eax, dword [ebp - 0x38]
cmp eax, 4
je 0x6bd15f4f
lea esi, [esi]
test byte [0x6bd1c058], 4
je 0x6bd15f4f
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.scheduler_failed_to_start__lu_n
mov dword [esp + 8], str.start_schedsvc
mov dword [esp + 4], 0x6bd1c058
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
jmp 0x6bd15f4f
mov esi, dword [ebp - 0xb4]
mov edi, dword [ebp - 0xb8]
mov dword [esp], ebx
mov ebx, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call ebx
sub esp, 4
mov dword [esp], esi
call ebx
lea eax, [ebp - 0x3c]
sub esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.ncalrpc
mov dword [esp], 0
call dword [sym.imp.rpcrt4.dll_RpcStringBindingComposeW]
sub esp, 0x18
mov ebx, eax
test eax, eax
jne 0x6bd16046
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], 0x6bd2c004
mov dword [esp], eax
call dword [sym.imp.rpcrt4.dll_RpcBindingFromStringBindingW]
sub esp, 8
mov ebx, eax
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.rpcrt4.dll_RpcStringFreeW]
sub esp, 4
test ebx, ebx
jne 0x6bd16046
mov eax, dword [ebp - 0xb0]
add eax, 0xc
mov dword [esp], eax
call sym._SchRpcHighestVersion
mov ebx, eax
test eax, eax
jne 0x6bd16046
test byte [0x6bd1c058], 8
jne 0x6bd164a0
mov ecx, dword [ebp - 0xb0]
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [edi + eax]
mov word [ecx + eax + 0x10], dx
add eax, 2
test dx, dx
jne 0x6bd16370
mov eax, dword [ebp - 0xb0]
mov dword [eax + 8], 1
jmp 0x6bd16046
cmp word [eax + 2], 0x5c
jne 0x6bd15e99
add eax, 4
jmp 0x6bd15e99
test byte [0x6bd1c058], 1
je 0x6bd15e74
mov ebx, dword [ebp - 0x70]
test ebx, ebx
je 0x6bd16502
mov eax, ebx
shr eax, 0x10
je 0x6bd164ea
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
test eax, eax
jne 0x6bd164e0
mov eax, ebx
call sym._wine_dbgstr_wn.part.0.constprop.0_2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.connection_to_remote_server__s_is_not_supported_n
mov dword [esp + 8], str.TaskService_Connect
mov dword [esp + 4], 0x6bd1c058
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_3
jmp 0x6bd15e74
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.server_variant_type__d_is_not_supported_n
jmp 0x6bd163fc
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_start_scheduler_service___lu__n
mov dword [esp + 8], str.start_schedsvc
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x6bd1c058
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
jmp 0x6bd15f4f
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0xb4]
cmp eax, 4
je 0x6bd15f4f
test byte [0x6bd1c058], 4
je 0x6bd15f4f
jmp 0x6bd16275
mov esi, dword [ebp - 0xb4]
cmp eax, 4
jne 0x6bd16268
jmp 0x6bd15f4f
mov eax, dword [ebp - 0xb0]
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], str.server_version__lx_n
mov dword [esp + 8], str.TaskService_Connect
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x6bd1c058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x6bd16363
mov ebx, 0x8004130c
jmp 0x6bd16046
mov eax, str._invalid_
jmp 0x6bd163f0
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf_3
jmp 0x6bd163f0
mov eax, str._null_
jmp 0x6bd163f0