Function at 0x40be10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x441af1
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x44f3c0]
xor eax, esp
mov dword [esp + 0x320], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f3c0]
xor eax, esp
push eax
lea eax, [esp + 0x33c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34c]
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x18], ebx
mov esi, ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x344], ebp
cmp eax, 0xffffffff
jne 0x40be87
call fcn.0040bc30
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.0040b220
cmp edi, 0xffffffff
je 0x40be92
mov dword [esp + 0x14], edi
jmp 0x40be96
push eax
call fcn.0040bd20
add esp, 4
jmp 0x40be71
mov edi, dword [esp + 0x14]
push ebp
push edi
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], ebp
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
jne 0x40bf81
call fcn.00414b50
cmp eax, 2
jg 0x40bf2a
cmp dword [esi + 0x18], 8
jb 0x40bec3
mov esi, dword [esi + 4]
jmp 0x40bec6
add esi, 4
push esi
lea ecx, [esp + 0x34]
push str.Failed_to_create__s__CreateEnvironmentBlock_failed
push ecx
call fcn.00417690
add esp, 0xc
mov esi, eax
mov byte [esp + 0x344], 1
mov dword [esp + 0x18], 1
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x8b
push str..ServiceMain.cpp
lea ecx, [esp + 0xa8]
call fcn.00416e80
add eax, 0xc
push esi
mov dword [esp + 0x348], 2
mov ebx, 3
push eax
mov dword [esp + 0x20], ebx
call fcn.00403380
add esp, 8
mov dword [esp + 0x344], 1
test bl, 2
je 0x40bf4d
and ebx, 0xfffffffd
lea ecx, [esp + 0x98]
mov dword [esp + 0x18], ebx
call fcn.00416ed0
test bl, 1
je 0x40bf66
cmp dword [esp + 0x48], 0x10
jb 0x40bf66
mov edx, dword [esp + 0x34]
push edx
call fcn.00424b3c
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x344], 0xffffffff
call fcn.0040b220
xor al, al
jmp 0x40c084
push 0x40
lea eax, [esp + 0x54]
push ebp
push eax
call fcn.004270d0
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x18], 8
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
jb 0x40bfb6
mov esi, dword [esi + 4]
jmp 0x40bfb9
add esi, 4
push esi
lea ecx, [esp + 0x130]
push 0x104
push ecx
call fcn.00425a92
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x50]
push eax
push ebp
push ecx
push 0x430
push ebp
push ebp
push ebp
lea edx, [esp + 0x14c]
push edx
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
call fcn.00414b50
test eax, eax
jg 0x40c04c
call sub.KERNEL32.dll_GetLastError
push eax
push ebp
push 0x9b
push str..ServiceMain.cpp
lea ecx, [esp + 0xa8]
call fcn.00416e80
mov byte [esp + 0x344], 3
mov ecx, dword [esp + 0x28]
push ecx
push ecx
add eax, 0xc
push str.CreateProcessAsSystemLevel___process_id_
mov ebx, 4
push eax
mov dword [esp + 0x28], ebx
call fcn.004041d0
add esp, 0xc
mov ecx, eax
call fcn.0040f5b0
mov dword [esp + 0x344], ebp
test bl, 4
je 0x40c064
lea ecx, [esp + 0x98]
call fcn.00416ed0
mov edx, dword [esp + 0x1c]
push edx
call sub.USERENV.dll_DestroyEnvironmentBlock
lea ecx, [esp + 0x14]
mov dword [esp + 0x344], 0xffffffff
call fcn.0040b220
mov al, 1
mov ecx, dword [esp + 0x33c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x320]
xor ecx, esp
call fcn.00424b47
add esp, 0x334
ret