Function at 0x419dc0
Capabilities:
Get thread local storage value
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00497d20
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
test edi, edi
je 0x41a045
or dword [edi + 0x18], 0x10
test byte [edi + 0x18], 0x80
jne 0x41a025
cmp dword [ebx + 0x40], 0
jne 0x419e11
push 1
mov dword [ebx + 0x40], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov eax, dword [ebx + 0x38]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov esi, dword [ebx + 0x7c]
test esi, esi
je 0x41a045
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x419ecd
mov ecx, 0x4b11cc
add eax, 0x3014
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x419e57
test dx, dx
je 0x419e53
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x419e57
add eax, 4
add ecx, 4
test dx, dx
jne 0x419e31
xor eax, eax
jmp 0x419e5c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x419ecd
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
sub eax, 0x55
call fcn.00416640
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1010], ecx
mov ecx, dword [ebx + 4]
push eax
push ecx
mov dword [ebp - 0x100c], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov esi, dword [ebx + 0x8c]
test esi, esi
je 0x419ed8
mov ecx, dword [edi + 0x10]
mov eax, 0x55
call fcn.00416640
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
mov ecx, dword [ebx + 0x8c]
push 0x50
push 0x55
push edx
mov edx, dword [ecx + 4]
sub eax, 0x55
push eax
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x419ed8
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
call fcn.00416640
mov eax, dword [ebx + 0x44]
test eax, eax
jne 0x419eee
mov eax, dword [ebx + 0x7c]
mov ecx, dword [eax + 4]
push ecx
call fcn.0045b0a0
add esp, 4
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push 0x1000
lea edx, [ebp - 0x1008]
push 0
push edx
call sub.MSVCR100.dll_memset
mov esi, dword [ebx + 0x7c]
add esp, 0xc
lea edi, [ebp - 0x100c]
call fcn.00418d00
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x1008]
push 0x800
push ecx
call dword [sym.imp.MSVCR100.dll_wcscat_s]
mov edx, dword [ebp - 0x100c]
add esp, 0xc
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x1008]
push eax
call fcn.004177b0
add esp, 4
test eax, eax
je 0x41a045
mov edi, dword [ebx + 0x7c]
xor esi, esi
cmp edi, esi
je 0x419f82
call fcn.004163a0
test eax, eax
je 0x419f82
mov edi, dword [ebx + 0x7c]
call fcn.004163a0
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0x4c]
cmp eax, esi
je 0x419f82
mov esi, eax
call fcn.00455300
xor esi, esi
cmp dword [ebx + 0x80], esi
je 0x41a045
mov edx, dword [0x4e9cdc]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edx
mov dword [ebp - 0x1018], esi
mov dword [ebp - 0x1014], esi
mov dword [ebp - 0x1010], esi
mov dword [ebp - 0x100c], esi
call edi
test eax, eax
je 0x41a045
mov eax, dword [0x4e9cdc]
push eax
call edi
cmp dword [eax], esi
je 0x41a045
mov ecx, dword [0x4e9cdc]
push ecx
call edi
mov eax, dword [eax]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x1018]
push edx
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 0x100c]
sub edx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x1010]
sub eax, dword [ebp - 0x1018]
mov ecx, dword [ebx + 0x80]
push 1
push edx
mov edx, dword [ecx + 4]
push eax
push esi
push esi
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x40], 0
je 0x41a045
push 0
mov dword [ebx + 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov eax, dword [ebx + 0x38]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00497792
mov esp, ebp
pop ebp
ret