Function at 0x10013588
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005e45c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x84
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x100135ce
push 0x4d83
push 1
push 0x2d3b
call fcn.1001381c
add esp, 0xc
jmp 0x1001380b
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x100136f2
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x2c], 0x7c19
mov dword [ebp - 0x4c], str.yljgm_ttcsn_phztaxx_bpgk_gegoecmt_avzowxrg_lbbrpvafp_sgfrmil_pgpm_wvcosgy_quisjkq_lztjixb_fef_tkkuhhyy
cmp dword [ebp - 0x2c], 0x7cfe
jle 0x10013697
push 0x4a2
call dword [sym.imp.GDI32.dll_GetStockObject]
and dword [ebp - 0x24], 0
jmp 0x1001363b
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x4a44
jge 0x10013697
and dword [ebp - 0x28], 0
jmp 0x10013651
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x3ade
jge 0x10013695
and dword [ebp - 0x18], 0
jmp 0x10013667
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x77e9
jge 0x10013693
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0x28]
xor eax, dword [ebp - 0x18]
cdq
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
mov ecx, 0x100788d8
call fcn.10001e5c
jmp 0x10013660
jmp 0x1001364a
jmp 0x10013634
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x64], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 0x79e0
jge 0x100136b7
mov edx, dword [ebp - 0x4c]
mov ecx, 0x100788d8
call fcn.10003d65
jmp 0x100136d3
or dword [ebp - 4], 0xffffffff
jmp 0x100136dd
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
shr eax, 1
push eax
mov ecx, dword [ebp - 0x54]
call fcn.1000bd6e
jmp 0x1001380b
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x30], 0x1ea5
mov dword [ebp - 0x50], str.qnh_mypod_eyua_lwn_tufnkp_diwccptm
cmp dword [ebp - 0x30], 0x2255
jle 0x1001378d
and dword [ebp - 0x1c], 0
jmp 0x10013722
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x4a1d
jge 0x10013782
and dword [ebp - 0x20], 0
jmp 0x10013738
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x558c
jge 0x10013780
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
push dword [ebp - 0x74]
push dword [ebp - 0x78]
lea ecx, [ebp - 0x94]
call fcn.10001a75
pop ecx
pop ecx
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
call fcn.10001e3c
push eax
call fcn.10047084
pop ecx
lea ecx, [ebp - 0x94]
call fcn.10001e32
jmp 0x10013731
jmp 0x1001371b
push 0x1ed
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x30], 0x1af5
jge 0x100137ac
push dword [ebp - 0x50]
call fcn.10047084
pop ecx
jmp 0x100137c8
or dword [ebp - 4], 0xffffffff
jmp 0x100137d2
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x100137ee
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 2
jge 0x1001380b
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x60]
call fcn.10002064
mov dword [eax], 0xfffb
jmp 0x100137e3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret