Function at 0x403200
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
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 0x403237
push str.GetProductInfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403230
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
push 0x40
push eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x64]
push eax
call fcn.0049eae0
add esp, 0xc
test bl, bl
je 0x40340c
push 0
mov edi, 0x3000
push str.Progman
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x403289
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push eax
call fcn.004030b0
add esp, 8
test eax, eax
js 0x40346d
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.004030b0
mov esi, eax
add esp, 8
test esi, esi
js 0x40346b
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x403453
cmp dword [ebp - 8], 0x2000
jne 0x403408
mov edx, dword [ebp - 4]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x403408
lea eax, [ebp - 0x14]
push eax
push 0xf01ff
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4033eb
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
push 1
push 2
push 0
push 0xf01ff
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x40333c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40333a
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x4033c9
push str.AdvApi32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4033a3
push str.CreateProcessWithTokenW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4033a3
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x68]
push edx
mov edx, dword [ebp + 8]
push 0
push 0
push 0
push ecx
mov ecx, dword [ebp - 0x10]
push edx
push 0
push ecx
call eax
test eax, eax
jne 0x4033a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x403395
mov esi, eax
jmp 0x4033a8
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x4033a8
mov esi, 0x8000ffff
test edi, edi
je 0x4033b3
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403401
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4033dd
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403401
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4033ff
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
js 0x40346b
cmp dword [ebp - 0x1c], 0
jne 0x40346b
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x68]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40346b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40346d
pop edi
and eax, 0xffff
pop esi
or eax, 0x80070000
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x2000
jne 0x403408
cmp dword [ebp - 8], edi
jne 0x403408
pop edi
pop esi
mov eax, 0x80070005
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret