Function at 0x10082590
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f3224
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x10275008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1ec]
mov dword [ebp - 0x26c], edi
push eax
mov dword [ebp - 0x268], 0
call fcn.100817f0
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], 1
call fcn.1000ab20
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.100052e0
lea ecx, [ebp - 0x20c]
mov byte [ebp - 4], 3
call fcn.100052e0
mov byte [ebp - 4], 4
mov word [ebp - 0x1f4], 0
mov dword [ebp - 0x1f0], 0
push 0x118
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 5
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
lea ecx, [ebp - 0x12c]
call fcn.100e34f0
test al, al
je 0x10082947
cmp dword [ebp - 0x128], 6
jb 0x10082947
xorps xmm0, xmm0
mov dword [ebp - 0x1a4], 0
movq qword [ebp - 0x1ac], xmm0
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 0
lea eax, [ebp - 0x1ac]
mov byte [ebp - 4], 6
push eax
push dword [ebp - 0x1ec]
mov ecx, ebx
call fcn.10081010
mov eax, dword [ebp - 0x1a8]
sub eax, dword [ebp - 0x1ac]
cmp eax, 0x40
jge 0x10082768
push 0x10225df4
mov ecx, edi
call fcn.10005290
mov dword [ebp - 0x268], 1
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x1ac]
test esi, esi
je 0x1008275f
mov ebx, dword [ebp - 0x1a8]
cmp esi, ebx
je 0x1008270c
mov ecx, esi
call fcn.1000abd0
add esi, 0x40
cmp esi, ebx
jne 0x100826f8
mov esi, dword [ebp - 0x1ac]
mov ecx, dword [ebp - 0x1a4]
mov eax, esi
sub ecx, esi
and ecx, 0xffffffc0
cmp ecx, 0x1000
jb 0x10082737
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10082737
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.101c8702
add esp, 8
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 0
mov byte [ebp - 4], 8
jmp 0x100828f7
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x1ec]
push eax
call fcn.1007fde0
mov esi, dword [ebp - 0x1ac]
mov edx, eax
xor ecx, ecx
test edx, edx
js 0x1008279c
mov eax, dword [ebp - 0x1a8]
sub eax, esi
sar eax, 6
dec eax
cmp edx, eax
jge 0x1008279c
lea ecx, [edx + 1]
shl ecx, 6
lea eax, [ebp - 0x264]
add ecx, esi
push eax
push ecx
call fcn.1007fe30
test al, al
jne 0x10082854
push 0x10225df4
mov ecx, edi
call fcn.10005290
mov dword [ebp - 0x268], 1
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0x1ac]
test esi, esi
je 0x1008284b
mov ebx, dword [ebp - 0x1a8]
cmp esi, ebx
je 0x100827f8
mov ecx, esi
call fcn.1000abd0
add esi, 0x40
cmp esi, ebx
jne 0x100827e4
mov esi, dword [ebp - 0x1ac]
mov ecx, dword [ebp - 0x1a4]
mov eax, esi
sub ecx, esi
and ecx, 0xffffffc0
cmp ecx, 0x1000
jb 0x10082823
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10082823
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.101c8702
add esp, 8
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 0
mov byte [ebp - 4], 0xa
jmp 0x100828f7
mov byte [ebp - 4], 0xb
mov esi, dword [ebp - 0x1ac]
test esi, esi
je 0x100828d7
mov ebx, dword [ebp - 0x1a8]
cmp esi, ebx
je 0x10082884
nop dword [eax]
mov ecx, esi
call fcn.1000abd0
add esi, 0x40
cmp esi, ebx
jne 0x10082870
mov esi, dword [ebp - 0x1ac]
mov ecx, dword [ebp - 0x1a4]
mov eax, esi
sub ecx, esi
and ecx, 0xffffffc0
cmp ecx, 0x1000
jb 0x100828af
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100828af
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.101c8702
add esp, 8
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.100086d0
mov dword [ebp - 0x268], 1
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x20c]
call fcn.10005250
lea ecx, [ebp - 0x224]
call fcn.10005250
lea ecx, [ebp - 0x264]
call fcn.1000abd0
lea ecx, [ebp - 0x1ec]
mov byte [ebp - 4], 0
call fcn.1000abd0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101c837b
mov esp, ebp
pop ebp
ret 4
mov ecx, ebx
call fcn.10080bf0
cmp dword [ebp - 0x1cc], 0
je 0x1008298b
cmp dword [ebp - 0x1c8], 8
lea eax, [ebp - 0x1dc]
jb 0x10082970
mov eax, dword [ebp - 0x1dc]
test eax, eax
je 0x10082983
push eax
push 0x10224e80
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x1008298b
mov ecx, dword [ebp - 0x1ec]
jmp 0x100829a1
mov ecx, dword [ebp - 0x1e8]
mov eax, ecx
shr eax, 0x1f
not al
test al, 1
cmovne ecx, dword [ebp - 0x1ec]
mov edx, dword [ebx + 8]
xor eax, eax
mov esi, dword [ebx + 4]
sub edx, esi
sar edx, 2
test edx, edx
jle 0x100829bc
cmp ecx, dword [esi + eax*4]
je 0x10082a06
inc eax
cmp eax, edx
jl 0x100829b2
push 0x190
lea eax, [ebp - 0x1a0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1a0]
push eax
push 0x64
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov ecx, eax
test ecx, ecx
jg 0x10082a1b
push 0x10225df4
mov ecx, edi
call fcn.10005290
mov dword [ebp - 0x268], 1
mov byte [ebp - 4], 0xc
jmp 0x100828f7
cmp eax, 0xffffffff
je 0x100829bc
add eax, 1
js 0x10082a14
cmp eax, edx
jl 0x10082a16
xor eax, eax
mov eax, dword [esi + eax*4]
jmp 0x10082a69
mov edx, dword [ebp - 0x1e8]
xor eax, eax
cmp edx, dword [ebp + eax*4 - 0x1a0]
je 0x10082a33
inc eax
cmp eax, ecx
jl 0x10082a23
jmp 0x10082a38
cmp eax, 0xffffffff
jne 0x10082a57
push 0x10225df4
mov ecx, edi
call fcn.10005290
mov dword [ebp - 0x268], 1
mov byte [ebp - 4], 0xd
jmp 0x100828f7
add eax, 1
js 0x10082a60
cmp eax, ecx
jl 0x10082a62
xor eax, eax
mov eax, dword [ebp + eax*4 - 0x1a0]
lea ecx, [ebp - 0x264]
push ecx
push ecx
push 0
push eax
call fcn.10080730
test al, al
jne 0x100828db
push 0x10225df4
mov ecx, edi
call fcn.10005290
mov dword [ebp - 0x268], 1
mov byte [ebp - 4], 0xe
jmp 0x100828f7