Function at 0x416970
Capabilities:
Check os version
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x663a90]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea ecx, [esp + 8]
push esi
push edi
push ebx
mov dword [esp + 0x14], 0
call fcn.004035d0
mov dword [esp + 0x54], 0xffffffff
call fcn.00493650
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edi, eax
lea eax, [esp + 0x58]
mov dword [esp + 0x58], 0x11c
push eax
call esi
test eax, eax
jne 0x4169d9
lea eax, [esp + 0x58]
mov dword [esp + 0x58], 0x114
push eax
call esi
cmp dword [esp + 0x5c], 6
jb 0x416a65
test edi, edi
jne 0x416a65
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], edi
jl 0x416a28
push str._ElevPri
push eax
call fcn.005a26c4
add esp, 8
test eax, eax
je 0x416a28
sub eax, dword [esp + 0x10]
sar eax, 1
cmp eax, 0xffffffff
je 0x416a28
push edi
push 0x63bf48
push 0x63bf50
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esi, [edi + 1]
jmp 0x416b7a
push 0x208
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.005a2d80
add esp, 0xc
lea eax, [esp + 0x58]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
sub esp, 0x10
lea eax, [esp + 0x68]
push eax
call fcn.0049a6f0
mov esi, 1
jmp 0x416b7a
push str.CMainFrame::GetInstance_____tWinMain_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 8
push eax
mov dword [esp + 0x1c], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
sub esp, 0xc
call fcn.00416e50
push 0x38
lea eax, [esp + 0x20]
push 0
push eax
call fcn.005a2d80
mov esi, dword [0x681a50]
lea eax, [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x1c], vtable.WTL::CMessageLoop.0
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
add esi, 0x10
mov dword [esp + 0x34], 0
movups xmmword [esp + 0x20], xmm0
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x6818b4]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00416d80
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ecx
lea edx, [esp + 0x20]
mov ecx, ebx
call fcn.004167e0
add esp, 4
call fcn.00416ce0
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.00414560
mov ecx, eax
call fcn.00465070
mov eax, dword [esp + 0x2c]
xor esi, esi
test eax, eax
je 0x416b55
push eax
call fcn.005a65e4
add esp, 4
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
test eax, eax
je 0x416b72
push eax
call fcn.005a65e4
add esp, 4
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x416b96
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esp + 0x264]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00589cd3
mov esp, ebp
pop ebp
ret 0x10