Function at 0x10060344
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ff0e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x100605cf
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax]
test eax, eax
je 0x100605c5
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x88], 0x10084644
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
je 0x10060462
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x197e
jl 0x1006040d
mov dword [ebp - 0x2c], 1
jmp 0x10060411
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x2c], eax
jg 0x10060424
mov dword [ebp - 0x68], 1
jmp 0x10060428
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jne 0x10060448
mov dword [ebp - 0x24], 1
jmp 0x1006044c
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
imul eax, dword [ebp - 0x24]
neg eax
je 0x10060462
mov dword [ebp - 0x3c], 1
jmp 0x10060466
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x3c], eax
jne 0x10060479
mov dword [ebp - 0x34], 1
jmp 0x1006047d
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
cmp dword [ebp - 0x34], eax
jg 0x10060490
mov dword [ebp - 0x28], 1
jmp 0x10060494
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
imul eax, dword [ebp - 0x28]
cmp eax, 1
jg 0x100604ab
mov dword [ebp - 0x30], 1
jmp 0x100604af
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
cmp dword [ebp - 0x30], eax
jge 0x100604c2
mov dword [ebp - 0x38], 1
jmp 0x100604c6
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
add eax, 0xe0f7
mov ecx, dword [ebp - 0x20]
imul eax, dword [ecx]
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx]
je 0x100604e4
mov dword [ebp - 0x40], 1
jmp 0x100604e8
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x40], eax
je 0x1006059c
or dword [ebp - 0x84], 0xffffffff
or dword [ebp - 0x80], 0xffffffff
or dword [ebp - 0x7c], 0xffffffff
or dword [ebp - 0x78], 0xffffffff
lea ecx, [ebp - 0x19]
call fcn.100212ab
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xac]
call fcn.100212ae
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0xa4]
call fcn.1002125a
and dword [ebp - 4], 0
push 0x7a16
push 0x3372
push 0x61f5
lea eax, [ebp - 0xa4]
push eax
push 1
push 0x1cb0
push 0x72a1
push 1
push 0x4a42
call fcn.1005dd4a
add esp, 0x24
mov byte [ebp - 0x11], 0
push 1
push 0x30c5
push 1
push 0x5802
lea eax, [ebp - 0x11]
push eax
call fcn.10057e89
add esp, 0x14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.10021280
jmp 0x100605c3
push 0x317d
push 0x3149
push 0x11e
push 1
push 0x784d
push 1
push 1
push 0x151b
call fcn.100580a1
add esp, 0x20
jmp 0x100605cd
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
jmp 0x10060602
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x58], eax
push dword [ebp - 0x58]
push 0x5953
push 1
push dword [ebp - 0x5c]
push dword [ebp - 0x48]
push dword [ebp - 0x50]
call fcn.1004ab44
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret