Function at 0x4377e0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x4cc06c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
mov byte [ebp - 0x15d], 0
push 0
mov dword [ebp - 0x16c], edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx edx, word [ebp + 8]
lea ecx, [edi + 8]
push eax
push 0
push 0x14
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x30]
push eax
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp byte [edi + 0x20d], 0
mov esi, eax
mov dword [ebp - 0x168], esi
je 0x437871
cmp byte [ebp + 0xc], 0
jne 0x437871
cmp byte [edi + 0x20c], 0
jne 0x437871
push str.Disable_process_char_event
push dword [edi + 0x210]
call fcn.004319e0
add esp, 8
mov byte [edi + 0x20b], 0
mov byte [edi + 0x20d], 0
cmp esi, 2
jne 0x4379e9
mov ax, word [ebp - 0x30]
cmp ax, 0x5e
je 0x4378ee
mov ecx, 0xa8
cmp ax, cx
je 0x4378ee
cmp ax, 0x7e
je 0x4378ee
mov ecx, 0xb4
cmp ax, cx
je 0x4378ee
cmp ax, 0x60
je 0x4378ee
mov ecx, 0x2c7
cmp ax, cx
je 0x4378ee
mov ecx, 0x2d8
cmp ax, cx
je 0x4378ee
mov ecx, 0xb0
cmp ax, cx
je 0x4378ee
mov ecx, 0x2d9
cmp ax, cx
je 0x4378ee
mov ecx, 0x2dd
cmp ax, cx
je 0x4378ee
mov ecx, 0xb8
cmp ax, cx
je 0x4378ee
mov ecx, 0x2db
cmp ax, cx
jne 0x4379ed
cmp ax, word [ebp - 0x2e]
jne 0x4379ed
push str.Extra_double_dead_key_catched.
push dword [edi + 0x210]
call fcn.004319e0
add esp, 8
cmp byte [ebp + 0xc], 0
je 0x4379af
push str.Enable_process_char_event._Enable_process_double_char.
push dword [edi + 0x210]
call fcn.004319e0
add esp, 8
mov word [edi + 0x20b], 0x101
lea eax, [ebp - 0x30]
mov byte [edi + 0x20d], 1
push dword [ebp - 0x164]
push 0
push 0x14
push eax
lea eax, [edi + 8]
push eax
movzx eax, word [ebp + 8]
push 0
push eax
mov eax, dword [sym.imp.USER32.dll_ToUnicodeEx]
call eax
mov ecx, eax
test ecx, ecx
jle 0x437973
lea eax, [ecx + ecx]
cmp eax, 0x28
jae 0x437be7
xor edx, edx
mov word [ebp + eax - 0x30], dx
jmp 0x437979
xor eax, eax
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x30]
push eax
push ecx
push str.ToUnicodeEx___function_called_second._Returned:__d._Output_buff:__S
push dword [edi + 0x210]
call fcn.004319e0
add esp, 0x10
mov ecx, ebx
push 0
call fcn.00437e60
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00471b05
mov esp, ebp
pop ebp
ret 0xc
cmp byte [edi + 0x20b], 0
jne 0x4379ed
push str.Disable_second_calling_ToUnicodeEx__
push dword [edi + 0x210]
call fcn.004319e0
add esp, 8
mov ecx, ebx
push 0
call fcn.00437e60
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00471b05
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
jle 0x437a2e
push dword [ebp - 0x164]
lea eax, [ebp - 0x30]
push 0
push 0x14
push eax
lea eax, [edi + 8]
push eax
movzx eax, word [ebp + 8]
push 0
push eax
mov eax, dword [sym.imp.USER32.dll_ToUnicodeEx]
call eax
mov esi, eax
mov dword [ebp - 0x168], esi
test esi, esi
jle 0x437a2e
lea eax, [esi + esi]
cmp eax, 0x28
jae 0x437be7
xor ecx, ecx
mov word [ebp + eax - 0x30], cx
jmp 0x437a34
xor eax, eax
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x30]
push eax
push esi
push str.ToUnicodeEx___returned__d__output_buff_:__S
push dword [edi + 0x210]
call fcn.004319e0
add esp, 0x10
cmp esi, 1
jne 0x437a88
cmp byte [edi + 0x20b], 0
jne 0x437bce
push dword [ebp - 0x30]
mov ecx, edi
call fcn.00437730
movzx eax, ax
mov ecx, ebx
push eax
call fcn.00437e10
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00471b05
mov esp, ebp
pop ebp
ret 0xc
jle 0x437afd
xor esi, esi
cmp dword [ebp - 0x168], esi
jle 0x437ae8
movzx eax, word [ebp + esi*2 - 0x30]
mov ecx, edi
push eax
call fcn.00437730
mov ecx, dword [ebx + 0x10]
movzx edx, ax
cmp ecx, dword [ebx + 0x14]
jae 0x437ac9
cmp dword [ebx + 0x14], 8
lea eax, [ecx + 1]
mov dword [ebx + 0x10], eax
mov eax, ebx
jb 0x437abc
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
xor edx, edx
mov word [eax + ecx*2 + 2], dx
jmp 0x437adf
push edx
mov byte [ebp - 0x164], 0
push dword [ebp - 0x164]
push ecx
mov ecx, ebx
call fcn.00437ef0
inc esi
cmp esi, dword [ebp - 0x168]
jl 0x437a94
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00471b05
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
jne 0x437ba9
push str.Was_get_a_not_printable_symbol_then_try_get_a_printable_with_turned_off_the_ctrl_and_alt_modifiers
push dword [edi + 0x210]
call fcn.004319e0
add esp, 8
lea eax, [ebp - 0x58]
lea esi, [edi + 8]
mov ecx, 0x40
lea edi, [ebp - 0x15c]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x164]
mov dword [ebp - 0xba], 0
push 0
push 0x14
push eax
lea eax, [ebp - 0x15c]
mov word [ebp - 0x14b], 0
push eax
movzx eax, word [ebp + 8]
push 0
push eax
call dword [sym.imp.USER32.dll_ToUnicodeEx]
mov esi, eax
test esi, esi
jle 0x437b74
lea eax, [esi + esi]
cmp eax, 0x28
jae 0x437be7
xor ecx, ecx
mov word [ebp + eax - 0x58], cx
jmp 0x437b7a
xor eax, eax
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x16c]
push esi
push str.ToUnicodeEx___without_ctrl_and_alt_return__d_wchars_:__S
push dword [eax + 0x210]
call fcn.004319e0
add esp, 0x10
cmp esi, 1
jne 0x437bce
push dword [ebp - 0x58]
mov ecx, ebx
call fcn.00437e10
jmp 0x437bce
cmp esi, 0xffffffff
jne 0x437bce
cmp byte [ebp + 0xc], 0
je 0x437bce
push str.Dead_key_pressed__wait_for_a_char_event
push dword [edi + 0x210]
call fcn.004319e0
add esp, 8
mov byte [edi + 0x20b], 1
mov ecx, dword [ebp - 8]
mov al, byte [ebp - 0x15d]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00471b05
mov esp, ebp
pop ebp
ret 0xc
call fcn.00471f07
int3