Function at 0x100431ff
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d5d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xec
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10043667
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xa4], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0x8c]
movzx eax, byte [eax]
test eax, eax
je 0x100432bf
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
movzx eax, byte [eax]
test eax, eax
je 0x100432ba
push 0xd24
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
jmp 0x10043665
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xd8], 0x187c
cmp dword [ebp - 0xd8], 0xd4b
jge 0x100434ab
lea eax, [ebp - 0x20]
push eax
push 0x1000b268
call fcn.1005233b
pop ecx
pop ecx
lea eax, [ebp - 0xac]
push eax
push 0x1000b1e4
call fcn.1005233b
pop ecx
pop ecx
mov eax, dword [ebp - 0x20]
dec eax
push eax
lea ecx, [ebp - 0x7c]
call fcn.1001a4ba
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
jmp 0x10043362
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
dec eax
cmp dword [ebp - 0x18], eax
jge 0x10043385
push dword [ebp - 0x18]
lea ecx, [ebp - 0x7c]
call fcn.1001a5a5
push eax
push 0x1000b1e4
call fcn.1005233b
pop ecx
pop ecx
jmp 0x1004335b
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0x7c]
call fcn.1001a75c
push dword [eax]
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.1001a74e
push dword [eax]
call fcn.1001efad
pop ecx
pop ecx
mov eax, dword [ebp - 0x20]
dec eax
dec eax
push eax
lea ecx, [ebp - 0x7c]
call fcn.1001a5a5
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x20]
dec eax
dec eax
mov dword [ebp - 0x1c], eax
jmp 0x100433d6
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x100433fb
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x7c]
call fcn.1001a5a5
mov eax, dword [eax]
cmp eax, dword [ebp - 0x3c]
jne 0x100433f7
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
jmp 0x100433f9
jmp 0x100433fb
jmp 0x100433cf
push dword [ebp - 0x3c]
push dword [ebp - 0x10]
push 0x1000b7f4
call fcn.10052a2c
add esp, 0xc
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0xac]
mov dword [ebp - 0x24], eax
js 0x1004342c
mov eax, dword [ebp - 0x24]
inc eax
mov ecx, dword [ebp - 0x10]
inc ecx
cdq
idiv ecx
mov dword [ebp - 0x70], eax
jmp 0x10043430
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x34]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x10]
inc eax
imul eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
sub ecx, eax
inc ecx
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 0
jle 0x10043460
mov dword [ebp - 0x60], 1
jmp 0x10043464
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x40]
imul eax, dword [ebp - 0x60]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0xd4], eax
push dword [ebp - 0x40]
push dword [ebp - 0x50]
push dword [ebp - 0x34]
push dword [ebp - 0x24]
push 0x1000b800
call fcn.10052a2c
add esp, 0x14
push dword [ebp - 0xd4]
push 0x1000b268
call fcn.10052a2c
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.1001a53e
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
mov eax, dword [ebp - 0xb8]
cmp eax, dword [ebp - 0xc0]
je 0x10043551
mov dword [ebp - 0x68], 1
jmp 0x10043555
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x38]
cmp dword [eax], 0
je 0x10043566
mov dword [ebp - 0x44], 1
jmp 0x1004356a
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
add eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc8]
cmp eax, dword [ecx]
jl 0x10043589
push 0xfffffffffffffff8
pop eax
test eax, eax
jne 0x10043589
and dword [ebp - 0x30], 0
jmp 0x10043590
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
add ecx, dword [ebp - 0x68]
imul ecx, dword [ebp - 0x30]
cmp ecx, dword [eax]
jl 0x100435c2
mov eax, 0xf259
test eax, eax
je 0x100435c2
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x100435c2
and dword [ebp - 0x48], 0
jmp 0x100435c9
mov dword [ebp - 0x48], 1
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
cmp dword [ebp - 0x48], eax
jne 0x100435dc
mov dword [ebp - 0x4c], 1
jmp 0x100435e0
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x4c], eax
je 0x100435f3
mov dword [ebp - 0x54], 1
jmp 0x100435f7
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
add eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x5c]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x10043619
mov dword [ebp - 0x64], 1
jmp 0x1004361d
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
cmp dword [ebp - 0x64], eax
je 0x10043645
mov eax, 0xfffa
test eax, eax
je 0x10043645
mov eax, 0x37f5e175
test eax, eax
je 0x10043645
mov dword [ebp - 0xd0], 1
jmp 0x1004364c
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x28]
imul eax, dword [eax], 0xcea0
mov ecx, dword [ebp - 0x6c]
mov dword [ecx], eax
jmp 0x1004367b
push 0
push 0x847
push 0x1d2
call fcn.10029ab6
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret