Function at 0x413052
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x415c
call fcn.0041c140
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov esi, ecx
push 0x11
mov dword [ebp - 4], 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 - 8], eax
call edi
shr eax, 0xf
xor edi, edi
and eax, 1
cmp ebx, edi
je 0x4130ae
cmp dword [ebp - 8], edi
je 0x4130dd
neg eax
sbb eax, eax
and al, 0xf0
add eax, 0x50
mov dword [ebp - 4], eax
jmp 0x4130b7
cmp dword [ebp - 8], edi
jne 0x4130dd
cmp eax, edi
jne 0x4130dd
cmp dword [esi + 0x82a0], edi
je 0x4130e4
mov ebx, dword [esi]
push edi
push 0x4287c8
push edi
push 0x91
call fcn.00417d3e
pop ecx
pop ecx
push eax
mov ecx, esi
call dword [ebx + 0xe4]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov ebx, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 0x3ec
push dword [esi + 0x3c]
call ebx
test eax, eax
je 0x4130ff
or dword [ebp - 4], 0x100200
push 0x3ed
push dword [esi + 0x3c]
call ebx
test eax, eax
je 0x413111
or byte [ebp - 3], 0x80
mov eax, dword [esi + 0x812c]
cmp eax, edi
je 0x413124
cmp dword [eax + 0x1c], edi
je 0x413124
or byte [ebp - 2], 0x20
mov eax, dword [esi + 0x83c0]
lea ecx, [esi + 0x83c0]
push edi
push edi
push 0x1032
call dword [eax + 0x104]
mov ebx, eax
cmp ebx, edi
mov dword [esi + 0x8144], ebx
jle 0x4130dd
lea eax, [ebx + ebx*4]
lea eax, [eax*4 + 4]
push eax
call fcn.0041b8da
cmp eax, edi
pop ecx
je 0x41317a
lea ecx, [ebx - 1]
lea edx, [eax + 4]
mov dword [eax], ebx
cmp ecx, edi
mov eax, edx
jl 0x41317c
inc ecx
mov dword [eax + 0xc], edi
mov dword [eax], edi
add eax, 0x14
dec ecx
jne 0x41316d
jmp 0x41317c
xor edx, edx
cmp edx, edi
mov dword [esi + 0x8140], edx
je 0x4130dd
mov edx, dword [esi + 0x82f4]
lea ecx, [esi + 0x82f4]
push 0xfde9
lea eax, [esi + 0x128]
push 1
push 0x8000
push eax
mov dword [esi + 0x81a4], 0x107
call dword [edx + 0x188]
mov ecx, dword [esi + 0x60]
call fcn.00404b64
mov ecx, dword [esi + 0x8144]
cmp ecx, 1
jle 0x4131d0
or byte [ebp - 3], 8
mov eax, dword [esi + 0x5c]
cmp ecx, dword [eax + 0x72c]
jg 0x4131f4
cmp dword [eax + 0x6cc], edi
jne 0x4131eb
cmp dword [eax + 0x6b4], edi
je 0x4131f4
mov dword [ebp - 0x18], 0x400000
jmp 0x4131f7
mov dword [ebp - 0x18], edi
xor ebx, ebx
cmp dword [esi + 0x813c], edi
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jle 0x4132d0
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x8144]
jge 0x4132d0
mov eax, dword [esi + 0x83c0]
push 2
push dword [ebp - 0xc]
lea ecx, [esi + 0x83c0]
push 0x102c
call dword [eax + 0x104]
test al, 2
je 0x4132be
mov eax, dword [esi + 0x8138]
mov ecx, dword [ebp - 0xc]
mov edi, dword [eax + ecx*4]
mov eax, dword [esi + 0x8140]
add eax, dword [ebp - 0x10]
inc dword [ebp - 0x14]
mov ebx, dword [edi + 0x148]
add dword [ebp - 0x10], 0x14
and ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x15c]
or dword [ebp - 8], ebx
push eax
push edi
push dword [esi + 0x5c]
call fcn.0040bfe1
mov ecx, dword [esi + 0x60]
add esp, 0xc
lea eax, [ebp - 0x15c]
push eax
call fcn.00404b69
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
inc dword [edi + 0x154]
test ebx, 0x400000
jne 0x4132a5
push 2
pop ecx
jmp 0x4132b0
xor ecx, ecx
cmp dword [edi + 0x158], ecx
setne cl
or ebx, dword [ebp - 4]
mov dword [eax + 4], ecx
xor edi, edi
mov dword [eax + 8], ebx
mov ebx, dword [ebp - 8]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [esi + 0x813c]
jl 0x413211
push dword [esi + 0x812c]
or ebx, dword [ebp - 4]
mov ecx, dword [esi + 0x60]
and byte [esi + 0x3f28], 0
lea eax, [esi + 0x128]
push ebx
push eax
call fcn.00404ba0
mov eax, dword [esi + 0x812c]
cmp eax, edi
je 0x413345
cmp dword [eax + 0x1c], edi
je 0x413345
lea ecx, [ebp - 0x415c]
push 0x4000
push ecx
push eax
call fcn.00416c2c
lea eax, [ebp - 0x415c]
push 1
push eax
call fcn.0041804b
add esp, 0x14
mov ecx, dword [esi + 0x8128]
push dword [esi + 0x8144]
mov dword [esi + 0x8148], eax
push dword [esi + 0x8140]
push dword [esi + 0x812c]
call fcn.0041500f
mov ecx, esi
call fcn.00413751
mov ecx, dword [esi + 0x5c]
mov eax, 0x102
push edi
mov dword [esi + 0x81a4], eax
push dword [ecx + 0x7f4]
push eax
push dword [esi + 0x3c]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x413382
push esi
push edi
push 0x47b
call fcn.0040a05e
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push esi
push edi
push 0x47c
call fcn.0040a05e
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov ecx, esi
call fcn.0041ac2b
push 1
pop eax
jmp 0x4130df