Function at 0x41d7c0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46bd53
mov eax, dword fs:[0]
push eax
sub esp, 0x1fc
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x134], ecx
lea eax, [ebp - 0x90]
push eax
push 0x20
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x120], 0
jmp 0x41d822
mov ecx, dword [ebp - 0x120]
add ecx, 1
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x120]
cmp edx, dword [ebp - 0x12c]
jae 0x41d858
mov eax, dword [ebp - 0x120]
cmp dword [ebp + eax*4 - 0x90], 0x8040804
jne 0x41d856
mov ecx, dword [ebp - 0x120]
mov dword [ebp + ecx*4 - 0x90], 0x804
jmp 0x41d858
jmp 0x41d813
mov dword [ebp - 0x128], 0x4771d0
push 0xc
lea ecx, [ebp - 0xa0]
call fcn.0041e820
lea ecx, [ebp - 0xa0]
call fcn.0041c960
mov dword [ebp - 4], 0
lea edx, [ebp - 0xa0]
push edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x194], esp
mov eax, dword [ebp - 0x128]
push eax
call fcn.00406660
mov dword [ebp - 0x184], eax
push SysStringLen
call fcn.00413040
add esp, 0x20
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
je 0x41d8e8
mov dword [ebp - 0x16c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.0041cb30
mov eax, dword [ebp - 0x16c]
jmp 0x41dd25
push 4
lea ecx, [ebp - 0x94]
call fcn.0041e820
lea ecx, [ebp - 0x94]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.0041e880
jmp 0x41d914
lea ecx, [ebp - 0x94]
call fcn.0041cde0
lea edx, [ebp - 0x188]
push edx
lea ecx, [ebp - 0xa0]
call fcn.0041eaa0
push eax
lea ecx, [ebp - 0x94]
call fcn.0041cbd0
movzx eax, al
test eax, eax
je 0x41dd03
push 0x10
push 0
lea ecx, [ebp - 0x94]
call fcn.0040d3a0
mov ecx, eax
call fcn.004077f0
push eax
call fcn.0043db66
add esp, 0xc
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
and ecx, 0xffff
movzx edx, cx
cmp edx, 0x804
je 0x41d97b
jmp 0x41d909
lea ecx, [ebp - 0x118]
call fcn.0041ca30
mov byte [ebp - 4], 1
mov dword [ebp - 0xf8], 0
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x124], 0
jmp 0x41d9c5
mov ecx, dword [ebp - 0x124]
add ecx, 1
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp - 0x124]
cmp edx, dword [ebp - 0x12c]
jae 0x41d9f6
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp + eax*4 - 0x90]
cmp ecx, dword [ebp - 0x100]
jne 0x41d9f4
mov dword [ebp - 0x130], 1
jmp 0x41d9f6
jmp 0x41d9b6
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0xfc], edx
lea ecx, [ebp - 0xb8]
call fcn.004066a0
mov byte [ebp - 4], 2
lea eax, [ebp - 0xb8]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1a8], esp
push str.Layout_Display_Name
call fcn.00406660
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x174]
mov dword [ebp - 0x180], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x94]
call fcn.0040d3a0
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x190], esp
push eax
push 0x4771cc
mov edx, dword [ebp - 0x128]
push edx
lea ecx, [ebp - 0x1d8]
call fcn.00406660
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x170], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x170]
push ecx
lea edx, [ebp - 0x1c0]
push edx
call fcn.00418880
add esp, 0xc
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x150], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x150]
push ecx
push esi
call fcn.0041c1c0
add esp, 0xc
mov dword [ebp - 0x18c], eax
push SysStringLen
mov byte [ebp - 4], 7
call fcn.00412d10
add esp, 0x38
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x168], 0
jne 0x41daf5
mov dword [ebp - 0x138], 1
jmp 0x41daff
mov dword [ebp - 0x138], 0
mov dl, byte [ebp - 0x138]
mov byte [ebp - 0x11a], dl
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1c0]
call fcn.00406810
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1d8]
call fcn.00406810
movzx eax, byte [ebp - 0x11a]
test eax, eax
je 0x41db94
push 0
lea ecx, [ebp - 0xb8]
call fcn.0040f710
shl eax, 1
push eax
lea ecx, [ebp - 0xb8]
call fcn.004077f0
push eax
lea ecx, [ebp - 0xb8]
call fcn.004077f0
push eax
call dword [sym.imp.SHLWAPI.dll_SHLoadIndirectString]
test eax, eax
jne 0x41db8f
lea ecx, [ebp - 0xb8]
call fcn.004077f0
push eax
lea ecx, [ebp - 0x118]
call fcn.0040d310
lea ecx, [ebp - 0x118]
push ecx
mov ecx, dword [ebp - 0x134]
call fcn.0041f360
jmp 0x41dce0
lea edx, [ebp - 0xb8]
push edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x198], esp
push str.Layout_Text
call fcn.00406660
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x1a0], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x94]
call fcn.0040d3a0
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x1a4], esp
push eax
push 0x47724c
mov ecx, dword [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x1f0]
call fcn.00406660
mov dword [ebp - 0x178], eax
mov edx, dword [ebp - 0x178]
mov dword [ebp - 0x144], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x144]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.00418880
add esp, 0xc
mov dword [ebp - 0x148], eax
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x14c], edx
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x14c]
push eax
push esi
call fcn.0041c1c0
add esp, 0xc
mov dword [ebp - 0x19c], eax
push SysStringLen
mov byte [ebp - 4], 0xc
call fcn.00412d10
add esp, 0x38
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jne 0x41dc78
mov dword [ebp - 0x140], 1
jmp 0x41dc82
mov dword [ebp - 0x140], 0
mov cl, byte [ebp - 0x140]
mov byte [ebp - 0x119], cl
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x208]
call fcn.00406810
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1f0]
call fcn.00406810
movzx edx, byte [ebp - 0x119]
test edx, edx
je 0x41dce0
lea ecx, [ebp - 0xb8]
call fcn.004077f0
push eax
lea ecx, [ebp - 0x118]
call fcn.0040d310
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x134]
call fcn.0041f360
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb8]
call fcn.00406810
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x118]
call fcn.0041cb70
jmp 0x41d909
mov dword [ebp - 0x15c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.0041cb30
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret