Function at 0x4022b0
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
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
test byte [0x404020], 8
jne 0x402fd1
cmp ebx, 1
jle 0x40239d
lea eax, [esi + 4]
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x50], eax
lea eax, [ebx - 2]
dec ebx
and eax, 0xfffffffe
or ebx, 1
add eax, 3
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x68], eax
lea esi, [esi]
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], 0x405030
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x402ba8
movzx eax, byte [0x404020]
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x60], ecx
je 0x40303c
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x24], 0
lea ecx, [esi + 4]
mov ebx, dword [esi + 4]
mov dword [ebp - 0x6c], ecx
test al, 8
jne 0x402c40
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov eax, dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionSvchost
mov dword [esp], 0x80000002
mov dword [ebp - 0x44], eax
call eax
sub esp, 0x14
mov esi, eax
test eax, eax
je 0x4023b0
test byte [0x404020], 2
jne 0x402d15
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 - 0x24]
mov edx, ebx
call sym._GetRegValue
mov dword [ebp - 0x5c], eax
mov esi, eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x58], eax
call eax
sub esp, 4
test esi, esi
je 0x402dff
xor ecx, ecx
cmp word [esi], 0
mov edx, esi
mov ebx, 8
je 0x402414
lea esi, [esi]
mov ebx, ecx
mov eax, edx
inc ecx
lea esi, [esi]
mov edx, eax
add eax, 2
cmp word [eax], 0
jne 0x4023f8
add edx, 4
cmp word [eax + 2], 0
jne 0x4023f0
lea ebx, [ebx*8 + 0x10]
test byte [0x404020], 8
jne 0x402ea6
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x40], eax
call eax
mov edi, dword [ebp - 0x5c]
sub esp, 0xc
mov dword [ebp - 0x54], eax
cmp word [edi], 0
je 0x40306d
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x4c], 0
mov ecx, edi
mov dword [ebp - 0x3c], eax
lea esi, [esi]
mov dword [ebp - 0x20], 0
test byte [0x404020], 8
jne 0x4029e0
mov edx, 0x79
mov eax, str.SystemCurrentControlSetServices
jmp 0x402494
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x402490
sub eax, str.SystemCurrentControlSetServices
sar eax, 1
cmp word [ecx], 0
je 0x402c78
mov edx, ecx
nop
add edx, 2
cmp word [edx], 0
jne 0x4024b0
sub edx, ecx
sar edx, 1
add eax, 2
mov ebx, 0x61
mov esi, str.Parameters
jmp 0x4024d4
movzx ebx, word [esi + 2]
add esi, 2
test bx, bx
jne 0x4024d0
sub esi, str.Parameters
add eax, edx
mov dword [esp + 4], 0
sar esi, 1
mov dword [ebp - 0x2c], ecx
add esi, eax
lea edx, [esi + esi + 2]
mov dword [esp + 8], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
mov ecx, dword [ebp - 0x2c]
mov edx, 0x53
mov ebx, eax
sub esp, 0xc
xor eax, eax
jmp 0x402527
movzx edx, word [eax + str.SystemCurrentControlSetServices]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x402520
cmp word [ebx], 0
mov edx, ebx
je 0x402549
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x402540
xor eax, eax
mov edi, 0x5c
jmp 0x40255f
movzx edi, word [eax + 0x405100]
mov word [edx + eax], di
add eax, 2
test di, di
jne 0x402558
cmp word [ebx], 0
mov edx, ebx
je 0x402581
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x402578
xor eax, eax
lea esi, [esi]
nop
movzx edi, word [ecx + eax]
mov word [edx + eax], di
add eax, 2
test di, di
jne 0x402588
cmp word [ebx], 0
mov edx, ebx
je 0x4025a9
add edx, 2
cmp word [edx], 0
jne 0x4025a0
xor eax, eax
mov edi, 0x5c
jmp 0x4025bf
movzx edi, word [eax + 0x405100]
mov word [edx + eax], di
add eax, 2
test di, di
jne 0x4025b8
cmp word [ebx], 0
mov edx, ebx
je 0x4025e1
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x4025d8
xor eax, eax
mov edi, 0x50
jmp 0x4025f7
movzx edi, word [eax + str.Parameters]
mov word [edx + eax], di
add eax, 2
test di, di
jne 0x4025f0
mov dword [ebp - 0x2c], ecx
lea eax, [ebp - 0x20]
xor ecx, ecx
mov word [ebx + esi*2], cx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000002
call eax
mov ecx, dword [ebp - 0x2c]
sub esp, 0x14
test eax, eax
mov edi, eax
je 0x4027b0
test byte [0x404020], 2
jne 0x402a80
mov dword [ebp - 0x34], 0
xor edi, edi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov esi, dword fs:[0x18]
mov dword [esp + 8], ebx
mov ebx, dword [ebp - 0x3c]
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x38], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x2c]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x30]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x34]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov ecx, dword [ebp - 0x38]
sub esp, 0xc
test edi, edi
je 0x402d90
inc dword [ebp - 0x4c]
cmp word [ecx], 0
mov eax, ecx
je 0x402709
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x402700
cmp word [eax + 2], 0
lea ecx, [eax + 2]
jne 0x402470
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x4c]
lea eax, [eax + esi*8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_StartServiceCtrlDispatcherW]
sub esp, 4
test eax, eax
jne 0x402a1a
test byte [0x404020], 2
jne 0x402ffa
mov esi, dword [ebp - 0x54]
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
mov eax, dword [ebp - 0x3c]
call eax
sub esp, 0xc
test byte [0x404020], 8
jne 0x402f23
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
mov eax, dword [ebp - 0x3c]
call eax
sub esp, 0xc
jmp 0x402d4b
mov eax, dword [ebp - 0x20]
mov edx, 0x405104
mov dword [ebp - 0x30], ecx
call sym._GetRegValue
mov ecx, dword [ebp - 0x30]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x402ad8
test byte [0x404020], 8
jne 0x402c10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov dword [esp + 8], 0
mov esi, dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 4], 0
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x30]
sub esp, 0xc
test eax, eax
mov edx, eax
je 0x402c80
lea eax, [eax + eax + 2]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [ebp - 0x38], ecx
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x34], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
mov edx, dword [ebp - 0x34]
sub esp, 0xc
mov dword [ebp - 0x30], eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], edx
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x38]
sub esp, 0xc
test eax, eax
je 0x402e68
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x402ccd
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x34], ecx
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.ServiceMain
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x34]
sub esp, 0x18
test eax, eax
jne 0x402b10
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov dword [ebp - 0x70], ecx
lea eax, [edx + 1]
mov dword [ebp - 0x38], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
lea ecx, [ebp - 0x1c]
sub esp, 0xc
mov dword [ebp - 0x34], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.ServiceMain
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x38]
sub esp, 0x18
test eax, eax
mov dword [ebp - 0x38], ecx
jne 0x402f0b
mov eax, dword [ebp - 0x34]
mov byte [eax + edx], 0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [ebp - 0x58]
call eax
mov eax, dword [ebp - 0x30]
sub esp, 4
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 0x38]
sub esp, 0xc
test eax, eax
mov edx, eax
je 0x402b4e
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x402dcb
mov dword [ebp - 0x70], ecx
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esp], edx
mov dword [ebp - 0x64], edx
mov dword [esp + 4], eax
call esi
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x38], eax
sub esp, 8
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x402da7
mov dword [ebp - 0x64], ecx
mov dword [esp + 4], str.SvchostPushServiceGlobals
mov dword [esp], edx
call esi
mov ecx, dword [ebp - 0x64]
sub esp, 8
test eax, eax
je 0x4029bf
test byte [0x404020], 1
jne 0x402ed3
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x38]
mov dword [eax + esi*8], ecx
mov dword [eax + esi*8 + 4], edi
mov edi, 1
jmp 0x402667
mov eax, ecx
mov dword [ebp - 0x2c], ecx
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], 0x404020
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x2c]
jmp 0x402484
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x3c]
mov dword [esp + 4], 0
mov ebx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x5c]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
add dword [ebp - 0x48], 2
mov eax, dword [ebp - 0x48]
add dword [ebp - 0x50], 8
sub esp, 0xc
cmp eax, dword [ebp - 0x68]
jne 0x402308
jmp 0x40239d
mov eax, ebx
mov dword [ebp - 0x38], ecx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], edi
xor edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.cannot_open_key__s__err_ld_n
mov dword [esp + 8], str.AddServiceElem
mov dword [esp + 4], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
jmp 0x402667
test byte [0x404020], 2
jne 0x402e50
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x58]
call eax
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x30], 0
sub esp, 4
jmp 0x402667
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x58]
call eax
mov eax, dword [ebp - 0x30]
sub esp, 4
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 0x38]
sub esp, 0xc
test eax, eax
mov dword [ebp - 0x34], eax
jne 0x402dce
test byte [0x404020], 2
je 0x402667
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], esi
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], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x38]
jmp 0x402667
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], 0x405036
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
je 0x402329
test byte [0x404020], 1
je 0x40239d
mov eax, dword [ebp - 0x50]
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], str.wmain
mov dword [esp + 4], 0x404020
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40239d
mov dword [esp + 0xc], 0x405017
mov dword [esp + 8], str.ExpandEnv
mov dword [esp + 4], 0x404020
mov dword [esp], 3
mov dword [ebp - 0x30], ecx
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x30]
jmp 0x4027db
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], 0x404020
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x402357
xor edx, edx
jmp 0x4024bd
test byte [0x404020], 2
je 0x402ae5
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
mov eax, dword [ebp - 0x2c]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.cannot_expand_env_vars_in__s:__lu_n
mov dword [esp + 8], str.ExpandEnv
mov dword [esp + 4], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x30]
test byte [0x404020], 2
je 0x402ae5
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
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], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x30]
jmp 0x402ae5
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], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
test byte [0x404020], 2
je 0x40239d
mov eax, dword [ebp - 0x6c]
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], str.wmain
mov dword [esp + 4], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40239d
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
jmp 0x402769
test byte [0x404020], 2
jne 0x402f4c
mov dword [ebp - 0x38], ecx
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x38]
sub esp, 4
jmp 0x402667
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x64], ecx
mov dword [esp + 4], str.ServiceMain
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], eax
sub esp, 8
jmp 0x40298d
test byte [0x404020], 2
je 0x40239d
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], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x402d4b
mov eax, ecx
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
jmp 0x402cf1
test byte [0x404020], 2
jne 0x402f8c
mov esi, dword [ebp - 0x30]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], esi
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x34], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x3c]
call eax
mov ecx, dword [ebp - 0x34]
sub esp, 0xc
jmp 0x402ccd
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.Service_group_contains__ld_services_n
mov dword [esp + 8], str.StartGroupServices
mov dword [esp + 4], 0x404020
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x402421
mov eax, dword [ebp - 0x30]
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], 0x404020
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x64]
jmp 0x4029bf
mov eax, dword [ebp - 0x20]
xor edi, edi
mov dword [esp], eax
mov eax, dword [ebp - 0x58]
call eax
mov ecx, dword [ebp - 0x38]
sub esp, 4
jmp 0x402667
mov dword [esp + 0xc], str.Failed_to_start_service_group_n
mov dword [esp + 8], str.LoadGroup
mov dword [esp + 4], 0x404020
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x402784
mov eax, ecx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x38], ecx
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], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x38]
jmp 0x402db4
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x34], ecx
mov esi, dword [eax + 0x34]
mov eax, dword [ebp - 0x2c]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.cannot_expand_env_vars_in__s:__lu_n
mov dword [esp + 8], str.ExpandEnv
mov dword [esp + 4], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x34]
jmp 0x402e75
mov dword [esp + 0xc], 0x405017
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404020
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4022d9
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
mov eax, dword [ebp - 0x5c]
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], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x402751
test al, 2
je 0x40239d
mov dword [esp + 0xc], str.Must_specify_group_to_initialize_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40239d
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], esi
jmp 0x402720