Function at 0x1005744b
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x100576ae
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x24], 0x3845
mov dword [ebp - 0x34], 0x1000db08
cmp dword [ebp - 0x24], 0x3bf2
jle 0x10057509
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_PtInRegion]
and dword [ebp - 0x20], 0
jmp 0x1005749d
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x5a1c
jge 0x100574ff
and dword [ebp - 0x14], 0
jmp 0x100574b3
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x1a93
jge 0x100574fd
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
sar eax, cl
cdq
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], edx
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
lea ecx, [ebp - 0xa8]
call fcn.100127de
pop ecx
pop ecx
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
call fcn.10026416
push eax
call fcn.10079103
pop ecx
lea ecx, [ebp - 0xa8]
call fcn.1002640c
jmp 0x100574ac
jmp 0x10057496
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x24], 0x37a9
jge 0x10057521
push dword [ebp - 0x34]
call fcn.10079103
pop ecx
mov dword [ebp - 0x28], 0x363b
mov dword [ebp - 0x3c], 0x1000db20
cmp dword [ebp - 0x28], 0x38c4
jle 0x10057605
and dword [ebp - 0xc], 0
jmp 0x10057549
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x332e
jge 0x100575fd
and dword [ebp - 0x1c], 0
jmp 0x10057563
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x2ab4
jge 0x100575f8
and dword [ebp - 0x10], 0
jmp 0x1005757d
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x39e0
jge 0x100575f3
and dword [ebp - 0x18], 0
jmp 0x10057593
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x4f92
jge 0x100575f1
mov eax, dword [ebp - 0xc]
or eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
sar edx, cl
or eax, edx
cdq
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
push dword [ebp - 0x84]
push dword [ebp - 0x88]
lea ecx, [ebp - 0xc0]
call fcn.100127de
pop ecx
pop ecx
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
call fcn.10026416
push eax
call fcn.10079103
pop ecx
lea ecx, [ebp - 0xc0]
call fcn.1002640c
jmp 0x1005758c
jmp 0x10057576
jmp 0x1005755c
jmp 0x10057542
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x28], 0x3283
jge 0x1005761d
push dword [ebp - 0x3c]
call fcn.10079103
pop ecx
lea eax, [ebp + 0x18]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
movzx eax, byte [eax]
test eax, eax
je 0x10057655
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x10057653
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x100576a9
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10057689
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x100576a9
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x8c]
call fcn.100267ee
mov dword [eax], 0xaf72
jmp 0x1005767e
jmp 0x1005773f
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x1005771d
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x100576fe
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 2
jge 0x1005771b
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x58]
call fcn.100267ee
mov dword [eax], 5
jmp 0x100576f3
jmp 0x1005773f
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x1005773f
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_GetPixel]
mov esp, ebp
pop ebp
ret