Function at 0x14000b490
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [0x1401cb558]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rbx, rcx
mov dword [rsp + 0x50], 0x114
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x54], 4
jb 0x14000b7ab
cmp dword [rsp + 0x60], 2
jne 0x14000b7ab
xor ecx, ecx
mov qword [rsp + 0x198], rdi
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.14000a480
call fcn.140029ad0
mov r9d, 0x64
mov qword [0x1401d7780], rbx
lea r8, [0x1401d77a0]
mov rcx, rbx
lea edx, [r9 + 2]
call qword [sym.imp.USER32.dll_LoadStringW]
xor edx, edx
lea rcx, str.UniKey_MainWnd
call qword [sym.imp.USER32.dll_FindWindowW]
mov rdi, rax
test rax, rax
je 0x14000b591
mov r9d, 0x30
lea r8, str.Warning
lea rdx, str.A_previous_instance_of_UniKey_is_already_running._Look_for_UniKey_icon_at_the_bottom_right_of_the_screen.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rdi
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
xor r9d, r9d
mov edx, 0x111
mov r8d, 0x9c42
mov rcx, rdi
call qword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
mov rdi, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14002a970
add rsp, 0x180
pop rbx
ret
mov rcx, rbx
call fcn.14000a2a0
test eax, eax
je 0x14000b56e
lea rcx, [0x1401d7870]
call fcn.140011a70
mov rdx, rbx
lea rbx, [0x1401d7af0]
mov rcx, rbx
call fcn.14000ab80
test eax, eax
je 0x14000b56e
cmp dword [rsp + 0x54], 6
ja 0x14000b5cf
jne 0x14000b5db
cmp dword [rsp + 0x58], 2
jb 0x14000b5db
mov rcx, qword [0x1401d7af8]
call fcn.14000a360
mov rcx, qword [0x1401d7af8]
call fcn.14000b190
test eax, eax
je 0x14000b56e
call fcn.14001f0a0
cmp dword [0x1401d7870], 0
je 0x14000b616
mov rcx, qword [0x1401d7af8]
xor r9d, r9d
mov edx, 0x111
mov r8d, 0x9c42
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x14000b621
mov ecx, 0xffffffff
call qword [sym.imp.USER32.dll_MessageBeep]
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x14000b775
nop dword [rax]
mov rax, qword [0x1401d8ab8]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rbx + 0xfd0]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14000b683
mov rax, qword [0x1401d8ab8]
lea rdx, [rsp + 0x20]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rbx + 0xfd0]
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x14000b75a
mov rax, qword [0x1401d8180]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rbx + 0x698]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14000b6c6
mov rax, qword [0x1401d8180]
lea rdx, [rsp + 0x20]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rbx + 0x698]
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x14000b75a
mov rax, qword [0x1401d90a8]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rbx + 0x15c0]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14000b705
mov rax, qword [0x1401d90a8]
lea rdx, [rsp + 0x20]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rbx + 0x15c0]
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x14000b75a
mov rax, qword [0x1401d97a8]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rbx + 0x1cc0]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14000b744
mov rax, qword [0x1401d97a8]
lea rdx, [rsp + 0x20]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rbx + 0x1cc0]
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x14000b75a
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x14000b640
mov ecx, dword [0x1401d7790]
test ecx, ecx
je 0x14000b7a1
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x12]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov rcx, qword [0x1401d7788]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
jmp 0x14000b570
mov r9d, 0x10
lea r8, str.Platform_not_supported
lea rdx, 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
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0xffffffff
jmp 0x14000b578