Function at 0x413450
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x48a488
push 0x441f50
mov eax, dword fs:[0]
push eax
sub esp, 0x878
mov eax, dword [0x48e050]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x824], eax
push str.Start_CreateProcessAsNormalUser
call fcn.00404c20
add esp, 4
xor edi, edi
mov dword [ebp - 0x828], edi
push esi
push str.dwPID_:__d
call fcn.00404c20
add esp, 8
push esi
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x4136d5
push 0x47e758
call fcn.00404c20
add esp, 4
lea ecx, [ebp - 0x828]
push ecx
push 0xb
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebx, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp ebx, edi
je 0x4136d5
cmp dword [ebp - 0x828], edi
je 0x4136d5
push 0x47e75c
call fcn.00404c20
add esp, 4
xor eax, eax
mov dword [ebp - 0x83c], eax
mov dword [ebp - 0x838], eax
mov dword [ebp - 0x834], eax
mov dword [ebp - 0x830], eax
push 0x44
push edi
lea edx, [ebp - 0x888]
push edx
call fcn.004416b0
add esp, 0xc
mov dword [ebp - 0x888], 0x44
mov dword [ebp - 4], edi
mov dword [ebp - 4], 1
push 0x3ff
mov eax, dword [ebp - 0x824]
push eax
push 0x400
lea ecx, [ebp - 0x820]
push ecx
call fcn.0043e9ba
add esp, 0x10
mov dword [ebp - 0x824], edi
push 1
mov edx, dword [ebp - 0x828]
push edx
lea eax, [ebp - 0x824]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
cmp eax, edi
je 0x413693
push 0x47e760
call fcn.00404c20
add esp, 4
mov ecx, dword [ebp - 0x824]
push ecx
push str.szEnvBlock_:__s
call fcn.00404c20
add esp, 8
lea edx, [ebp - 0x83c]
push edx
lea eax, [ebp - 0x888]
push eax
push edi
mov ecx, dword [ebp - 0x824]
push ecx
push 0x8000400
push edi
push edi
push edi
lea edx, [ebp - 0x820]
push edx
push edi
mov eax, dword [ebp - 0x828]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
mov ecx, dword [ebp - 0x824]
push ecx
call sub.USERENV.dll_DestroyEnvironmentBlock
cmp ebx, edi
jne 0x413629
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.dwError_:__d
call fcn.00404c20
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x48e050
call fcn.00448450
add esp, 0x14
jmp 0x4136d5
cmp dword [ebp + 0xc], edi
je 0x41363d
push 0xffffffffffffffff
mov eax, dword [ebp - 0x83c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x82c]
push ecx
mov edx, dword [ebp - 0x83c]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x83c]
push eax
call esi
push 0xfffffffffffffffe
cmp dword [ebp - 0x82c], 0x80000000
jne 0x413680
lea ecx, [ebp - 0x10]
push ecx
push 0x48e050
call fcn.00448450
add esp, 0xc
mov eax, 1
jmp 0x4136d7
lea edx, [ebp - 0x10]
push edx
push 0x48e050
call fcn.00448450
add esp, 0xc
jmp 0x4136d5
mov dword [ebp - 4], edi
call fcn.004136b1
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x4136d7
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret