Function at 0x413890
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d18f
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x47ca80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x28], 0
cmp dword [ebp + 8], 0
jne 0x4138e0
xor eax, eax
jmp 0x413ba7
mov ecx, dword [ebp - 0x140]
call fcn.00412fa0
test eax, eax
jne 0x41390f
push 0x46519c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x4651b4
call fcn.00411940
add esp, 4
mov eax, dword [ebp - 0x28]
jmp 0x413ba7
mov eax, dword [ebp - 0x140]
mov ecx, dword [eax + 0x2c]
call ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x413943
push 0x4651cc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x4651f8
call fcn.00411940
add esp, 4
mov eax, dword [ebp - 0x28]
jmp 0x413ba7
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x140]
mov edx, dword [ecx + 0x48]
call edx
test eax, eax
jne 0x41397a
push 0x465224
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x465248
call fcn.00411940
add esp, 4
mov eax, dword [ebp - 0x28]
jmp 0x413ba7
lea eax, [ebp - 0x78]
push eax
push 1
push 1
push 0
push 0x2000000
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x140]
mov eax, dword [edx + 0x34]
call eax
test eax, eax
jne 0x413aaa
push 1
push 2
lea ecx, [ebp - 0xfc]
call fcn.00415490
mov dword [ebp - 4], 0
push 0x46526c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CVista:DuplicateTokenEx_Fail_err_
lea ecx, [ebp - 0xfc]
push ecx
call fcn.004181a0
add esp, 8
mov ecx, eax
call fcn.004150b0
push eax
call fcn.004181a0
add esp, 8
lea edx, [ebp - 0x11c]
push edx
lea ecx, [ebp - 0xfc]
call fcn.004155e0
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x148], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x148]
call fcn.00403230
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x11c]
call fcn.004031a0
lea ecx, [ebp - 0x138]
push ecx
lea ecx, [ebp - 0xfc]
call fcn.004155e0
mov dword [ebp - 0x14c], eax
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x150], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x150]
call fcn.00403230
push eax
call fcn.00411940
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x138]
call fcn.004031a0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.00415080
mov eax, dword [ebp - 0x13c]
jmp 0x413ba7
mov dword [ebp - 0x74], 0
push 0x40
push 0
lea edx, [ebp - 0x70]
push edx
call fcn.00440170
add esp, 0xc
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x6c], str.winsta0default
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x74]
push edx
push 0
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x140]
mov eax, dword [edx + 0x14]
call eax
test eax, eax
je 0x413b2b
mov dword [ebp - 0x28], 1
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413b90
lea ecx, [ebp - 0x100]
call fcn.00402f90
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4652a4
lea eax, [ebp - 0x100]
push eax
call fcn.00404400
add esp, 0xc
lea ecx, [ebp - 0x100]
call fcn.00403130
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x100]
call fcn.0040d4c0
push eax
call fcn.00411940
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x100]
call fcn.00403050
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4