Function at 0x1003e964
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100896d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1003ecc6
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 0x4abf
lea eax, [ebp - 0x3c]
push eax
push 0x62b
push 0
call fcn.10043424
add esp, 0x14
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
jne 0x1003ecc4
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x60], 0xfffffffd
mov dword [ebp - 0x1c], 0xfffffff6
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x14], 0xe7374489
mov dword [ebp - 0x5c], 5
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x34], 0
jmp 0x1003ea09
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
jge 0x1003ea1f
mov eax, dword [ebp - 0x34]
mov dword [ebp + eax*4 - 0xac], 0xfffffff6
jmp 0x1003ea02
mov byte [ebp - 0xf], 0
lea eax, [ebp - 0xf]
push eax
push 0x114a
push 0x71bc
push 0x2966
push 0x4fdb
push 0x2f30
push 0x7b0c
push 0x48f7
push 0
call fcn.1003ed9c
add esp, 0x24
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x1c], 1
jne 0x1003ea81
mov dword [ebp - 0x74], 1
jmp 0x1003ea85
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x94], eax
mov eax, 0x2b948214
test eax, eax
jne 0x1003eabb
mov dword [ebp - 0x58], 1
jmp 0x1003eabf
and dword [ebp - 0x58], 0
cmp dword [ebp - 0x58], 4
jl 0x1003eace
mov dword [ebp - 0x7c], 1
jmp 0x1003ead2
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jne 0x1003eae6
mov dword [ebp - 0x50], 1
jmp 0x1003eaea
and dword [ebp - 0x50], 0
cmp dword [ebp - 0x50], 0xffff
jbe 0x1003eb02
cmp dword [ebp - 0x1c], 0
je 0x1003eb02
mov dword [ebp - 0x40], 1
jmp 0x1003eb06
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x40], eax
jg 0x1003eb17
mov dword [ebp - 0x44], 1
jmp 0x1003eb1b
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], eax
jl 0x1003eb32
mov dword [ebp - 0x38], 1
jmp 0x1003eb36
and dword [ebp - 0x38], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp + eax - 0xac], ecx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x18]
jne 0x1003eb5a
mov dword [ebp - 0x4c], 1
jmp 0x1003eb5e
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0xaee51190
jbe 0x1003eb70
mov dword [ebp - 0x54], 1
jmp 0x1003eb74
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
mov eax, 0x12b57e8b
sub eax, dword [ebp - 0x5c]
imul eax, dword [ebp - 0x1c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x24]
and eax, 0x40
je 0x1003eca0
push 2
lea ecx, [ebp - 0x88]
call fcn.10010227
and dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
jmp 0x1003ebb9
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
jge 0x1003ebcc
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x30], 0xffffffff
jmp 0x1003ebb2
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x88]
push eax
push 0x861
push 0
call fcn.1003f32f
add esp, 0x10
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x30], 0
jmp 0x1003ec0b
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x30]
inc eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x30], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x30], 0xd
jne 0x1003ec82
mov dword [ebp - 0x28], 0x457102d1
mov byte [ebp - 0xe], 0
push 0x3413
push 0x54de
lea eax, [ebp - 0xe]
push eax
push 0
call fcn.1003ed1f
add esp, 0x10
mov dword [ebp - 0x28], 0xffffffe3
jmp 0x1003ec4b
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 1
jge 0x1003ec7d
push 0
lea ecx, [ebp - 0x88]
call fcn.1001026e
mov dword [eax], 0x33c63384
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x1003ec7b
push 0x1e40
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
jmp 0x1003ec44
jmp 0x1003ebf6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.10010269
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [eax + 0x20]
mov dword [ecx], eax
jmp 0x1003ecc4
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x24]
and eax, 0x80
je 0x1003ecc4
push 0x526
push 1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.1003e909
add esp, 0x10
jmp 0x1003ed11
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x24]
mov dword [eax], 0
jmp 0x1003ecf4
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
cmp dword [eax], 1
jge 0x1003ed11
mov eax, dword [ebp - 0x24]
push dword [eax]
mov ecx, dword [ebp - 0x78]
call fcn.1001026e
mov dword [eax], 4
jmp 0x1003ece9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret