Function at 0x10042024
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100630fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xc0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x100423ed
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x64], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xa4]
movzx eax, byte [eax]
test eax, eax
je 0x1004238b
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x54], 0x141f
mov dword [ebp - 0xac], str.wjm_tftl_qeb_moig_blmq_tcvvsp_gdhyn_mmrqbs
cmp dword [ebp - 0x54], 0x1451
jle 0x1004219d
push 0
push 0x1a9a
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
and dword [ebp - 0x1c], 0
jmp 0x10042120
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x5160
jge 0x10042192
and dword [ebp - 0x20], 0
jmp 0x10042136
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2ded
jge 0x10042190
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], edx
push dword [ebp - 0xb0]
push dword [ebp - 0xb4]
lea ecx, [ebp - 0xd0]
call fcn.10001a6a
pop ecx
pop ecx
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
call fcn.10003403
push eax
call fcn.1004a873
pop ecx
lea ecx, [ebp - 0xd0]
call fcn.100033f9
jmp 0x1004212f
jmp 0x10042119
push 0x1dd9
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x68], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x54], 0x11f9
jge 0x100421bf
push dword [ebp - 0xac]
call fcn.1004a873
pop ecx
jmp 0x100421db
or dword [ebp - 4], 0xffffffff
jmp 0x100421e5
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x70], eax
push 1
mov ecx, dword [ebp - 0x14]
call fcn.10003a45
mov ecx, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
push 3
mov ecx, dword [ebp - 0x14]
call fcn.10003a45
cmp esi, dword [eax]
jne 0x10042221
mov dword [ebp - 0x44], 1
jmp 0x10042225
and dword [ebp - 0x44], 0
push 0
mov ecx, dword [ebp - 0x14]
call fcn.10003a45
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [eax]
jge 0x1004223f
mov dword [ebp - 0x34], 1
jmp 0x10042243
and dword [ebp - 0x34], 0
push 2
mov ecx, dword [ebp - 0x14]
call fcn.10003a45
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [eax]
jle 0x1004225d
mov dword [ebp - 0x24], 1
jmp 0x10042261
and dword [ebp - 0x24], 0
push 1
mov ecx, dword [ebp - 0x14]
call fcn.10003a45
mov eax, dword [eax]
cmp eax, dword [ebp - 0x24]
jle 0x1004227b
mov dword [ebp - 0x3c], 1
jmp 0x1004227f
and dword [ebp - 0x3c], 0
push 2
mov ecx, dword [ebp - 0x14]
call fcn.10003a45
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [eax]
jg 0x10042299
mov dword [ebp - 0x4c], 1
jmp 0x1004229d
and dword [ebp - 0x4c], 0
imul esi, dword [ebp - 0x4c], 0xffff
push 3
mov ecx, dword [ebp - 0x14]
call fcn.10003a45
cmp esi, dword [eax]
jge 0x100422bb
mov dword [ebp - 0x28], 1
jmp 0x100422bf
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x68]
mov dword [eax], 0xffff
cmp dword [ebp - 0x28], 0xffff
jne 0x100422da
mov dword [ebp - 0x30], 1
jmp 0x100422de
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0xffff
jae 0x100422f0
mov dword [ebp - 0x38], 1
jmp 0x100422f4
and dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0xe11a796d
jb 0x10042306
mov dword [ebp - 0x40], 1
jmp 0x1004230a
and dword [ebp - 0x40], 0
push 2
mov ecx, dword [ebp - 0x14]
call fcn.10003a45
mov eax, dword [eax]
cmp eax, dword [ebp - 0x40]
jle 0x10042324
mov dword [ebp - 0x48], 1
jmp 0x10042328
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x48]
add eax, 9
cmp eax, 0xc3d21462
je 0x1004233e
mov dword [ebp - 0x50], 1
jmp 0x10042342
and dword [ebp - 0x50], 0
push 2
mov ecx, dword [ebp - 0x14]
call fcn.10003a45
mov ecx, dword [ebp - 0x50]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x70]
cmp ecx, dword [eax]
jl 0x10042361
mov dword [ebp - 0x58], 1
jmp 0x10042365
and dword [ebp - 0x58], 0
push 2
mov ecx, dword [ebp - 0x14]
call fcn.10003a45
mov esi, eax
push 2
mov ecx, dword [ebp - 0x14]
call fcn.10003a45
mov ecx, dword [ebp - 0x58]
sub ecx, dword [eax]
mov eax, dword [esi]
sub eax, ecx
mov ecx, dword [ebp - 0x78]
mov dword [ecx], eax
jmp 0x100423eb
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x100423cb
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], 1
jge 0x100423eb
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0xa0]
call fcn.10003a45
mov dword [eax], 1
jmp 0x100423c0
jmp 0x10042405
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xa8], eax
push dword [ebp - 0xa8]
push 0
call fcn.1003dfd4
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret