Function at 0x4319c0
Capabilities:
Get keyboard layout

Disassembly:
mov eax, 0x44a0
call fcn.0048dd20
mov eax, dword [0x4a6c10]
push ebx
push ebp
mov ebp, dword [esp + 0x44ac]
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], eax
cmp eax, esi
jne 0x431a10
cmp dword [0x4a8c88], 1
mov dword [0x4a8c88], esi
sete al
test al, al
sete al
movzx ecx, al
push ecx
push ebp
call fcn.0042cea0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44a0
ret 4
mov edx, dword [0x4a6bc4]
mov ebx, dword [0x4a6bcc]
mov edi, dword [0x4a6bc8]
push 0xff
lea eax, [esp + 0x1b5]
push esi
push eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], ebx
mov dword [0x4a8c88], esi
mov byte [esp + 0x1bc], 0
call fcn.0048aa20
add esp, 0xc
push 0x1ff
lea ecx, [esp + 0x2b5]
push esi
push ecx
mov byte [esp + 0x2bc], 0
call fcn.0048aa20
add esp, 0xc
mov byte [esp + 0x15], 0
cmp byte [edi], 0
je 0x431b9a
mov byte [esp + 0x14], 0
mov cl, byte [edi]
movsx eax, cl
sub eax, 0x7b
je 0x431ac0
sub eax, 2
je 0x431b85
push 0
mov byte [esp + 0x18], cl
mov byte [esp + 0x17], 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 1
mov ecx, eax
push 1
lea edx, [esp + 0x1b]
lea eax, [esp + 0x1c]
call fcn.00411790
add esp, 8
mov bl, al
jmp 0x431b4a
lea eax, [edi + 1]
push 0x7d
push eax
mov dword [esp + 0x34], eax
call fcn.004826b1
mov esi, eax
add esp, 8
test esi, esi
je 0x431b85
mov ebp, esi
sub ebp, edi
dec ebp
jne 0x431af3
cmp byte [esi + 1], 0x7d
jne 0x431b85
inc esi
mov ebp, 1
push 0
mov byte [esi], 0
mov byte [esp + 0x17], 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, dword [esp + 0x2c]
push 1
mov ecx, eax
push 1
lea edx, [esp + 0x1b]
mov eax, edi
call fcn.00411790
mov bl, al
add esp, 8
test bl, bl
je 0x431b2e
cmp ebp, 1
jne 0x431b45
mov dl, byte [edi]
mov byte [esp + 0x14], dl
jmp 0x431b45
mov eax, edi
call fcn.004116f0
movzx eax, ax
test ax, ax
je 0x431b45
mov byte [esp + eax + 0x2b0], 1
mov byte [esi], 0x7d
mov edi, esi
test bl, bl
je 0x431b85
movzx esi, bl
or byte [esp + esi + 0x1b0], 1
cmp byte [esp + 0x14], 0
lea esi, [esp + esi + 0x1b0]
je 0x431b85
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_IsCharAlphaA]
test eax, eax
jne 0x431b85
test byte [esp + 0x13], 0x30
je 0x431b82
or byte [esi], 2
jmp 0x431b85
or byte [esi], 4
inc edi
cmp byte [edi], 0
jne 0x431a7a
mov ebp, dword [esp + 0x44b4]
mov ebx, dword [esp + 0x28]
xor esi, esi
mov dword [0x4a8ca0], esi
cmp byte [ebx], 0
je 0x431d17
cmp dword [0x4a8c9c], esi
jne 0x431bd3
push 0x1000
call fcn.00481899
add esp, 4
mov dword [0x4a8c9c], eax
cmp eax, esi
je 0x431c2e
mov dword [0x4a8ca4], 0x400
mov edi, 3
mov ecx, ebp
call fcn.0041f380
inc eax
cmp eax, dword [0x4a8cac]
jbe 0x431c4d
mov dword [0x4a8cac], eax
cmp eax, 0x1000
ja 0x431bfe
mov dword [0x4a8cac], 0x1000
mov eax, dword [0x4a8ca8]
cmp eax, esi
je 0x431c10
push eax
call fcn.004816f8
add esp, 4
mov edx, dword [0x4a8cac]
push edx
call fcn.00481899
add esp, 4
mov dword [0x4a8ca8], eax
cmp eax, esi
jne 0x431c52
mov dword [0x4a8cac], esi
push 0x4957f9
push esi
push str.Out_of_memory.
mov ecx, ebp
call fcn.0042d070
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44a0
ret 4
mov eax, dword [0x4a8ca8]
mov ecx, dword [0x4a8ca0]
mov edx, dword [0x4a8c9c]
mov dword [edx + ecx*4], eax
cmp byte [ebx], 0
mov esi, dword [0x4a8ca8]
mov edi, ebx
je 0x431cfa
mov al, byte [edi]
cmp al, 0x2c
je 0x431c7d
mov byte [esi], al
inc esi
jmp 0x431cf0
cmp byte [edi + 1], 0x2c
jne 0x431c8a
mov byte [esi], 0x2c
inc esi
inc edi
jmp 0x431cf0
mov byte [esi], 0
mov ecx, dword [0x4a8c9c]
mov eax, dword [0x4a8ca0]
mov edx, dword [ecx + eax*4]
cmp byte [edx], 0
je 0x431cb8
inc eax
mov dword [0x4a8ca0], eax
inc esi
mov dword [ecx + eax*4], esi
mov byte [esi], 0
mov eax, dword [0x4a8ca0]
mov ecx, dword [0x4a8c9c]
cmp byte [edi + 1], 0
je 0x431cf0
mov edx, dword [0x4a8ca4]
cmp eax, edx
jb 0x431cf0
lea eax, [edx*4 + 0x1000]
push eax
push ecx
call fcn.00482c67
add esp, 8
test eax, eax
je 0x431ded
add dword [0x4a8ca4], 0x400
mov dword [0x4a8c9c], eax
inc edi
cmp byte [edi], 0
jne 0x431c72
mov byte [esi], 0
mov ecx, dword [0x4a8c9c]
mov edx, dword [0x4a8ca0]
mov eax, dword [ecx + edx*4]
cmp byte [eax], 0
je 0x431d17
inc dword [0x4a8ca0]
cmp byte [0x4a6dc4], 0
je 0x431d55
mov ecx, dword [0x4a6c70]
push 0xc
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x431d3a
mov byte [0x4a6dc4], 0
push 0x10
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test al, 0x10
je 0x431d55
push 1
push 0xffffffffffffffff
call fcn.00401280
add esp, 8
mov ebx, 0x3fff
push ebx
xor ebp, ebp
lea edx, [esp + 0x4b5]
push ebp
push edx
mov dword [0x4a8cb0], 1
mov word [0x4a8cb4], 0
mov byte [esp + 0x4bc], 0
call fcn.0048aa20
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x4bc]
add esp, 0xc
mov dword [0x4a8cb8], eax
mov dword [0x4a8cbc], ebp
mov dword [0x4a8cc0], ebx
cmp byte [edi], 0
je 0x431eb7
inc edi
nop
movzx esi, byte [edi - 1]
test esi, 0xffffff80
jne 0x431dce
push 2
push esi
call fcn.00482bfe
add esp, 8
test eax, eax
je 0x431dce
and esi, 0xffffffdf
mov eax, esi
movsx eax, al
add eax, 0xffffffd6
cmp eax, 0x2c
ja case.0x431de6.43
movzx ecx, byte [eax + 0x432194]
jmp dword [ecx*4 + 0x432170]
push 0x4957f9
push 0
push str.Out_of_memory.
mov ecx, ebp
call fcn.0042d070
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44a0
ret 4
mov byte [0x4a8cb0], 0
jmp case.0x431de6.43
mov byte [0x4a8cb1], 1
jmp case.0x431de6.43
mov byte [0x4a8cb2], 1
jmp case.0x431de6.43
mov byte [0x4a8cb3], 1
jmp case.0x431de6.43
push edi
call fcn.00482c46
add esp, 4
mov dword [0x4a8cc0], eax
cmp eax, ebx
jle case.0x431de6.43
mov dword [0x4a8cc0], ebx
jmp case.0x431de6.43
mov eax, edi
call fcn.0040c8e0
test al, al
je 0x431e84
push 0x10
push 0
push edi
call fcn.0048340f
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
fild qword [esp + 0x24]
add esp, 0xc
fmul qword [0x49d690]
call fcn.0048ff10
mov ebp, eax
jmp case.0x431de6.43
push edi
call fcn.00483511
fmul qword [0x49d690]
add esp, 4
call fcn.0048ff10
mov ebp, eax
jmp case.0x431de6.43
mov byte [0x4a8cb4], 1
jmp case.0x431de6.43
mov byte [0x4a8cb5], 1
inc edi
cmp byte [edi - 1], 0
jne 0x431db0
or byte [0x4a7581], 1
cmp dword [0x4a6da0], 0
lea edx, [esp + 0x1b0]
lea eax, [esp + 0x2b0]
mov dword [0x4a8c8c], edx
mov dword [0x4a8c90], eax
mov dword [0x4a8c88], 1
mov byte [0x4a6d93], 1
jne 0x431f03
mov ecx, dword [0x4a4538]
movzx edx, word [ecx]
push edx
call fcn.004079e0
add esp, 4
test ebp, ebp
jle 0x431f40
cmp byte [0x4a6dc4], 0
jne 0x431f40
mov eax, 0xa
cmp ebp, 0xa
jl 0x431f1c
mov eax, ebp
push 0x4033c0
push eax
mov eax, dword [0x4a6c70]
push 0xc
push eax
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne cl
mov byte [0x4a6dc4], cl
jmp 0x431f40
push 1
push 0x8000012f
call fcn.00401280
mov eax, dword [0x4a8c88]
add esp, 8
cmp eax, 1
je 0x431f40
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x431f65
jmp dword [eax*4 + 0x4321c4]
push 1
push 0
push 0xffffffffffffffff
push str.Timeout
jmp 0x4320f8
mov eax, dword [0x4a7474]
push 1
push 0
push 0xffffffffffffffff
push str.Match
push eax
jmp 0x4320ff
mov ecx, dword [str.EndKey:]
mov edx, dword [0x49a5f4]
push 0x78
lea eax, [esp + 0x3c]
push 0
push eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
call fcn.0048aa20
add esp, 0xc
cmp byte [0x4a8c99], 0
je 0x43204d
push 0xff
lea ecx, [esp + 0xb5]
push 0
push ecx
mov byte [esp + 0xbc], 0
call fcn.0048aa20
or byte [esp + 0xcc], 0x80
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x432000
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
jmp 0x432002
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
xor edx, edx
cmp dword [0x4a6dfc], edx
push eax
setne dl
lea eax, [esp + 0x3b]
lea ecx, [esp + 0xb4]
xor bl, bl
push edx
movzx edx, byte [0x4a8c94]
push eax
push ecx
push edx
call fcn.00411bd0
movzx ecx, byte [0x4a8c94]
movzx eax, ax
add esp, 4
push eax
push ecx
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov byte [esp + eax + 0x37], bl
jmp 0x4320c6
cmp byte [0x4a8c98], 0
je 0x4320ad
mov cx, word [0x4a8c96]
xor eax, eax
nop
cmp word [eax*8 + 0x4a44cc], cx
je 0x43208c
inc eax
cmp eax, 0xd
jl 0x432060
movzx ecx, cx
push ecx
push str.sc_03X
mov esi, 0x79
lea edi, [esp + 0x3f]
call fcn.0046ebc0
add esp, 8
jmp 0x4320c6
mov edx, dword [eax*8 + 0x4a44c8]
push 0x78
push edx
lea eax, [esp + 0x3f]
push eax
call fcn.00484520
add esp, 0xc
mov byte [esp + 0xaf], 0
jmp 0x4320c6
mov bl, byte [0x4a8c94]
push 1
mov eax, 0x79
lea ecx, [esp + 0x3b]
call fcn.00411670
add esp, 4
mov eax, dword [0x4a7474]
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x3c]
push edx
push eax
jmp 0x4320ff
mov ecx, dword [0x4a7474]
push 1
push 0
push 0xffffffffffffffff
push 0x49a5f8
push ecx
jmp 0x4320ff
push 1
push 0
push 0xffffffffffffffff
push str.NewInput
mov edx, dword [0x4a7474]
push edx
call fcn.004716d0
cmp byte [0x4a6dc4], 0
mov dword [0x4a8c88], 0
je 0x43214b
mov eax, dword [0x4a6c70]
push 0xc
push eax
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x432130
mov byte [0x4a6dc4], 0
push 0x10
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test al, 0x10
je 0x43214b
push 1
push 0xffffffffffffffff
call fcn.00401280
add esp, 8
mov edx, dword [esp + 0x24]
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x4bc]
push ecx
push edx
call fcn.004716d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44a0
ret 4