Function at 0x411532
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20dc
call fcn.00416ec0
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
mov dword [esi + 0x40ec], 0x120
call edi
mov bx, ax
push 0x10
shr ebx, 0xf
and ebx, 1
call edi
shr eax, 0xf
and eax, 1
push 2
mov dword [ebp - 4], eax
call edi
shr eax, 0xf
xor edi, edi
and eax, 1
cmp ebx, edi
je 0x411594
cmp dword [ebp - 4], edi
je 0x4115ba
neg eax
sbb eax, eax
and al, 0xf0
add eax, 0x50
mov dword [esi + 0x40ec], eax
jmp 0x41159d
cmp dword [ebp - 4], edi
jne 0x4115ba
cmp eax, edi
jne 0x4115ba
cmp dword [esi + 0x822c], edi
je 0x4115c1
mov eax, dword [esi]
push edi
push 0x41f7c8
push 0x420780
mov ecx, esi
call dword [eax + 0x90]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov ebx, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 0x3ec
push dword [esi + 0x20]
mov dword [esi + 0x8130], 0x107
call ebx
test eax, eax
je 0x4115e9
or dword [esi + 0x40ec], 0x100200
push 0x3ed
push dword [esi + 0x20]
call ebx
test eax, eax
je 0x4115fe
or byte [esi + 0x40ed], 0x80
mov eax, dword [esi + 0x40d0]
cmp eax, edi
je 0x411614
cmp dword [eax + 0x1c], edi
je 0x411614
or byte [esi + 0x40ee], 0x20
mov eax, dword [esi]
push edi
push edi
push 0x1032
push 0x415
mov ecx, esi
call dword [eax + 0xa8]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x40e8], edi
jle 0x411675
lea eax, [edi + edi*4]
lea eax, [eax*4 + 4]
push eax
call fcn.004166da
cmp eax, ebx
pop ecx
je 0x411669
mov dword [eax], edi
dec edi
lea ecx, [eax + 4]
cmp edi, ebx
mov eax, ecx
jl 0x41166b
lea edx, [edi + 1]
mov dword [eax + 0xc], ebx
mov dword [eax], ebx
add eax, 0x14
dec edx
jne 0x41165c
jmp 0x41166b
xor ecx, ecx
cmp ecx, ebx
mov dword [esi + 0x40e4], ecx
jne 0x411680
mov dword [esi + 0x8130], ebx
jmp 0x4115ba
mov edx, dword [esi]
lea eax, [esi + 0xcc]
push 0x4000
push eax
push 0x3e9
mov ecx, esi
call dword [edx + 0x84]
mov ecx, dword [esi + 0x40]
call fcn.0040456d
mov eax, dword [esi + 0x40e8]
cmp eax, 1
jle 0x4116b5
or byte [esi + 0x40ed], 8
cmp eax, 0xa
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
jg 0x4116dc
mov eax, dword [esi + 0x3c]
cmp dword [eax + 0x298], ebx
jne 0x4116d3
cmp dword [eax + 0x2a8], ebx
je 0x4116dc
mov dword [ebp - 4], 0x400000
jmp 0x4116df
mov dword [ebp - 4], ebx
cmp dword [esi + 0x40e0], ebx
mov dword [ebp - 8], ebx
jle 0x4117bb
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x40e8]
jge 0x4117bb
mov eax, dword [esi]
push 2
push dword [ebp - 8]
mov ecx, esi
push 0x102c
push 0x415
call dword [eax + 0xa8]
test al, 2
je 0x4117a9
mov eax, dword [esi + 0x40dc]
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
add dword [ebp - 0x10], 0x14
mov edi, dword [eax + ecx*4]
add ebx, dword [esi + 0x40e4]
inc dword [ebp - 0x14]
mov eax, dword [edi + 0xd0]
and eax, 0x400000
or dword [ebp - 0xc], eax
lea eax, [ebp - 0xdc]
push eax
push edi
push dword [esi + 0x3c]
call fcn.0040aaa0
mov ecx, dword [esi + 0x40]
add esp, 0xc
lea eax, [ebp - 0xdc]
push eax
call fcn.00404572
mov eax, dword [ebp - 4]
mov dword [ebx], edi
inc dword [edi + 0xdc]
test dword [edi + 0xd0], eax
je 0x41178d
xor eax, eax
cmp dword [edi + 0xe0], eax
setne al
jmp 0x411790
push 2
pop eax
mov dword [ebx + 4], eax
dec eax
dec eax
neg eax
sbb eax, eax
and eax, 0x400000
or eax, dword [esi + 0x40ec]
mov dword [ebx + 8], eax
xor ebx, ebx
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x40e0]
jl 0x4116f1
mov eax, dword [ebp - 0xc]
and byte [esi + 0x1ecc], 0
test dword [ebp - 4], eax
je 0x4117d1
or byte [esi + 0x40ee], 0x40
push dword [esi + 0x40d0]
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0xcc]
push dword [esi + 0x40ec]
push eax
call fcn.004045a9
mov eax, dword [esi + 0x40d0]
cmp eax, ebx
je 0x411853
cmp dword [eax + 0x1c], ebx
je 0x411853
lea ecx, [ebp - 0x20dc]
push 0x2000
push ecx
push eax
call fcn.00414cb7
lea eax, [ebp - 0x20dc]
push eax
call fcn.00416dc0
inc eax
push eax
call fcn.004166da
lea ecx, [ebp - 0x20dc]
mov dword [esi + 0x40f0], eax
push ecx
push eax
call fcn.00416b30
add esp, 0x1c
mov ecx, dword [esi + 0x40cc]
push dword [esi + 0x40e8]
push dword [esi + 0x40e4]
push dword [esi + 0x40d0]
call fcn.00413380
mov ecx, esi
call fcn.00411c91
mov ecx, dword [esi + 0x3c]
mov eax, 0x102
push ebx
mov dword [esi + 0x8130], eax
push dword [ecx + 0x368]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x411890
push esi
push ebx
push 0x47b
call fcn.00408fd5
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push esi
push ebx
push 0x47c
call fcn.00408fd5
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
mov ecx, esi
call fcn.00415fae
push 1
pop eax
jmp 0x4115bc