Function at 0x10008420
Capabilities:
Enumerate services
Get hostname

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x98
mov eax, dword [ecx]
mov dword [ebp - 0x48], 0x10
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x68], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.advapi32.dll_OpenSCManagerW]
sub esp, 0xc
test eax, eax
je 0x1000899c
mov esi, eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0x100
mov dword [ebp - 0x78], eax
call eax
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x100084f2
lea edx, [ebp - 0x44]
lea edi, [ebp - 0x40]
mov dword [esp + 0x24], 0
mov ebx, dword [sym.imp.advapi32.dll_EnumServicesStatusExW]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0x100
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0x13f
mov dword [esp + 4], 0
mov dword [esp], esi
call ebx
sub esp, 0x28
test eax, eax
jne 0x100085a3
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xea
je 0x10008530
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x60], 0xffffffff
mov dword [ebp - 0x5c], eax
mov eax, dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov dword [ebp - 0x54], eax
mov dword [esp], esi
mov eax, dword [ebp - 0x54]
call eax
mov eax, dword [ebp - 0x6c]
sub esp, 4
mov dword [esp], eax
mov eax, dword [ebp - 0x5c]
call eax
mov eax, dword [ebp - 0x60]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov ecx, dword [ebp - 0x44]
mov dword [esp + 4], ecx
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x4c], ecx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov ecx, dword [ebp - 0x4c]
test eax, eax
mov edx, eax
je 0x100084f2
lea eax, [ebp - 0x44]
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [ebp - 0x4c], edx
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0x13f
mov dword [esp + 4], 0
mov dword [esp], esi
call ebx
mov edx, dword [ebp - 0x4c]
sub esp, 0x28
test eax, eax
mov dword [ebp - 0x6c], edx
je 0x100084f2
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x50]
mov ecx, 0x34
call sym._resize_table
test eax, eax
je 0x100084f2
lea eax, [ebp - 0x48]
mov dword [esp + 4], eax
lea eax, [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetComputerNameW]
mov eax, dword [ebp - 0x40]
sub esp, 8
mov dword [ebp - 0x58], eax
test eax, eax
je 0x10008980
mov edx, dword [ebp - 0x68]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov ebx, dword [ebp - 0x6c]
test edx, edx
mov dword [ebp - 0x58], 0
setne al
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x74], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x5c], eax
mov eax, dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov dword [ebp - 0x54], eax
jmp 0x1000863e
mov dword [esp], edi
mov eax, dword [ebp - 0x54]
call eax
sub esp, 4
add dword [ebp - 0x4c], 1
add ebx, 0x2c
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x40]
jae 0x100086f0
mov dword [esp + 8], 1
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x1000862b
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_QueryServiceConfigW]
sub esp, 0x10
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x7a
jne 0x10008620
mov ecx, dword [ebp - 0x38]
mov dword [esp], ecx
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], ecx
call eax
mov esi, eax
test eax, eax
je 0x10008620
lea eax, [ebp - 0x38]
mov dword [esp + 0xc], eax
mov ecx, dword [ebp - 0x7c]
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_QueryServiceConfigW]
sub esp, 0x10
test eax, eax
jne 0x10008710
mov dword [esp], esi
mov eax, dword [ebp - 0x5c]
add ebx, 0x2c
call eax
mov dword [esp], edi
mov eax, dword [ebp - 0x54]
call eax
add dword [ebp - 0x4c], 1
mov eax, dword [ebp - 0x4c]
sub esp, 4
cmp eax, dword [ebp - 0x40]
jb 0x1000863e
mov esi, dword [ebp - 0x70]
test byte [0x1002179c], 8
jne 0x10008900
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x58]
mov dword [eax + 0xc], edx
jmp 0x10008509
mov dword [esp], edi
mov eax, dword [ebp - 0x54]
call eax
mov eax, dword [ebp - 0x50]
mov edi, dword [ebp - 0x64]
sub esp, 4
add edi, dword [eax + 0x14]
mov eax, dword [ebx + 0x10]
shl eax, 0x1e
sar eax, 0x1f
mov dword [edi], eax
mov eax, dword [ebx + 0x10]
and eax, 1
neg eax
mov dword [edi + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [edi + 8], eax
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x24]
mov dword [edi + 0x10], eax
mov ecx, dword [ebx + 8]
mov eax, str.Kernel_Driver
test cl, 1
jne 0x10008790
mov eax, str.File_System_Driver
test cl, 2
jne 0x10008790
mov eax, str.Own_Process
test cl, 0x10
jne 0x10008790
mov eax, str.Share_Process
test cl, 0x20
je 0x10008930
lea esi, [esi]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 4]
cmp eax, 4
ja 0x10008860
mov eax, dword [eax*4 + 0x10023e8c]
mov dword [edi + 0x18], eax
mov ecx, dword [ebx + 0xc]
lea eax, [ecx - 1]
cmp eax, 3
ja 0x10008848
mov eax, dword [eax*4 + 0x10023e38]
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [edi + 0x24], sym._service_pause_service
mov dword [edi + 0x20], eax
mov dword [edi + 0x28], sym._service_resume_service
mov dword [edi + 0x2c], sym._service_start_service
mov dword [edi + 0x30], sym._service_stop_service
mov dword [esp], esi
mov eax, dword [ebp - 0x5c]
call eax
mov edx, dword [ebp - 0x68]
test edx, edx
je 0x10008830
lea eax, [ebp - 0x3c]
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x38]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x58]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym._eval_cond
test eax, eax
jne 0x10008878
mov eax, dword [ebp - 0x38]
or eax, dword [ebp - 0x34]
je 0x10008970
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x64], 0x34
add dword [ebp - 0x58], 1
mov dword [ebp - 0x60], eax
jmp 0x1000862b
test byte [0x1002179c], 2
jne 0x100088a0
mov eax, str.Unknown
jmp 0x100087bf
test byte [0x1002179c], 2
jne 0x100088d0
mov eax, str.Unknown
jmp 0x100087a6
mov dword [ebp - 0x60], 0xffffffff
mov eax, dword [ebp - 0x58]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym._free_row_values
jmp 0x1000862b
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.unknown_state__lu_n
mov dword [esp + 8], str.get_service_state
mov dword [esp + 4], 0x1002179c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x10008851
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.unknown_mode__lx_n
mov dword [esp + 8], str.get_service_startmode
mov dword [esp + 4], 0x1002179c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x10008869
mov eax, dword [ebp - 0x58]
mov dword [esp + 0xc], str.created__u_rows_n
mov dword [esp + 8], str.fill_service
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1002179c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10008700
test byte [0x1002179c], 2
jne 0x10008940
xor eax, eax
jmp 0x10008790
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.unhandled_type__lx_n
mov dword [esp + 8], str.get_service_type
mov dword [esp + 4], 0x1002179c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
xor eax, eax
jmp 0x10008790
mov dword [ebp - 0x60], 1
jmp 0x1000887f
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], eax
mov eax, dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov dword [ebp - 0x54], eax
jmp 0x100086f3
mov dword [ebp - 0x60], 0xffffffff
jmp 0x1000851f