Function at 0x401270
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
push esi
push edi
push str.Kernel32
xor esi, esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4012aa
push str.GetProductInfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4012a3
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
push 0x40
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x3c]
push eax
call fcn.00405fd0
add esp, 0xc
test bl, bl
je 0x401496
push 0
mov edi, 0x3000
push str.Progman
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x401306
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00401120
add esp, 8
test eax, eax
js 0x4014f9
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00401120
mov esi, eax
add esp, 8
test esi, esi
js 0x4014f7
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x4014de
cmp dword [esp + 0x10], 0x2000
jne 0x401492
mov edx, dword [esp + 0xc]
push edx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x401492
lea eax, [esp + 0x1c]
push eax
push 0xf01ff
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401475
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push 1
push 2
push 0
push 0xf01ff
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x4013c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4013c0
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x401452
push str.AdvApi32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40142a
push str.CreateProcessWithTokenW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40142a
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x20]
push 0
push 0
push 0
push ecx
push 0
push 0
push edx
call eax
test eax, eax
jne 0x40142f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x40141c
mov esi, eax
jmp 0x40142f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x40142f
mov esi, 0x8000ffff
test edi, edi
je 0x40143a
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40148b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x401466
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [esp + 0x1c]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40148b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x401489
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
js 0x4014f7
cmp dword [esp + 0x28], 0
jne 0x4014f7
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4014f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4014f9
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x2000
jne 0x401492
cmp dword [esp + 0x10], edi
jne 0x401492
mov eax, 0x80070005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret