Function at 0x1000e330
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 - 0x54], eax
mov eax, dword [ecx + 4]
mov dword [esp + 8], 4
mov dword [ebp - 0x6c], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.advapi32.dll_OpenSCManagerW]
mov dword [ebp - 0x58], eax
sub esp, 0xc
test eax, eax
je 0x1000e8a7
mov ebx, eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0x100
mov dword [ebp - 0x78], eax
call eax
mov dword [ebp - 0x70], eax
test eax, eax
je 0x1000e405
lea edi, [ebp - 0x40]
lea esi, [ebp - 0x44]
mov dword [esp], ebx
mov ebx, dword [sym.imp.advapi32.dll_EnumServicesStatusExW]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
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
call ebx
sub esp, 0x28
test eax, eax
jne 0x1000e4b9
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xea
je 0x1000e448
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov esi, 0xffffffff
mov dword [ebp - 0x60], eax
mov eax, dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
mov eax, dword [ebp - 0x50]
call eax
mov eax, dword [ebp - 0x70]
sub esp, 4
mov dword [esp], eax
mov eax, dword [ebp - 0x60]
call eax
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x70]
mov dword [esp + 4], ecx
mov dword [ebp - 0x4c], ecx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
test eax, eax
je 0x1000e405
mov ecx, dword [ebp - 0x4c]
mov dword [esp + 0x10], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x58]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0x13f
mov dword [esp + 4], 0
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x4c]
sub esp, 0x28
test eax, eax
mov dword [ebp - 0x70], edx
je 0x1000e405
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x54]
mov ecx, 0x34
call sym._resize_table
test eax, eax
je 0x1000e405
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 - 0x64], eax
test eax, eax
je 0x1000e890
cmp dword [ebp - 0x6c], 1
mov dword [ebp - 0x68], 0
sbb eax, eax
mov dword [ebp - 0x64], 0
mov ebx, dword [ebp - 0x70]
xor esi, esi
inc eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x74], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x60], eax
mov eax, dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov dword [ebp - 0x50], eax
jmp 0x1000e54d
mov dword [esp], edi
mov eax, dword [ebp - 0x50]
call eax
sub esp, 4
inc dword [ebp - 0x4c]
add ebx, 0x2c
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x40], eax
jbe 0x1000e608
mov dword [esp + 8], 1
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x1000e53b
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 0x1000e530
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x78]
mov dword [esp], ecx
mov dword [ebp - 0x5c], ecx
call eax
test eax, eax
je 0x1000e530
mov ecx, dword [ebp - 0x5c]
lea edx, [ebp - 0x38]
mov dword [ebp - 0x5c], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_QueryServiceConfigW]
sub esp, 0x10
test eax, eax
jne 0x1000e628
mov eax, dword [ebp - 0x5c]
add ebx, 0x2c
mov dword [esp], eax
mov eax, dword [ebp - 0x60]
call eax
mov dword [esp], edi
mov eax, dword [ebp - 0x50]
call eax
inc dword [ebp - 0x4c]
mov eax, dword [ebp - 0x4c]
sub esp, 4
cmp dword [ebp - 0x40], eax
ja 0x1000e54d
lea esi, [esi]
test byte [0x10021048], 8
jne 0x1000e858
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x64]
mov dword [eax + 0xc], edx
jmp 0x1000e41a
mov dword [esp], edi
mov eax, dword [ebp - 0x50]
call eax
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp - 0x68]
sub esp, 4
mov esi, dword [sym.imp.ucrtbase.dll__wcsdup]
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 esi
mov dword [edi + 8], eax
mov eax, dword [ebx]
mov dword [esp], eax
call esi
mov ecx, str.Kernel_Driver
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x24]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 8]
test al, 1
jne 0x1000e6b0
mov ecx, str.File_System_Driver
test al, 2
jne 0x1000e6b0
mov ecx, str.Own_Process
test al, 0x10
jne 0x1000e6b0
mov ecx, str.Share_Process
test al, 0x20
jne 0x1000e6b0
xor ecx, ecx
test byte [0x10021048], 2
jne 0x1000e820
lea esi, [esi]
mov eax, dword [ebp - 0x5c]
mov dword [edi + 0x14], ecx
mov eax, dword [eax + 4]
cmp eax, 4
ja 0x1000e7b8
mov ecx, dword [eax*4 + 0x10029374]
mov dword [edi + 0x18], ecx
mov eax, dword [ebx + 0xc]
lea ecx, [eax - 1]
cmp ecx, 3
ja 0x1000e770
mov ecx, dword [ecx*4 + 0x10029388]
lea eax, [ebp - 0x30]
mov dword [edi + 0x1c], ecx
mov dword [esp], eax
call esi
mov dword [edi + 0x24], sym._service_pause_service
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x5c]
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], eax
mov eax, dword [ebp - 0x60]
call eax
mov edx, dword [ebp - 0x6c]
test edx, edx
je 0x1000e75b
lea eax, [ebp - 0x3c]
mov dword [esp + 8], edx
mov esi, 0xffffffff
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x38]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call sym._eval_cond
test eax, eax
jne 0x1000e808
mov eax, dword [ebp - 0x34]
or eax, dword [ebp - 0x38]
je 0x1000e800
add dword [ebp - 0x68], 0x34
mov esi, dword [ebp - 0x74]
inc dword [ebp - 0x64]
jmp 0x1000e53b
mov ecx, str.Unknown
test byte [0x10021048], 2
je 0x1000e6e2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.unknown_state__lu_n
mov dword [esp + 8], str.get_service_state
mov dword [esp + 4], 0x10021048
mov dword [esp], 1
mov dword [ebp - 0x7c], ecx
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x7c]
jmp 0x1000e6e2
mov ecx, str.Unknown
test byte [0x10021048], 2
je 0x1000e6c9
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], 0x10021048
mov dword [esp], 1
mov dword [ebp - 0x7c], ecx
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x7c]
jmp 0x1000e6c9
mov esi, 1
lea esi, [esi]
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call sym._free_row_values
jmp 0x1000e53b
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.unhandled_type__lx_n
mov dword [esp + 8], str.get_service_type
mov dword [esp + 4], 0x10021048
mov dword [esp], 1
mov dword [ebp - 0x7c], ecx
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x7c]
jmp 0x1000e6b0
mov eax, dword [ebp - 0x64]
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], 0x10021048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000e615
mov eax, dword [sym.imp.ucrtbase.dll_free]
xor esi, esi
mov dword [ebp - 0x60], eax
mov eax, dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov dword [ebp - 0x50], eax
jmp 0x1000e608
mov esi, 0xffffffff
jmp 0x1000e433