Function at 0x437680
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 0x437711
cmp byte [ebp + 0xc], 0
jne 0x437711
cmp byte [edi + 0x20c], 0
jne 0x437711
push str.Disable_process_char_event
push dword [edi + 0x210]
call fcn.00431880
add esp, 8
mov byte [edi + 0x20b], 0
mov byte [edi + 0x20d], 0
cmp esi, 2
jne 0x437889
mov ax, word [ebp - 0x30]
cmp ax, 0x5e
je 0x43778e
mov ecx, 0xa8
cmp ax, cx
je 0x43778e
cmp ax, 0x7e
je 0x43778e
mov ecx, 0xb4
cmp ax, cx
je 0x43778e
cmp ax, 0x60
je 0x43778e
mov ecx, 0x2c7
cmp ax, cx
je 0x43778e
mov ecx, 0x2d8
cmp ax, cx
je 0x43778e
mov ecx, 0xb0
cmp ax, cx
je 0x43778e
mov ecx, 0x2d9
cmp ax, cx
je 0x43778e
mov ecx, 0x2dd
cmp ax, cx
je 0x43778e
mov ecx, 0xb8
cmp ax, cx
je 0x43778e
mov ecx, 0x2db
cmp ax, cx
jne 0x43788d
cmp ax, word [ebp - 0x2e]
jne 0x43788d
push str.Extra_double_dead_key_catched.
push dword [edi + 0x210]
call fcn.00431880
add esp, 8
cmp byte [ebp + 0xc], 0
je 0x43784f
push str.Enable_process_char_event._Enable_process_double_char.
push dword [edi + 0x210]
call fcn.00431880
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 0x437813
lea eax, [ecx + ecx]
cmp eax, 0x28
jae 0x437a87
xor edx, edx
mov word [ebp + eax - 0x30], dx
jmp 0x437819
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.00431880
add esp, 0x10
mov ecx, ebx
push 0
call fcn.00437d00
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00471d10
mov esp, ebp
pop ebp
ret 0xc
cmp byte [edi + 0x20b], 0
jne 0x43788d
push str.Disable_second_calling_ToUnicodeEx__
push dword [edi + 0x210]
call fcn.00431880
add esp, 8
mov ecx, ebx
push 0
call fcn.00437d00
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00471d10
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
jle 0x4378ce
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 0x4378ce
lea eax, [esi + esi]
cmp eax, 0x28
jae 0x437a87
xor ecx, ecx
mov word [ebp + eax - 0x30], cx
jmp 0x4378d4
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.00431880
add esp, 0x10
cmp esi, 1
jne 0x437928
cmp byte [edi + 0x20b], 0
jne 0x437a6e
push dword [ebp - 0x30]
mov ecx, edi
call fcn.004375d0
movzx eax, ax
mov ecx, ebx
push eax
call fcn.00437cb0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00471d10
mov esp, ebp
pop ebp
ret 0xc
jle 0x43799d
xor esi, esi
cmp dword [ebp - 0x168], esi
jle 0x437988
movzx eax, word [ebp + esi*2 - 0x30]
mov ecx, edi
push eax
call fcn.004375d0
mov ecx, dword [ebx + 0x10]
movzx edx, ax
cmp ecx, dword [ebx + 0x14]
jae 0x437969
cmp dword [ebx + 0x14], 8
lea eax, [ecx + 1]
mov dword [ebx + 0x10], eax
mov eax, ebx
jb 0x43795c
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
xor edx, edx
mov word [eax + ecx*2 + 2], dx
jmp 0x43797f
push edx
mov byte [ebp - 0x164], 0
push dword [ebp - 0x164]
push ecx
mov ecx, ebx
call fcn.00437d90
inc esi
cmp esi, dword [ebp - 0x168]
jl 0x437934
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00471d10
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
jne 0x437a49
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.00431880
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 0x437a14
lea eax, [esi + esi]
cmp eax, 0x28
jae 0x437a87
xor ecx, ecx
mov word [ebp + eax - 0x58], cx
jmp 0x437a1a
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.00431880
add esp, 0x10
cmp esi, 1
jne 0x437a6e
push dword [ebp - 0x58]
mov ecx, ebx
call fcn.00437cb0
jmp 0x437a6e
cmp esi, 0xffffffff
jne 0x437a6e
cmp byte [ebp + 0xc], 0
je 0x437a6e
push str.Dead_key_pressed__wait_for_a_char_event
push dword [edi + 0x210]
call fcn.00431880
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.00471d10
mov esp, ebp
pop ebp
ret 0xc
call fcn.00472112
int3