Function at 0x419ed0
Capabilities:
Get keyboard layout

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 0x48e498
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
push esi
push edi
mov eax, dword [0x4bf454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov ecx, dword [esi + 0x28c]
lea eax, [ebp - 0x5c]
push eax
call fcn.004032e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
push 9
mov ecx, eax
call fcn.0041c970
mov eax, dword [ebp - 0x3c]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov eax, dword [ebp - 0x3c]
mov word [eax + 0x10], 0
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
jne 0x419f84
mov eax, dword [ebp - 0x3c]
mov ecx, 0x3f
mov word [eax], cx
mov eax, dword [ebp - 0x3c]
mov word [eax + 2], cx
mov eax, dword [ebp - 0x3c]
mov word [eax + 4], cx
xorps xmm0, xmm0
mov dword [ebp - 0x80], vtable.Rect.0
movups xmmword [ebp - 0x7c], xmm0
lea eax, [esi + 0x1a0]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x28]
call fcn.0044c870
mov byte [ebp - 4], 3
mov ecx, dword [esi + 0x214]
mov eax, dword [esi + 0x218]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x74], ecx
lea ecx, [esi + 0x1bc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x70], eax
mov eax, dword [ecx]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov eax, dword [eax + 0x60]
call eax
movzx eax, al
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
call fcn.0044c890
lea ecx, [ebp - 0x4c]
call fcn.0044cc70
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0x60]
push eax
call fcn.00454b40
mov edi, eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 5
mov ecx, dword [esi + 0x60]
push eax
call fcn.00454bc0
mov esi, eax
mov byte [ebp - 4], 6
mov ecx, edi
push dword [ebp - 0x3c]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.00426960
push eax
mov ecx, esi
call fcn.00426960
push eax
lea ecx, [ebp - 0x5c]
call fcn.00426960
push eax
push 0x8d
call fcn.0044dc60
add esp, 4
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0044d0b0
add esp, 0x24
lea ecx, [ebp - 0x30]
call fcn.0044cd00
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.0044cd00
mov esi, dword [ebp - 0x20]
push 0x40
push 0x8b
mov esi, dword [esi + 4]
call fcn.0044dc60
add esp, 4
lea ecx, [ebp - 0x4c]
push eax
call fcn.00426960
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x4c]
call fcn.0044cd00
mov edx, dword [ebp - 0x3c]
test edx, edx
je 0x41a0e7
mov ecx, dword [ebp - 0x34]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x41a0c8
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a103
push ecx
push edx
call fcn.00464d6f
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x5c]
call fcn.0044cd00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004715c1
int3