Function at 0x18004b330
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x180106010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, rcx
xor r12d, r12d
mov edi, r12d
mov rcx, qword [rcx]
test rcx, rcx
je 0x18004b5be
lea rdx, [0x1800d3030]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.RegQueryValueExW
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
lea rdx, [0x1800d3058]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test r15, r15
je 0x18004b5be
test r14, r14
je 0x18004b5be
test rax, rax
je 0x18004b5be
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x31], r12
mov edx, 0x20019
lea rcx, [rbp - 0x19]
call fcn.18005d790
mov rcx, rax
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.Keyboard_LayoutPreload
call r15
test eax, eax
jne 0x18004b45d
xor eax, eax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov dword [rbp + 0x27], eax
mov dword [rbp - 0x21], 0x14
lea rax, [rbp - 0x21]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x17]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1800d5da8]
mov rcx, qword [rbp - 0x31]
call r14
test eax, eax
jne 0x18004b457
xor edx, edx
lea r8d, [r12 + 0x10]
lea rcx, [rbp + 0x17]
call fcn.18008ee9c
mov edi, eax
mov rcx, qword [rbp - 0x31]
call rbx
mov rbx, qword [rbp - 0x19]
test rbx, rbx
je 0x18004b473
lea rcx, [rbp - 0x19]
call fcn.18005d8d0
mov rbx, qword [rbp - 0x19]
test edi, edi
je 0x18004b5ac
mov rcx, qword [rsi]
test rcx, rcx
je 0x18004b5ac
lea rdx, [0x1800d3030]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.RegQueryValueExW
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
lea rdx, [0x1800d3058]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test r15, r15
je 0x18004b5ac
test r14, r14
je 0x18004b5ac
test rax, rax
je 0x18004b5ac
mov qword [rbp - 0x11], r12
mov qword [rbp - 0x11], r12
mov qword [rbp - 0x29], r12
mov edx, 0x20019
lea rcx, [rbp - 0x11]
call fcn.18005d790
mov rcx, rax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.Keyboard_LayoutSubstitutes
call r15
test eax, eax
je 0x18004b59b
lea rcx, [rbp - 9]
call fcn.180005bfc
nop
mov r8d, edi
lea rdx, str._08x
lea rcx, [rbp - 9]
call fcn.180055100
xor eax, eax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov dword [rbp + 0x27], eax
mov dword [rbp - 0x21], 0x14
lea rcx, [rbp - 9]
call fcn.180005be4
mov rdx, rax
lea rax, [rbp - 0x21]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x17]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp - 0x29]
call r14
test eax, eax
jne 0x18004b58a
xor edx, edx
lea r8d, [rax + 0x10]
lea rcx, [rbp + 0x17]
call fcn.18008ee9c
mov edi, eax
mov rcx, qword [rbp - 0x29]
call rsi
nop
lea rcx, [rbp - 9]
call fcn.180005bf4
nop
cmp qword [rbp - 0x11], 0
je 0x18004b5ac
lea rcx, [rbp - 0x11]
call fcn.18005d8d0
nop
test rbx, rbx
je 0x18004b5ba
lea rcx, [rbp - 0x19]
call fcn.18005d8d0
mov eax, edi
jmp 0x18004b5c0
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.180086280
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret