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 [section..data], 8
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
jne 0x402180
cmp ebx, 1
jle 0x401541
mov dword [ebp - 0x3c], 1
lea eax, [esi + 4]
mov dword [ebp - 0x40], eax
lea eax, [ebx - 2]
dec ebx
and eax, 0xfffffffe
or ebx, 1
mov dword [ebp - 0x5c], ebx
add eax, 3
mov dword [ebp - 0x60], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x40]
mov esi, 0x405030
mov dword [esp + 4], esi
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x401bf0
mov esi, dword [ebp - 0x3c]
cmp dword [ebp - 0x5c], esi
movzx eax, byte [section..data]
je 0x4021f8
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x40]
and al, 8
lea esi, [ecx + 4]
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x64], esi
jne 0x401c90
lea eax, [ebp - 0x24]
mov esi, 0x20019
mov dword [esp + 0x10], eax
xor edi, edi
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionSvchost
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 0x80000002
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
mov esi, eax
je 0x401550
test byte [section..data], 2
jne 0x401d68
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 - 0x54], eax
mov esi, eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
test esi, esi
je 0x401f68
xor ecx, ecx
mov edx, esi
cmp word [esi], 0
mov ebx, 8
je 0x4015bc
lea esi, [esi]
lea edi, [edi]
mov ebx, ecx
mov eax, edx
inc ecx
lea esi, [esi]
lea edi, [edi]
mov edx, eax
add eax, 2
cmp word [eax], 0
jne 0x4015a0
add edx, 4
cmp word [eax + 2], 0
jne 0x401590
lea ebx, [ebx*8 + 0x10]
test byte [section..data], 8
jne 0x402040
mov dword [esp + 8], ebx
xor ecx, ecx
mov dword [esp + 4], ecx
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x48], eax
call eax
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x4c], eax
sub esp, 0xc
cmp word [edi], 0
je 0x402230
mov dword [ebp - 0x50], 0
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea edi, [edi]
test byte [section..data], 8
mov dword [ebp - 0x20], 0
jne 0x401a90
mov eax, str.SystemCurrentControlSetServices
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401640
sub eax, str.SystemCurrentControlSetServices
sar eax, 1
inc eax
cmp word [edi], 0
je 0x40166f
mov edx, edi
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x401660
sub edx, edi
sar edx, 1
add eax, edx
inc eax
mov edx, str.Parameters
lea esi, [esi]
lea edi, [edi]
add edx, 2
cmp word [edx], 0
jne 0x401680
sub edx, str.Parameters
sar edx, 1
lea esi, [edx + eax]
lea eax, [eax + edx + 1]
add eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x48]
call eax
mov ebx, eax
sub esp, 0xc
xor eax, eax
lea esi, [esi]
movzx edx, word [eax + str.SystemCurrentControlSetServices]
mov word [ebx + eax], dx
add eax, 2
test edx, edx
jne 0x4016c0
cmp word [ebx], 0
mov eax, ebx
je 0x4016e9
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4016e0
xor edx, edx
nop
lea esi, [esi]
movzx ecx, word [edx + 0x4050fc]
mov word [eax + edx], cx
add edx, 2
test ecx, ecx
jne 0x4016f0
cmp word [ebx], 0
mov eax, ebx
je 0x401719
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401710
xor edx, edx
nop
lea esi, [esi]
movzx ecx, word [edi + edx]
mov word [eax + edx], cx
add edx, 2
test ecx, ecx
jne 0x401720
cmp word [ebx], 0
mov eax, ebx
je 0x401749
mov esi, esi
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x401740
xor edx, edx
nop
lea esi, [esi]
movzx ecx, word [edx + 0x4050fc]
mov word [eax + edx], cx
add edx, 2
test ecx, ecx
jne 0x401750
cmp word [ebx], 0
mov eax, ebx
je 0x401779
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401770
xor edx, edx
nop
lea esi, [esi]
movzx ecx, word [edx + str.Parameters]
mov word [eax + edx], cx
add edx, 2
test ecx, ecx
jne 0x401780
mov word [ebx + esi*2], 0
lea eax, [ebp - 0x20]
mov dword [esp + 0x10], eax
mov eax, 0x20019
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 0x80000002
call sym._RegOpenKeyExW_20
mov dword [ebp - 0x38], eax
sub esp, 0x14
test eax, eax
je 0x4018a0
test byte [section..data], 2
jne 0x401ad0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [esp + 8], ebx
xor eax, eax
mov ebx, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x2c]
xor edx, edx
sub esp, 0xc
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x30]
xor ecx, ecx
sub esp, 0xc
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
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
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x38]
sub esp, 0xc
test eax, eax
je 0x401df0
inc dword [ebp - 0x50]
cmp word [edi], 0
je 0x401889
lea esi, [esi]
add edi, 2
cmp word [edi], 0
jne 0x401880
cmp word [edi + 2], 0
lea eax, [edi + 2]
je 0x401e70
mov edi, eax
jmp 0x401620
mov eax, dword [ebp - 0x20]
mov edx, 0x405100
call sym._GetRegValue
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x401b30
test byte [section..data], 8
jne 0x401c60
mov eax, dword [ebp - 0x2c]
xor edx, edx
xor ecx, ecx
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
sub esp, 0xc
test eax, eax
mov esi, eax
je 0x401cd0
lea eax, [eax + eax + 2]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov ecx, dword fs:[0x18]
mov dword [ebp - 0x34], ecx
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x48]
call eax
mov dword [ebp - 0x30], eax
sub esp, 0xc
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp - 0x34]
sub esp, 0xc
test eax, eax
je 0x402000
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x401d1d
mov dword [ebp - 0x34], ecx
xor eax, eax
xor ecx, ecx
mov dword [esp + 0xc], eax
lea esi, [ebp - 0x1c]
xor eax, eax
mov dword [esp + 8], eax
mov eax, str.ServiceMain
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
mov dword [esp], eax
call sym._RegQueryValueExA_24
sub esp, 0x18
test eax, eax
jne 0x401b60
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x68], edx
lea eax, [edx + 1]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x48]
call eax
mov edx, str.ServiceMain
mov dword [ebp - 0x34], eax
sub esp, 0xc
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp + 0x14], esi
mov dword [esp], eax
call sym._RegQueryValueExA_24
mov edx, dword [ebp - 0x68]
sub esp, 0x18
test eax, eax
jne 0x4020b0
mov eax, dword [ebp - 0x34]
mov byte [eax + edx], 0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._RegCloseKey_4
mov eax, 8
sub esp, 4
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
sub esp, 0xc
test eax, eax
mov edx, eax
je 0x401b97
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x401f22
mov dword [esp], edx
mov ecx, dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esp + 4], eax
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], ecx
call ecx
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
sub esp, 8
mov esi, eax
test esi, esi
je 0x401e50
mov dword [esp], edx
mov eax, str.SvchostPushServiceGlobals
mov dword [esp + 4], eax
call ecx
sub esp, 8
test eax, eax
je 0x401a70
test byte [section..data], 1
jne 0x402070
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
mov dword [eax + ecx*8], edi
mov dword [eax + ecx*8 + 4], esi
jmp 0x4017f5
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0
mov edx, section..data
mov dword [esp + 4], edx
mov dword [esp], 3
mov dword [esp + 0x10], eax
mov eax, str.Adding_element_for__s_n
mov dword [esp + 0xc], eax
mov eax, str.AddServiceElem
mov dword [esp + 8], eax
call sym._wine_dbg_log.constprop.0
jmp 0x401634
mov eax, ebx
mov esi, section..data
call sym._wine_dbgstr_wn.constprop.0
mov ecx, dword [ebp - 0x38]
mov edx, str.cannot_open_key__s__err_d_n
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], 1
mov dword [esp + 0x14], ecx
mov ecx, str.AddServiceElem
mov dword [esp + 8], ecx
mov dword [esp + 0x10], eax
call sym._wine_dbg_log.constprop.0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
jmp 0x4017f5
test byte [section..data], 2
jne 0x401fc0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._RegCloseKey_4
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
sub esp, 4
jmp 0x4017f5
mov eax, dword [ebp - 0x20]
mov esi, 8
mov dword [esp], eax
call sym._RegCloseKey_4
xor eax, eax
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov dword [ebp - 0x34], eax
sub esp, 0xc
test eax, eax
jne 0x401f30
test byte [section..data], 2
je 0x4017f5
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
mov eax, dword [ebp - 0x30]
call sym._wine_dbgstr_wn.constprop.0
mov edx, str.failed_to_load_library__s__err_u_n
mov ecx, str.AddServiceElem
mov dword [esp + 0x14], esi
mov esi, section..data
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], 1
mov dword [esp + 0x10], eax
call sym._wine_dbg_log.constprop.0
jmp 0x4017f5
mov eax, dword [ebp - 0x40]
mov ebx, 0x405036
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
je 0x4014d2
test byte [section..data], 1
je 0x401541
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp], 0
mov dword [esp + 0x10], eax
mov eax, str.Unrecognized_option:__s_n
mov dword [esp + 0xc], eax
mov eax, str.wmain
mov dword [esp + 8], eax
mov eax, section..data
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x401541
mov dword [esp], 3
mov eax, 0x405308
mov esi, section..rdata
mov dword [esp + 8], eax
mov eax, section..data
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x4018c5
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp], 3
mov dword [esp + 0x10], eax
mov eax, str.Loading_service_group_for__s_n
mov dword [esp + 0xc], eax
mov eax, str.LoadGroup
mov dword [esp + 8], eax
mov eax, section..data
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x401500
test byte [section..data], 2
je 0x401b3d
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], 1
mov dword [esp + 0x10], eax
mov eax, str.cannot_expand_env_vars_in__s:__u_n
mov dword [esp + 0xc], eax
mov eax, 0x405308
mov dword [esp + 8], eax
mov eax, section..data
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
test byte [section..data], 2
je 0x401b3d
mov eax, dword [ebp - 0x2c]
call sym._wine_dbgstr_wn.constprop.0
mov edx, section..data
mov dword [esp + 4], edx
mov dword [esp], 1
mov dword [esp + 0x10], eax
mov eax, str.failed_to_expand_string__s_n
mov dword [esp + 0xc], eax
mov eax, str.AddServiceElem
mov dword [esp + 8], eax
call sym._wine_dbg_log.constprop.0
jmp 0x401b3d
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionSvchost
call sym._wine_dbgstr_wn.constprop.0
mov edx, str.LoadGroup
mov ecx, section..data
mov dword [esp + 0x14], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 1
mov dword [esp + 0x10], eax
mov eax, str.cannot_open_key__s__err_d_n
mov dword [esp + 0xc], eax
call sym._wine_dbg_log.constprop.0
test byte [section..data], 2
je 0x401541
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
call sym._wine_dbgstr_wn.constprop.0
mov edx, str.wmain
mov ecx, section..data
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 1
mov dword [esp + 0x10], eax
mov eax, str.Failed_to_load_requested_group:__s_n
mov dword [esp + 0xc], eax
call sym._wine_dbg_log.constprop.0
jmp 0x401541
mov eax, dword [ebp - 0x4c]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
call eax
sub esp, 0xc
test byte [section..data], 8
jne 0x4020d0
mov dword [esp + 4], 0
mov ecx, dword [ebp - 0x54]
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
call eax
sub esp, 0xc
jmp 0x401da1
test byte [section..data], 2
jne 0x402100
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
jmp 0x4017f5
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
lea eax, [eax + ecx*8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sym._StartServiceCtrlDispatcherW_4
sub esp, 4
test eax, eax
jne 0x401ec0
test byte [section..data], 2
jne 0x4021b0
mov ecx, dword [ebp - 0x4c]
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
xor ecx, ecx
mov dword [esp + 4], ecx
mov eax, dword [eax + 0x30]
jmp 0x401e00
mov eax, dword [ebp - 0x4c]
mov ebx, dword fs:[0x18]
mov esi, dword [ebp - 0x44]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x54]
xor edx, edx
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
add dword [ebp - 0x3c], 2
add dword [ebp - 0x40], 8
mov eax, dword [ebp - 0x3c]
sub esp, 0xc
cmp eax, dword [ebp - 0x60]
jne 0x4014b0
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [ebp - 0x34], edx
lea esi, [esi]
lea edi, [edi]
mov eax, str.ServiceMain
mov ecx, dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x68], ecx
mov dword [esp], eax
call ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x68]
sub esp, 8
mov esi, eax
jmp 0x401a46
test byte [section..data], 2
je 0x401541
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], 1
mov dword [esp + 0x10], eax
mov eax, str.cannot_find_registry_value__s_in__s_n
mov dword [esp + 0xc], eax
mov eax, str.LoadGroup
mov dword [esp + 8], eax
mov eax, section..data
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x401da1
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp], 1
mov dword [esp + 0x10], eax
mov eax, str.cannot_find_registry_value_ServiceDll_for_service__s_n
mov dword [esp + 0xc], eax
mov eax, str.AddServiceElem
mov dword [esp + 8], eax
mov eax, section..data
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x401b3d
test byte [section..data], 2
jne 0x402140
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
call eax
sub esp, 0xc
jmp 0x401d1d
mov esi, str.Service_group_contains__d_services_n
mov edi, str.StartGroupServices
mov dword [esp + 0x10], ecx
mov eax, section..data
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4015c9
mov eax, dword [ebp - 0x30]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp], 0
mov dword [esp + 0x10], eax
mov eax, str.library__s_expects_undocumented_SvchostPushServiceGlobals_function_to_be_called_n
mov dword [esp + 0xc], eax
mov eax, str.AddServiceElem
mov dword [esp + 8], eax
mov eax, section..data
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x401a70
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._RegCloseKey_4
mov dword [ebp - 0x38], 0
sub esp, 4
jmp 0x4017f5
mov ebx, str.Failed_to_start_service_group_n
mov esi, str.LoadGroup
mov dword [esp + 0xc], ebx
mov edi, section..data
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401e1b
mov dword [ebp - 0x68], edx
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp], 1
mov dword [esp + 0x10], eax
mov eax, str.cannot_locate_ServiceMain_procedure_in_DLL_for__s_n
mov dword [esp + 0xc], eax
mov eax, str.AddServiceElem
mov dword [esp + 8], eax
mov eax, section..data
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x68]
jmp 0x401e5d
mov eax, dword [ebp - 0x2c]
mov esi, dword [ecx + 0x34]
call sym._wine_dbgstr_wn.constprop.0
mov ecx, str.cannot_expand_env_vars_in__s:__u_n
mov dword [esp + 0x14], esi
mov esi, 0x405308
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp], 1
mov dword [esp + 0x10], eax
mov eax, section..data
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x40200d
mov dword [esp], 3
mov eax, str.wmain
mov edi, section..rdata
mov dword [esp + 8], eax
mov eax, section..data
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x401479
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
mov eax, dword [ebp - 0x54]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], ebx
mov dword [esp], 1
mov dword [esp + 0x10], eax
mov eax, str.StartServiceCtrlDispatcherW_failed_to_start__s:__u_n
mov dword [esp + 0xc], eax
mov eax, str.StartGroupServices
mov dword [esp + 8], eax
mov eax, section..data
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x401ea5
and al, 2
je 0x401541
mov edx, str.wmain
mov ecx, section..data
mov dword [esp + 8], edx
mov eax, str.Must_specify_group_to_initialize_n
mov dword [esp + 0xc], eax
mov dword [esp + 4], ecx
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401541
mov ecx, dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], ecx
jmp 0x401e79