Function at 0x1003e8c5
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006131c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xb4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x2c]
test eax, eax
je 0x1003ebb5
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x84]
movzx eax, byte [eax]
test eax, eax
je 0x1003ea7f
mov dword [ebp - 0x2c], 0x65ae
mov dword [ebp - 0xa0], 0x1000afc8
cmp dword [ebp - 0x2c], 0x6668
jle 0x1003ea0e
push 0
call dword [sym.imp.USER32.dll_SetKeyboardState]
and dword [ebp - 0x18], 0
jmp 0x1003e973
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x3610
jge 0x1003ea03
and dword [ebp - 0x24], 0
jmp 0x1003e98d
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x7fa1
jge 0x1003e9fe
and dword [ebp - 0x20], 0
jmp 0x1003e9a3
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2682
jge 0x1003e9fc
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
sar eax, cl
cdq
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], edx
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
lea ecx, [ebp - 0xc4]
call fcn.1000cda0
pop ecx
pop ecx
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
call fcn.1002bc3e
push eax
call fcn.1004b066
pop ecx
lea ecx, [ebp - 0xc4]
call fcn.1002bc34
jmp 0x1003e99c
jmp 0x1003e986
jmp 0x1003e96c
push 0xd69
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x7c], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 0x63c2
jge 0x1003ea2d
push dword [ebp - 0xa0]
call fcn.1004b066
pop ecx
jmp 0x1003ea49
or dword [ebp - 4], 0xffffffff
jmp 0x1003ea53
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x94]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
jmp 0x1003ebb3
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x34], 0x7927
mov dword [ebp - 0x6c], 0x1000b038
cmp dword [ebp - 0x34], 0x7b62
jle 0x1003eb1e
and dword [ebp - 0x28], 0
jmp 0x1003eab5
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x238a
jge 0x1003eb1e
and dword [ebp - 0x14], 0
jmp 0x1003eacb
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x4584
jge 0x1003eb1c
and dword [ebp - 0x1c], 0
jmp 0x1003eae1
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x5d0e
jge 0x1003eb1a
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
shl eax, cl
xor eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], edx
push dword [ebp - 0xa4]
push dword [ebp - 0xa8]
mov ecx, 0x10608998
call fcn.1002bc5e
jmp 0x1003eada
jmp 0x1003eac4
jmp 0x1003eaae
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x34], 0x7680
jge 0x1003eb44
mov edx, dword [ebp - 0x6c]
mov ecx, 0x10608998
call fcn.1002d708
jmp 0x1003eb60
or dword [ebp - 4], 0xffffffff
jmp 0x1003eb6a
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x68]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x70]
mov edx, dword [edx]
add edx, dword [ecx + 0x20]
lea eax, [edx + eax*4]
mov ecx, dword [ebp - 0x78]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x80]
mov edx, dword [edx]
mov dword [ecx + eax], edx
jmp 0x1003ebf6
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x88], eax
push 0x471
push 0x60fa
push 0x3474
push dword [ebp - 0x88]
push 0x5bf6
push 1
push dword [ebp - 0x90]
push 0xa3
call fcn.1003e894
add esp, 0x20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret