Function at 0x42b890
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492bbb
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x4ba920]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push 0x208
lea ecx, [ebp - 0x218]
push ebx
push ecx
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x228], ebx
call fcn.00461130
add esp, 0xc
push esi
push 0x208
lea edx, [ebp - 0x218]
push edx
call fcn.0042b7d0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 1
push edi
lea ecx, [ebp - 0x21c]
push ecx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x224], 0xc0000
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x42b945
mov dword [ebp - 0x224], 0xc0400
jmp 0x42b94b
mov dword [ebp - 0x21c], ebx
xor eax, eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], 0xffffffff
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x250], ebx
push 0x44
lea edx, [ebp - 0x294]
push ebx
push edx
mov dword [ebp - 4], ebx
call fcn.00461130
add esp, 0xc
push 0x4994fc
mov dword [ebp - 0x298], 0x48
mov dword [ebp - 0x290], str.winsta0default
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
cmp esi, ebx
je 0x42bab4
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitializeProcThreadAttributeList
push esi
call ebx
push str.UpdateProcThreadAttribute
push esi
mov edi, eax
call ebx
mov esi, eax
test edi, edi
je 0x42bab4
test esi, esi
je 0x42bab4
lea eax, [ebp - 0x220]
push eax
push 0
push 1
push 0
call edi
test eax, eax
jne 0x42ba05
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42bab4
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x42bab4
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42bab4
lea ecx, [ebp - 0x220]
push ecx
push 0
push 1
push eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x254], eax
call edi
test eax, eax
je 0x42bab4
mov eax, dword [ebp - 0x254]
push 0
push 0
push 4
lea edx, [ebp - 0x238]
push edx
push 0x2000b
push 0
push eax
call esi
test eax, eax
je 0x42bab4
lea ecx, [ebp - 0x248]
push ecx
mov ecx, dword [ebp - 0x21c]
lea edx, [ebp - 0x298]
push edx
mov edx, dword [ebp - 0x224]
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x22c]
push ecx
mov ecx, dword [ebp - 0x234]
push edx
mov edx, dword [ebp - 0x230]
push 0
push 0
push 0
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x42bac5
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov edi, dword [ebp - 0x228]
test edi, edi
je 0x42bae7
mov eax, dword [ebp - 0x244]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x248]
push ecx
call esi
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x42bb01
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046111a
mov esp, ebp
pop ebp
ret