Function at 0x43bbd0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov byte [esp + 0x28], 0
lea eax, [edi + 0x12]
test edi, edi
jne 0x43bbeb
lea eax, [esp + 0x13]
cmp byte [esp + 0x24], 0
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jne 0x43bc77
mov ebx, ebp
test ebp, ebp
je 0x43bc77
movzx eax, word [ebp]
test ax, ax
je 0x43bc77
mov esi, eax
nop dword [eax + eax]
mov ecx, 0x4f94c4
mov edx, 0x20
nop word [eax + eax]
cmp si, dx
je 0x43bc43
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x43bc20
movzx eax, word [ebx + 2]
add ebx, 2
mov esi, eax
test ax, ax
jne 0x43bc10
jmp 0x43bc77
mov eax, ebx
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x43bc52
cmp ecx, 9
jne 0x43bc57
add eax, 2
jmp 0x43bc45
push 0x4f863c
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x43bc77
test edi, edi
je 0x43bc72
mov byte [edi + 0x16], 1
xor eax, eax
mov word [ebx], ax
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
push 1
lea eax, [esp + 0x34]
push eax
push ebp
call fcn.00443470
mov bl, al
add esp, 0x14
test bl, bl
je 0x43bd52
cmp byte [esp + 0x24], 0
je 0x43bcce
lea ecx, [ebx + 0x64]
cmp cl, 3
ja 0x43bceb
push 0
push ebp
push str.Unsupported_prefix_key.
call fcn.0046fa80
add esp, 0xc
test edi, edi
jne 0x43bde6
lea eax, [edi + 4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
test edi, edi
je 0x43bceb
push 2
push 0x4f94fc
push ebp
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
sete al
mov byte [edi + 0x17], al
mov al, bl
dec al
cmp al, 5
ja 0x43bcf8
cmp bl, 3
jne 0x43bd00
mov al, bl
add al, 0x66
cmp al, 5
ja 0x43bd04
mov dl, 1
jmp 0x43bd06
xor dl, dl
mov cl, byte [esp + 0x28]
test cl, 0x30
je 0x43bd1e
mov al, bl
sub al, 0x41
cmp al, 0x19
ja 0x43bd1e
and cl, 0xcf
mov byte [esp + 0x28], cl
test dl, dl
je 0x43bd29
mov eax, dword [esp + 0x14]
mov byte [eax], 2
xor edx, edx
test edi, edi
je 0x43be51
cmp byte [esp + 0x24], 0
je 0x43be30
mov byte [edi + 0x11], bl
mov eax, 1
mov word [edi + 0xa], dx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0
push ebp
call fcn.00443130
movzx edx, ax
add esp, 8
test dx, dx
jne 0x43be27
push 1
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.00492310
movzx edx, ax
add esp, 0xc
test dx, dx
jne 0x43bdf0
cmp word [ebp + 2], dx
jne 0x43bdd2
mov eax, dword [0x62271c]
mov ecx, dword fs:[0x2c]
lea esi, [eax*4]
mov eax, dword [esi + ecx]
cmp byte [eax + 0x2198], dl
jne 0x43bdb1
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [esi + ecx]
mov eax, dword [eax + 0x298]
cmp byte [eax + 0x6d4], 0
jne 0x43bdd2
test edi, edi
jne 0x43bde6
lea eax, [edi + 3]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
test edi, edi
je 0x43bde6
push 0
push ebp
push str.Invalid_key_name.
call fcn.0046fa80
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [0x62271c]
mov ebx, dword [esp + 0x18]
lea ecx, [eax*4]
mov eax, dword fs:[0x2c]
mov eax, dword [ecx + eax]
inc dword [eax + 0x870]
mov eax, dword [esp + 0x14]
mov byte [eax], 4
mov eax, dword fs:[0x2c]
mov eax, dword [ecx + eax]
mov byte [eax + ebx + 0x874], 1
mov cl, byte [esp + 0x28]
jmp 0x43bd2b
and cl, 0xd5
mov byte [edi + 0x10], bl
movzx eax, cl
push eax
mov word [edi + 8], dx
call fcn.0043d060
or dword [edi], eax
add esp, 4
mov al, byte [esp + 0x28]
and al, 0x2a
or byte [edi + 0xe], al
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret