Function at 0x1005333c
Capabilities:
Get keyboard layout

Disassembly:
mov eax, 0x1008992b
call fcn.10087f10
sub esp, 0x64
push ebx
push esi
push edi
push 2
pop edi
mov esi, ecx
lea ecx, [ebp - 0x58]
push edi
call fcn.10019b25
xor ebx, ebx
lea ecx, [ebp - 0x70]
push edi
mov dword [ebp - 4], ebx
call fcn.10019b25
push 3
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.10019b25
mov dword [ebp - 0x14], ebx
jmp 0x1005338b
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x58]
mov dword [eax + ecx*4], 0xfffffffb
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x1005337b
mov dword [ebp - 0x14], ebx
jmp 0x100533a5
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x70]
mov dword [eax + ecx*4], 0xfffffff7
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x10053395
xor edi, edi
mov dword [ebp - 0x14], ebx
inc edi
jmp 0x100533bc
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x2c], edi
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x100533b2
mov dword [ebp - 0x14], ebx
jmp 0x100533d6
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x64]
mov dword [eax + ecx*4], 0x2c2192b5
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jl 0x100533c6
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x64]
mov dword [eax + 4], 0xe
call fcn.1001a431
lea ecx, [ebp - 0x70]
call fcn.1001a431
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.1001a431
push edi
push esi
call fcn.1004dba4
mov edi, dword [sym.imp.USER32.dll_GetDesktopWindow]
xor eax, eax
mov ebx, dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], eax
pop ecx
pop ecx
mov byte [ebp - 0xd], al
je 0x10053431
cmp byte [ebp - 0xd], al
je 0x10053452
call dword [sym.imp.USER32.dll_GetMessageTime]
jmp 0x10053450
cmp byte [ebp - 0xd], al
je 0x10053452
push eax
push eax
push eax
push 0x1e5a
push 0x10b4
push eax
call edi
push eax
call ebx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentExPointA]
xor eax, eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x10053466
push 0x2448
call dword [sym.imp.USER32.dll_GetSysColor]
push esi
call fcn.1003565f
pop ecx
push 2
pop esi
mov dword [ebp - 0x14], 6
lea ecx, [ebp - 0x4c]
push esi
mov dword [ebp - 0x28], eax
call fcn.10019b25
xor edx, edx
mov dword [ebp - 0x1c], edx
jmp 0x10053497
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x4c]
or dword [eax + ecx*4], 0xffffffff
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], esi
jl 0x1005348a
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0xffffffe6
jge 0x10053524
mov dword [ebp - 0x18], 0xfffffff9
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], edx
jmp 0x100534c2
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x34], 0xe32883e7
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], esi
jl 0x100534b4
mov eax, dword [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x4c]
add ecx, 4
push 0
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
cmp ecx, eax
setle dl
xor ecx, ecx
sub edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp edx, eax
pop edx
setl cl
mov dword [ebp - 0x18], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x4c]
setl cl
sub ecx, dword [eax]
mov eax, dword [ebp - 0x14]
neg ecx
sbb ecx, ecx
inc ecx
sub eax, ecx
mov dword [ebp - 0x24], eax
inc dword [ebp - 0x30]
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xffffffe6
jl 0x100534a5
xor ecx, ecx
inc ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], edx
jl 0x10053676
mov dword [ebp - 0x1c], edx
jmp 0x10053546
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x40], 0xb090aec5
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 3
jl 0x10053538
mov dword [ebp - 0x40], edx
jmp 0x10053664
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], edx
jl 0x10053661
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], edx
jl 0x1005361d
mov dword [ebp - 0x20], 8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [esi + eax*4]
mov dword [ecx + edx*4], eax
test eax, eax
je 0x100535de
cmp dword [esi], 0
jne 0x100535b3
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x40]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x40]
xor ecx, ecx
cmp eax, 0xfffffff8
mov eax, dword [ebp - 0x1c]
setge cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 0x18]
setle dl
xor ecx, ecx
cmp edx, eax
setl cl
cmp dword [ebp - 0x24], ecx
jge 0x100535de
xor ecx, ecx
inc ecx
xor edx, edx
jmp 0x100535e2
xor edx, edx
mov ecx, edx
mov eax, dword [ebp - 0x20]
sub ecx, eax
cmp ecx, dword [ebp - 0x14]
jl 0x100535f6
cmp dword [ebp - 0x18], edx
je 0x100535f6
xor eax, eax
inc eax
jmp 0x100535f8
mov eax, edx
mov dword [ebp - 0x20], eax
mov byte [ebp - 0xd], dl
cmp byte [ebp - 0xd], 0
je 0x10053611
push 0x520
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
xor edx, edx
dec dword [ebp - 0x18]
jns 0x10053588
xor ecx, ecx
inc ecx
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], edx
jl 0x10053658
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], edx
jl 0x10053653
mov byte [ebp - 0xd], dl
cmp byte [ebp - 0xd], 0
je 0x1005364b
push edx
push 0x5ba
push edx
call edi
push eax
call ebx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
xor edx, edx
dec dword [ebp - 0x18]
jns 0x1005362d
xor ecx, ecx
inc ecx
dec dword [ebp - 0x20]
jns 0x10053625
dec dword [ebp - 0x1c]
jns 0x1005356e
inc dword [ebp - 0x40]
cmp dword [ebp - 0x40], ecx
jle 0x10053554
dec dword [ebp - 0x14]
jns 0x10053533
lea ecx, [ebp - 0x4c]
call fcn.1001a431
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret