Function at 0x403980
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x94
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
mov esi, dword [esp + 0xa4]
mov ebx, dword [esi + 0x74]
push edi
push ebp
mov eax, str.skin_
lea edi, [esp + 0x4c]
call fcn.00401c50
add esp, 4
mov edi, eax
mov ecx, ebx
call fcn.00417de0
test al, al
sete bl
cmp dword [esp + 0x60], 0x10
jb 0x4039cf
mov eax, dword [esp + 0x4c]
push eax
call fcn.00423279
add esp, 4
test bl, bl
je 0x4039e2
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 8
push 0xffffffffffffffff
push 0
push ebp
mov ecx, esi
call fcn.00401870
mov esi, dword [esi + 0x84]
mov eax, dword [esi]
mov dword [esp + 0x40], esi
mov dword [esp + 0x14], eax
cmp eax, esi
je 0x403c2c
mov esi, dword [esp + 0x14]
mov edi, dword [esi + 8]
mov ebx, dword [0x4392e0]
push edi
call ebx
test eax, eax
je 0x403c18
push edi
call dword [0x439298]
test eax, eax
jne 0x403c18
lea eax, [esi + 0xc]
lea esi, [esp + 0x18]
call fcn.00418a30
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebp]
push ecx
call ebx
test eax, eax
je 0x403be7
mov edx, dword [ebp + 4]
push edx
call ebx
test eax, eax
je 0x403be7
mov eax, dword [ebp + 8]
push eax
call ebx
test eax, eax
je 0x403be7
mov ecx, dword [ebp + 0xc]
push ecx
call ebx
test eax, eax
je 0x403be7
test byte [ebp + 0x10], 4
jne 0x403be7
push edi
call dword [0x43924c]
test eax, eax
je 0x403be7
push edi
call dword [0x4392fc]
mov edx, dword [esp + 0xa8]
mov ecx, dword [edx + 0x74]
test eax, eax
sete al
mov byte [esp + 0x28], al
test al, al
jne 0x403abb
cmp dword [ecx + 0xff14], 0
lea eax, [ecx + 0xff14]
jne 0x403ac1
lea eax, [ecx + 0xff0c]
lea esi, [esp + 0x38]
call fcn.00418a30
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x64]
push eax
push edi
add ebx, 0x118
mov dword [esp + 0x6c], 0x3c
call dword [0x4392a8]
sub esp, 8
lea eax, [esp + 0x20]
mov esi, esp
call fcn.00418a30
mov esi, dword [esp + 0x30]
push esi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x48]
push ecx
mov eax, ebx
lea edx, [esp + 0x80]
mov ecx, edi
call fcn.004026d0
test al, al
jne 0x403b4a
push 0
mov esi, ebp
call fcn.0041c6f0
xor al, al
call fcn.0041c670
lea eax, [esp + 0x38]
call fcn.00402510
lea eax, [esp + 0x18]
call fcn.00402510
jmp 0x403c18
push 0x17
call dword [0x439310]
neg eax
sbb eax, eax
neg eax
inc eax
push eax
call dword [0x439290]
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x34]
push esi
test ax, ax
mov eax, dword [esp + 0x24]
push eax
push ecx
push ebp
setne dl
push ebx
sub esp, 8
lea eax, [esp + 0x34]
mov esi, esp
mov byte [esp + 0x48], dl
call fcn.00418a30
push edi
mov edi, dword [esp + 0x50]
mov eax, edi
call fcn.0041a170
mov edx, dword [esp + 0xa8]
mov eax, dword [edx + 0x74]
sub esp, 8
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x20]
mov esi, esp
call fcn.00418a30
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
sub ebp, dword [ebx + 4]
sub edi, dword [ebx + 0x10]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
mov eax, dword [esp + 0x58]
push ecx
push ebp
push edi
lea edx, [esp + 0x84]
push edx
call fcn.0041a2f0
lea eax, [esp + 0x38]
call fcn.00402510
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x403c18
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x403c18
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x403c18
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x40]
jne 0x403a06
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x94
ret 8