Function at 0x1003e07d
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100896be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push esi
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1003e8ef
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xcc], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0xc8], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0xc0], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
push 4
lea ecx, [ebp - 0x2c]
call fcn.10010227
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 0xc7e43439
mov dword [ebp - 0x58], 0xaeda1e1c
mov dword [ebp - 0xb4], 0x1ca98231
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x128]
push eax
push 1
push 0x307f
push 0x210b
call fcn.1003d49b
add esp, 0x14
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.10043e5e
add esp, 0xc
mov dword [ebp - 0x10], 3
jmp 0x1003e139
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x1003e609
mov dword [ebp - 0x18], 0x96f8f9ed
mov dword [ebp - 0x50], 2
mov dword [ebp - 0xbc], 0x280eff2b
mov dword [ebp - 0xc4], 0xec891f7d
lea eax, [ebp - 0x2c]
push eax
push 0x6ec1
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.100433af
add esp, 0x10
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x108], eax
push 3
lea ecx, [ebp - 0x2c]
call fcn.1001026e
cmp dword [eax], 1
je 0x1003e1a0
mov dword [ebp - 0x9c], 1
jmp 0x1003e1a7
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xfc], eax
push 2
lea ecx, [ebp - 0x2c]
call fcn.1001026e
mov eax, dword [eax]
dec eax
cmp eax, dword [ebp - 0x10]
jg 0x1003e1d4
mov dword [ebp - 0x64], 1
jmp 0x1003e1d8
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x64], eax
jle 0x1003e1ec
mov dword [ebp - 0xb0], 1
jmp 0x1003e1f3
and dword [ebp - 0xb0], 0
cmp dword [ebp - 0xb0], 0x46ac
jle 0x1003e20b
mov dword [ebp - 0x8c], 1
jmp 0x1003e212
and dword [ebp - 0x8c], 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.1001026e
mov esi, dword [ebp - 0x8c]
imul esi, dword [eax]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
call fcn.1001026e
sub esi, dword [eax]
je 0x1003e244
push dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
call fcn.1001026e
cmp dword [eax], 0
jne 0x1003e24e
xor eax, eax
jne 0x1003e24e
and dword [ebp - 0x6c], 0
jmp 0x1003e255
mov dword [ebp - 0x6c], 1
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x6c], eax
jne 0x1003e269
mov dword [ebp - 0xac], 1
jmp 0x1003e270
and dword [ebp - 0xac], 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
call fcn.1001026e
mov eax, dword [eax]
cmp eax, dword [ebp - 0xac]
jge 0x1003e28e
mov dword [ebp - 0x74], 1
jmp 0x1003e292
and dword [ebp - 0x74], 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
call fcn.1001026e
mov ecx, dword [ebp - 0x74]
cmp ecx, dword [eax]
je 0x1003e2b0
mov dword [ebp - 0x94], 1
jmp 0x1003e2b7
and dword [ebp - 0x94], 0
push 3
lea ecx, [ebp - 0x2c]
call fcn.1001026e
mov ecx, dword [ebp - 0x94]
cmp ecx, dword [eax]
jge 0x1003e2d4
mov dword [ebp - 0x7c], 1
jmp 0x1003e2d8
and dword [ebp - 0x7c], 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
call fcn.1001026e
mov ecx, dword [ebp - 0x7c]
cmp ecx, dword [eax]
jne 0x1003e2f6
mov dword [ebp - 0xa4], 1
jmp 0x1003e2fd
and dword [ebp - 0xa4], 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
call fcn.1001026e
mov eax, dword [eax]
cmp eax, dword [ebp - 0xa4]
jle 0x1003e31e
mov dword [ebp - 0x84], 1
jmp 0x1003e325
and dword [ebp - 0x84], 0
push 3
lea ecx, [ebp - 0x2c]
call fcn.1001026e
mov ecx, dword [ebp - 0x84]
cmp ecx, dword [eax]
jl 0x1003e342
mov dword [ebp - 0x5c], 1
jmp 0x1003e346
and dword [ebp - 0x5c], 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
call fcn.1001026e
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [eax]
jne 0x1003e361
mov dword [ebp - 0x60], 1
jmp 0x1003e365
and dword [ebp - 0x60], 0
imul esi, dword [ebp - 0x60], 0x8a66
neg esi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
call fcn.1001026e
add esi, dword [eax]
jne 0x1003e389
cmp dword [ebp - 0x58], 0
jne 0x1003e389
and dword [ebp - 0x68], 0
jmp 0x1003e390
mov dword [ebp - 0x68], 1
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x68], eax
jle 0x1003e39e
cmp dword [ebp - 0x50], 0
jne 0x1003e3a8
cmp dword [ebp - 0x10], 0
je 0x1003e5c4
mov dword [ebp - 0x14], 0
jmp 0x1003e3b8
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jge 0x1003e3ce
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x114], 0xfffffffe
jmp 0x1003e3b1
mov dword [ebp - 0x14], 0
jmp 0x1003e3de
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jge 0x1003e3f4
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0xec], 0xe27a8d2c
jmp 0x1003e3d7
push 3
lea ecx, [ebp - 0x2c]
call fcn.1001026e
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0x114], 0
push 4
pop eax
shl eax, 1
push 0xfffffffffffffffc
pop ecx
sub ecx, dword [ebp + eax - 0xec]
je 0x1003e432
xor eax, eax
inc eax
je 0x1003e432
xor eax, eax
je 0x1003e432
mov dword [ebp - 0x70], 1
jmp 0x1003e436
and dword [ebp - 0x70], 0
cmp dword [ebp - 0x70], 0x7a89a43d
jl 0x1003e448
mov dword [ebp - 0x78], 1
jmp 0x1003e44c
and dword [ebp - 0x78], 0
mov eax, dword [ebp - 0xb4]
cmp dword [ebp - 0x78], eax
jl 0x1003e463
mov dword [ebp - 0xd0], 1
jmp 0x1003e46a
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x100], eax
push 4
pop eax
shl eax, 1
push 4
pop ecx
shl ecx, 1
mov ecx, dword [ebp + ecx - 0xec]
cmp dword [ebp + eax - 0xec], ecx
jl 0x1003e496
mov dword [ebp - 0x80], 1
jmp 0x1003e49a
and dword [ebp - 0x80], 0
cmp dword [ebp - 0x80], 0xffff
je 0x1003e4af
mov dword [ebp - 0xd4], 1
jmp 0x1003e4b6
and dword [ebp - 0xd4], 0
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x10]
cmp dword [ebp + eax - 0x114], ecx
je 0x1003e4d3
mov dword [ebp - 0x88], 1
jmp 0x1003e4da
and dword [ebp - 0x88], 0
push 3
lea ecx, [ebp - 0x2c]
call fcn.1001026e
mov ecx, dword [ebp - 0x88]
imul ecx, dword [eax]
cmp ecx, dword [ebp - 0xbc]
jg 0x1003e501
mov dword [ebp - 0x90], 1
jmp 0x1003e508
and dword [ebp - 0x90], 0
cmp dword [ebp - 0x90], 0xfffffffe
jb 0x1003e51d
mov dword [ebp - 0x98], 1
jmp 0x1003e524
and dword [ebp - 0x98], 0
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0xec]
cmp dword [ebp - 0x98], eax
jg 0x1003e544
mov dword [ebp - 0xa0], 1
jmp 0x1003e54b
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0xa0]
cmp dword [ebp - 0x58], eax
jg 0x1003e565
mov dword [ebp - 0xa8], 1
jmp 0x1003e56c
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xc4]
imul eax, dword [ebp - 0xa8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x18], 3
jmp 0x1003e58c
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x1003e5c2
mov byte [ebp - 0x1f], 0
movzx eax, byte [ebp - 0x1f]
test eax, eax
je 0x1003e5a6
push 1
call fcn.1003ddf6
pop ecx
mov byte [ebp - 0x1a], 0
movzx eax, byte [ebp - 0x1a]
test eax, eax
je 0x1003e5c0
push 0
push 0x45b6
call fcn.1004009a
pop ecx
pop ecx
jmp 0x1003e585
jmp 0x1003e604
mov byte [ebp - 0x1c], 0
movzx eax, byte [ebp - 0x1c]
test eax, eax
je 0x1003e5f3
push 0x7187
push 0x724b
push 0x1f25
push 0x7b05
push 0
push 0x1ae
call fcn.1004241e
add esp, 0x18
push 3
lea ecx, [ebp - 0x2c]
call fcn.1001026e
cmp dword [eax], 0
je 0x1003e604
jmp 0x1003e609
jmp 0x1003e132
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10010269
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x104], 0x23ed15de
mov dword [ebp - 0x40], 0
jmp 0x1003e636
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 4
jge 0x1003e64c
mov eax, dword [ebp - 0x40]
mov dword [ebp + eax*4 - 0x138], 0xffffffff
jmp 0x1003e62f
mov dword [ebp - 0x48], 4
jmp 0x1003e65c
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x18
jl 0x1003e691
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x30], 0
jmp 0x1003e679
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 4
jge 0x1003e68f
mov eax, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0x138], 0x5816210b
jmp 0x1003e672
jmp 0x1003e655
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax]
shl eax, 4
mov ecx, dword [ebp - 0xc0]
mov ecx, dword [ecx]
lea eax, [eax + ecx*8 + 0x1067b410]
mov ecx, dword [ebp - 0xb8]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x54]
mov eax, dword [eax + ecx*4]
mov dword [edx], eax
push 2
lea ecx, [ebp - 0xf8]
call fcn.10010227
mov dword [ebp - 4], 1
mov dword [ebp - 0x34], 0
jmp 0x1003e6df
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 1
jge 0x1003e6f2
mov eax, dword [ebp - 0x34]
mov dword [ebp + eax*4 - 0x44], 0xffffffff
jmp 0x1003e6d8
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.100431b1
add esp, 0xc
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x44], 0
jmp 0x1003e72c
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x44]
inc eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x44], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x44], 0xd
jne 0x1003e7bf
mov dword [ebp - 0x4c], 0x457102d1
mov byte [ebp - 0x1e], 0
lea eax, [ebp - 0x1e]
push eax
push 0x2c63
push 0x6bcf
push 0
call fcn.1003f0e8
add esp, 0x10
mov dword [ebp - 0x4c], 0xffffffe3
jmp 0x1003e770
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 1
jge 0x1003e7ba
push 0
lea ecx, [ebp - 0xf8]
call fcn.1001026e
mov dword [eax], 0x33c63384
mov byte [ebp - 0x1b], 0
movzx eax, byte [ebp - 0x1b]
test eax, eax
je 0x1003e7b8
push 0x6deb
push 0x17d1
push 0x1f89
push 0x2e6e
push 0
push 0x606e
call fcn.1003e07d
add esp, 0x18
jmp 0x1003e769
jmp 0x1003e717
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf8]
call fcn.10010269
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax + 0x24]
and eax, 0x4000000
je 0x1003e8ed
mov dword [ebp - 0x38], 0
jmp 0x1003e7f2
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 3
jge 0x1003e808
mov eax, dword [ebp - 0x38]
mov dword [ebp + eax*4 - 0xe0], 3
jmp 0x1003e7eb
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0xe0], 0
jmp 0x1003e836
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0xe0]
dec eax
push 4
pop ecx
shl ecx, 0
mov dword [ebp + ecx - 0xe0], eax
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0xe0], 0xfffffff8
jg 0x1003e8de
push 1
lea ecx, [ebp - 0x124]
call fcn.10010227
mov dword [ebp - 4], 2
mov dword [ebp - 0x3c], 8
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x124]
push eax
push 0x3fb7
push 0x307f
push 0
call fcn.1004598a
add esp, 0x14
mov dword [ebp - 0x3c], 0
jmp 0x1003e897
mov eax, dword [ebp - 0x3c]
dec eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jl 0x1003e8ca
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x1003e8b7
push 0x6af7
push 1
call fcn.1003de22
pop ecx
pop ecx
mov byte [ebp - 0x1d], 0
push 1
lea eax, [ebp - 0x1d]
push eax
call fcn.1003de64
pop ecx
pop ecx
jmp 0x1003e890
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x124]
call fcn.10010269
jmp 0x1003e81b
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
or eax, 0x200
mov ecx, dword [ebp - 0x54]
mov dword [ecx], eax
jmp 0x1003e8fa
push 0x1e40
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret