Function at 0x10012d90
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x1004e611
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10062da0]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xd8]
xor edi, edi
mov esi, ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
call fcn.10012670
test eax, eax
jne 0x10012df5
push str.Vista:Init_Func_Fail_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, str.Vista:Init_Func_Fail_
call fcn.10011e30
xor eax, eax
jmp 0x10013091
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x10012e2b
push str.CVista:ProcessIdToSessionId_Fail__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, str.CVista:ProcessIdToSessionId_Fail__n
call fcn.10011e30
xor eax, eax
jmp 0x10013091
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 0x48]
lea ecx, [esp + 0x1c]
push ecx
push edx
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test eax, eax
jne 0x10012f73
call fcn.10025867
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x10012e62
push 0x80004005
call fcn.10002d80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0xd0], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x20]
push str.Vista:WTSQueryUserToken_Fail
push edx
call fcn.100027b0
mov esi, dword [esp + 0x28]
add esp, 0x10
push esi
call ebx
cmp dword [esi - 4], 1
jle 0x10012eb5
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.10002a10
mov esi, dword [esp + 0x18]
mov edi, esi
call fcn.10011e30
lea ecx, [esp + 0x1c]
push ecx
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp + 0x30]
push eax
call edx
test eax, eax
jne 0x10012f15
push str.CVista:OpenProcessToken_Fail__r_n
call ebx
mov edi, str.CVista:OpenProcessToken_Fail__r_n
call fcn.10011e30
lea eax, [esi - 0x10]
mov dword [esp + 0xd0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10012f0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x10013091
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x34]
lea ecx, [esp + 0x24]
push ecx
push 1
push 1
push 0
push 0x2000000
push edx
call eax
test eax, eax
jne 0x10012f5f
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.CVista:DuplicateTokenEx_Fail__r_n
call ebx
mov edi, str.CVista:DuplicateTokenEx_Fail__r_n
call fcn.10011e30
lea ecx, [esp + 0x18]
call fcn.10002d60
xor eax, eax
jmp 0x10013091
lea ecx, [esp + 0x18]
mov dword [esp + 0xd0], 0xffffffff
call fcn.10002d60
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0xdc]
push edx
mov ecx, ebp
call fcn.10012c80
test eax, eax
jne 0x10012fad
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.CVista:GetCurrentLogonUserName_Fail__r_n
call ebx
mov edi, str.CVista:GetCurrentLogonUserName_Fail__r_n
call fcn.10011e30
xor eax, eax
jmp 0x10013091
lea ecx, [esp + 0x44]
push ecx
call fcn.10009b20
push esi
push ecx
push 0x10059064
push ecx
mov dword [esp + 0xe0], 1
mov edx, dword [esp + 0x30]
push edx
push ecx
lea eax, [esp + 0x5c]
push 0x10059078
push eax
call fcn.1000a720
add esp, 0xc
push eax
call fcn.100130b0
add esp, 4
push eax
call fcn.1000a720
add esp, 0xc
push eax
call fcn.1000a720
add esp, 8
lea ecx, [esp + 0x28]
lea eax, [esp + 0x44]
call fcn.10009c20
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x10013019
mov eax, dword [eax + 4]
jmp 0x1001301c
add eax, 4
push eax
call ebx
lea ecx, [esp + 0x28]
call fcn.100025e0
lea ecx, [esp + 0x28]
lea eax, [esp + 0x44]
call fcn.10009c20
mov byte [esp + 0xd0], 2
cmp dword [eax + 0x18], esi
jb 0x10013047
mov eax, dword [eax + 4]
jmp 0x1001304a
add eax, 4
mov edi, eax
call fcn.10011e30
lea ecx, [esp + 0x28]
call fcn.100025e0
lea ecx, [esp + 0x90]
mov dword [esp + 0xd0], 0xffffffff
call fcn.10009bb0
lea ecx, [esp + 0x90]
push ecx
mov dword [esp + 0x94], vtable.std::ios_base.0
call fcn.1004b9f4
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret 8