Function at 0x4310b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b0
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi + 8]
cmp eax, 0xffffff65
ja 0x43159f
je 0x4314e6
cmp eax, 0xfffffe64
ja 0x4312f2
je 0x4314e6
cmp eax, 0xfffffcc1
je 0x431239
cmp eax, 0xfffffe38
je case.0x4315b2.109
cmp eax, 0xfffffe3d
jne case.0x4315b2.107
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
cmp dword [ebx + 0x5c], 0
jne 0x4316d8
xor eax, eax
lea edx, [ebx + 0x70]
mov word [ebp - 0x30c], ax
lea eax, [ebp - 0x30c]
cmp dword [ebx + 0x288], 0
mov dword [ebp - 0x3a8], edx
je 0x431200
mov ecx, dword [esi + 0x5c]
mov dword [edx], ecx
mov eax, dword [ecx + 8]
test eax, eax
je 0x431160
mov ecx, eax
mov eax, dword [ecx + 8]
test eax, eax
jne 0x431157
mov dword [ebx + 0x6c], ecx
lea edx, [ebp - 0x30c]
mov eax, dword [esi + 0x3c]
push 0x180
mov dword [ebx + 0x274], eax
mov dword [ebx + 0x28c], 1
mov dword [ebx + 0x290], 0
call fcn.00429030
mov ecx, eax
add esp, 4
mov eax, 0x4a8728
mov dword [ebp - 0x3b0], ecx
sub eax, ecx
mov esi, 4
mov edx, ecx
mov dword [ebp - 0x3ac], eax
nop
lea ecx, [esi + 0x7ffffffa]
test ecx, ecx
je 0x4311f0
movzx eax, word [eax + edx]
mov ecx, eax
test ax, ax
je 0x4311e9
mov eax, dword [ebp - 0x3ac]
mov word [edx], cx
add edx, 2
sub esi, 1
jne 0x4311b0
sub edx, 2
xor eax, eax
mov word [edx], ax
mov eax, dword [ebp - 0x3b0]
add eax, 6
jmp 0x431206
test esi, esi
jne 0x4311f0
sub edx, 2
xor eax, eax
mov word [edx], ax
mov eax, dword [ebp - 0x3b0]
add eax, 6
jmp 0x431206
mov dword [ebp - 0x3a8], edx
push 0x40
push eax
push 0x68
push dword [0x4b3a24]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x30c]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [ebp - 0x3a8]
mov ecx, ebx
mov edx, dword [edx]
call fcn.0042a670
jmp 0x4316c5
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffeb
push edi
call ebx
mov esi, eax
test esi, esi
je 0x4316d8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4316d8
lea ecx, [ebp - 0x31c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x310]
sub eax, dword [ebp - 0x318]
cmp eax, dword [esi + 0x54]
je 0x4316d8
push 0xffffffffffffffeb
push edi
mov dword [esi + 0x54], eax
call ebx
mov esi, eax
test esi, esi
je 0x4316d8
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
test eax, eax
je 0x4312a2
push 1
push 0
push eax
call edi
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4312b0
push 1
push 0
push eax
call edi
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x54]
mov dword [0x4b5248], ecx
mov ecx, esi
mov dword [0x4b5240], eax
mov dword [0x4b523c], 0
mov dword [0x4b5244], 0
call fcn.00429930
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
cmp eax, 0xffffff50
je 0x431357
cmp eax, 0xffffff51
jne case.0x4315b2.107
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x43131e
cmp dword [ecx + 0xc], 0
jne 0x431589
mov eax, dword [eax + 0x6c]
test eax, eax
je 0x431341
test byte [eax + 0x30], 0x44
jne 0x431341
xor al, al
movzx eax, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
mov al, 1
movzx eax, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
push 0x10c
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0047ee20
mov ebx, dword [esi + 0x20]
add esp, 0xc
test ebx, ebx
je 0x4314d0
cmp word [ebx], 0
je 0x4314d0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
lea eax, [ebp - 0x39c]
mov dword [ebp - 0x3a4], 0
push 0xfde9
mov dword [ebp - 0x3a0], 0
mov dword [ebp - 0x3a4], eax
mov byte [ebp - 0x39c], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x3a0], eax
test eax, eax
je 0x43140c
lea ecx, [eax + 1]
cmp ecx, 0x80
jbe 0x4313ef
push ecx
call fcn.0047d547
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x3a0]
mov dword [ebp - 0x3a4], ecx
jmp 0x4313f5
mov ecx, dword [ebp - 0x3a4]
push 0
push 0
inc eax
push eax
push ecx
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp - 0x3a4]
lea ecx, [ebp - 0x114]
mov eax, ecx
mov edx, 0x104
sub ebx, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x431441
mov al, byte [ebx + ecx]
test al, al
je 0x43143c
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x431421
jmp 0x431440
test edx, edx
jne 0x431441
dec ecx
mov eax, dword [esi + 0x2c]
mov edx, 0x115
mov byte [ecx], 0
mov ecx, edi
mov dword [ebp - 0x11c], eax
mov esi, dword [eax + 8]
lea eax, [ebp - 0x11c]
push eax
push 0x434ac0
call fcn.00416140
add esp, 8
cmp dword [ebp - 0x118], 0
je 0x4314a4
mov eax, dword [ebp - 0x3a4]
test eax, eax
je case.0x4315b2.107
lea ecx, [ebp - 0x39c]
cmp eax, ecx
je case.0x4315b2.107
push eax
call fcn.00457d30
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0x140a
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x3a4]
test eax, eax
je 0x4314d0
lea ecx, [ebp - 0x39c]
cmp eax, ecx
je 0x4314d0
push eax
call fcn.00457d30
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
movzx eax, word [esi + 0xc]
mov ecx, eax
cmp eax, 8
je 0x43154d
cmp eax, 0xd
je 0x431524
cmp ecx, 0x2e
jne case.0x4315b2.107
push 0
push 0x9c51
push 0x111
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
push 0
push 0x9c49
push 0x111
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, eax
mov ecx, dword [esi + 0x2c]
cmp ecx, dword [esi + 0x24]
jne 0x431589
push dword [esi + 0x274]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 3
push 0x110a
push dword [esi + 0x20]
call edi
test eax, eax
je 0x431589
push eax
push 9
push 0x110b
push dword [esi + 0x20]
call edi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
add eax, 0x6d
cmp eax, 0x6a
ja case.0x4315b2.107
movzx eax, byte [eax + 0x4318a4]
jmp dword [eax*4 + 0x431888]
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0x9c4e
mov ecx, 0x4b4f3c
mov edi, eax
call fcn.00422440
test eax, eax
je 0x4315f6
mov ecx, dword [eax]
test ecx, ecx
je 0x4315f6
push 1
push dword [eax + 0x18]
push dword [0x4b4f30]
call ecx
add esp, 0xc
cmp eax, 1
je case.0x4315b2.107
mov eax, dword [esi]
cmp eax, dword [edi + 0x20]
je 0x431606
cmp eax, dword [edi + 0x24]
jne case.0x4315b2.107
cmp dword [esi + 8], 0xfffffe38
jne 0x431614
mov eax, dword [esi + 0x3c]
jmp 0x431616
xor eax, eax
push ecx
push 0
mov dword [edi + 0x278], eax
mov edx, edi
push 0
push dword [esi]
mov ecx, 0x42a5e0
call fcn.0041f050
add esp, 0x10
mov dword [edi + 0x278], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [esi + 0x10]
cmp edx, dword [eax + 0x60]
je 0x43166a
mov dword [eax + 0x60], edx
mov dl, 1
jmp 0x431671
cmp byte [eax + 0x64], 0
sete dl
push 0x428b90
push eax
push 0x1030
mov byte [eax + 0x64], dl
push dword [eax + 0x24]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esi + 0x14]
mov ebx, eax
cmp ecx, dword [esi + 0x18]
je 0x4316d8
mov dword [ebx + 0x28c], 0xffffffff
mov dword [ebx + 0x290], 0xffffffff
push 0
push 0x64
push 0x1502
push edi
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x44], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esi]
mov ebx, eax
cmp ecx, dword [ebx + 0x2c]
je 0x431589
mov ecx, dword [ebx + 0x284]
and ecx, 0xfeffffff
mov dword [ebx + 0x284], ecx
mov eax, dword [esi]
cmp eax, dword [ebx + 0x20]
jne 0x431738
mov dword [ebx + 0x28c], 1
mov dword [ebx + 0x290], 0
mov eax, dword [esi]
mov dword [ebx + 0x2c], eax
jmp 0x4316c5
cmp eax, dword [ebx + 0x24]
jne case.0x4315b2.107
push 0
push 0x64
push 0x1502
mov dword [ebx + 0x28c], 0xffffffff
or ecx, 0x1000000
mov dword [ebx + 0x290], 0xffffffff
mov eax, dword [esi]
push edi
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x284], ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x44], eax
jmp 0x431589
cmp dword [esi + 4], 0x2716
jne case.0x4315b2.107
mov eax, dword [esi + 0xc]
mov edi, dword [esi]
cmp eax, 1
jne 0x4317ab
mov eax, 0x20
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
cmp eax, 0x10001
jne case.0x4315b2.107
mov eax, dword [esi + 0x2c]
test eax, eax
je case.0x4315b2.107
mov ecx, dword [eax + 0x30]
test cl, 3
je case.0x4315b2.107
test cl, 2
je 0x4317d9
mov dword [esi + 0x30], 0x8080
test byte [eax + 0x30], 1
je 0x4317e6
mov dword [esi + 0x30], 0xff
push 2
push dword [esi + 0x24]
push 0x102c
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
test al, 2
je 0x431830
call dword [sym.imp.USER32.dll_GetFocus]
xor ecx, ecx
cmp eax, edi
setne cl
lea ecx, [ecx*2 + 0xd]
push ecx
call dword [sym.imp.USER32.dll_GetSysColor]
and dword [esi + 0x28], 0xfffffffe
mov dword [esi + 0x34], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esi + 0x34], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and eax, 1
push 0
add eax, 0x9c49
push eax
push 0x111
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d2db
mov esp, ebp
pop ebp
ret