Function at 0x42902b
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x42906d
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
push 1
push dword [ebp - 0x80]
push 0x5cef
push dword [ebp - 0x74]
push 1
push dword [ebp - 0x3c]
call fcn.00429221
add esp, 0x18
jmp 0x42921d
lea eax, [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x34], eax
lea eax, [ebp + 0x2c]
mov dword [ebp - 0x64], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x64]
movzx eax, byte [eax]
test eax, eax
je 0x4290ed
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax]
test eax, eax
je 0x4290c4
push 0x1099
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
jmp 0x4290e8
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
movzx eax, byte [eax]
test eax, eax
je 0x4290e8
push 1
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x42921d
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
test eax, eax
je 0x429125
mov byte [ebp - 1], 0
lea eax, [ebp - 1]
push eax
push 0
call fcn.004158f4
pop ecx
pop ecx
jmp 0x42921d
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x42917d
xor eax, eax
inc eax
jne 0x42917d
and dword [ebp - 0x28], 0
jmp 0x429184
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x28], 0xffffffff
jae 0x429193
mov dword [ebp - 0x18], 1
jmp 0x429197
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
neg ecx
cmp dword [eax], ecx
jg 0x4291bd
mov eax, 0x4c924b54
test eax, eax
je 0x4291bd
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x4291bd
mov dword [ebp - 0x10], 1
jmp 0x4291c1
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 1
je 0x4291d0
mov dword [ebp - 0x20], 1
jmp 0x4291d4
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 8
je 0x4291e3
mov dword [ebp - 0x1c], 1
jmp 0x4291e7
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x1c]
je 0x4291fa
mov dword [ebp - 0x24], 1
jmp 0x4291fe
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x24], eax
jg 0x429211
mov dword [ebp - 0x2c], 1
jmp 0x429215
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret