Function at 0x40aad0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x432b66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x480
push ebx
push ebp
mov ebp, dword [esp + 0x498]
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x104
xor eax, eax
lea edi, [esp + 0x7e]
mov word [esp + 0x7c], bx
cmp ebp, ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
je 0x40ad63
mov ecx, esi
call fcn.0040a820
test eax, eax
jne 0x40ab35
push str.Vista:
jmp 0x40ad5d
lea eax, [esp + 0x14]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [esi + 0x30]
test eax, eax
jne 0x40ab57
push str.CVista:OpenProcessToken_Fail__r_n
jmp 0x40ad5d
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 1
push 1
push ebx
push 0x2000000
push edx
call dword [esi + 0x34]
test eax, eax
jne 0x40ab87
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.CVista:DuplicateTokenEx_Fail__r_n
jmp 0x40ad5d
call dword [esi + 0x2c]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push 4
push ecx
push 0xc
push edx
mov dword [esp + 0x44], eax
call dword [esi + 0x38]
test eax, eax
jne 0x40ac05
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov edx, dword [0x43ee7c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x498], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x1c]
push str.CVista:SetTokenInformation_fail__d_r_n
push eax
call fcn.00424b8d
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x18]
mov dword [esp + 0x498], 0xffffffff
call fcn.00425dde
jmp 0x40ad63
xor edx, edx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x38]
mov dword [esp + 0x24], edx
push ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], edx
push eax
push ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x4c], str.WinSta0Default
mov dword [esp + 0x28], ebx
call dword [esi + 0x3c]
test eax, eax
je 0x40ad44
lea edx, [esp + 0x7c]
push 0x208
push edx
push 0xffffffffffffffff
push ebp
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x38]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push ebx
push edx
push 0x430
push ebx
push ebx
lea eax, [esp + 0x98]
push ebx
push eax
push ebx
push ecx
call dword [esi + 0x44]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40acda
mov eax, dword [esp + 0x4a4]
mov ebp, 1
cmp eax, ebx
je 0x40acca
mov edx, dword [esp + 0x24]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x4a8]
cmp eax, ebx
je 0x40acca
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x24]
push ecx
call edi
mov edx, dword [esp + 0x28]
push edx
call edi
jmp 0x40ad2a
mov eax, dword [0x43ee7c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x498], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x24]
push str.CVista:CreateProcessAsUser_fail__d_r_n
push ecx
call fcn.00424b8d
mov edx, dword [esp + 0x2c]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x20]
mov dword [esp + 0x498], 0xffffffff
call fcn.00425dde
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push eax
call dword [esi + 0x40]
mov ecx, dword [esp + 0x14]
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call edi
mov eax, ebp
jmp 0x40ad65
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
push str.CVista:CreateEnvironmentBlock_Fail__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
mov ecx, dword [esp + 0x490]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48c
ret 0xc