Function at 0x1000f1a5
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10066660
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x1f0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0
push 0x4ed
push 0x1aaa
push 0x72fc
lea eax, [ebp - 0x88]
push eax
push 0x69c
call fcn.100109c5
add esp, 0x18
mov dword [ebp - 0xd0], 0x6e22
mov dword [ebp - 0x144], 0x10007974
cmp dword [ebp - 0xd0], 0x6ea9
jle 0x1000f2e0
and dword [ebp - 0x44], 0
jmp 0x1000f220
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x27da
jge 0x1000f2e0
and dword [ebp - 0x68], 0
jmp 0x1000f23a
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0x72a6
jge 0x1000f2db
and dword [ebp - 0x38], 0
jmp 0x1000f254
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x20f8
jge 0x1000f2d6
and dword [ebp - 0x5c], 0
jmp 0x1000f26a
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0xb0f
jge 0x1000f2d1
mov eax, dword [ebp - 0x68]
imul eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x44]
sub edx, eax
mov ecx, dword [ebp - 0x5c]
sar edx, cl
mov eax, edx
cdq
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], edx
push dword [ebp - 0x148]
push dword [ebp - 0x14c]
lea ecx, [ebp - 0x200]
call fcn.1000dcee
pop ecx
pop ecx
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
call fcn.100130b2
push eax
call fcn.10050ebf
pop ecx
lea ecx, [ebp - 0x200]
call fcn.100130a8
jmp 0x1000f263
jmp 0x1000f24d
jmp 0x1000f233
jmp 0x1000f219
mov dword [ebp - 0x28], 0x25260417
mov dword [ebp - 0x1c], 0xfffc
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x54], 0x9fe9a5a1
mov dword [ebp - 0x104], 9
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x11c], 0x3d2a
mov dword [ebp - 0x150], 1
mov dword [ebp - 0x98], 0x1ed4
mov dword [ebp - 0x160], 0x100079b0
cmp dword [ebp - 0x98], 0x212e
jle 0x1000f3a7
push 0x12e4
call dword [sym.imp.USER32.dll_HideCaret]
and dword [ebp - 0x4c], 0
jmp 0x1000f359
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0x726c
jge 0x1000f3a7
and dword [ebp - 0x64], 0
jmp 0x1000f36f
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0x58da
jge 0x1000f3a5
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x64]
shl eax, cl
cdq
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], edx
push dword [ebp - 0x154]
push dword [ebp - 0x158]
mov ecx, 0x10610838
call fcn.100130d2
jmp 0x1000f368
jmp 0x1000f352
and dword [ebp - 4], 0
cmp dword [ebp - 0x98], 0x1be5
jge 0x1000f3c7
mov edx, dword [ebp - 0x160]
mov ecx, 0x10610838
call fcn.100159ac
jmp 0x1000f3e3
or dword [ebp - 4], 0xffffffff
jmp 0x1000f3ed
mov dword [ebp - 0x18], 0
jmp 0x1000f3fd
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
jge 0x1000f413
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x174], 0x95848308
jmp 0x1000f3f6
mov dword [ebp - 0x18], 0
jmp 0x1000f423
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jge 0x1000f439
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0xa8], 4
jmp 0x1000f41c
cmp dword [ebp - 0x30], 1
jne 0x1000f44b
mov dword [ebp - 0x9c], 1
jmp 0x1000f452
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x9c]
dec eax
cmp eax, dword [ebp - 0x1c]
jle 0x1000f46a
mov dword [ebp - 0x84], 1
jmp 0x1000f471
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x84]
sub eax, dword [ebp - 0x28]
jne 0x1000f48b
cmp dword [ebp - 0x1c], 0
jne 0x1000f48b
and dword [ebp - 0x108], 0
jmp 0x1000f495
mov dword [ebp - 0x108], 1
cmp dword [ebp - 0x108], 0xa0cd
je 0x1000f4ad
mov dword [ebp - 0x8c], 1
jmp 0x1000f4b4
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x8c]
jne 0x1000f4d1
mov eax, 0xcd4a
test eax, eax
jne 0x1000f4d1
and dword [ebp - 0x140], 0
jmp 0x1000f4db
mov dword [ebp - 0x140], 1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp - 0x28]
neg eax
jne 0x1000f4f7
mov dword [ebp - 0x110], 1
jmp 0x1000f4fe
and dword [ebp - 0x110], 0
cmp dword [ebp - 0x110], 0x2c34ccbb
jge 0x1000f516
mov dword [ebp - 0x94], 1
jmp 0x1000f51d
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x94]
je 0x1000f534
mov dword [ebp - 0x118], 1
jmp 0x1000f53b
and dword [ebp - 0x118], 0
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x54]
jge 0x1000f558
mov dword [ebp - 0x130], 1
jmp 0x1000f55f
and dword [ebp - 0x130], 0
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x1c8], eax
cmp dword [ebp - 0x28], 0xffff
jae 0x1000f580
mov dword [ebp - 0x120], 1
jmp 0x1000f587
and dword [ebp - 0x120], 0
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x11c]
add eax, dword [ebp - 0x11c]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0xa4], eax
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0xa4]
mov dword [ebp + eax - 0x174], ecx
mov eax, dword [ebp - 0xa4]
neg eax
cmp dword [ebp - 0x28], eax
jg 0x1000f5d1
mov dword [ebp - 0xe4], 1
jmp 0x1000f5d8
and dword [ebp - 0xe4], 0
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0xe4], eax
jl 0x1000f5ef
mov dword [ebp - 0xac], 1
jmp 0x1000f5f6
and dword [ebp - 0xac], 0
cmp dword [ebp - 0xac], 0xb2c2
jge 0x1000f615
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.1000f0d3
pop ecx
jmp 0x1000f8f7
mov dword [ebp - 0x3c], 0x6eaf0ab5
mov dword [ebp - 0x24], 0xffffffff
mov eax, 0xb1f0
test eax, eax
je 0x1000f6cc
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp - 0x3c]
add eax, 0x67e9
neg eax
je 0x1000f65a
cmp dword [ebp - 0x1c], 0
je 0x1000f65a
mov dword [ebp - 0xb4], 1
jmp 0x1000f661
and dword [ebp - 0xb4], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x174]
cmp dword [ebp - 0xb4], eax
jg 0x1000f682
mov dword [ebp - 0xec], 1
jmp 0x1000f689
and dword [ebp - 0xec], 0
cmp dword [ebp - 0xec], 1
jg 0x1000f69e
mov dword [ebp - 0xbc], 1
jmp 0x1000f6a5
and dword [ebp - 0xbc], 0
mov eax, dword [ebp - 0xbc]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp - 0x24]
inc eax
je 0x1000f6cc
mov dword [ebp - 0x114], 1
jmp 0x1000f6d3
and dword [ebp - 0x114], 0
cmp dword [ebp - 0x114], 1
jbe 0x1000f6f4
cmp dword [ebp - 0x24], 0
je 0x1000f6f4
cmp dword [ebp - 0x40], 0
je 0x1000f6f4
mov dword [ebp - 0x134], 1
jmp 0x1000f6fb
and dword [ebp - 0x134], 0
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x3c]
je 0x1000f70f
mov dword [ebp - 0xc4], 1
jmp 0x1000f716
and dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0xc4], eax
jge 0x1000f72d
mov dword [ebp - 0xf4], 1
jmp 0x1000f734
and dword [ebp - 0xf4], 0
cmp dword [ebp - 0xf4], 0xfffffff6
jge 0x1000f749
mov dword [ebp - 0xcc], 1
jmp 0x1000f750
and dword [ebp - 0xcc], 0
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0xcc], eax
je 0x1000f767
mov dword [ebp - 0x10c], 1
jmp 0x1000f76e
and dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x10c], eax
jne 0x1000f78b
cmp dword [ebp - 0x24], 0
je 0x1000f78b
mov dword [ebp - 0xd4], 1
jmp 0x1000f792
and dword [ebp - 0xd4], 0
cmp dword [ebp - 0xd4], 0xd7f48438
jbe 0x1000f7aa
mov dword [ebp - 0xfc], 1
jmp 0x1000f7b1
and dword [ebp - 0xfc], 0
cmp dword [ebp - 0xfc], 0x7811
je 0x1000f7c9
mov dword [ebp - 0xdc], 1
jmp 0x1000f7d0
and dword [ebp - 0xdc], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x174]
cmp dword [ebp - 0xdc], eax
je 0x1000f7ee
mov dword [ebp - 0x7c], 1
jmp 0x1000f7f2
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x150]
jle 0x1000f80f
mov dword [ebp - 0xa0], 1
jmp 0x1000f816
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0xa0]
test eax, eax
jne 0x1000f85d
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xa8]
inc eax
mov dword [ebp - 0xb0], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0xb0]
mov dword [ebp + eax - 0xa8], ecx
cmp dword [ebp - 0xb0], 0
jne 0x1000f85d
and dword [ebp - 0x13c], 0
jmp 0x1000f867
mov dword [ebp - 0x13c], 1
mov dword [ebp - 0x54], 0x6f69a7c8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xb8], eax
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0xb8]
mov dword [ebp + eax - 0x174], ecx
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0xb8]
cmp eax, dword [ebp - 0x3c]
je 0x1000f8aa
cmp dword [ebp - 0x28], 0
je 0x1000f8aa
mov dword [ebp - 0xc0], 1
jmp 0x1000f8b1
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0xc0], eax
je 0x1000f8c8
mov dword [ebp - 0x15c], 1
jmp 0x1000f8cf
and dword [ebp - 0x15c], 0
cmp dword [ebp - 0x1c], 0xfffffffc
jle 0x1000f8e1
mov dword [ebp - 0xc8], 1
jmp 0x1000f8e8
and dword [ebp - 0xc8], 0
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0xd0], 0x6c19
jge 0x1000f916
push dword [ebp - 0x144]
call fcn.10050ebf
pop ecx
jmp 0x1000f932
or dword [ebp - 4], 0xffffffff
jmp 0x1000f93c
cmp dword [ebp - 0x88], 0
je 0x1000fdab
push dword [ebp + 8]
lea ecx, [ebp - 0x18c]
call fcn.100131e7
mov dword [ebp - 4], 4
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x34], 0xfffffffb
mov dword [ebp - 0x14], 0xffffffe2
jmp 0x1000f97c
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xfffffff6
jne 0x1000fb35
push 1
lea ecx, [ebp - 0x78]
call fcn.100132fd
mov byte [ebp - 4], 5
mov dword [ebp - 0x20], 0
jmp 0x1000f9a4
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
jge 0x1000f9bd
push dword [ebp - 0x20]
lea ecx, [ebp - 0x78]
call fcn.10013375
mov dword [eax], 4
jmp 0x1000f99d
mov dword [ebp - 0x20], 0
jmp 0x1000f9cd
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jge 0x1000f9e3
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x1e8], 0xfffffff8
jmp 0x1000f9c6
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.1000f0f3
pop ecx
pop ecx
cmp dword [ebp - 0x14], 0
jne 0x1000faa7
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1bc], eax
push 0
lea ecx, [ebp - 0x78]
call fcn.10013375
mov esi, eax
push 0
lea ecx, [ebp - 0x78]
call fcn.10013375
mov edi, dword [eax]
sub edi, dword [esi]
push 0
lea ecx, [ebp - 0x78]
call fcn.10013375
cmp edi, dword [eax]
jl 0x1000fa39
mov dword [ebp - 0xd8], 1
jmp 0x1000fa40
and dword [ebp - 0xd8], 0
push 0
lea ecx, [ebp - 0x78]
call fcn.10013375
mov ecx, dword [ebp - 0xd8]
cmp ecx, dword [eax]
jle 0x1000fa60
mov dword [ebp - 0x12c], 1
jmp 0x1000fa67
and dword [ebp - 0x12c], 0
push 0
lea ecx, [ebp - 0x78]
call fcn.10013375
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x34]
jle 0x1000fa85
mov dword [ebp - 0xe0], 1
jmp 0x1000fa8c
and dword [ebp - 0xe0], 0
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x1000faa7
mov dword [ebp - 0xe8], 1
jmp 0x1000faae
and dword [ebp - 0xe8], 0
push 0
lea ecx, [ebp - 0x78]
call fcn.10013375
mov eax, dword [eax]
cmp eax, dword [ebp - 0xe8]
jl 0x1000face
mov dword [ebp - 0xf0], 1
jmp 0x1000fad5
and dword [ebp - 0xf0], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0xf0], eax
jge 0x1000faec
mov dword [ebp - 0xf8], 1
jmp 0x1000faf3
and dword [ebp - 0xf8], 0
cmp dword [ebp - 0xf8], 0xe327
jl 0x1000fb0b
mov dword [ebp - 0x100], 1
jmp 0x1000fb12
and dword [ebp - 0x100], 0
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x100]
mov dword [ebp + eax - 0x1e8], ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
call fcn.10013359
jmp 0x1000f975
mov dword [ebp - 0x14], 0
jmp 0x1000fb45
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x13
jne 0x1000fc44
mov dword [ebp - 0x80], 0x399c
mov dword [ebp - 0x128], 0x10007a10
cmp dword [ebp - 0x80], 0x3c30
jle 0x1000fbe8
push 0x1716
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
and dword [ebp - 0x58], 0
jmp 0x1000fb81
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0x5bff
jge 0x1000fbe8
and dword [ebp - 0x48], 0
jmp 0x1000fb97
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x1887
jge 0x1000fbe6
and dword [ebp - 0x50], 0
jmp 0x1000fbad
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x7c05
jge 0x1000fbe4
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x50]
and eax, dword [ebp - 0x58]
cdq
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], edx
push dword [ebp - 0x164]
push dword [ebp - 0x168]
mov ecx, 0x10610838
call fcn.100130d2
jmp 0x1000fba6
jmp 0x1000fb90
jmp 0x1000fb7a
mov byte [ebp - 0x2b], 0
mov byte [ebp - 4], 6
cmp dword [ebp - 0x80], 0x394b
jge 0x1000fc09
mov edx, dword [ebp - 0x128]
mov ecx, 0x10610838
call fcn.100159ac
jmp 0x1000fc25
mov dword [ebp - 4], 4
jmp 0x1000fc35
lea eax, [ebp - 0x2b]
push eax
call fcn.1000f11b
pop ecx
jmp 0x1000fb3e
lea eax, [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x18c]
call fcn.1001323e
push dword [eax]
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x18c]
call fcn.10013252
push dword [eax]
lea eax, [ebp - 0x1d0]
push eax
lea ecx, [ebp - 0x18c]
call fcn.1001323e
push dword [eax]
mov edx, 0x1000ea4f
lea ecx, [ebp - 0x1b0]
call fcn.10015bad
add esp, 0xc
mov eax, dword [ebp - 0x88]
mov eax, dword [eax + 0xc]
add eax, 0x14
mov dword [ebp - 0x90], eax
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x90]
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
jmp 0x1000fcbe
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x90]
je 0x1000fd9c
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
push dword [eax + 0x28]
lea ecx, [ebp - 0x1a4]
call fcn.1001320f
mov byte [ebp - 4], 8
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [ebp - 0x1a4]
call fcn.1001323e
push dword [eax]
lea eax, [ebp - 0x1b8]
push eax
lea ecx, [ebp - 0x1a4]
call fcn.10013252
push dword [eax]
lea eax, [ebp - 0x1d4]
push eax
lea ecx, [ebp - 0x1a4]
call fcn.1001323e
push dword [eax]
mov edx, 0x1000ea4f
lea ecx, [ebp - 0x1c0]
call fcn.10015bad
add esp, 0xc
lea edx, [ebp - 0x1a4]
lea ecx, [ebp - 0x18c]
call fcn.10015c16
movzx eax, al
test eax, eax
je 0x1000fd88
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ecx + eax + 0x10]
mov dword [ebp - 0x138], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1a4]
call fcn.10013234
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18c]
call fcn.10013234
mov eax, dword [ebp - 0x138]
jmp 0x1000fdd6
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1a4]
call fcn.10013234
jmp 0x1000fcb6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18c]
call fcn.10013234
mov dword [ebp - 0x1d8], 9
mov byte [ebp - 0x2a], 0
lea eax, [ebp - 0x2a]
push eax
call fcn.1000f13e
pop ecx
mov byte [ebp - 0x29], 0
movzx eax, byte [ebp - 0x29]
test eax, eax
je 0x1000fdd4
call fcn.1000f161
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret