Function at 0x4152f9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, ecx
mov dword [ebp - 0x108], eax
push edi
mov edi, dword [ebp + 0x18]
mov eax, 0x1c00
cmp ebx, dword [esi + 0x3ef0]
jne 0x415342
cmp edi, dword [esi + 0x3ef4]
jne 0x415342
test word [esi + 0x3ebc], ax
je 0x415493
mov ecx, dword [esi + 0x3e80]
push 0
mov dword [esi + 0x3ef0], ebx
mov dword [esi + 0x3ef4], edi
call fcn.00440615
lea ecx, [esi + 0x180]
push 0
call fcn.004323d7
mov ecx, esi
call fcn.0041ed1c
movzx ecx, word [esi + 0x3ebc]
mov edx, 0xe3ff
test al, al
je 0x4153cc
mov eax, ecx
test cl, 0x10
je 0x41539b
test bl, 1
jne 0x41539b
and ecx, 0xffee
mov word [esi + 0x3ebc], cx
movzx eax, cx
movzx ecx, ax
test al, 0x20
je 0x4153b9
movzx ecx, ax
test bl, 2
jne 0x4153b9
and eax, 0xffdd
mov word [esi + 0x3ebc], ax
movzx ecx, ax
and ecx, edx
mov word [esi + 0x3ebc], cx
test cl, 0x30
je 0x4153e9
jmp 0x415493
test cl, 3
je 0x4153e9
call fcn.004d77b7
mov edx, 0xe3ff
test al, al
je 0x4153e9
lea eax, [edx - 0x33]
and word [esi + 0x3ebc], ax
movzx ecx, word [esi + 0x3ebc]
mov eax, ecx
test ecx, 0x1c00
je 0x415414
mov eax, dword [0x5a23ec]
cmp byte [eax + 0x10fff], 0
jne 0x415475
and ecx, edx
mov word [esi + 0x3ebc], cx
movzx eax, cx
mov ecx, dword [0x5a23ec]
test al, 3
push 0
pop eax
setne al
xor ebx, ebx
inc ebx
test byte [ecx + 0x10ff9], al
je 0x415661
call fcn.004d7fe5
test al, al
jne 0x41565b
cmp dword [esi + 0x45c8], 0
jne 0x4154cd
push 0
push 0x529010
mov ecx, esi
call fcn.0040e34d
cmp byte [esi + 0x3ebf], 0
jne 0x415493
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret 0x20
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x415497
mov eax, 0xe3ff
and word [esi + 0x3ebc], ax
xor eax, eax
jmp 0x415464
mov eax, dword [ebp + 0x24]
cmp ax, word [esi + 0x3ec6]
jne 0x4154b0
mov cx, word [ebp + 0x26]
cmp cx, word [esi + 0x3ec8]
je 0x415493
mov ecx, dword [0x5a23ec]
cmp byte [ecx + 0x10fff], 1
jne 0x415493
push eax
lea ecx, [esi + 0x180]
call fcn.0042e55c
jmp 0x415493
push 5
push dword [ebp + 0x20]
mov byte [esi + 0x3ebf], bl
push dword [ebp + 0x1c]
push dword [esi + 0x4578]
push dword [esi + 0x4574]
call fcn.004e6b6b
add esp, 0x14
test al, al
jne 0x415459
mov ecx, esi
call fcn.0041ed1c
test al, al
jne 0x415459
push 0
lea ecx, [esi + 0x180]
call fcn.004323d7
test al, al
jne 0x415459
movzx eax, word [esi + 0x3ebc]
mov edi, eax
test al, 0x40
je 0x415588
mov ecx, dword [ebp + 0x18]
and eax, 0xffbf
mov word [esi + 0x3ebc], ax
mov eax, ecx
push 5
shr eax, 0x10
cwde
push eax
movsx eax, cx
push eax
push dword [esi + 0x4580]
lea eax, [ebp - 0x104]
push dword [esi + 0x457c]
push dword [esi + 0x4578]
push dword [esi + 0x4574]
push 0x529048
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
lea eax, [ebp - 0x104]
mov ecx, esi
push ebx
push ebx
push eax
call fcn.00410fbe
movzx edi, word [esi + 0x3ebc]
push ebx
and edi, ebx
mov ecx, 0x5290cc
mov eax, 0x5290b0
cmove eax, ecx
mov ecx, esi
push ebx
push eax
call fcn.00410fbe
push 0
call fcn.004d7c00
pop ecx
test al, al
jne 0x4155f4
xor ebx, ebx
mov ecx, esi
push ebx
push 0x5290e8
call fcn.0040e34d
push ebx
push dword [ebp + 0x1c]
mov eax, 0xffcc
mov byte [esi + 0x3ebf], bl
push dword [ebp + 0x1c]
and word [esi + 0x3ebc], ax
push dword [ebp + 0x14]
push 0x202
mov ecx, dword [ebp - 0x108]
call fcn.004de78b
mov ecx, eax
call fcn.0048baf1
jmp 0x415493
mov eax, 0xffce
and word [esi + 0x3ebc], ax
cmp dword [esi + 0x45c8], 0
je 0x415640
push 0
push 0x529110
mov ecx, esi
call fcn.0040e34d
test edi, edi
je 0x415623
mov eax, dword [esi + 0x3ec2]
jmp 0x415629
mov eax, dword [esi + 0x3ed8]
mov ecx, dword [esi + 0x45c8]
xor edi, ebx
push eax
push edi
call fcn.0043a9c4
lea eax, [esi + 0x49f4]
jmp 0x415645
mov eax, 0x529010
push 0
push eax
mov ecx, esi
call fcn.0040e34d
mov byte [esi + 0x3ebf], 0
jmp 0x415493
mov ecx, dword [0x5a23ec]
cmp byte [ecx + 0x10fa9], 0
jne 0x415459
cmp byte [ecx + 0x10fe3], 0
je 0x415459
test byte [esi + 0x3ebc], 0x40
je 0x415459
push 3
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [esi + 0x4580]
push dword [esi + 0x457c]
call fcn.004e6b6b
add esp, 0x14
test al, al
jne 0x415493
mov eax, 0xff9d
and word [esi + 0x3ebc], ax
cmp byte [esi + 0x77f4], 0
je 0x4156c8
mov ecx, esi
call fcn.0041bdcb
push 3
mov eax, edi
shr eax, 0x10
cwde
push eax
movsx eax, di
push eax
push dword [esi + 0x4580]
lea eax, [ebp - 0x104]
push dword [esi + 0x457c]
push 0x529148
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp - 0x104]
xor ebx, ebx
mov ecx, esi
inc ebx
push ebx
push ebx
push eax
call fcn.00410fbe
movsx eax, word [esi + 0x3eda]
push 0
push eax
movsx eax, word [esi + 0x3ed8]
push eax
push 0
push 0x204
jmp 0x4155dd