Function at 0x41e8e0
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 0x499538
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
push esi
push edi
mov eax, dword [0x4cc06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov ecx, dword [edi + 0x290]
lea eax, [ebp - 0x58]
push eax
call fcn.00403f40
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
push 9
mov ecx, eax
call fcn.004217f0
mov eax, dword [ebp - 0x38]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov eax, dword [ebp - 0x38]
mov word [eax + 0x10], 0
push dword [ebp - 0x38]
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
jne 0x41e994
mov eax, dword [ebp - 0x38]
mov ecx, 0x3f
mov word [eax], cx
mov eax, dword [ebp - 0x38]
mov word [eax + 2], cx
mov eax, dword [ebp - 0x38]
mov word [eax + 4], cx
xorps xmm0, xmm0
mov dword [ebp - 0x7c], vtable.Rect.0
movups xmmword [ebp - 0x78], xmm0
mov byte [ebp - 4], 2
lea esi, [edi + 0x1a0]
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x24], vtable.AutoLock.0
mov dword [ebp - 0x20], esi
call dword [eax + 4]
mov byte [ebp - 4], 3
mov ecx, dword [edi + 0x214]
mov eax, dword [edi + 0x218]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x70], ecx
lea ecx, [edi + 0x1bc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x6c], eax
mov eax, dword [ecx]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov eax, dword [eax + 0x60]
call eax
movzx edi, al
mov byte [ebp - 4], 4
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
mov dword [ebp - 0x48], vtable.StringStorage.0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 5
push eax
push 1
mov ecx, eax
call fcn.004217f0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4b0eac
push ecx
call fcn.00473660
add esp, 0xc
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 6
push eax
mov ecx, dword [ecx + 0x60]
call fcn.00440270
mov esi, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], vtable.StringStorage.0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov ecx, dword [eax + 0x60]
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 8
push dword [ecx + 0x4d8]
lea ecx, [ebp - 0x2c]
call fcn.0043a270
mov byte [ebp - 4], 9
push dword [ebp - 0x38]
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [esi + 4]
push dword [ebp - 0x28]
push dword [ebp - 0x54]
push ecx
mov ecx, 0x8d
call fcn.0043a890
add esp, 4
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0043a670
mov byte [ebp - 4], 7
add esp, 0x24
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], vtable.StringStorage.0
test ecx, ecx
je 0x41eb1e
mov eax, dword [ebp - 0x20]
sub eax, ecx
sar eax, 1
lea edx, [eax + eax]
mov eax, ecx
cmp edx, 0x1000
jb 0x41eaff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ec6b
push edx
push ecx
call fcn.00471b16
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x68], vtable.StringStorage.0
test edx, edx
je 0x41eb60
mov ecx, dword [ebp - 0x5c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x41eb56
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ec70
push ecx
push edx
call fcn.00471b16
add esp, 8
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x44]
push 0x40
push ecx
mov edi, dword [eax + 4]
mov ecx, 0x8b
call fcn.0043a890
add esp, 4
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x48], vtable.StringStorage.0
test edx, edx
je 0x41ebd5
mov ecx, dword [ebp - 0x3c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x41ebb6
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ec75
push ecx
push edx
call fcn.00471b16
add esp, 8
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x41ec1d
mov ecx, dword [ebp - 0x30]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x41ebfe
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ec7a
push ecx
push edx
call fcn.00471b16
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], vtable.StringStorage.0
test edx, edx
je 0x41ec57
mov ecx, dword [ebp - 0x4c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x41ec4d
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ec7f
push ecx
push edx
call fcn.00471b16
add esp, 8
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.0047da31
call fcn.0047da31
call fcn.0047da31
call fcn.0047da31
call fcn.0047da31
int3