Function at 0x763129f1
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 2
push dword [ebp + 8]
call fcn.76314608
xor edi, edi
cmp eax, edi
mov dword [ebp - 8], eax
je 0x76312aec
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x76312aec
push esi
push 0x76316020
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
push 0x763028e0
mov esi, 0x20000
push esi
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x76312acd
push ebx
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, edi
je 0x76312acc
xor eax, eax
push 9
pop ecx
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
xor edx, edx
mov ecx, 0xc0
div ecx
mov dword [ebx + 4], esi
mov esi, dword [ebp + 0x14]
mov dword [ebx], 1
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0xc], eax
xor eax, eax
cmp dword [ebp + 0x1c], eax
je 0x76312844
cmp dword [ebp + 0x18], eax
jne 0x76312848
cmp esi, eax
je 0x763128a1
cmp esi, eax
je 0x76312871
lea eax, [ebx + 0x24]
mov dword [ebx + 0x10], eax
push 0x30
mov edi, eax
pop ecx
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov dword [eax + 0xbc], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov eax, dword [ebx + 0x10]
add eax, 0xc0
jmp 0x76312877
mov dword [ebx + 0x10], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x10]
test eax, eax
mov edi, ebx
mov dword [ebp + 0xc], edi
je 0x7631288a
sub eax, ebx
jmp 0x7631288c
xor eax, eax
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x7631289a
sub eax, ebx
jmp 0x7631289c
xor eax, eax
mov dword [ebx + 0x14], eax
jmp 0x763128a4
mov edi, dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1c
push 0x287
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x76312ac3
mov edx, dword [ebp + 0x18]
test edx, edx
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0x1c], eax
je 0x76312ac3
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x763128db
add eax, edi
jmp 0x763128dd
xor eax, eax
test eax, eax
mov dword [ebx + 0x14], eax
je 0x763128f9
cmp eax, ebx
jb 0x76312ac3
mov ecx, dword [ebx + 4]
add ecx, ebx
cmp eax, ecx
ja 0x76312ac3
and dword [ebp + 8], 0
cmp dword [ebp + 0x1c], 0
jbe 0x763129ab
add eax, 0x14
mov ecx, dword [eax - 4]
test ecx, ecx
je 0x76312916
lea esi, [ecx + edi]
jmp 0x76312918
xor esi, esi
mov ecx, dword [eax]
test ecx, ecx
mov dword [ebp + 0x10], esi
mov dword [eax - 4], esi
je 0x76312928
add edi, ecx
jmp 0x7631292a
xor edi, edi
lea ecx, [eax + 0xa8]
mov edx, dword [ecx]
test edx, edx
mov dword [eax], edi
je 0x76312942
mov esi, dword [ebp + 0xc]
add edx, esi
mov esi, dword [ebp + 0x10]
jmp 0x76312944
xor edx, edx
test esi, esi
mov dword [ecx], edx
je 0x7631295f
cmp esi, ebx
jb 0x76312ac3
mov ecx, dword [ebx + 4]
add ecx, ebx
cmp esi, ecx
ja 0x76312ac3
test edi, edi
je 0x76312978
cmp edi, ebx
jb 0x76312ac3
mov ecx, dword [ebx + 4]
add ecx, ebx
cmp edi, ecx
ja 0x76312ac3
test edx, edx
je 0x76312991
cmp edx, ebx
jb 0x76312ac3
mov ecx, dword [ebx + 4]
add ecx, ebx
cmp edx, ecx
ja 0x76312ac3
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
add eax, 0xc0
cmp ecx, dword [ebp + 0x1c]
jb 0x7631290a
mov edx, dword [ebp + 0x18]
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x763129b6
add eax, edi
jmp 0x763129b8
xor eax, eax
test eax, eax
mov dword [ebx + 0x1c], eax
je 0x76312a17
mov ecx, dword [eax + 8]
and dword [eax + 4], 0
test ecx, ecx
je 0x763129ce
add ecx, edi
jmp 0x763129d0
xor ecx, ecx
test ecx, ecx
mov dword [eax + 8], ecx
je 0x763129ec
cmp ecx, ebx
jb 0x76312ac3
mov esi, dword [ebx + 4]
add esi, ebx
cmp ecx, esi
ja 0x76312ac3
mov ecx, dword [eax]
test ecx, ecx
je 0x763129f6
add ecx, edi
jmp 0x763129f8
xor ecx, ecx
mov dword [eax], ecx
mov eax, ecx
test eax, eax
je 0x76312a17
cmp eax, ebx
jb 0x76312ac3
mov ecx, dword [ebx + 4]
add ecx, ebx
cmp eax, ecx
ja 0x76312ac3
jmp 0x763129bf
cmp dword [ebp + 0x1c], 0
mov edi, dword [ebx + 0x14]
jbe 0x76312ac3
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 8], eax
jmp 0x76312a2f
mov edx, dword [ebp + 0x18]
mov eax, dword [edi]
mov dword [edx], eax
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov eax, dword [edi + 8]
mov dword [edx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [edi + 0x18]
mov dword [edx + 0x18], eax
lea eax, [edi + 0x1c]
push eax
add edx, 0x1c
push edx
call dword [sym.imp.ntdll.dll_wcscpy]
mov eax, dword [edi + 0x10]
test eax, eax
pop ecx
pop ecx
je 0x76312a70
push eax
call fcn.76312710
mov esi, dword [ebp + 0x18]
mov dword [esi + 0x10], eax
jmp 0x76312a79
mov eax, dword [ebp + 0x18]
and dword [eax + 0x10], 0
mov esi, eax
mov eax, dword [edi + 0x14]
test eax, eax
je 0x76312a8b
push eax
call fcn.76312710
mov dword [esi + 0x14], eax
jmp 0x76312a8f
and dword [esi + 0x14], 0
mov eax, dword [edi + 0xbc]
test eax, eax
je 0x76312aa7
push eax
call fcn.76312710
mov dword [esi + 0xbc], eax
jmp 0x76312aae
and dword [esi + 0xbc], 0
mov eax, 0xc0
add esi, eax
add edi, eax
dec dword [ebp + 8]
mov dword [ebp + 0x18], esi
jne 0x76312a2c
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor edi, edi
pop ebx
push 0x76316020
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
cmp dword [ebp - 4], edi
pop esi
je 0x76312ae7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x1c]
jmp 0x76312aee
xor eax, eax
pop edi
leave
ret 0x18