Function at 0x4025f0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
sub esp, 0x280
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x89]
mov byte [esp + 0x88], bl
mov byte [esp + 0x18c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x18d]
mov dword [esp + 0x44], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x48]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll___p___argv]
mov eax, dword [eax]
or ecx, 0xffffffff
lea edx, [esp + 0x88]
push 0x5c
mov edi, dword [eax]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x8c]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov byte [eax + 1], bl
mov edi, str.NscAuth.exe
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x90]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x90]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403e50
mov eax, dword [0x4068b4]
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x70], 0x101
mov word [esp + 0x74], bx
je 0x4027f8
cmp dword [0x4068b8], ebx
je 0x4027f8
push str.Active_session
call fcn.00403e50
add esp, 4
call dword [0x4068b4]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [0x4068b8]
test eax, eax
jne 0x402761
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x190]
push 0x4062d0
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x198]
push eax
push 0xc00003eb
call fcn.00401f60
push str.WTSQueryUserToken_
push 0xc00003eb
call fcn.00401f60
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x280
ret
lea ecx, [esp + 0x14]
lea edx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ebx
push ebx
push 0x8000000
push ebx
push ebx
lea eax, [esp + 0xa4]
push ebx
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4027b3
mov edx, dword [esp + 0x18]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x280
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x28]
push 0x406288
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x30]
push edx
push 0xc00003eb
call fcn.00401f60
lea eax, [esp + 0x38]
push eax
call fcn.00403e50
mov ecx, dword [esp + 0x28]
add esp, 0x18
push ecx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x280
ret
lea edx, [esp + 0x14]
lea eax, [esp + 0x44]
push edx
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
lea ecx, [esp + 0xa4]
push ebx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40283e
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x280
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x28]
push 0x406264
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x30]
push edx
push 0xc00003eb
call fcn.00401f60
lea eax, [esp + 0x38]
push eax
call fcn.00403e50
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x280
ret