Function at 0x7104e090
Capabilities:
Enumerate services
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov dword [ebp - 0x50], 0x10
mov dword [esp + 8], 4
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 0x7104e607
mov ebx, eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0x100
mov dword [ebp - 0x80], eax
call eax
mov dword [ebp - 0x78], eax
test eax, eax
je 0x7104e14f
lea edi, [ebp - 0x48]
lea esi, [ebp - 0x4c]
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 0x7104e201
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xea
je 0x7104e190
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov esi, 0xffffffff
mov dword [ebp - 0x6c], eax
mov eax, dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
mov eax, dword [ebp - 0x60]
call eax
mov eax, dword [ebp - 0x78]
sub esp, 4
mov dword [esp], eax
mov eax, dword [ebp - 0x6c]
call eax
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x78]
mov dword [esp + 4], ecx
mov dword [ebp - 0x5c], ecx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
test eax, eax
je 0x7104e14f
mov ecx, dword [ebp - 0x5c]
mov dword [esp + 0x10], eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x64]
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 - 0x5c]
sub esp, 0x28
test eax, eax
mov dword [ebp - 0x78], edx
je 0x7104e14f
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov ecx, 0x34
call sym._resize_table
test eax, eax
je 0x7104e14f
lea eax, [ebp - 0x50]
mov dword [esp + 4], eax
lea eax, [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetComputerNameW]
mov eax, dword [ebp - 0x48]
sub esp, 8
mov dword [ebp - 0x70], eax
test eax, eax
je 0x7104e5f0
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0x74], 0
sbb eax, eax
mov dword [ebp - 0x70], 0
mov ebx, dword [ebp - 0x78]
xor esi, esi
inc eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x7c], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x6c], eax
mov eax, dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov dword [ebp - 0x60], eax
jmp 0x7104e295
mov dword [esp], edi
mov eax, dword [ebp - 0x60]
call eax
sub esp, 4
inc dword [ebp - 0x5c]
add ebx, 0x2c
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x48], eax
jbe 0x7104e350
mov dword [esp + 8], 1
mov eax, dword [ebx]
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 edi, eax
test eax, eax
je 0x7104e283
lea eax, [ebp - 0x40]
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 0x7104e278
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x80]
mov dword [esp], ecx
mov dword [ebp - 0x68], ecx
call eax
test eax, eax
je 0x7104e278
mov ecx, dword [ebp - 0x68]
lea edx, [ebp - 0x40]
mov dword [ebp - 0x68], 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 0x7104e370
mov eax, dword [ebp - 0x68]
add ebx, 0x2c
mov dword [esp], eax
mov eax, dword [ebp - 0x6c]
call eax
mov dword [esp], edi
mov eax, dword [ebp - 0x60]
call eax
inc dword [ebp - 0x5c]
mov eax, dword [ebp - 0x5c]
sub esp, 4
cmp dword [ebp - 0x48], eax
ja 0x7104e295
lea esi, [esi]
test byte [0x71060048], 8
jne 0x7104e5c0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x70]
mov dword [eax + 0xc], edx
jmp 0x7104e164
mov dword [esp], edi
mov eax, dword [ebp - 0x60]
call eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x74]
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 0x7104e3f8
mov ecx, str.File_System_Driver
test al, 2
jne 0x7104e3f8
mov ecx, str.Own_Process
test al, 0x10
jne 0x7104e3f8
mov ecx, str.Share_Process
test al, 0x20
jne 0x7104e3f8
xor ecx, ecx
test byte [0x71060048], 2
jne 0x7104e580
lea esi, [esi]
mov eax, dword [ebp - 0x68]
mov dword [edi + 0x14], ecx
mov eax, dword [eax + 4]
cmp eax, 4
ja 0x7104e508
mov ecx, dword [eax*4 + 0x71068254]
mov dword [edi + 0x18], ecx
mov eax, dword [ebx + 0xc]
lea ecx, [eax - 1]
cmp ecx, 3
ja 0x7104e4b8
mov ecx, dword [ecx*4 + 0x71068268]
lea eax, [ebp - 0x38]
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 - 0x68]
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 - 0x6c]
call eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x7104e4a6
lea eax, [ebp - 0x44]
mov esi, 0xffffffff
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._eval_cond
test eax, eax
jne 0x7104e560
mov eax, dword [ebp - 0x3c]
or eax, dword [ebp - 0x40]
je 0x7104e558
add dword [ebp - 0x74], 0x34
mov esi, dword [ebp - 0x7c]
inc dword [ebp - 0x70]
jmp 0x7104e283
mov ecx, str.Unknown
test byte [0x71060048], 2
je 0x7104e42a
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], 0x71060048
mov dword [esp], 1
mov dword [ebp - 0x84], ecx
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x84]
jmp 0x7104e42a
mov ecx, str.Unknown
test byte [0x71060048], 2
je 0x7104e411
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], 0x71060048
mov dword [esp], 1
mov dword [ebp - 0x84], ecx
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x84]
jmp 0x7104e411
mov esi, 1
lea esi, [esi]
mov eax, dword [ebp - 0x70]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._free_row_values
jmp 0x7104e283
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], 0x71060048
mov dword [esp], 1
mov dword [ebp - 0x84], ecx
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x84]
jmp 0x7104e3f8
mov eax, dword [ebp - 0x70]
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], 0x71060048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x7104e35d
mov eax, dword [sym.imp.ucrtbase.dll_free]
xor esi, esi
mov dword [ebp - 0x6c], eax
mov eax, dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov dword [ebp - 0x60], eax
jmp 0x7104e350
mov esi, 0xffffffff
jmp 0x7104e17d