Function at 0x4ec470
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6b19a1
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
xor ebp, ebp
cmp eax, ebp
jne 0x4ec4aa
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
push ebx
mov ebx, dword [0x85cfbc]
cmp ebx, ebp
jne 0x4ec4cb
pop ebx
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
cmp dword [0x21fe5d0], ebp
je 0x4ec4ec
pop ebx
pop esi
mov eax, 2
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
cmp dword [0x21fe5d8], ebp
je 0x4ec514
push ebp
lea ecx, [esi + 0x104]
mov dword [esi + 0x2c], 1
call fcn.00527270
push 1
lea ecx, [esi + 0x6dc]
call fcn.00527270
cmp dword [0x21fe5dc], ebp
je 0x4ec538
push 1
lea ecx, [esi + 0x104]
mov dword [esi + 0x2c], ebp
call fcn.00527270
push ebp
lea ecx, [esi + 0x6dc]
call fcn.00527270
mov ecx, dword [esi + 0xe8]
cmp ecx, ebp
je 0x4ec565
call fcn.00528da0
cmp eax, ebp
je 0x4ec610
mov ecx, dword [esi + 0xe8]
cmp ecx, ebp
je 0x4ec565
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0xe8], ebp
mov ecx, dword [esi + 0xf0]
cmp ecx, ebp
push edi
je 0x4ec685
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], ebp
call fcn.00511e10
mov ebx, eax
cmp ebx, ebp
je 0x4ec66b
mov edi, dword [esi + 0xf0]
cmp edi, ebp
je 0x4ec5ac
mov ecx, edi
call fcn.00512960
push edi
call fcn.005cc620
add esp, 4
mov dword [esi + 0xf0], ebp
cmp ebx, 2
jne 0x4ec66b
movzx edi, byte [esi + 0x34]
movzx ebx, byte [esi + 0x35]
lea eax, [edi + edi*2]
lea eax, [ebx + eax*8]
lea ecx, [eax + eax*4]
movzx eax, byte [ecx*8 + 0x8666df]
mov ecx, dword [esp + 0x2c]
push ebp
cdq
push ecx
push edx
push eax
call fcn.005cecb0
cmp edx, ebp
jl 0x4ec629
jg 0x4ec5e7
cmp eax, 0xffffffff
jbe 0x4ec629
push 0x1d4
push 0x11
call fcn.0041fce0
add esp, 8
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
pop ebx
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov ecx, dword [0x719a70]
push 0
push 0
push 0
push 0
push ebx
push edi
push 0
push 1
mov ebp, ecx
call fcn.00513600
push eax
mov ecx, ebp
call fcn.00513740
mov edx, dword [esp + 0x2c]
push edx
xor eax, eax
mov al, byte [esi + 0x33]
xor ecx, ecx
mov cl, byte [esi + 0x35]
xor edx, edx
mov dl, byte [esi + 0x34]
push eax
push ecx
push edx
call fcn.0059bf10
add esp, 0x10
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
push eax
lea ecx, [esi + 0x6dc]
push edx
call fcn.00527450
test eax, eax
je 0x4ec6a1
call fcn.0059bee0
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
push eax
lea ecx, [esi + 0xcb4]
push edx
call fcn.00527450
test eax, eax
je 0x4ec6cc
call fcn.0059bee0
call fcn.0059be40
mov dword [esi + 0x128c], 1
cmp dword [esi + 0x2c], ebp
jne 0x4ece63
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
lea ecx, [esi + 0x104]
call fcn.00527450
test eax, eax
je 0x4ec80c
lea edi, [ebx + 0x300]
mov eax, edi
lea edx, [eax + 1]
jmp 0x4ec700
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ec700
sub eax, edx
mov dword [esp + 0x2c], eax
jne 0x4ec772
mov eax, dword [esi + 0xe8]
test eax, eax
jne 0x4ec772
push 0x254
call fcn.005cc96d
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov dword [esp + 0x24], 0
je 0x4ec73f
mov ecx, eax
call fcn.005293b0
jmp 0x4ec741
xor eax, eax
push 0x10
mov ecx, eax
mov dword [esp + 0x28], 0xffffffff
mov dword [esi + 0xe8], eax
call fcn.005297a0
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov eax, 0x21fe1bc
cmp dword [eax], 0
jne 0x4ec7e9
add eax, 0xc
cmp eax, 0x21fe2ac
jl 0x4ec777
mov eax, dword [esi + 0xe8]
test eax, eax
jne 0x4ec7e9
push 0x254
call fcn.005cc96d
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov dword [esp + 0x24], 1
je 0x4ec7b6
mov ecx, eax
call fcn.005293b0
jmp 0x4ec7b8
xor eax, eax
push 0x11
mov ecx, eax
mov dword [esp + 0x28], 0xffffffff
mov dword [esi + 0xe8], eax
call fcn.005297a0
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
push edi
call fcn.0059be70
add esp, 4
pop edi
pop ebx
pop esi
mov eax, 3
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov eax, dword [0x2203690]
mov ebp, 1
xor edi, edi
cmp eax, ebp
jne 0x4ec920
cmp dword [0x2203694], edi
jne 0x4ec920
mov eax, dword [esi + 4]
mov ecx, dword [0x71c2a4]
lea edx, [eax + 0x10]
cmp ecx, edx
jl 0x4ec89b
add eax, 0xac
cmp ecx, eax
jg 0x4ec89b
mov eax, dword [esi + 8]
mov ecx, dword [0x71c2a8]
lea edx, [eax + 0x3f]
cmp ecx, edx
jl 0x4ec89b
add eax, 0x75
cmp ecx, eax
jg 0x4ec89b
push ebp
mov ecx, 0x2203adc
mov dword [0x864e00], edi
mov dword [0x719a58], ebp
mov byte [0x2201c24], 1
call fcn.005325b0
mov ecx, 0x2203adc
call fcn.005347d0
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov al, byte [0x2201c24]
test al, al
je 0x4ec9fb
mov ecx, 0x2203adc
call fcn.00531b30
cmp ax, 0x12
mov ecx, 0x2203adc
jne 0x4ec8e4
call fcn.00532eb0
push eax
mov ecx, 0x2203adc
call fcn.00532dc0
push eax
lea eax, [ebx + 0x300]
push 0x6bc494
push eax
call fcn.005cd489
add esp, 0x10
jmp 0x4ec8fe
call fcn.00532dc0
push eax
lea ecx, [ebx + 0x300]
push 0x6be170
push ecx
call fcn.005cd489
add esp, 0xc
push edi
mov ecx, 0x2203adc
mov dword [0x719a58], edi
mov byte [0x2201c24], 0
call fcn.005325b0
mov ecx, 0x2203adc
call fcn.005347d0
mov al, byte [0x2201c24]
test al, al
je 0x4ec9fb
mov ecx, dword [0x2203688]
push 0x1c
call fcn.004268b0
test al, al
je 0x4ec9fb
mov ecx, 0x2203adc
call fcn.00531b30
cmp ax, 0x12
je 0x4ec964
mov ecx, 0x2203adc
call fcn.00532a90
test al, al
jne 0x4ec9fb
push 0xd
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x2203adc
call fcn.00531b30
cmp ax, 0x12
mov ecx, 0x2203adc
jne 0x4ec9a8
call fcn.00532eb0
push eax
mov ecx, 0x2203adc
call fcn.00532dc0
push eax
push 0x6bc494
add ebx, 0x300
push ebx
call fcn.005cd489
add esp, 0x10
jmp 0x4ec9c2
call fcn.00532dc0
push eax
push 0x6be170
add ebx, 0x300
push ebx
call fcn.005cd489
add esp, 0xc
push edi
mov ecx, 0x2203adc
mov dword [0x719a58], edi
mov byte [0x2201c24], 0
call fcn.005325b0
mov ecx, 0x2203adc
call fcn.005347d0
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov ecx, dword [esp + 0x2c]
xor ebp, ebp
test ecx, ecx
mov byte [esi + 0x31], 0xff
je 0x4eca2c
mov eax, dword [ecx + 0xdc]
test eax, eax
mov ebp, ecx
je 0x4eca19
xor eax, eax
jmp 0x4eca20
movzx eax, byte [ecx + 0xe1]
mov byte [esi + 0x30], al
mov dl, byte [ecx + 0xe0]
mov byte [esi + 0x31], dl
mov eax, dword [0x2203690]
cmp eax, 1
jne 0x4ecb30
mov eax, dword [0x2203694]
test eax, eax
jne 0x4ece63
fild dword [0x71c2a4]
xor ecx, ecx
fstp dword [esp + 0x10]
fild dword [esi + 4]
fstp dword [esp + 0x18]
lea ebx, [ebx]
mov eax, ecx
and eax, reloc.ijl15.dll_Ordinal_3
jns 0x4eca6e
dec eax
or eax, 0xfffffffc
inc eax
imul eax, eax, 0x27
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fadd dword [esp + 0x18]
fadd dword [0x70a218]
fld dword [esp + 0x10]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x4ecb1f
fld dword [0x6c0cbc]
fadd st(1)
fld dword [esp + 0x10]
fcompp
fnstsw ax
fstp st(0)
test ah, 0x41
jp 0x4ecb21
fild dword [0x71c2a8]
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
imul eax, eax, 0x27
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fiadd dword [esi + 8]
fadd dword [0x70a21c]
fld st(1)
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x4ecb1d
fld dword [0x6c0cbc]
fadd st(1)
fxch st(1)
fxch st(2)
fcompp
fnstsw ax
fstp st(0)
test ah, 0x41
jp 0x4ecb21
lea edx, [ecx + ecx*2]
mov eax, dword [edx*4 + 0x21fe1bc]
test eax, eax
je 0x4ecb03
mov byte [esi + 0x32], cl
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
fstp st(0)
fstp st(0)
inc ecx
cmp ecx, 0x14
jl 0x4eca60
jmp 0x4ece63
cmp eax, 2
jne 0x4ece63
cmp byte [esi + 0x31], 0xff
je 0x4ece07
mov eax, dword [esi + 4]
mov ecx, dword [0x71c2a4]
cmp ecx, eax
jl 0x4ece63
mov edx, dword [esi + 0xc]
add edx, eax
cmp ecx, edx
jg 0x4ece63
mov eax, dword [esi + 8]
mov ecx, dword [0x71c2a8]
cmp ecx, eax
jl 0x4ece63
mov edx, dword [esi + 0x10]
add edx, eax
cmp ecx, edx
jg 0x4ece63
xor ecx, ecx
mov dword [esp + 0x2c], ecx
jmp 0x4ecb90
fild dword [0x71c2a4]
mov eax, ecx
and eax, reloc.ijl15.dll_Ordinal_3
jns 0x4ecba4
dec eax
or eax, 0xfffffffc
inc eax
imul eax, eax, 0x27
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fiadd dword [esi + 4]
fadd dword [0x70a218]
fld st(1)
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x4ecd17
fld dword [0x6c0cbc]
fadd st(1)
fxch st(1)
fxch st(2)
fcompp
fnstsw ax
fstp st(0)
test ah, 0x41
jp 0x4ecd1b
fild dword [0x71c2a8]
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
imul eax, eax, 0x27
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fiadd dword [esi + 8]
fadd dword [0x70a21c]
fld st(1)
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x4ecd17
fld dword [0x6c0cbc]
fadd st(1)
fxch st(1)
fxch st(2)
fcompp
fnstsw ax
fstp st(0)
test ah, 0x41
jp 0x4ecd1b
movzx eax, byte [ebp + 0xe1]
movzx edx, byte [ebp + 0xe0]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*8]
lea eax, [eax + eax*4]
shl eax, 3
xor ecx, ecx
mov cl, byte [eax + 0x8666de]
xor edx, edx
mov dl, byte [eax + 0x8666dd]
push ecx
mov ecx, 0x86de50
push edx
call fcn.004607b0
test eax, eax
je 0x4ecc76
mov cl, byte [eax + 0x24]
test cl, cl
jne 0x4ecd4a
xor eax, eax
mov al, byte [esi + 0x30]
test al, al
je 0x4ecd8e
xor ebx, ebx
mov bl, byte [esi + 0x31]
mov ecx, esi
push ebx
push eax
mov eax, dword [esp + 0x34]
push eax
call fcn.004ebcc0
mov edi, eax
test edi, edi
jne 0x4ecdd9
mov al, byte [esi + 0x30]
mov cl, byte [esp + 0x2c]
mov byte [esi + 0x33], cl
mov byte [esi + 0x34], al
mov byte [esi + 0x35], bl
mov byte [ebp + 0xe0], 0xff
mov edi, dword [esi + 0xf0]
test edi, edi
je 0x4eccdb
mov ecx, edi
call fcn.00512960
push edi
call fcn.005cc620
add esp, 4
mov dword [esi + 0xf0], 0
push 0x1208
call fcn.005cc96d
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x24], 2
je 0x4ecd01
mov ecx, eax
call fcn.005126b0
jmp 0x4ecd03
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
mov dword [esi + 0xf0], eax
jmp 0x4ecd1b
fstp st(0)
fstp st(0)
inc ecx
cmp ecx, 0x14
mov dword [esp + 0x2c], ecx
jl 0x4ecb90
pop edi
pop ebx
pop esi
mov byte [ebp + 0xe0], 0xff
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
push 0
push 0x447a0000
push 0x22094c8
push 0x6be918
mov ecx, 0x22071e0
call fcn.0053a850
push 0x1bb
push 0x11
call fcn.0041fce0
add esp, 8
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
push 0
push 0x447a0000
push 0x22094c8
push 0x6be918
mov ecx, 0x22071e0
call fcn.0053a850
push 0x1bc
push 0x11
call fcn.0041fce0
add esp, 8
mov byte [ebp + 0xe0], 0xff
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
push 0
push 0x447a0000
push 0x22094c8
push 0x6be918
mov ecx, 0x22071e0
call fcn.0053a850
cmp edi, 1
jne 0x4ece00
push 0x1bd
jmp 0x4ecdae
push 0x1be
jmp 0x4ecdae
mov al, byte [esi + 0x32]
cmp al, 0xff
je 0x4ece63
movzx eax, al
lea eax, [eax + eax*2]
shl eax, 2
cmp dword [eax + 0x21fe1bc], 1
jne 0x4ece51
movzx edx, byte [eax + 0x21fe1c1]
movzx eax, byte [eax + 0x21fe1c0]
mov ecx, dword [0x719a70]
push 0
push 0
push 0
push 0
push edx
push eax
push 1
push 1
mov edi, ecx
call fcn.00513600
push eax
mov ecx, edi
call fcn.00513740
xor ecx, ecx
mov cl, byte [esi + 0x32]
push ecx
call fcn.0059bf60
add esp, 4
mov byte [esi + 0x32], 0xff
push 1
lea ecx, [esi + 0xcb4]
call fcn.005271d0
test eax, eax
jne 0x4ec66b
push 1
lea ecx, [esi + 0x104]
call fcn.005271d0
test eax, eax
jne 0x4ec66b
push 1
lea ecx, [esi + 0x6dc]
call fcn.005271d0
test eax, eax
jne 0x4ec66b
cmp dword [0x2203690], 2
jne 0x4ecef8
mov eax, dword [esp + 0x2c]
xor edx, edx
test eax, eax
je 0x4eceb7
mov edx, eax
cmp byte [edx + 0xe0], 0xff
je 0x4ecef8
mov eax, dword [esi + 4]
mov ecx, dword [0x71c2a4]
cmp ecx, eax
jl 0x4ecef8
mov edi, dword [esi + 0xc]
add edi, eax
cmp ecx, edi
jg 0x4ecef8
mov eax, dword [esi + 8]
mov ecx, dword [0x71c2a8]
cmp ecx, eax
jl 0x4ecef8
mov edi, dword [esi + 0x10]
add edi, eax
cmp ecx, edi
jg 0x4ecef8
mov byte [edx + 0xe0], 0xff
jmp 0x4ecdbf
mov ecx, esi
call fcn.00526f30
mov ecx, dword [esp + 0x1c]
pop edi
neg eax
pop ebx
sbb eax, eax
pop esi
neg eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 4