Function at 0x401450
Capabilities:
Check for peb beingdebugged flag
Get process heap flags
Query environment variable
Query or enumerate registry value

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, 0x88
test byte [0x403000], 8
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
jne 0x4021a2
cmp ebx, 1
jle 0x40153b
lea eax, [esi + 4]
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x44], eax
lea eax, [ebx - 2]
sub ebx, 1
or ebx, 1
and eax, 0xfffffffe
mov dword [ebp - 0x60], ebx
add eax, 3
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], 0x404034
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x401550
mov esi, dword [ebp - 0x60]
cmp dword [ebp - 0x3c], esi
je 0x402163
mov eax, dword [ebp - 0x44]
test byte [0x403000], 8
mov dword [ebp - 0x24], 0
lea esi, [eax + 4]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x68], esi
jne 0x4015b0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionSvchost
mov dword [esp], 0x80000002
mov dword [esp + 0x10], eax
mov eax, dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov dword [ebp - 0x48], eax
call eax
sub esp, 0x14
test eax, eax
je 0x4015e4
test byte [0x403000], 2
mov esi, eax
jne 0x40164e
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], 0x40403a
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
je 0x4014c5
test byte [0x403000], 1
je 0x40153b
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Unrecognized_option:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___func__.0
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.1
jmp 0x40153b
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Loading_service_group_for__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.LoadGroup
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1
jmp 0x4014f1
mov eax, dword [ebp - 0x24]
mov edx, ebx
call dbg.GetRegValue
mov edi, eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x6c], eax
call eax
sub esp, 4
test edi, edi
mov eax, edi
je 0x40203d
xor ecx, ecx
xor ebx, ebx
cmp word [edi], 0
mov esi, 8
je 0x4016d8
lea ebx, [ecx + 1]
jmp 0x401632
mov eax, edx
cmp word [eax + 2], 0
lea edx, [eax + 2]
jne 0x401630
add eax, 4
cmp word [edx + 2], 0
je 0x4016d1
mov ecx, ebx
jmp 0x401623
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionSvchost
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.cannot_open_key__s__err_ld_n
mov dword [esp + 8], str.LoadGroup
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.1
test byte [0x403000], 2
je 0x40153b
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Failed_to_load_requested_group:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___func__.0
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.1
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
lea esi, [ecx*8 + 0x10]
test byte [0x403000], 8
jne 0x40208e
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov ebx, dword fs:[0x18]
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x4c], eax
call eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x58]
sub esp, 0xc
cmp word [eax], 0
je 0x402279
mov dword [ebp - 0x2c], eax
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x40], eax
test byte [0x403000], 8
mov dword [ebp - 0x20], 0
jne 0x401bb1
movzx edx, word [str.SystemCurrentControlSetServices]
test dx, dx
je 0x401bf1
mov eax, str.SystemCurrentControlSetServices
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401760
movzx ebx, word [0x40401a]
sub eax, str.SystemCurrentControlSetServices
sar eax, 1
mov ecx, eax
test bx, bx
je 0x401c03
mov eax, 0x40401a
mov esi, esi
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x401790
sub eax, 0x40401a
sar eax, 1
add ecx, eax
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0
je 0x4017ce
mov eax, dword [ebp - 0x2c]
nop
add eax, 2
cmp word [eax], 0
jne 0x4017b0
sub eax, dword [ebp - 0x2c]
sar eax, 1
add ecx, eax
cmp word [0x40401a], 0
je 0x401c10
mov eax, 0x40401a
add eax, 2
cmp word [eax], 0
jne 0x4017d3
movzx edi, word [str.Parameters]
sub eax, 0x40401a
sar eax, 1
add eax, ecx
test di, di
je 0x401c24
mov ecx, str.Parameters
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x401800
sub ecx, str.Parameters
sar ecx, 1
lea eax, [eax + ecx + 1]
mov dword [esp + 4], 0
mov dword [ebp - 0x34], edx
add eax, eax
mov dword [esp + 8], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [ebp - 0x4c]
mov edx, dword [ebp - 0x34]
mov esi, eax
sub esp, 0xc
xor eax, eax
jmp 0x40184b
movzx edx, word [eax + str.SystemCurrentControlSetServices]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x401844
cmp word [esi], 0
mov eax, esi
je 0x401869
nop
add eax, 2
cmp word [eax], 0
jne 0x401860
movzx ecx, word [0x40401a]
mov edx, 0x40401a
jmp 0x401883
movzx ecx, word [edx]
add eax, 2
add edx, 2
test cx, cx
mov word [eax - 2], cx
jne 0x401880
cmp word [esi], 0
mov eax, esi
je 0x4018a9
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4018a0
mov edx, dword [ebp - 0x2c]
lea esi, [esi]
add edx, 2
movzx ecx, word [edx - 2]
add eax, 2
test cx, cx
mov word [eax - 2], cx
jne 0x4018b0
cmp word [esi], 0
mov eax, esi
je 0x4018d9
nop
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4018d0
mov edx, 0x40401a
jmp 0x4018e3
movzx ebx, word [edx]
add eax, 2
add edx, 2
test bx, bx
mov word [eax - 2], bx
jne 0x4018e0
cmp word [esi], 0
mov eax, esi
je 0x401909
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401900
mov edx, str.Parameters
jmp 0x401913
movzx edi, word [edx]
add eax, 2
add edx, 2
test di, di
mov word [eax - 2], di
jne 0x401910
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov word [esi + eax - 2], cx
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp + 0x10], eax
mov dword [esp], 0x80000002
call dword [ebp - 0x48]
sub esp, 0x14
test eax, eax
mov ebx, eax
je 0x401b33
test byte [0x403000], 2
jne 0x401c30
mov dword [ebp - 0x38], 0
xor ebx, ebx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov edi, dword fs:[0x18]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov esi, dword [ebp - 0x40]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, esi
call eax
mov eax, dword [ebp - 0x30]
sub esp, 0xc
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, esi
call eax
mov eax, dword [ebp - 0x34]
sub esp, 0xc
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, esi
call eax
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, esi
call eax
mov eax, dword [ebp - 0x38]
sub esp, 0xc
test eax, eax
je 0x401f6a
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x50], 1
cmp word [eax], 0
je 0x401cd9
nop
add eax, 2
cmp word [eax], 0
jne 0x401a20
cmp word [eax + 2], 0
lea esi, [eax + 2]
mov dword [ebp - 0x2c], esi
jne 0x401733
mov eax, dword [ebp - 0x50]
shl eax, 3
mov esi, dword [ebp - 0x5c]
add eax, esi
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_StartServiceCtrlDispatcherW]
sub esp, 4
test eax, eax
jne 0x401ac9
test byte [0x403000], 2
jne 0x4021cb
mov esi, dword [ebp - 0x5c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], esi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [ebp - 0x40]
sub esp, 0xc
test byte [0x403000], 8
jne 0x401f95
mov esi, dword [ebp - 0x58]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], esi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [ebp - 0x40]
sub esp, 0xc
jmp 0x401684
mov eax, dword [ebp - 0x5c]
mov dword [esp + 4], 0
mov ebx, dword fs:[0x18]
mov esi, dword [ebp - 0x40]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, esi
call eax
mov eax, dword [ebp - 0x58]
sub esp, 0xc
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, esi
call eax
add dword [ebp - 0x3c], 2
sub esp, 0xc
add dword [ebp - 0x44], 8
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x64]
jne 0x4014a4
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x20]
mov edx, str.ServiceDll
call dbg.GetRegValue
test eax, eax
mov dword [ebp - 0x30], eax
je 0x401c7f
test byte [0x403000], 8
jne 0x401cf2
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov ebx, dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov dword [esp], eax
call ebx
sub esp, 0xc
test eax, eax
mov edi, eax
jne 0x401d1b
test byte [0x403000], 2
jne 0x401fbe
mov eax, dword [ebp - 0x20]
xor ebx, ebx
mov dword [esp], eax
call dword [ebp - 0x6c]
mov dword [ebp - 0x38], 0
sub esp, 4
mov dword [ebp - 0x34], 0
jmp 0x401982
mov eax, dword [ebp - 0x2c]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Adding_element_for__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.AddServiceElem
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1
movzx edx, word [str.SystemCurrentControlSetServices]
test dx, dx
jne 0x401757
movzx ebx, word [0x40401a]
xor ecx, ecx
test bx, bx
jne 0x401782
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0
jne 0x4017ab
movzx edi, word [str.Parameters]
xor eax, eax
add eax, ecx
test di, di
jne 0x4017f5
xor ecx, ecx
jmp 0x401811
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0xc], str.cannot_open_key__s__err_ld_n
mov dword [esp + 8], str.AddServiceElem
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
jmp 0x401982
test byte [0x403000], 2
je 0x401cb8
mov eax, dword [ebp - 0x2c]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.cannot_find_registry_value_ServiceDll_for_service__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.AddServiceElem
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.1
mov eax, dword [ebp - 0x20]
xor ebx, ebx
mov dword [esp], eax
call dword [ebp - 0x6c]
mov dword [ebp - 0x34], 0
sub esp, 4
mov dword [ebp - 0x38], 0
jmp 0x401982
mov eax, dword [ebp - 0x2c]
cmp word [eax + 2], 0
lea esi, [eax + 2]
mov dword [ebp - 0x2c], esi
jne 0x401733
jmp 0x401a3a
mov dword [esp + 0xc], section..rdata
mov dword [esp + 8], 0x404310
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1
jmp 0x401b58
mov eax, dword fs:[0x18]
mov ecx, eax
mov dword [ebp - 0x70], eax
lea eax, [edi + edi + 2]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [ebp - 0x4c]
sub esp, 0xc
mov dword [ebp - 0x34], eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], edi
mov dword [esp], eax
call ebx
sub esp, 0xc
test eax, eax
je 0x40220d
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x401ffb
mov eax, dword [ebp - 0x20]
lea edi, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x14], edi
mov dword [esp + 4], str.ServiceMain
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov dword [ebp - 0x38], eax
call eax
sub esp, 0x18
test eax, eax
je 0x401e50
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [ebp - 0x6c]
mov eax, dword [ebp - 0x34]
sub esp, 4
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
sub esp, 0xc
test eax, eax
mov edx, eax
je 0x4020f3
mov dword [esp], edx
mov dword [ebp - 0x38], edx
xor ebx, ebx
mov dword [esp + 4], str.ServiceMain
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
call edi
mov ecx, eax
sub esp, 8
mov edx, dword [ebp - 0x38]
test ecx, ecx
je 0x401f13
mov dword [ebp - 0x38], ecx
mov dword [esp + 4], str.SvchostPushServiceGlobals
mov dword [esp], edx
call edi
sub esp, 8
test eax, eax
mov ecx, dword [ebp - 0x38]
je 0x401e34
test byte [0x403000], 1
jne 0x4020bb
mov eax, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x50]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], 1
mov dword [eax + edi*8 + 4], ecx
mov dword [eax + edi*8], edx
jmp 0x401982
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], 0
lea eax, [edx + 1]
mov dword [ebp - 0x74], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [ebp - 0x4c]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.ServiceMain
mov dword [esp], eax
call dword [ebp - 0x38]
sub esp, 0x18
test eax, eax
mov edx, dword [ebp - 0x74]
jne 0x40214b
mov eax, dword [ebp - 0x20]
mov byte [ebx + edx], 0
mov dword [esp], eax
call dword [ebp - 0x6c]
mov eax, dword [ebp - 0x34]
sub esp, 4
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
sub esp, 0xc
test eax, eax
mov edx, eax
je 0x4020f5
test ebx, ebx
je 0x401de5
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [ebp - 0x38], eax
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
call edi
mov ecx, eax
sub esp, 8
mov edx, dword [ebp - 0x38]
test ecx, ecx
jne 0x401e0d
test byte [0x403000], 2
je 0x401f52
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], edx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.cannot_locate_ServiceMain_procedure_in_DLL_for__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.AddServiceElem
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.1
mov edx, dword [ebp - 0x38]
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov dword [ebp - 0x38], 0
sub esp, 4
jmp 0x401982
mov eax, dword [ebp - 0x5c]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [ebp - 0x40]
sub esp, 0xc
test byte [0x403000], 8
je 0x401aa0
mov dword [esp + 0xc], str.Failed_to_start_service_group_n
mov dword [esp + 8], str.LoadGroup
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1
jmp 0x401aa0
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
mov eax, dword [ebp - 0x30]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.cannot_expand_env_vars_in__s:__lu_n
mov dword [esp + 8], 0x404310
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.1
test byte [0x403000], 2
je 0x401b90
mov eax, dword [ebp - 0x30]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.failed_to_expand_string__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.AddServiceElem
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.1
jmp 0x401b90
test byte [0x403000], 2
je 0x40153b
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionSvchost
call sym._wine_dbgstr_wn.constprop.0
mov esi, eax
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.cannot_find_registry_value__s_in__s_n
mov dword [esp + 8], str.LoadGroup
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.1
jmp 0x401684
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.Service_group_contains__ld_services_n
mov dword [esp + 8], str.StartGroupServices
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1
jmp 0x4016e5
mov eax, dword [ebp - 0x34]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.library__s_expects_undocumented_SvchostPushServiceGlobals_function_to_be_called_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.AddServiceElem
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.1
mov ecx, dword [ebp - 0x38]
jmp 0x401e34
xor ebx, ebx
test byte [0x403000], 2
mov dword [ebp - 0x38], 0
je 0x401982
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
mov eax, dword [ebp - 0x34]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.failed_to_load_library__s__err_lu_n
mov dword [esp + 8], str.AddServiceElem
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.1
jmp 0x401982
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [ebp - 0x6c]
mov dword [ebp - 0x38], 0
sub esp, 4
jmp 0x401982
test byte [0x403000], 2
je 0x40153b
mov dword [esp + 0xc], str.Must_specify_group_to_initialize_n
mov dword [esp + 8], global___func__.0
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.1
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 0xc], section..rdata
mov dword [esp + 8], global___func__.0
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1
jmp 0x401479
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
mov eax, dword [ebp - 0x58]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.StartServiceCtrlDispatcherW_failed_to_start__s:__lu_n
mov dword [esp + 8], str.StartGroupServices
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.1
jmp 0x401a6f
test byte [0x403000], 2
je 0x402250
mov eax, dword [ebp - 0x70]
mov ebx, dword [eax + 0x34]
mov eax, dword [ebp - 0x30]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.cannot_expand_env_vars_in__s:__lu_n
mov dword [esp + 8], 0x404310
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.1
mov edi, dword [ebp - 0x34]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [ebp - 0x40]
sub esp, 0xc
jmp 0x401ffb
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
xor eax, eax
mov dword [ebp - 0x40], esi
jmp 0x401a40