Function at 0x409c70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 4
jb 0x409f22
cmp dword [ebp - 0x108], 2
jne 0x409f22
push esi
push 0
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.00408dd0
call fcn.00423c50
push 0x64
push 0x5826e0
push 0x66
push edi
mov dword [0x5826d0], edi
call dword [sym.imp.USER32.dll_LoadStringW]
push 0
push 0x4b8bf0
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x409d3d
push 0x30
push str.Warning
push str.A_previous_instance_of_UniKey_is_already_running._Look_for_UniKey_icon_at_the_bottom_right_of_the_screen.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push 0x9c42
push 0x111
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424790
mov esp, ebp
pop ebp
ret 0x10
push edi
call fcn.00408bf0
add esp, 4
test eax, eax
je 0x409d29
mov ecx, 0x5827a8
call fcn.0040f3c0
push edi
mov ecx, 0x582a28
call fcn.00409540
test eax, eax
je 0x409d29
cmp dword [ebp - 0x114], 6
ja 0x409d77
jne 0x409d85
cmp dword [ebp - 0x110], 2
jb 0x409d85
push dword [0x582a2c]
call fcn.00408c80
add esp, 4
push dword [0x582a2c]
call fcn.004099c0
add esp, 4
test eax, eax
je 0x409d29
call fcn.0041a960
cmp dword [0x5827a8], 0
je 0x409dbf
push 0
push 0x9c42
push 0x111
push dword [0x582a2c]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x409dc7
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x134]
push 0
push 0
push 0
push eax
call ebx
test eax, eax
je 0x409ee6
mov esi, dword [sym.imp.USER32.dll_IsWindow]
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageW]
mov eax, dword [0x583804]
mov eax, dword [eax + 4]
push dword [eax + 0x583808]
call esi
test eax, eax
je 0x409e24
lea eax, [ebp - 0x134]
push eax
mov eax, dword [0x583804]
mov eax, dword [eax + 4]
push dword [eax + 0x583808]
call edi
test eax, eax
jne 0x409ecf
mov eax, dword [0x583084]
mov eax, dword [eax + 4]
push dword [eax + 0x583088]
call esi
test eax, eax
je 0x409e57
lea eax, [ebp - 0x134]
push eax
mov eax, dword [0x583084]
mov eax, dword [eax + 4]
push dword [eax + 0x583088]
call edi
test eax, eax
jne 0x409ecf
mov eax, dword [0x583cd8]
mov eax, dword [eax + 4]
push dword [eax + 0x583cdc]
call esi
test eax, eax
je 0x409e86
lea eax, [ebp - 0x134]
push eax
mov eax, dword [0x583cd8]
mov eax, dword [eax + 4]
push dword [eax + 0x583cdc]
call edi
test eax, eax
jne 0x409ecf
mov eax, dword [0x5842bc]
mov eax, dword [eax + 4]
push dword [eax + 0x5842c0]
call esi
test eax, eax
je 0x409eb5
lea eax, [ebp - 0x134]
push eax
mov eax, dword [0x5842bc]
mov eax, dword [eax + 4]
push dword [eax + 0x5842c0]
call edi
test eax, eax
jne 0x409ecf
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x134]
push eax
call ebx
test eax, eax
jne 0x409df1
mov eax, dword [0x5826d8]
pop ebx
test eax, eax
je 0x409f0b
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0xffffffffffffffff
push dword [0x5826d4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424790
mov esp, ebp
pop ebp
ret 0x10
push 0x10
push str.Platform_not_supported
push str.This_version_runs_only_in_Windows_NT.40_2000_XP_only_nYou_can_download_UniKey_running_on_all_Windows_platforms_at_http:__unikey.org
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
pop edi
call fcn.00424790
mov esp, ebp
pop ebp
ret 0x10