Function at 0x401490
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 [section..data], 8
jne 0x4021cf
cmp ebx, 1
jle 0x401576
lea eax, [esi + 4]
mov esi, 1
mov dword [ebp - 0x4c], eax
lea eax, [ebx - 2]
sub ebx, 1
and eax, 0xfffffffe
or ebx, 1
add eax, 3
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], eax
lea esi, [esi]
mov dword [esp + 4], 0x404030
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x4015f0
mov ebx, dword [ebp - 0x5c]
movzx eax, byte [section..data]
cmp esi, ebx
je 0x40223a
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0x24], 0
mov ebx, dword [ebx + 4]
test al, 8
jne 0x401658
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
test eax, eax
je 0x401588
mov edi, eax
test byte [section..data], 2
jne 0x401e14
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x24]
mov edx, ebx
call fcn.00401350
mov dword [ebp - 0x58], eax
mov edi, eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x54], eax
call eax
sub esp, 4
test edi, edi
je 0x401efc
cmp word [edi], 0
mov eax, edi
mov ecx, 1
je 0x402175
lea esi, [esi]
nop
mov edx, eax
add eax, 2
cmp word [eax], 0
jne 0x4015c8
add edx, 4
cmp word [eax + 2], 0
je 0x401690
add ecx, 1
mov eax, edx
jmp 0x4015c8
mov dword [esp + 4], 0x404036
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
je 0x401509
test byte [section..data], 1
je 0x401576
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
call fcn.00401060
mov dword [esp + 0xc], str.Unrecognized_option:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call fcn.00401300
jmp 0x401576
mov eax, ebx
call fcn.00401060
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], 0x403000
mov dword [esp], 3
call fcn.00401300
jmp 0x401530
lea ebx, [ecx*8 + 8]
test byte [section..data], 8
jne 0x402008
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 - 0x58]
sub esp, 0xc
mov dword [ebp - 0x50], eax
cmp word [edi], 0
je 0x40226b
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x48], 0
mov ecx, edi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], 0
test byte [section..data], 8
jne 0x401c40
mov eax, str.SystemCurrentControlSetServices
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401710
sub eax, str.SystemCurrentControlSetServices
sar eax, 1
add eax, 1
cmp word [ecx], 0
je 0x40173f
mov edx, ecx
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x401730
sub edx, ecx
sar edx, 1
add eax, edx
add eax, 1
mov ebx, str.Parameters
lea esi, [esi]
nop
add ebx, 2
cmp word [ebx], 0
jne 0x401750
sub ebx, str.Parameters
mov dword [ebp - 0x2c], ecx
sar ebx, 1
mov dword [esp + 4], 0
add ebx, eax
lea edx, [ebx + ebx + 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 esi, eax
sub esp, 0xc
xor eax, eax
lea esi, [esi]
movzx edx, word [eax + str.SystemCurrentControlSetServices]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x401798
cmp word [esi], 0
mov edx, esi
je 0x4017c1
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x4017b8
xor eax, eax
lea esi, [esi]
nop
movzx edi, word [eax + 0x404100]
mov word [edx + eax], di
add eax, 2
test di, di
jne 0x4017c8
cmp word [esi], 0
mov edx, esi
je 0x4017f1
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x4017e8
xor eax, eax
lea esi, [esi]
nop
movzx edi, word [ecx + eax]
mov word [edx + eax], di
add eax, 2
test di, di
jne 0x4017f8
cmp word [esi], 0
mov edx, esi
je 0x401819
add edx, 2
cmp word [edx], 0
jne 0x401810
xor eax, eax
lea esi, [esi]
nop
movzx edi, word [eax + 0x404100]
mov word [edx + eax], di
add eax, 2
test di, di
jne 0x401820
cmp word [esi], 0
mov edx, esi
je 0x401849
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x401840
xor eax, eax
lea esi, [esi]
nop
movzx edi, word [eax + str.Parameters]
mov word [edx + eax], di
add eax, 2
test di, di
jne 0x401850
xor eax, eax
mov dword [ebp - 0x2c], ecx
mov word [esi + ebx*2], ax
lea eax, [ebp - 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0x80000002
mov eax, dword [ebp - 0x44]
call eax
mov ecx, dword [ebp - 0x2c]
sub esp, 0x14
test eax, eax
mov edi, eax
je 0x401a10
test byte [section..data], 2
jne 0x401ce0
xor edi, edi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], ecx
mov ebx, dword fs:[0x18]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov esi, dword [ebp - 0x3c]
call esi
mov eax, dword [ebp - 0x2c]
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
call esi
mov eax, dword [ebp - 0x34]
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
call esi
mov eax, dword [ebp - 0x38]
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
call esi
mov ecx, dword [ebp - 0x30]
sub esp, 0xc
test edi, edi
je 0x401e90
add dword [ebp - 0x48], 1
mov eax, ecx
cmp word [ecx], 0
je 0x401969
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401960
cmp word [eax + 2], 0
lea ecx, [eax + 2]
jne 0x4016f0
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x6c]
lea eax, [eax + ebx*8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_StartServiceCtrlDispatcherW]
sub esp, 4
test eax, eax
jne 0x401c7a
test byte [section..data], 2
jne 0x4021f8
mov esi, dword [ebp - 0x50]
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 [section..data], 8
jne 0x4020ca
mov esi, dword [ebp - 0x58]
xor edx, edx
mov dword [esp + 4], edx
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 0x401e4a
mov eax, dword [ebp - 0x20]
mov edx, 0x404104
mov dword [ebp - 0x30], ecx
call fcn.00401350
mov ecx, dword [ebp - 0x30]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x401d20
test byte [section..data], 8
jne 0x401da8
mov dword [ebp - 0x30], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp - 0x30]
sub esp, 0xc
test eax, eax
mov edx, eax
je 0x401de0
lea eax, [eax + eax + 2]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], edx
mov ebx, dword fs:[0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
mov edx, dword [ebp - 0x30]
sub esp, 0xc
mov dword [ebp - 0x34], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp - 0x38]
sub esp, 0xc
test eax, eax
je 0x401f87
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x401fc0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x30], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.ServiceMain
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x30]
sub esp, 0x18
test eax, eax
jne 0x401d50
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x64], ecx
lea eax, [edx + 1]
mov dword [ebp - 0x30], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
lea ebx, [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
sub esp, 0xc
mov dword [ebp - 0x38], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.ServiceMain
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x64]
sub esp, 0x18
test eax, eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x30], ecx
jne 0x4020b2
mov eax, dword [ebp - 0x38]
mov byte [eax + edx], 0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
sub esp, 4
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 0x30]
sub esp, 0xc
test eax, eax
mov edx, eax
je 0x40227c
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x401ecb
mov dword [ebp - 0x68], ecx
mov ebx, dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [ebp - 0x64], edx
call ebx
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
sub esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x401ea7
mov dword [ebp - 0x64], ecx
mov dword [esp + 4], str.SvchostPushServiceGlobals
mov dword [esp], edx
call ebx
mov ecx, dword [ebp - 0x64]
sub esp, 8
test eax, eax
je 0x401c1d
test byte [section..data], 1
jne 0x40207a
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x30]
mov dword [eax + ebx*8], ecx
mov dword [eax + ebx*8 + 4], edi
mov edi, 1
jmp 0x4018c7
mov eax, ecx
mov dword [ebp - 0x2c], ecx
call fcn.00401060
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], 0x403000
mov dword [esp], 3
call fcn.00401300
mov ecx, dword [ebp - 0x2c]
jmp 0x401704
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], 0
add esi, 2
mov ebx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov edi, dword [ebp - 0x3c]
call edi
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
call edi
mov eax, dword [ebp - 0x60]
add dword [ebp - 0x4c], 8
sub esp, 0xc
cmp esi, eax
jne 0x4014e8
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, esi
call fcn.00401060
mov dword [esp + 0x14], 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], 0x403000
mov dword [esp], 1
call fcn.00401300
mov ecx, dword [ebp - 0x2c]
jmp 0x4018b0
test byte [section..data], 2
jne 0x401f4d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
mov ecx, dword [ebp - 0x2c]
sub esp, 4
jmp 0x4018b0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
sub esp, 4
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 0x30]
sub esp, 0xc
test eax, eax
mov edx, eax
jne 0x401ecb
test byte [section..data], 2
jne 0x402181
mov dword [ebp - 0x38], edx
jmp 0x4018c7
mov dword [ebp - 0x30], ecx
mov dword [esp + 0xc], 0x404017
mov dword [esp + 8], 0x404310
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call fcn.00401300
mov ecx, dword [ebp - 0x30]
jmp 0x401a3b
test byte [section..data], 2
jne 0x402035
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], 0
sub esp, 4
mov dword [ebp - 0x34], 0
jmp 0x4018c7
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionSvchost
call fcn.00401060
mov dword [esp + 0x14], edi
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], 0x403000
mov dword [esp], 1
call fcn.00401300
test byte [section..data], 2
je 0x401576
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 4]
call fcn.00401060
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], 0x403000
mov dword [esp], 1
call fcn.00401300
jmp 0x401576
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
jmp 0x4019cc
test byte [section..data], 2
jne 0x4020f3
mov dword [ebp - 0x30], ecx
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x30]
sub esp, 4
jmp 0x4018c7
mov dword [ebp - 0x68], ecx
mov ebx, dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esp], edx
mov dword [esp + 4], str.ServiceMain
mov dword [ebp - 0x64], edx
call ebx
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x64]
sub esp, 8
mov dword [ebp - 0x30], eax
jmp 0x401beb
test byte [section..data], 2
je 0x401576
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionSvchost
call fcn.00401060
mov esi, eax
mov eax, ebx
call fcn.00401060
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], 0x403000
mov dword [esp], 1
call fcn.00401300
jmp 0x401e4a
mov eax, ecx
mov dword [ebp - 0x2c], ecx
call fcn.00401060
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], 0x403000
mov dword [esp], 1
call fcn.00401300
mov ecx, dword [ebp - 0x2c]
jmp 0x401d2d
test byte [section..data], 2
jne 0x402133
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x30], ecx
mov eax, dword fs:[0x18]
mov dword [esp + 4], 0
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x3c]
call eax
mov ecx, dword [ebp - 0x30]
sub esp, 0xc
test byte [section..data], 2
je 0x401ded
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
call fcn.00401060
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], 0x403000
mov dword [esp], 1
call fcn.00401300
mov ecx, dword [ebp - 0x30]
jmp 0x401ded
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], 0x403000
mov dword [esp], 3
call fcn.00401300
jmp 0x4016a4
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
mov eax, dword [ebp - 0x2c]
call fcn.00401060
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], 0x403000
mov dword [esp], 1
call fcn.00401300
mov ecx, dword [ebp - 0x30]
jmp 0x401fc0
mov eax, dword [ebp - 0x34]
call fcn.00401060
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], 0x403000
mov dword [esp], 0
call fcn.00401300
mov ecx, dword [ebp - 0x64]
jmp 0x401c1d
mov eax, dword [ebp - 0x20]
xor edi, edi
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
mov ecx, dword [ebp - 0x30]
sub esp, 4
jmp 0x4018c7
mov dword [esp + 0xc], str.Failed_to_start_service_group_n
mov dword [esp + 8], str.LoadGroup
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call fcn.00401300
jmp 0x4019e7
mov eax, ecx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x30], ecx
call fcn.00401060
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], 0x403000
mov dword [esp], 1
call fcn.00401300
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x30]
jmp 0x401eb4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov ebx, dword [ebx + 0x34]
call fcn.00401060
mov dword [esp + 0xc], str.cannot_expand_env_vars_in__s:__lu_n
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x404310
mov dword [esp + 4], 0x403000
mov dword [esp], 1
call fcn.00401300
mov ecx, dword [ebp - 0x30]
jmp 0x401f94
mov ebx, 8
xor ecx, ecx
jmp 0x401697
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], edx
call fcn.00401060
mov dword [esp + 0x14], ebx
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], 0x403000
mov dword [esp], 1
call fcn.00401300
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x30]
jmp 0x401d9a
mov dword [esp + 0xc], 0x404017
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call fcn.00401300
jmp 0x4014b9
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
mov eax, dword [ebp - 0x58]
call fcn.00401060
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], 0x403000
mov dword [esp], 1
call fcn.00401300
jmp 0x4019b4
test al, 2
je 0x401576
mov dword [esp + 0xc], str.Must_specify_group_to_initialize_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x403000
mov dword [esp], 1
call fcn.00401300
jmp 0x401576
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x3c], ebx
jmp 0x401983
mov edx, dword [ebp - 0x38]
jmp 0x401d8d