Function at 0x140088400
Capabilities:
Get keyboard layout

Disassembly:
mov rax, rsp
push rbp
sub rsp, 0x260
mov qword [rax + 8], rbx
mov rbp, rcx
mov qword [rax + 0x10], rsi
xor ecx, ecx
mov qword [rax + 0x18], rdi
mov rbx, r9
mov qword [rax - 0x10], r14
mov rdi, rdx
mov r14, r8
xor sil, sil
call qword [sym.imp.ole32.dll_CoInitialize]
xor edx, edx
lea rax, [rsp + 0x30]
lea r9, [0x140106230]
mov qword [rsp + 0x20], rax
lea rcx, [0x140106240]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400886d6
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
mov qword [rsp + 0x250], r15
mov rax, qword [rcx]
call qword [rax + 0xa0]
cmp word [rbx], 0
je 0x14008848b
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rdx, qword [rsp + 0x290]
cmp word [rdx], 0
je 0x1400884a4
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x58]
mov rdx, qword [rsp + 0x298]
cmp word [rdx], 0
je 0x1400884bd
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + gethostname]
mov rbx, qword [rsp + 0x2b0]
xor edi, edi
mov r15d, 0xffdf
movzx eax, word [rbx]
test ax, ax
je 0x14008854a
mov rcx, rbx
cmp ax, 0x20
je 0x1400884e4
cmp ax, 9
jne 0x1400884ee
movzx eax, word [rcx + 2]
add rcx, 2
jmp 0x1400884d8
test ax, ax
je 0x14008853d
cmp ax, 0x2d
je 0x1400884ff
cmp ax, 0x2b
jne 0x140088509
lea rax, [rcx + 2]
mov rcx, rax
movzx eax, word [rax]
cmp ax, 0x30
jne 0x14008853d
movzx eax, word [rcx + 2]
sub ax, 0x58
test r15w, ax
jne 0x14008853d
movzx ecx, word [rcx + 4]
call fcn.1400ea440
test eax, eax
je 0x14008853d
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x10]
call fcn.1400ea654
mov r8d, eax
jmp 0x14008854d
mov rcx, rbx
call fcn.1400e9e88
mov r8d, eax
jmp 0x14008854d
mov r8d, edi
mov rdx, qword [rsp + 0x2a0]
cmp word [rdx], di
je 0x140088572
mov rcx, qword [rsp + 0x30]
test r8d, r8d
setg dil
sub r8d, edi
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rbx, qword [rsp + 0x2a8]
cmp word [rbx], 0
je 0x1400885b5
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.14001b4d0
test al, al
je 0x1400885b5
mov rcx, qword [rsp + 0x30]
movzx edx, al
mov eax, 0x600
or dx, ax
mov r8, qword [rcx]
call qword [r8 + 0x68]
mov rbx, qword [rsp + 0x2b8]
movzx edx, word [rbx]
test dx, dx
je 0x14008864c
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x78]
mov rcx, rbx
cmp dx, 0x20
je 0x1400885e4
cmp dx, 9
jne 0x1400885ee
movzx edx, word [rcx + 2]
add rcx, 2
jmp 0x1400885d8
test dx, dx
je 0x14008863b
cmp dx, 0x2d
je 0x1400885ff
cmp dx, 0x2b
jne 0x14008860a
movzx edx, word [rcx + 2]
lea rax, [rcx + 2]
mov rcx, rax
cmp dx, 0x30
jne 0x14008863b
movzx eax, word [rcx + 2]
sub ax, 0x58
test r15w, ax
jne 0x14008863b
movzx ecx, word [rcx + 4]
call fcn.1400ea440
test eax, eax
je 0x14008863b
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x10]
call fcn.1400ea654
jmp 0x140088643
mov rcx, rbx
call fcn.1400e9e88
mov rcx, qword [rsp + 0x30]
mov edx, eax
call rdi
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [0x140106250]
mov rax, qword [rcx]
call qword [rax]
mov r15, qword [rsp + 0x250]
test eax, eax
js 0x1400886cb
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
js 0x1400886c0
mov rcx, qword [0x14014a3b0]
lea rdx, [0x14010d31c]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
mov sil, 1
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov r14, qword [rsp + 0x258]
test sil, sil
mov rsi, qword [rsp + 0x278]
mov rdi, qword [rsp + 0x280]
mov rbx, qword [rsp + 0x270]
je 0x14008870f
mov eax, 1
add rsp, 0x260
pop rbp
ret
mov rax, qword [0x140145a80]
lea rdx, [0x14012296c]
test byte [rax + 0x140], 1
jne 0x140088747
mov rcx, qword [0x14014a3b0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
add rsp, 0x260
pop rbp
ret
lea r9, [0x14010d28c]
xor r8d, r8d
mov rcx, rbp
call fcn.140050010
add rsp, 0x260
pop rbp
ret