Function at 0x496b70
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x69b661
push eax
mov al, byte [0x21e75e2]
mov dword fs:[0], esp
sub esp, 8
cmp al, 0xff
push ebx
push ebp
push esi
push edi
mov esi, ecx
jne 0x496bea
lea ebp, [esi + 0x36b4]
push 1
mov ecx, ebp
call fcn.00516a50
lea ebx, [esi + 0x3b88]
push 0
mov ecx, ebx
call fcn.00516a50
mov eax, dword [esi + 0x2730]
test eax, eax
lea edi, [esi + 0x405c]
mov ecx, edi
je 0x496bdf
push 1
call fcn.00516a50
push 1
lea ecx, [esi + 0x223c]
call fcn.00516a50
push 0
jmp 0x496c30
push 0
call fcn.00516a50
push 0
jmp 0x496c30
mov eax, dword [esi + 0x2730]
test eax, eax
je 0x496c01
push 1
lea ecx, [esi + 0x223c]
call fcn.00516a50
lea ebp, [esi + 0x36b4]
push 0
mov ecx, ebp
call fcn.00516a50
lea ebx, [esi + 0x3b88]
push 1
mov ecx, ebx
call fcn.00516a50
lea edi, [esi + 0x405c]
push 0
mov ecx, edi
call fcn.00516a50
push 1
lea ecx, [esi + 0x4530]
call fcn.00516a50
mov ecx, dword [esi + 0x2754]
test ecx, ecx
je 0x496d1f
call fcn.004bc660
cmp eax, 1
jne 0x496cc4
mov eax, dword [esi + 0x2758]
dec eax
cmp eax, 3
ja case.default.0x496c5f
jmp dword [eax*4 + 0x497534]
call fcn.0058a760
jmp case.default.0x496c5f
call fcn.0058a890
jmp case.default.0x496c5f
mov eax, dword [esi + 0x2730]
push eax
call fcn.0058a820
add esp, 4
jmp case.default.0x496c5f
mov ecx, 0x21ec34c
call fcn.00520fb0
mov ecx, 0x21ec34c
lea edi, [esi + 0x2738]
call fcn.00522220
push eax
push 0x6a9d2c
push edi
call fcn.005b8b8d
add esp, 0xc
mov ecx, esi
call fcn.004968f0
test eax, eax
je case.default.0x496c5f
push edi
call fcn.0058a720
add esp, 4
jmp case.default.0x496c5f
test eax, eax
je 0x496d07
xor ebx, ebx
push ebx
mov ecx, 0x21ec34c
mov dword [0x703c18], ebx
call fcn.00521a50
mov edi, dword [esi + 0x2754]
cmp edi, ebx
mov dword [esi + 0x2734], ebx
mov dword [esi + 0x2758], ebx
je 0x496d07
mov ecx, edi
call fcn.004bcf70
push edi
call fcn.005b806d
add esp, 4
mov dword [esi + 0x2754], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
cmp dword [esi + 0x2758], 4
jne 0x496fd1
push 9
call dword [sym.imp.user32.dll_GetAsyncKeyState]
test ax, ax
mov edi, 2
je 0x496dd6
mov al, byte [esi + 0x2238]
test al, al
jne 0x496ddd
mov eax, dword [esi + 0x1d60]
mov ebx, 1
cmp eax, ebx
mov byte [esi + 0x2238], 1
mov ecx, 0x21ec34c
jne 0x496d98
call fcn.00522220
push eax
lea ecx, [esi + 0x2738]
push 0x6a9d2c
push ecx
call fcn.005b8b8d
add esp, 0xc
xor ebp, ebp
push ebp
push ebx
push 0x1f4
mov dword [esi + 0x1d60], edi
push 0x3e
jmp 0x496dc0
call fcn.00522220
push eax
lea edx, [esi + 0x24]
push 0x6a9d2c
push edx
call fcn.005b8b8d
add esp, 0xc
xor ebp, ebp
push ebp
push ebx
push 0x96
mov dword [esi + 0x1d60], ebx
push 0x19
mov ecx, 0x21ec34c
call fcn.005218a0
mov ecx, 0x21ec34c
call fcn.00523c40
jmp 0x496ddf
mov byte [esi + 0x2238], 0
xor ebp, ebp
lea ecx, [esi + 0x13b8]
call fcn.00517c00
test eax, eax
je 0x496e62
mov eax, dword [esi + 0x1d60]
cmp eax, edi
jne 0x496e0e
mov ecx, 0x21ec34c
call fcn.00522220
push eax
push 0x6a9d2c
lea eax, [esi + 0x24]
push eax
jmp 0x496e2a
cmp eax, 1
jne 0x496e32
mov ecx, 0x21ec34c
call fcn.00522220
push eax
push 0x6a9d2c
lea ecx, [esi + 0x2738]
push ecx
call fcn.005b8b8d
add esp, 0xc
mov ecx, 0x21ec34c
mov dword [esi + 0x1d60], ebp
call fcn.00520fb0
mov ecx, esi
call fcn.004969f0
test eax, eax
je 0x496e71
lea edx, [esi + 0x24]
push edx
lea eax, [esi + 0x2738]
push eax
call fcn.0058b7b0
add esp, 8
jmp 0x496e71
lea ecx, [esi + 0x188c]
call fcn.00517c00
test eax, eax
je 0x496e8e
mov ecx, 0x21ec34c
push ebp
mov dword [0x703c18], ebp
call fcn.00521a50
mov dword [esi + 0x2734], ebp
mov dword [esi + 0x2758], ebp
cmp dword [0x21ebf00], edi
jne 0x496fb9
mov eax, dword [esi + 0x36ac]
mov ecx, dword [esi + 0x36b0]
mov edi, dword [0x706454]
mov ebx, dword [0x706458]
add eax, 0xaa
lea edx, [eax + 0x18]
add ecx, 0x8c
cmp edi, edx
jl 0x496fb9
lea ebp, [eax + 0xec]
cmp edi, ebp
jg 0x496f46
lea ebp, [ecx + 0x3d]
cmp ebx, ebp
jl 0x496f46
lea ebp, [ecx + 0x5b]
cmp ebx, ebp
jg 0x496f46
cmp dword [esi + 0x1d60], 2
jne 0x496f05
mov ecx, 0x21ec34c
call fcn.00522220
push eax
lea ecx, [esi + 0x24]
push 0x6a9d2c
push ecx
call fcn.005b8b8d
add esp, 0xc
push 0
push 1
push 0x96
push 0x19
mov ecx, 0x21ec34c
call fcn.005218a0
mov ecx, 0x21ec34c
mov dword [esi + 0x1d60], 1
call fcn.00523c40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
xor ebp, ebp
cmp edi, edx
jl 0x496fb9
add eax, 0xec
cmp edi, eax
jg 0x496fb9
lea edx, [ecx + 0x81]
cmp ebx, edx
jl 0x496fb9
add ecx, 0xc1
cmp ebx, ecx
jg 0x496fb9
cmp dword [esi + 0x1d60], 1
jne 0x496f91
mov ecx, 0x21ec34c
call fcn.00522220
push eax
lea eax, [esi + 0x2738]
push 0x6a9d2c
push eax
call fcn.005b8b8d
add esp, 0xc
push ebp
push 1
push 0x1f4
push 0x3e
mov ecx, 0x21ec34c
call fcn.005218a0
mov ecx, 0x21ec34c
mov dword [esi + 0x1d60], 2
call fcn.00523c40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov al, byte [esi + 0x2239]
test al, al
je 0x497009
lea ecx, [esi + 0x1d64]
call fcn.00517c00
test eax, eax
je 0x496ff1
mov byte [esi + 0x2239], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [esi + 0x36b0]
mov edx, dword [esi + 0x36ac]
push ecx
push edx
lea ecx, [esi + 0x68]
call fcn.00516c20
test eax, eax
je 0x497047
push 1
mov ecx, 0x84f768
call fcn.004ccfd0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [esi + 0x36b0]
mov ecx, dword [esi + 0x36ac]
push eax
push ecx
lea ecx, [esi + 0x53c]
call fcn.00516c20
test eax, eax
je 0x497088
push 2
mov ecx, 0x84f768
call fcn.004ccfd0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov edx, dword [esi + 0x36b0]
mov eax, dword [esi + 0x36ac]
push edx
push eax
lea ecx, [esi + 0xa10]
call fcn.00516c20
test eax, eax
je 0x4970c9
push 3
mov ecx, 0x84f768
call fcn.004ccfd0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [esi + 0x36b0]
mov edx, dword [esi + 0x36ac]
push ecx
push edx
lea ecx, [esi + 0xee4]
call fcn.00516c20
test eax, eax
je 0x49710a
push 4
mov ecx, 0x84f768
call fcn.004ccfd0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, ebp
call fcn.00517c00
test eax, eax
je 0x4971dc
push 0x447a0000
push 0x21f1d38
push 0x1e
push 0
mov ecx, 0x21efa50
call fcn.0052a5b0
mov dword [0x84efa8], 0
xor eax, eax
mov ebx, 1
mov dword [0x703c18], ebx
mov dword [esi + 0x2758], 4
mov dword [esi + 0x2734], ebx
lea ebp, [esi + 0x2738]
mov ecx, ebp
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov byte [ecx + 0x18], al
push ebx
mov ecx, 0x21ec34c
call fcn.00521a50
mov ecx, 0x21ec34c
call fcn.00523c40
push 0
push ebx
push 0x96
push 0x19
mov ecx, 0x21ec34c
mov dword [esi + 0x1d60], ebx
call fcn.005218a0
xor eax, eax
lea edi, [esi + 0x24]
mov ecx, 0x10
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor edx, edx
mov dword [ebp], edx
mov dword [ebp + 4], edx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], edx
pop edi
mov dword [ebp + 0x14], edx
pop esi
mov byte [ebp + 0x18], dl
pop ebp
mov eax, ebx
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, ebx
call fcn.00517c00
test eax, eax
je 0x497266
mov eax, dword [esi + 0x2754]
test eax, eax
jne 0x49732a
push 0xa40
mov dword [esi + 0x2758], 1
call fcn.005b8072
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
mov dword [esp + 0x20], 0
je 0x497322
push 0x2715
call fcn.0041b230
add esp, 4
push eax
push 0xff
push 0xff
push 0xff
push 1
mov ecx, edi
call fcn.004bc830
pop edi
mov dword [esi + 0x2754], eax
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, edi
call fcn.00517c00
test eax, eax
je 0x4972d9
mov eax, dword [esi + 0x2754]
test eax, eax
jne 0x49732a
mov eax, dword [esi + 0x2730]
push eax
mov ecx, 0x21ea264
call fcn.0041fad0
test eax, eax
je 0x49732a
add eax, 4
push eax
push 0x704578
mov dword [esi + 0x2758], 3
call fcn.0041b140
push 0xa40
call fcn.005b8072
mov edi, eax
add esp, 0xc
mov dword [esp + 0x14], edi
test edi, edi
mov dword [esp + 0x20], 1
je 0x497322
push 0x1f62
jmp 0x497227
lea ecx, [esi + 0x4530]
call fcn.00517c00
test eax, eax
je 0x497342
mov eax, dword [esi + 0x2754]
test eax, eax
jne 0x49732a
mov ebx, 2
push 0xa40
mov dword [esi + 0x2758], ebx
call fcn.005b8072
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
mov dword [esp + 0x20], ebx
je 0x497322
push 0x2722
jmp 0x497227
xor eax, eax
mov dword [esi + 0x2754], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esi + 0x223c]
call fcn.00517c00
test eax, eax
je 0x497370
mov byte [esi + 0x2239], 1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
fild dword [0x21ea270]
push 0x41400000
push ecx
lea edi, [esi + 0x275c]
mov ecx, edi
fstp dword [esp]
call fcn.0051a440
mov ecx, dword [esi + 0x36b0]
mov edx, dword [esi + 0x36ac]
push ecx
push edx
mov ecx, edi
call fcn.0051ada0
test ah, 2
jne 0x497358
mov eax, dword [esi + 0x36b0]
mov ecx, dword [esi + 0x36ac]
push eax
push ecx
lea ecx, [esi + 0x4a74]
call fcn.0051ada0
test ah, 2
jne 0x497358
cmp dword [0x21ebf00], 1
jne 0x4974b9
mov eax, dword [0x21ebf04]
xor ebp, ebp
cmp eax, ebp
jne 0x4974b9
mov ebx, dword [0x706458]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov edi, edi
mov ecx, dword [0x21ea280]
test ecx, ecx
jne 0x4973fe
xor eax, eax
jmp 0x497408
mov eax, dword [0x21ea284]
sub eax, ecx
sar eax, 2
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jge 0x4974b9
mov edx, ecx
push edx
mov ecx, 0x21ea278
call fcn.0043a010
mov edi, eax
test edi, edi
je 0x4974b0
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fcomp dword [esi + 0x3658]
fnstsw ax
test ah, 5
jnp 0x4974b0
mov eax, dword [esi + 0x36ac]
mov edx, dword [0x706454]
lea ecx, [eax + 0x112]
cmp edx, ecx
jl 0x4974a5
add eax, 0x230
mov ecx, edx
cmp ecx, eax
jg 0x4974a5
mov edx, dword [esi + 0x36b0]
lea eax, [edx + ebp]
lea ecx, [eax + 0x6e]
cmp ebx, ecx
jl 0x4974a5
add eax, 0x80
cmp ebx, eax
jg 0x4974a5
push 0x447a0000
push 0x21f1d38
push 0x1e
push 0
mov ecx, 0x21efa50
call fcn.0052a5b0
mov edx, dword [edi]
mov dword [esi + 0x2730], edx
mov ebx, dword [0x706458]
add ebp, 0x1b
cmp ebp, 0x144
jg 0x4974b9
inc dword [esp + 0x10]
jmp 0x4973f0
lea ecx, [esi + 0x59c4]
call fcn.00517c00
test eax, eax
je 0x4974e0
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
cmp dword [0x21ebf00], 1
jne 0x49751f
mov eax, dword [esi + 0x36ac]
mov ecx, dword [0x706454]
cmp ecx, eax
jl 0x49751f
add eax, 0x24a
cmp ecx, eax
jg 0x49751f
mov esi, dword [esi + 0x36b0]
mov eax, dword [0x706458]
cmp eax, esi
jl 0x49751f
add esi, 0x1f4
cmp eax, esi
jle 0x497358
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret