Function at 0x4a2fc0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69a118
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x748068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
xor esi, esi
test eax, eax
je 0x4a31fb
push 0x6dd928
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegQueryValueExW
push dword [edi]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6dd94c
push dword [edi]
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], esi
je 0x4a31fb
cmp dword [ebp - 0x54], esi
je 0x4a31fb
test eax, eax
je 0x4a31fb
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x58]
push eax
push 0x20019
push esi
push str.Keyboard_LayoutPreload
push 0x20019
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x58], esi
call fcn.0044d8f0
push eax
call dword [ebp - 0x2c]
test eax, eax
jne 0x4a30c6
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x14
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push 0x6cccb0
push dword [ebp - 0x58]
movups xmmword [ebp - 0x28], xmm0
call dword [ebp - 0x54]
test eax, eax
jne 0x4a30c0
push 0x10
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.006695f7
add esp, 0xc
mov esi, eax
push dword [ebp - 0x58]
call dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
call fcn.0044da90
test esi, esi
je 0x4a31e8
mov eax, dword [edi]
test eax, eax
je 0x4a31e8
push 0x6dd928
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegQueryValueExW
push dword [edi]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6dd94c
push dword [edi]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 0x30], 0
mov edi, eax
je 0x4a31e8
cmp dword [ebp - 0x38], 0
je 0x4a31e8
test edi, edi
je 0x4a31e8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x54]
push eax
push 0x20019
push 0
push str.Keyboard_LayoutSubstitutes
push 0x20019
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x54], 0
call fcn.0044d8f0
push eax
call dword [ebp - 0x30]
test eax, eax
je 0x4a31dc
lea ecx, [ebp - 0x50]
call fcn.00405d80
mov byte [ebp - 4], 2
lea eax, [ebp - 0x50]
push esi
push str._08x
push eax
call fcn.004304b0
add esp, 0xc
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x14
xorps xmm0, xmm0
lea ecx, [ebp - 0x50]
movups xmmword [ebp - 0x28], xmm0
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0
call fcn.00405ca0
push eax
push dword [ebp - 0x54]
call dword [ebp - 0x38]
test eax, eax
jne 0x4a31cb
push 0x10
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.006695f7
add esp, 0xc
mov esi, eax
push dword [ebp - 0x54]
call edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00405ce0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0044da90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0044da90
mov eax, esi
jmp 0x4a31fd
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0064fb08
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret