Function at 0x100013d0
Capabilities:
Get keyboard layout
Get thread local storage value
Identify system language via api
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd8
lea eax, [esp + 0xc8]
mov ecx, esp
mov dword [ecx], 0x8fb
mov ecx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0xc4], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx + 4], 0x479ee9
mov dword [ecx], 0xa0fea5
mov ecx, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0xc0], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx + 8], 0x537
mov dword [ecx + 4], 0x5f
mov dword [ecx], 0xd8dda0
mov ecx, dword [sym.imp.GDI32.dll_PtInRegion]
mov dword [esp + 0xbc], eax
call ecx
sub esp, 0xc
mov dword [esp + 0xd4], 0xae2222
mov ecx, esp
lea edx, [esp + 0xd4]
mov dword [ecx + 8], edx
mov dword [ecx + 4], edx
mov dword [ecx], 0x34f807
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov dword [esp + 0xb8], eax
call ecx
sub esp, 0xc
mov ecx, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [esp + 0xb4], eax
call ecx
xor ecx, ecx
mov word [esp + 0xb2], ax
mov dword [esp + 0xac], ecx
jmp 0x100014b5
mov eax, esp
mov dword [eax], 0xc91b27
mov eax, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call eax
sub esp, 4
mov dword [esp + 0xa8], eax
jmp 0x1000150a
mov eax, dword [esp + 0xac]
mov ecx, esp
mov dword [ecx + 4], 0x3cc560
mov dword [ecx], 0x735dcd
mov ecx, dword [sym.imp.GDI32.dll_GetClipRgn]
mov dword [esp + 0xa4], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx], 0x58
mov ecx, dword [sym.imp.USER32.dll_VkKeyScanW]
mov dword [esp + 0xa0], eax
call ecx
sub esp, 4
xor ecx, ecx
mov word [esp + 0x9e], ax
mov dword [esp + 0x98], ecx
jmp 0x10001547
mov eax, dword [esp + 0x94]
add eax, 1
cmp eax, 0x187
sete cl
mov dword [esp + 0x90], eax
mov byte [esp + 0x8f], cl
mov al, byte [esp + 0x8f]
test al, 1
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x98], ecx
jne 0x100015af
jmp 0x10001547
mov eax, dword [esp + 0x98]
mov ecx, 0x38e38e39
mov dword [esp + 0x94], eax
mul ecx
shr edx, 2
imul eax, edx, 0x12
mov ecx, dword [esp + 0x94]
sub ecx, eax
mov eax, ecx
sub eax, 7
mov dword [esp + 0x88], ecx
mov dword [esp + 0x84], eax
je 0x1000149a
jmp 0x10001586
mov eax, dword [esp + 0x88]
sub eax, 2
mov dword [esp + 0x80], eax
jne 0x1000150a
jmp 0x1000159f
mov eax, dword [sym.imp.USER32.dll_CreatePopupMenu]
call eax
mov dword [esp + 0x7c], eax
jmp 0x1000149a
mov eax, dword [esp + 0xa4]
sub eax, 6
mov dword [esp + 0x78], eax
je 0x10001857
jmp 0x100015c5
mov eax, dword [esp + 0xa4]
sub eax, 0x39
mov dword [esp + 0x74], eax
je 0x1000180c
jmp 0x100015db
mov eax, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCache]
call eax
mov ecx, esp
mov dword [ecx + 0xc], 0xf07
mov dword [ecx + 8], 0x25e
mov dword [ecx + 4], 0x4f9
mov dword [ecx], 0xa8faa0
mov ecx, dword [sym.imp.USER32.dll_RegisterHotKey]
mov dword [esp + 0x70], eax
call ecx
sub esp, 0x10
mov ecx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCache]
mov dword [esp + 0x6c], eax
call ecx
mov ecx, esp
mov dword [ecx + 0xc], 0xf07
mov dword [ecx + 8], 0x25e
mov dword [ecx + 4], 0x4f9
mov dword [ecx], 0xa8faa0
mov ecx, dword [sym.imp.USER32.dll_RegisterHotKey]
mov dword [esp + 0x68], eax
call ecx
sub esp, 0x10
mov ecx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCache]
mov dword [esp + 0x64], eax
call ecx
mov ecx, esp
mov dword [ecx + 0xc], 0xf07
mov dword [ecx + 8], 0x25e
mov dword [ecx + 4], 0x4f9
mov dword [ecx], 0xa8faa0
mov ecx, dword [sym.imp.USER32.dll_RegisterHotKey]
mov dword [esp + 0x60], eax
call ecx
sub esp, 0x10
mov ecx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCache]
mov dword [esp + 0x5c], eax
call ecx
mov ecx, esp
mov dword [ecx + 0xc], 0xf07
mov dword [ecx + 8], 0x25e
mov dword [ecx + 4], 0x4f9
mov dword [ecx], 0xa8faa0
mov ecx, dword [sym.imp.USER32.dll_RegisterHotKey]
mov dword [esp + 0x58], eax
call ecx
sub esp, 0x10
mov ecx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCache]
mov dword [esp + 0x54], eax
call ecx
mov ecx, esp
mov dword [ecx + 0xc], 0xf07
mov dword [ecx + 8], 0x25e
mov dword [ecx + 4], 0x4f9
mov dword [ecx], 0xa8faa0
mov ecx, dword [sym.imp.USER32.dll_RegisterHotKey]
mov dword [esp + 0x50], eax
call ecx
sub esp, 0x10
mov ecx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCache]
mov dword [esp + 0x4c], eax
call ecx
mov ecx, esp
mov dword [ecx + 0xc], 0xf07
mov dword [ecx + 8], 0x25e
mov dword [ecx + 4], 0x4f9
mov dword [ecx], 0xa8faa0
mov ecx, dword [sym.imp.USER32.dll_RegisterHotKey]
mov dword [esp + 0x48], eax
call ecx
sub esp, 0x10
mov ecx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCache]
mov dword [esp + 0x44], eax
call ecx
mov ecx, esp
mov dword [ecx + 0xc], 0xf07
mov dword [ecx + 8], 0x25e
mov dword [ecx + 4], 0x4f9
mov dword [ecx], 0xa8faa0
mov ecx, dword [sym.imp.USER32.dll_RegisterHotKey]
mov dword [esp + 0x40], eax
call ecx
sub esp, 0x10
mov ecx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCache]
mov dword [esp + 0x3c], eax
call ecx
mov ecx, esp
mov dword [ecx + 0xc], 0xf07
mov dword [ecx + 8], 0x25e
mov dword [ecx + 4], 0x4f9
mov dword [ecx], 0xa8faa0
mov ecx, dword [sym.imp.USER32.dll_RegisterHotKey]
mov dword [esp + 0x38], eax
call ecx
sub esp, 0x10
mov ecx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCache]
mov dword [esp + 0x34], eax
call ecx
mov ecx, esp
mov dword [ecx + 0xc], 0xf07
mov dword [ecx + 8], 0x25e
mov dword [ecx + 4], 0x4f9
mov dword [ecx], 0xa8faa0
mov ecx, dword [sym.imp.USER32.dll_RegisterHotKey]
mov dword [esp + 0x30], eax
call ecx
sub esp, 0x10
mov ecx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCache]
mov dword [esp + 0x2c], eax
call ecx
mov ecx, esp
mov dword [ecx + 0xc], 0xf07
mov dword [ecx + 8], 0x25e
mov dword [ecx + 4], 0x4f9
mov dword [ecx], 0xa8faa0
mov ecx, dword [sym.imp.USER32.dll_RegisterHotKey]
mov dword [esp + 0x28], eax
call ecx
sub esp, 0x10
mov dword [esp + 0x24], eax
jmp 0x1000187b
mov eax, esp
mov dword [eax + 4], 0xdfb
mov dword [eax], 0x121e7c
mov eax, dword [sym.imp.GDI32.dll_SetStretchBltMode]
call eax
sub esp, 8
mov ecx, esp
mov dword [ecx], 0xa13
mov ecx, dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [esp + 0x20], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx], 0xdf81c3
mov ecx, dword [sym.imp.USER32.dll_SetThreadDesktop]
mov dword [esp + 0x1c], eax
call ecx
sub esp, 4
mov dword [esp + 0x18], eax
mov eax, esp
mov dword [eax + 8], 0x3ef
mov dword [eax + 4], 0x156
mov dword [eax], 0xd887fc
mov eax, dword [sym.imp.USER32.dll_ShowScrollBar]
call eax
sub esp, 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc8], 0
mov eax, esp
mov ecx, dword [esp + 0xc4]
mov dword [eax + 8], ecx
lea edx, [esp + 0xd0]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 0xb6b
mov dword [eax], 0xc882e2
mov eax, dword [sym.imp.GDI32.dll_PlayMetaFileRecord]
call eax
sub esp, 0x10
mov ecx, dword [esp + 0xa4]
add ecx, 1
cmp ecx, 0x5b
mov dword [esp + 0x10], eax
mov dword [esp + 0xac], ecx
jne 0x100014b5
mov esp, ebp
pop ebp
ret