Function at 0x47d6c0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x114
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
xor ebx, ebx
push ebx
push ebx
call esi
mov dword [esp + 0x14], eax
add eax, eax
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x47d712
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.005787fd
add esp, 0x114
ret
mov ecx, dword [esp + 0x14]
push ebp
push ecx
call esi
xor esi, esi
cmp dword [esp + 0x14], ebx
jle 0x47d958
jmp 0x47d730
push 0x102
lea edx, [esp + 0x1e]
push 0
push edx
mov word [esp + 0x24], 0
call fcn.00580260
mov ecx, dword [ebp + esi*4]
add esp, 0xc
push 0x80
lea eax, [esp + 0x1c]
push eax
push ecx
call sub.IMM32.dll_ImmGetDescriptionW
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x1c]
call fcn.00404460
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], 0
jl 0x47d92f
push 0x5c5a18
push ecx
call fcn.0057880c
mov ecx, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x47d79f
sub eax, ecx
sar eax, 1
js 0x47d79f
or ebx, 1
jmp 0x47d92f
cmp dword [ecx - 0xc], 0
jl 0x47d92f
push 0x5c5a20
push ecx
call fcn.0057880c
mov ecx, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x47d7cd
sub eax, ecx
sar eax, 1
js 0x47d7cd
or ebx, 4
jmp 0x47d92f
cmp dword [ecx - 0xc], 0
jl 0x47d92f
push 0x5c5a28
push ecx
call fcn.0057880c
mov ecx, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x47d7fb
sub eax, ecx
sar eax, 1
js 0x47d7fb
or ebx, 2
jmp 0x47d92f
cmp dword [ecx - 0xc], 0
jl 0x47d92f
push 0x5c5a30
push ecx
call fcn.0057880c
mov ecx, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x47d829
sub eax, ecx
sar eax, 1
js 0x47d829
or ebx, 8
jmp 0x47d92f
cmp dword [ecx - 0xc], 0
jl 0x47d92f
push 0x5c5a3c
push ecx
call fcn.0057880c
mov ecx, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x47d857
sub eax, ecx
sar eax, 1
js 0x47d857
or ebx, 0x20
jmp 0x47d92f
cmp dword [ecx - 0xc], 0
jl 0x47d92f
push 0x5c5a44
push ecx
call fcn.0057880c
mov ecx, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x47d885
sub eax, ecx
sar eax, 1
js 0x47d885
or ebx, 0x40
jmp 0x47d92f
cmp dword [ecx - 0xc], 0
jl 0x47d92f
push 0x5c5a50
push ecx
call fcn.0057880c
mov ecx, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x47d8b3
sub eax, ecx
sar eax, 1
js 0x47d8b3
or ebx, 0x80
jmp 0x47d92f
cmp dword [ecx - 0xc], 0
jl 0x47d92f
push 0x5c5a5c
push ecx
call fcn.0057880c
mov ecx, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x47d8dd
sub eax, ecx
sar eax, 1
js 0x47d8dd
or ebx, 0x100
jmp 0x47d92f
cmp dword [ecx - 0xc], 0
jl 0x47d92f
push 0x5c5a68
push ecx
call fcn.0057880c
mov ecx, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x47d907
sub eax, ecx
sar eax, 1
js 0x47d907
or ebx, 0x200
jmp 0x47d92f
cmp dword [ecx - 0xc], 0
jl 0x47d92f
push 0x5c5a74
push ecx
call fcn.0057880c
mov ecx, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x47d92f
sub eax, ecx
sar eax, 1
js 0x47d92f
or ebx, 0x400
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47d94b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 1
cmp esi, dword [esp + 0x14]
jl 0x47d730
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x11c]
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.005787fd
add esp, 0x114
ret