Function at 0x14000b160
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [0x140115740]
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 0x14000b479
cmp dword [rsp + 0x60], 2
jne 0x14000b479
xor ecx, ecx
mov qword [rsp + 0x198], rdi
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.14000a190
call fcn.140025820
mov r9d, 0x64
mov qword [0x1401217e0], rbx
lea r8, [0x140121800]
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 0x14000b261
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.1400265c0
add rsp, 0x180
pop rbx
ret
mov rcx, rbx
call fcn.140009fd0
test eax, eax
je 0x14000b23e
lea rcx, [0x1401218e0]
call fcn.140011430
mov rdx, rbx
lea rbx, [0x140121b60]
mov rcx, rbx
call fcn.14000a890
test eax, eax
je 0x14000b23e
mov eax, dword [rsp + 0x54]
cmp eax, 6
ja 0x14000b2a1
jne 0x14000b2ad
cmp dword [rsp + 0x58], 2
jb 0x14000b2ad
mov rcx, qword [0x140121b68]
call fcn.14000a070
mov rcx, qword [0x140121b68]
call fcn.14000ae60
test eax, eax
je 0x14000b23e
call fcn.14001ca80
cmp dword [0x1401218e0], 0
je 0x14000b2e8
mov rcx, qword [0x140121b68]
xor r9d, r9d
mov edx, 0x111
mov r8d, 0x9c42
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x14000b2f1
or 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 0x14000b445
nop dword [rax]
mov rax, qword [0x140122b20]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rbx + 0xfc8]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14000b353
mov rax, qword [0x140122b20]
lea rdx, [rsp + 0x20]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rbx + 0xfc8]
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x14000b42a
mov rax, qword [0x1401221f0]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rbx + 0x698]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14000b396
mov rax, qword [0x1401221f0]
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 0x14000b42a
mov rax, qword [0x140123110]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rbx + 0x15b8]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14000b3d5
mov rax, qword [0x140123110]
lea rdx, [rsp + 0x20]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rbx + 0x15b8]
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x14000b42a
mov rax, qword [0x140123810]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rbx + 0x1cb8]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14000b414
mov rax, qword [0x140123810]
lea rdx, [rsp + 0x20]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rbx + 0x1cb8]
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x14000b42a
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 0x14000b310
mov ecx, dword [0x1401217f0]
test ecx, ecx
je 0x14000b46f
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x12]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov rcx, qword [0x1401217e8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
jmp 0x14000b240
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]
or eax, 0xffffffff
jmp 0x14000b248