Function at 0x10041e17
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10074032
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x8c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], 0x54f7
mov dword [ebp - 0x74], 0x1000ed44
cmp dword [ebp - 0x2c], 0x5729
jle 0x10041f05
and dword [ebp - 0x20], 0
jmp 0x10041e64
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4541
jge 0x10041f05
and dword [ebp - 0x28], 0
jmp 0x10041e7e
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x305d
jge 0x10041f00
and dword [ebp - 0x1c], 0
jmp 0x10041e94
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x4b91
jge 0x10041efb
and dword [ebp - 0x24], 0
jmp 0x10041eaa
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x6f8c
jge 0x10041ef9
mov eax, dword [ebp - 0x28]
imul eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x20]
or eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
lea ecx, [ebp - 0x9c]
call fcn.10010ade
pop ecx
pop ecx
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
call fcn.10026de4
push eax
call fcn.10058cdf
pop ecx
lea ecx, [ebp - 0x9c]
call fcn.10026dda
jmp 0x10041ea3
jmp 0x10041e8d
jmp 0x10041e77
jmp 0x10041e5d
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10041fd9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x60], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x10041f8c
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x10041f6d
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], 3
jge 0x10041f8a
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x68]
call fcn.100270e2
mov dword [eax], 0x313dd33a
jmp 0x10041f62
jmp 0x10041fd7
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x10041fba
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 3
jge 0x10041fd7
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x34]
call fcn.100270e2
mov dword [eax], 1
jmp 0x10041faf
jmp 0x10042028
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x44], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x10041fff
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
jmp 0x10042028
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x6c]
mov ecx, dword [ecx]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov dword [ecx + 4], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 0x51bd
jge 0x1004203e
push dword [ebp - 0x74]
call fcn.10058cdf
pop ecx
jmp 0x1004205a
or dword [ebp - 4], 0xffffffff
jmp 0x10042064
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret