Function at 0x40abfb
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov eax, 0x44a0
lea ebp, [esp - 0x78]
call fcn.004540a0
push ebx
xor ebx, ebx
cmp byte [0x464499], bl
mov dword [ebp + 0x68], ecx
je 0x40ac20
xor eax, eax
inc eax
jmp 0x40b24a
mov eax, dword [0x466148]
cmp eax, ebx
mov dword [ebp + 0x58], eax
jne 0x40ac60
cmp dword [0x463da0], 1
mov dword [0x463da0], ebx
sete al
cmp al, bl
mov eax, 0x45671c
jne 0x40ac4a
mov eax, 0x457f24
mov ecx, dword [0x463c78]
push 1
push ebx
push 0xffffffffffffffff
push eax
call fcn.00401525
jmp 0x40b24a
mov eax, dword [0x4660fc]
push esi
push edi
mov dword [ebp + 0x60], eax
mov eax, dword [0x466104]
mov dword [ebp + 0x64], eax
mov esi, dword [0x466100]
push 0x3f
xor eax, eax
pop ecx
mov byte [ebp - 0x228], bl
lea edi, [ebp - 0x227]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x7f
mov byte [ebp - 0x428], bl
xor eax, eax
pop ecx
lea edi, [ebp - 0x427]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [0x463da0], ebx
stosb byte es:[edi], al
mov byte [ebp + 0x6d], bl
jmp 0x40ada9
mov byte [ebp + 0x6c], bl
mov al, byte [esi]
movsx ecx, al
sub ecx, 0x7b
je 0x40acf1
dec ecx
dec ecx
je 0x40ada8
push ebx
mov byte [ebp + 0x6c], al
mov byte [ebp + 0x77], bl
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
push 1
lea eax, [ebp + 0x77]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.00413b50
add esp, 0x14
mov byte [ebp + 0x76], al
jmp 0x40ad75
lea eax, [esi + 1]
push 0x7d
push eax
mov dword [ebp + 0x5c], eax
call fcn.00453c30
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x40ada8
sub eax, esi
dec eax
mov dword [ebp + 0x70], eax
jne 0x40ad24
inc edi
cmp byte [edi], 0x7d
jne 0x40ada8
mov dword [ebp + 0x70], 1
mov byte [edi], bl
push ebx
mov byte [ebp + 0x77], bl
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, dword [ebp + 0x5c]
push eax
push 1
push 1
lea eax, [ebp + 0x77]
push eax
push esi
call fcn.00413b50
add esp, 0x14
cmp al, bl
mov byte [ebp + 0x76], al
je 0x40ad59
cmp dword [ebp + 0x70], 1
jne 0x40ad70
mov al, byte [esi]
mov byte [ebp + 0x6c], al
jmp 0x40ad70
push esi
call fcn.004138f8
cmp ax, bx
pop ecx
je 0x40ad70
movzx eax, ax
mov byte [ebp + eax - 0x428], 1
mov byte [edi], 0x7d
mov esi, edi
cmp byte [ebp + 0x76], bl
je 0x40ada8
movzx edi, byte [ebp + 0x76]
lea edi, [ebp + edi - 0x228]
or byte [edi], 1
cmp byte [ebp + 0x6c], bl
je 0x40ada8
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_IsCharAlphaA]
test eax, eax
jne 0x40ada8
test byte [ebp + 0x77], 0x30
je 0x40ada5
or byte [edi], 2
jmp 0x40ada8
or byte [edi], 4
inc esi
cmp byte [esi], bl
jne 0x40acb2
mov edi, dword [ebp + 0x64]
mov dword [0x463db8], ebx
cmp byte [edi], bl
je 0x40af14
cmp dword [0x463db4], ebx
mov esi, 0x1000
jne 0x40ade9
push esi
call fcn.0043e9ea
cmp eax, ebx
pop ecx
mov dword [0x463db4], eax
je 0x40ae36
mov dword [0x463dbc], 0x400
mov ecx, dword [ebp + 0x68]
push 4
call fcn.0041d507
inc eax
cmp eax, dword [0x463dc4]
jbe 0x40ae4e
cmp eax, esi
mov dword [0x463dc4], eax
ja 0x40ae0b
mov dword [0x463dc4], esi
mov eax, dword [0x463dc0]
cmp eax, ebx
je 0x40ae1b
push eax
call fcn.0043dfa7
pop ecx
push dword [0x463dc4]
call fcn.0043e9ea
cmp eax, ebx
pop ecx
mov dword [0x463dc0], eax
jne 0x40ae53
mov dword [0x463dc4], ebx
mov ecx, dword [ebp + 0x68]
push 0x4565d8
push ebx
push str.Out_of_memory.
call fcn.0044a6b8
jmp 0x40b248
mov eax, dword [0x463dc0]
mov esi, dword [0x463db8]
mov ecx, dword [0x463db4]
mov dword [ecx + esi*4], eax
mov esi, dword [0x463dc0]
cmp byte [edi], bl
mov edx, edi
jmp 0x40aef1
mov al, byte [edx]
cmp al, 0x2c
je 0x40ae7c
mov byte [esi], al
inc esi
jmp 0x40aeeb
inc edx
cmp byte [edx], 0x2c
jne 0x40ae8b
mov byte [esi], 0x2c
inc esi
mov dword [ebp + 0x70], edx
jmp 0x40aeeb
mov byte [esi], bl
mov ecx, dword [0x463db4]
mov eax, dword [0x463db8]
mov edi, dword [ecx + eax*4]
cmp byte [edi], bl
je 0x40aeb6
inc eax
mov dword [0x463db8], eax
inc esi
mov dword [ecx + eax*4], esi
mov byte [esi], bl
mov ecx, dword [0x463db4]
mov eax, dword [0x463db8]
cmp byte [edx], bl
je 0x40aeeb
mov edx, dword [0x463dbc]
cmp eax, edx
jb 0x40aeeb
lea eax, [edx*4 + 0x1000]
push eax
push ecx
call fcn.004400a1
cmp eax, ebx
pop ecx
pop ecx
je 0x40ae36
add dword [0x463dbc], 0x400
mov dword [0x463db4], eax
mov edx, dword [ebp + 0x70]
inc edx
cmp byte [edx], bl
mov dword [ebp + 0x70], edx
jne 0x40ae71
mov byte [esi], bl
mov eax, dword [0x463db4]
mov ecx, dword [0x463db8]
mov eax, dword [eax + ecx*4]
cmp byte [eax], bl
je 0x40af14
inc dword [0x463db8]
cmp byte [0x4634ab], bl
je 0x40af4e
push 0xc
push dword [0x463360]
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x40af34
mov byte [0x4634ab], bl
push 0x10
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test al, 0x10
je 0x40af4e
push 1
push 0xffffffffffffffff
call fcn.0040bd90
pop ecx
pop ecx
xor eax, eax
mov byte [ebp - 0x4428], bl
mov ecx, 0xfff
lea edi, [ebp - 0x4427]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4428]
mov dword [0x463dd0], eax
mov eax, dword [ebp + 0x60]
mov esi, 0x3fff
mov byte [0x463dc8], 1
mov byte [0x463dc9], bl
mov byte [0x463dca], bl
mov byte [0x463dcb], bl
mov byte [0x463dcc], bl
mov byte [0x463dcd], bl
mov dword [0x463dd4], ebx
mov dword [0x463dd8], esi
cmp byte [eax], bl
mov dword [ebp + 0x70], ebx
mov edi, eax
je 0x40b059
movsx eax, byte [edi]
push eax
call fcn.00441cd7
cmp eax, 0x4c
pop ecx
jg 0x40b018
je 0x40affd
sub eax, 0x2a
je 0x40aff4
sub eax, 0x18
je 0x40afec
dec eax
je 0x40afe3
sub eax, 6
jne 0x40b050
mov byte [0x463dca], 1
jmp 0x40b050
mov byte [0x463dc9], 1
jmp 0x40b050
mov byte [0x463dc8], bl
jmp 0x40b050
mov byte [0x463dcd], 1
jmp 0x40b050
lea eax, [edi + 1]
push eax
call fcn.00401988
cmp eax, esi
pop ecx
mov dword [0x463dd8], eax
jle 0x40b050
mov dword [0x463dd8], esi
jmp 0x40b050
sub eax, 0x4d
je 0x40b049
sub eax, 7
je 0x40b02f
dec eax
dec eax
jne 0x40b050
mov byte [0x463dcc], 1
jmp 0x40b050
lea eax, [edi + 1]
push eax
call fcn.00401220
fmul qword [0x4591d0]
pop ecx
call fcn.0045468c
mov dword [ebp + 0x70], eax
jmp 0x40b050
mov byte [0x463dcb], 1
inc edi
cmp byte [edi], bl
jne 0x40afb7
lea eax, [ebp - 0x228]
mov dword [0x463da4], eax
xor esi, esi
lea eax, [ebp - 0x428]
inc esi
mov dword [0x463da8], eax
mov dword [0x463da0], esi
mov byte [0x4634a4], 1
call fcn.0040f685
mov eax, dword [ebp + 0x70]
cmp eax, ebx
jle 0x40b0b9
cmp byte [0x4634ab], bl
jne 0x40b0b9
cmp eax, 0xa
jge 0x40b09b
push 0xa
pop eax
push 0x40abcc
push eax
push 0xc
push dword [0x463360]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne al
mov byte [0x4634ab], al
push esi
push 0x8000012f
call fcn.0040bd90
mov eax, dword [0x463da0]
cmp eax, esi
pop ecx
pop ecx
je 0x40b0b9
dec eax
dec eax
je 0x40b1e2
dec eax
je 0x40b1d7
dec eax
je 0x40b102
dec eax
mov ecx, dword [0x463c78]
push esi
push ebx
push 0xffffffffffffffff
je 0x40b0f8
push str.NewInput
jmp 0x40b1f1
push 0x45acf8
jmp 0x40b1f1
mov eax, dword [str.EndKey:]
mov dword [ebp - 0x28], eax
mov eax, dword [0x45acf4]
mov dword [ebp - 0x24], eax
push 0x1e
xor eax, eax
cmp byte [0x463db1], bl
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
je 0x40b19c
push 0x3f
mov byte [ebp - 0x128], bl
pop ecx
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
or byte [ebp - 0x118], 0x80
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, ebx
je 0x40b153
push ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
jmp 0x40b155
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
xor eax, eax
cmp dword [0x4634c8], ebx
setne al
push eax
lea eax, [ebp - 0x21]
push eax
lea eax, [ebp - 0x128]
push eax
xor eax, eax
mov al, byte [0x463dac]
push ebx
push eax
call fcn.00412065
pop ecx
movzx eax, ax
pop ecx
push eax
movzx eax, byte [0x463dac]
push eax
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov byte [ebp + eax - 0x21], bl
jmp 0x40b1cd
lea eax, [ebp - 0x21]
push 0x79
push eax
xor eax, eax
cmp byte [0x463db0], bl
mov ax, word [0x463dae]
push eax
je 0x40b1bd
call fcn.004121e5
add esp, 0xc
jmp 0x40b1cd
xor eax, eax
mov al, byte [0x463dac]
push eax
call fcn.00413e49
add esp, 0x10
push esi
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
jmp 0x40b1eb
push esi
push ebx
push 0xffffffffffffffff
push str.Match
jmp 0x40b1eb
push esi
push ebx
push 0xffffffffffffffff
push str.Timeout
mov ecx, dword [0x463c78]
call fcn.00401525
cmp byte [0x4634ab], bl
mov dword [0x463da0], ebx
je 0x40b235
push 0xc
push dword [0x463360]
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x40b21c
mov byte [0x4634ab], bl
push 0x10
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test al, 0x10
je 0x40b235
push esi
push 0xffffffffffffffff
call fcn.0040bd90
pop ecx
pop ecx
mov ecx, dword [ebp + 0x58]
push esi
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x4428]
push eax
call fcn.00401525
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret