Function at 0x40e390
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507c28
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x54e39c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x34], eax
lea ebx, [eax + 0x30]
push ebx
call fcn.0042c550
push 0
push 1
call fcn.0042e520
push eax
mov ecx, ebx
call fcn.0042aa80
mov ecx, ebx
call fcn.004260d0
push 0x121
mov ecx, eax
call fcn.0042e7e0
mov ecx, ebx
mov dword [ebp - 0x48], eax
call fcn.004260d0
push 0x9c
mov ecx, eax
call fcn.0042e7e0
mov dword [ebp - 0x4c], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
movlpd qword [ebp - 0x24], xmm0
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x60]
call fcn.00410830
mov ecx, ebx
call fcn.004260d0
push 0xf
mov ecx, eax
call fcn.0042e7e0
mov edi, dword [ebp - 0x24]
mov ecx, ebx
sub edi, eax
mov dword [ebp - 0x40], edi
call fcn.004260d0
push 1
mov ecx, eax
call fcn.0042e7e0
mov esi, dword [ebp - 0x20]
sub esi, dword [ebp - 0x4c]
sub esi, eax
mov eax, dword [ebp - 0x48]
add eax, edi
mov dword [ebp - 0x3c], esi
mov edi, dword [ebp - 0x58]
cmp eax, edi
jle 0x40e47a
mov ecx, ebx
call fcn.004260d0
push 0xa
mov ecx, eax
call fcn.0042e7e0
sub edi, dword [ebp - 0x48]
add eax, edi
mov dword [ebp - 0x40], eax
test esi, esi
jns 0x40e494
mov ecx, ebx
call fcn.004260d0
push 0xa
mov ecx, eax
call fcn.0042e7e0
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
push str.day_count
mov ecx, ebx
call fcn.00426060
mov edi, eax
mov ecx, ebx
push str.day_block_count
mov dword [ebp - 0x28], edi
call fcn.00426060
push str.all_block_count
mov ecx, ebx
mov dword [ebp - 0x38], eax
call fcn.00426060
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x40e7af
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x40e7b9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x40e7c3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push dword [esi + 0x31c]
push 0x53795c
push eax
call fcn.0040c260
mov eax, dword [edi]
add esp, 0xc
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
push edi
call dword [eax + 0x30]
push dword [esi + 0x314]
lea eax, [ebp - 0x18]
push 0x53797c
push eax
call fcn.0040c260
mov esi, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
lea eax, [esi - 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov eax, dword [eax + 0x80]
mov dword [ebp - 0x30], eax
call fcn.004260d0
mov ecx, ebx
mov dword [ebp - 0x2c], eax
call fcn.004260d0
push 7
mov ecx, eax
call fcn.0042e7e0
mov ecx, dword [ebp - 0x2c]
mov ebx, eax
imul ebx, dword [ebp - 0x28]
push 5
call fcn.0042e7e0
add eax, ebx
mov ebx, dword [ebp - 0x38]
push eax
mov ecx, ebx
call dword [ebp - 0x30]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x34]
mov eax, dword [eax + 0x88]
lea ecx, [ebx + 0x30]
mov dword [ebp - 0x2c], eax
call fcn.004260d0
lea ecx, [ebx + 0x30]
mov dword [ebp - 0x30], eax
call fcn.004260d0
push 7
mov ecx, eax
call fcn.0042e7e0
mov ecx, dword [ebp - 0x30]
mov ebx, eax
imul ebx, dword [ebp - 0x28]
push 5
call fcn.0042e7e0
add eax, ebx
mov ebx, dword [ebp - 0x38]
push eax
mov ecx, ebx
call dword [ebp - 0x2c]
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax + 0x30]
mov eax, dword [ebp - 0x34]
push dword [eax + 0x318]
lea eax, [ebp - 0x1c]
push 0x53797c
push eax
call fcn.0040c260
mov esi, dword [ebp - 0x1c]
add esp, 0xc
mov ebx, dword [ebp - 0x34]
lea eax, [esi - 0x10]
mov dword [ebp - 0x38], eax
lea ecx, [ebx + 0x30]
mov eax, dword [eax + 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
mov eax, dword [eax + 0x80]
mov dword [ebp - 0x2c], eax
call fcn.004260d0
lea ecx, [ebx + 0x30]
mov dword [ebp - 0x30], eax
call fcn.004260d0
push 7
mov ecx, eax
call fcn.0042e7e0
mov ecx, dword [ebp - 0x30]
mov ebx, eax
imul ebx, dword [ebp - 0x28]
push 5
call fcn.0042e7e0
add eax, ebx
mov ebx, dword [ebp - 0x44]
push eax
mov ecx, ebx
call dword [ebp - 0x2c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x34]
mov eax, dword [eax + 0x88]
lea ecx, [ebx + 0x30]
mov dword [ebp - 0x2c], eax
call fcn.004260d0
lea ecx, [ebx + 0x30]
mov dword [ebp - 0x30], eax
call fcn.004260d0
push 7
mov ecx, eax
call fcn.0042e7e0
mov ecx, dword [ebp - 0x30]
mov ebx, eax
imul ebx, dword [ebp - 0x28]
push 5
call fcn.0042e7e0
add eax, ebx
mov ebx, dword [ebp - 0x44]
push eax
mov ecx, ebx
call dword [ebp - 0x2c]
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax + 0x30]
mov ebx, dword [ebp - 0x34]
mov ecx, ebx
push 0
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.0042be70
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
push 1
mov ecx, ebx
call fcn.0042c660
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x40], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
mov dword [ebp - 0x3c], eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov ebx, eax
push 1
push ebx
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x40]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [ebp - 0x40]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 0
push ebx
push dword [ebp - 0x3c]
call esi
mov edx, dword [ebp - 0x38]
or esi, 0xffffffff
mov byte [ebp - 4], 6
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e75c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x50]
mov eax, esi
mov byte [ebp - 4], 7
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e777
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 8
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x40e793
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049bdac
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404780
push 0x80004005
call fcn.00404780
push 0x80004005
call fcn.00404780
int3