Function at 0x4623f0
Capabilities:
Check for foreground window switch
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x479151
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4951c0]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x94]
mov eax, dword [ebp + 0x10]
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x30], eax
xor edi, edi
mov dword [esp + 0x8c], edi
push ebp
mov dword [0x58faa4], edi
call fcn.00402780
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
lea ebx, [ebx]
mov eax, dword [ebp + 0x10]
push 1
push 0x202
push 0x202
push eax
lea ecx, [esp + 0x74]
push ecx
call esi
test eax, eax
jne 0x462460
jmp 0x462480
mov edx, dword [ebp + 0x10]
push 1
push 0x102
push 0x102
push edx
lea eax, [esp + 0x74]
push eax
call esi
test eax, eax
jne 0x462480
mov dword [0x58faec], edi
mov dword [0x58faf0], edi
cmp dword [0x4ab59c], edi
jne 0x4624d0
call fcn.00401de0
test eax, eax
jne 0x462c5e
cmp dword [0x4ab59c], edi
jne 0x4624d0
cmp dword [0x543998], edi
jne 0x462c5e
mov ecx, dword [0x52db04]
test ecx, ecx
je 0x462572
imul ecx, ecx, 0x294
mov eax, dword [ecx + 0x5904e8]
cdq
idiv dword [ecx + 0x590508]
cmp dword [ecx + 0x5904fc], 1
mov edi, eax
jne 0x462503
cdq
sub eax, edx
sar eax, 1
mov edi, eax
mov ebx, dword [ecx + 0x5904ec]
mov esi, 0x498af8
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
call fcn.004011a0
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea esi, [ebx + 1]
mov dword [0x498d10], eax
inc edi
mov eax, esi
mov ecx, edi
mov ebx, 0x498d14
call fcn.00469800
mov ecx, dword [0x498d58]
mov edx, dword [0x498d10]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x53b168]
mov ecx, dword [0x52e850]
mov edx, dword [0x496b50]
push eax
push ecx
push edx
push esi
push edi
push 0
push 0
mov eax, 0x498af8
call fcn.00403520
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
call ebx
cmp dword [0x58fe6c], 0
mov dword [esp + 0x14], eax
jne 0x462b32
cmp dword [esp + 0x24], 0
je 0x4625ac
call ebx
sub eax, dword [esp + 0x14]
cmp eax, 0x3e8
jbe 0x4625ac
call fcn.00426410
mov dword [esp + 0x24], 0
cmp dword [0x544430], 0
je 0x462766
cmp dword [0x58fcc8], 0
jne 0x462704
cmp byte [0x58fcb6], 0
jne 0x4625e9
cmp byte [0x58fb9f], 0
je 0x462679
cmp byte [0x5553f0], 0
je 0x462679
cmp dword [0x4967f4], 0
jl 0x462632
lea eax, [ebp + 0x14]
push eax
call fcn.00402500
cmp eax, 1
je 0x462625
call ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [0x4967f4]
add edx, ecx
cmp edx, eax
ja 0x462625
push 0
call dword [0x5553ec]
add esp, 4
test al, al
je 0x462b65
cmp dword [0x4967f4], 0
jge 0x462766
lea eax, [ebp + 0x14]
push eax
call fcn.00402500
cmp eax, 1
je 0x462766
call ebx
mov ecx, dword [0x52fa6c]
imul ecx, dword [0x4967f4]
mov edx, dword [esp + 0x14]
sub edx, ecx
cmp edx, eax
ja 0x462766
push 0
call dword [0x5553ec]
add esp, 4
test al, al
je 0x462b65
jmp 0x462766
cmp dword [0x4967f4], 0
jl 0x4626c3
lea eax, [ebp + 0x14]
push eax
call fcn.00402500
cmp eax, 1
je 0x4626b6
call ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [0x4967f4]
add edx, ecx
cmp edx, eax
ja 0x4626b6
xor esi, esi
mov eax, 0x653778
call fcn.00402b70
test eax, eax
je 0x462b65
cmp dword [0x4967f4], 0
jge 0x462766
lea eax, [ebp + 0x14]
push eax
call fcn.00402500
cmp eax, 1
je 0x462766
call ebx
mov ecx, dword [0x52fa6c]
imul ecx, dword [0x4967f4]
mov edx, dword [esp + 0x14]
sub edx, ecx
cmp edx, eax
ja 0x462766
xor esi, esi
mov eax, 0x653778
call fcn.00402b70
test eax, eax
je 0x462b65
jmp 0x462766
mov eax, dword [0x49a63c]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push 1
push eax
mov eax, dword [ecx + 0x24]
call eax
cmp eax, 0x80004004
je 0x462766
mov eax, ebp
call fcn.0046f9e0
cmp dword [0x4967f4], 0
jl 0x462749
call ebx
mov ecx, dword [0x4967f4]
mov edx, dword [esp + 0x14]
add edx, ecx
cmp edx, eax
jbe 0x462b65
test ecx, ecx
jge 0x462766
call ebx
mov ecx, dword [0x52fa6c]
imul ecx, dword [0x4967f4]
mov edx, dword [esp + 0x14]
sub edx, ecx
cmp edx, eax
jbe 0x462b65
cmp dword [0x4ab59c], 0
je 0x462785
call ebx
mov ecx, dword [0x4ad7b4]
mov edx, dword [esp + 0x14]
add ecx, edx
cmp ecx, eax
jbe 0x462b65
push 1
push 0
push 0
push 0
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4627cc
mov edx, dword [0x49ac78]
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x48]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x4627c1
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [0x4ab59c]
test eax, eax
jne 0x462803
cmp dword [0x58faec], eax
jne 0x462b5b
call fcn.00401de0
test eax, eax
jne 0x462b5b
mov eax, dword [0x4ab59c]
test eax, eax
jne 0x462803
cmp dword [0x543998], eax
jne 0x462b65
cmp dword [0x52db04], 0
je 0x46298d
test eax, eax
jne 0x46296c
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp dword [0x58faf0], eax
jne 0x46284d
call esi
mov ecx, dword [0x49ab6c]
cmp eax, dword [ecx + 0x10]
je 0x462837
xor eax, eax
jmp 0x462842
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx eax, ax
test eax, 0x8000
je 0x46296c
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
call esi
mov edx, dword [0x49ab6c]
cmp eax, dword [edx + 0x10]
je 0x462864
xor eax, eax
jmp 0x46286b
push 0x1b
call edi
movzx eax, ax
test eax, 0x8000
je 0x46287c
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x462853
cmp dword [0x4ebfd0], 2
mov dword [0x58faf0], 0
jne 0x46293c
cmp dword [0x52db04], 0
je 0x46293c
mov eax, dword [0x498d10]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [0x53b168]
mov edx, dword [0x52e850]
push 0
push 0
push eax
inc esi
push esi
inc edi
push edi
push ecx
push edx
mov eax, 0x496938
call fcn.00403520
cmp byte [0x58f9cb], 0
je 0x46290a
mov eax, dword [0x49ab6c]
cmp dword [eax + 0x514], 0
je 0x46290a
mov ecx, dword [0x496b50]
mov edx, dword [0x53b168]
mov eax, dword [0x52e850]
push ecx
mov ecx, dword [esp + 0x34]
push esi
push edi
push edx
push eax
push ecx
call fcn.00421f60
add esp, 0x18
jmp 0x462932
mov eax, dword [0x53b168]
mov ecx, dword [0x52e850]
mov edx, dword [0x496b50]
push 0xcc0020
push eax
push ecx
push edx
push esi
push edi
push eax
mov eax, dword [esp + 0x4c]
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov dword [0x52db04], 0
push 0xffffffffffffffff
mov ecx, ebp
call fcn.00429c00
cmp dword [0x4ebfd0], 2
je 0x462b32
cmp dword [0x58fafc], 0
jne 0x462b32
cmp dword [0x58fb00], 0
jne 0x462b32
mov eax, dword [0x49ab6c]
cmp dword [eax + 0xa2c], 0x20a
jne 0x46298d
cmp dword [eax + 0xa30], 0
jle 0x46298d
mov ecx, ebp
call fcn.004481f0
push ebp
call fcn.00461ed0
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x52db04]
test eax, eax
je 0x462b25
mov edx, dword [esp + 0x1c]
mov ecx, dword [0x53b168]
lea esi, [eax - 1]
mov eax, dword [0x52e850]
mov dword [esp + 0x38], eax
lea eax, [eax + edx - 1]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x40], eax
lea eax, [ecx + edx - 1]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], eax
call ebx
imul esi, esi, 0x294
mov ecx, dword [esi + 0x59079c]
cmp ecx, 1
mov dword [esp + 0x28], eax
jle 0x462b25
mov edx, dword [esi + 0x590718]
mov edi, eax
sub edi, edx
cmp edi, dword [esi + 0x5907a0]
ja 0x462a0b
cmp eax, edx
jae 0x462b25
mov edi, dword [esi + 0x59071c]
add dword [esi + 0x590798], edi
mov edx, dword [esi + 0x590798]
cmp edx, ecx
jge 0x462a25
test edx, edx
jge 0x462a65
mov edx, dword [esi + 0x5907a8]
sub edx, 0
je 0x462a5b
sub edx, 1
je 0x462a4f
sub edx, 1
jne 0x462a65
mov eax, edi
neg eax
lea ecx, [eax + eax]
add dword [esi + 0x590798], ecx
mov dword [esi + 0x59071c], eax
jmp 0x462a65
dec ecx
mov dword [esi + 0x590798], ecx
jmp 0x462b1f
mov dword [esi + 0x590798], 0
mov edx, dword [0x498d10]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, dword [0x53b168]
mov ecx, dword [0x52e850]
push 0
push 0
push edx
inc edi
push edi
inc ebx
push ebx
push eax
push ecx
mov eax, 0x496938
call fcn.00403520
mov ebp, dword [0x53b168]
mov ecx, dword [0x52e850]
push ebp
push 0x496938
lea edx, [esi + 0x590518]
push edx
lea eax, [esp + 0x44]
call fcn.00465150
cmp byte [0x58f9cb], 0
je 0x462aec
mov eax, dword [0x49ab6c]
cmp dword [eax + 0x514], 0
je 0x462aec
mov ecx, dword [0x496b50]
mov edx, dword [0x52e850]
mov eax, dword [esp + 0x30]
push ecx
push edi
push ebx
push ebp
push edx
push eax
call fcn.00421f60
add esp, 0x18
jmp 0x462b0e
mov eax, dword [0x52e850]
mov ecx, dword [0x496b50]
mov edx, dword [esp + 0x30]
push 0xcc0020
push ebp
push eax
push ecx
push edi
push ebx
push ebp
push eax
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x94]
mov dword [esi + 0x590718], eax
cmp dword [0x58fe6c], 0
je 0x46258b
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 4
mov dword [0x58faec], 0
mov esi, 2
cmp dword [0x52db04], esi
je 0x462b97
cmp byte [0x544b80], 0
je 0x462b8f
cmp dword [0x543998], 0
jne 0x462b8f
push ebp
mov eax, 0x544b80
call fcn.00471c30
cmp dword [0x52db04], esi
jne 0x462bb4
cmp byte [0x544648], 0
je 0x462bb4
cmp dword [0x543998], 0
jne 0x462bb4
push ebp
mov eax, 0x544648
call fcn.00471c30
cmp dword [0x52db04], 0
je 0x462c5e
mov edx, dword [0x498d10]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov eax, dword [0x53b168]
mov ecx, dword [0x52e850]
push 0
push 0
push edx
inc esi
push esi
inc edi
push edi
push eax
push ecx
mov eax, 0x496938
call fcn.00403520
cmp byte [0x58f9cb], 0
je 0x462c2c
mov edx, dword [0x49ab6c]
cmp dword [edx + 0x514], 0
je 0x462c2c
mov eax, dword [0x496b50]
mov ecx, dword [0x53b168]
mov edx, dword [0x52e850]
push eax
mov eax, dword [esp + 0x34]
push esi
push edi
push ecx
push edx
push eax
call fcn.00421f60
add esp, 0x18
jmp 0x462c54
mov eax, dword [0x53b168]
mov ecx, dword [0x52e850]
mov edx, dword [0x496b50]
push 0xcc0020
push eax
push ecx
push edx
push esi
push edi
push eax
mov eax, dword [esp + 0x4c]
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov dword [0x52db04], 0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
push ecx
push edx
jmp 0x462b3c