Function at 0x43f020
Capabilities:
Get keyboard layout

Disassembly:
push 0xffffffffffffffff
push 0x52e5f7
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x56b1dc]
xor eax, esp
mov dword [esp + 0xe4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56b1dc]
xor eax, esp
push eax
lea eax, [esp + 0xfc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x10c]
push 0xc8
lea ecx, [esp + 0x32]
push 0
push ecx
mov dword [esp + 0x28], eax
mov word [esp + 0x38], 0
call fcn.00508d80
mov esi, dword [0x5314c8]
add esp, 0xc
push 0
push 0
call esi
mov edi, eax
lea edx, [edi*4]
push edx
push 0x40
mov dword [esp + 0x28], edi
call dword [0x5312fc]
mov ebp, eax
test ebp, ebp
je 0x43f2a3
push ebp
push edi
call esi
xor edi, edi
cmp dword [esp + 0x20], edi
lea ebx, [edi + 1]
jle 0x43f29a
mov esi, dword [ebp + edi*4]
push 0xca
lea eax, [esp + 0x30]
push 0
push eax
call fcn.00508d80
add esp, 0xc
push 0x64
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.005209d4
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x30]
call fcn.00402550
push 0xca
lea eax, [esp + 0x30]
push 0
push eax
mov dword [esp + 0x110], 0
call fcn.00508d80
add esp, 0xc
push 0x64
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.005209da
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x30]
call fcn.00402550
mov byte [esp + 0x104], bl
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
call fcn.004020b0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x108], 2
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
call fcn.004020b0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x10c], bl
call fcn.0043a020
add esp, 8
test eax, eax
mov eax, dword [esp + 0x14]
je 0x43f18e
mov ecx, dword [esp + 0x1c]
push eax
push ecx
jmp 0x43f236
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
call fcn.004020b0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x108], 3
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
call fcn.004020b0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x10c], bl
call fcn.00441e40
add esp, 8
test eax, eax
je 0x43f1e1
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push edx
push eax
jmp 0x43f236
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
call fcn.004020b0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x108], 4
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
call fcn.004020b0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x10c], bl
call fcn.0041d050
add esp, 8
test eax, eax
je 0x43f23b
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.00401e50
mov byte [esp + 0x104], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f263
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x104], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f28e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, ebx
cmp edi, dword [esp + 0x20]
jl 0x43f0c0
push ebp
call dword [0x531304]
mov eax, ebx
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.004ff939
add esp, 0xf4
ret 4