Function at 0x10021910
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x100dea98]
push ebx
push esi
cmp eax, 0x19
push edi
je 0x10022139
cmp eax, 0x1a
je 0x10022139
cmp eax, 0x18
je 0x10022139
cmp eax, 0x1b
je 0x10022139
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], edx
call dword [fcn.100dd904]
mov edi, eax
xor ecx, ecx
cmp edi, ecx
je 0x10022139
mov eax, dword [edi + 0x308]
mov ebx, 3
cmp eax, ebx
jne 0x100219a6
mov eax, dword [esi + 8]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x48]
lea ecx, [esp + 0x6c]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
jmp 0x100219b9
lea ecx, [esp + 0x48]
lea edx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esi + 4]
push eax
push ecx
call dword [fcn.100dd898]
add esp, 0x10
push 0xa0
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp dword [edi + 0x308], ebx
movsx eax, ax
jne 0x10021ab9
test eax, eax
jne 0x10021ab9
test byte [esi + 0x1e], 0x21
jne 0x10021ab9
call dword [0x100dd910]
mov eax, dword [0x100e00f8]
fstp dword [esp + 0xc]
cmp eax, 2
jne 0x10021a89
fild dword [0x100e00fc]
sub esp, 8
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fmul dword [esp + 0x14]
fmul qword [0x100087b8]
fstp qword [esp]
call fcn.100509f4
fmul qword [0x10008550]
fstp dword [esi + 4]
fild dword [0x100e00fc]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fmul dword [esp + 0x14]
fmul qword [0x100087b8]
fstp qword [esp]
call fcn.10050aa4
fmul qword [0x10008550]
fstp dword [esi + 8]
fild dword [0x100e00fc]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fmul dword [esp + 0x14]
fmul qword [0x100087b8]
fstp qword [esp]
call fcn.100509f4
fmul qword [0x100087b0]
add esp, 8
fstp dword [esi + 4]
jmp 0x10021ab9
fild dword [0x100e00fc]
push 0x40768000
push 0
sub esp, 8
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fmul dword [esp + 0x1c]
fmul dword [0x1000859c]
fstp qword [esp]
call fcn.10050b40
fstp dword [esi + 8]
add esp, 0x10
cmp dword [edi + 0x308], ebx
jne 0x10021aeb
mov eax, dword [esi + 8]
xor ecx, ecx
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x9c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x60]
push edx
lea ecx, [esp + 0x58]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
jmp 0x10021b01
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x60]
push eax
lea edx, [esp + 0x58]
push ecx
lea eax, [esi + 4]
push edx
push eax
call dword [fcn.100dd898]
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
add esp, 0x10
sub esp, 8
faddp st(1)
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
faddp st(1)
fstp qword [esp]
call fcn.10050834
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fcomp dword [0x10008568]
add esp, 8
fnstsw ax
test ah, 0x40
je 0x10021b5d
push 1
push 0
push 0
lea ecx, [esp + 0xe4]
call fcn.10022140
jmp 0x10021b9b
fld dword [0x10008598]
fdiv dword [esp + 0xc]
push ecx
fstp dword [esp + 0x10]
fld dword [esp + 0x20]
fmul dword [esp + 0x10]
fstp dword [esp]
fld dword [esp + 0x1c]
fmul dword [esp + 0x10]
push ecx
fstp dword [esp]
fld dword [esp + 0x1c]
fmul dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x114]
fstp dword [esp]
call fcn.10020be0
push eax
lea ecx, [esp + 0xac]
call fcn.1000cf20
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0xf0]
push ebx
push ecx
lea ecx, [esp + 0xb0]
call fcn.10022160
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x30], edx
call fcn.100221b0
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fcomp dword [0x10008568]
fnstsw ax
test ah, 0x40
je 0x10021c17
xor eax, eax
mov dword [esp + 0xc8], 0x3f800000
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
lea eax, [esp + 0xc0]
jmp 0x10021c55
fld dword [0x10008598]
fdiv dword [esp + 0xc]
push ecx
fstp dword [esp + 0x10]
fld dword [esp + 0x78]
fmul dword [esp + 0x10]
fstp dword [esp]
fld dword [esp + 0x74]
fmul dword [esp + 0x10]
push ecx
fstp dword [esp]
fld dword [esp + 0x74]
fmul dword [esp + 0x14]
push ecx
lea ecx, [esp + 0xd8]
fstp dword [esp]
call fcn.10020be0
push eax
lea ecx, [esp + 0xb8]
call fcn.1000cf20
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0xe4]
push ecx
push edx
lea ecx, [esp + 0xbc]
call fcn.10022160
push eax
lea ecx, [esp + 0x40]
call fcn.1000cf20
lea ecx, [esp + 0x48]
call fcn.100221b0
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fcomp dword [0x10008568]
fnstsw ax
test ah, 0x40
je 0x10021cb7
push 1
push 0
push 0
lea ecx, [esp + 0x108]
call fcn.10022140
jmp 0x10021d11
fld dword [0x10008598]
fdiv dword [esp + 0xc]
fstp dword [esp + 0xc]
fld dword [esp + 0x50]
fmul dword [esp + 0xc]
fstp dword [esp + 0x34]
fld dword [esp + 0x4c]
fmul dword [esp + 0xc]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x8c], edx
fstp dword [esp + 0x10]
fld dword [esp + 0x48]
fmul dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x88], ecx
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x7c]
call fcn.1000cf20
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x114]
push edi
push ecx
lea ecx, [esp + 0x80]
call fcn.10022160
push eax
lea ecx, [esp + 0x94]
call fcn.1000cf20
fld dword [esp + 0x98]
fmul dword [esp + 0x5c]
fld dword [esp + 0x94]
fmul dword [esp + 0x58]
lea ecx, [esp + 0x14]
faddp st(1)
fld dword [esp + 0x90]
fmul dword [esp + 0x54]
faddp st(1)
fld dword [esp + 0x44]
fmul dword [esp + 0x5c]
fld dword [esp + 0x40]
fmul dword [esp + 0x58]
faddp st(1)
fld dword [esp + 0x3c]
fmul dword [esp + 0x54]
faddp st(1)
faddp st(1)
fld dword [esp + 0x5c]
fmul dword [esp + 0x30]
fld dword [esp + 0x58]
fmul dword [esp + 0x2c]
faddp st(1)
fld dword [esp + 0x28]
fmul dword [esp + 0x54]
faddp st(1)
faddp st(1)
fstp dword [esp + 0x34]
call fcn.100221b0
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fcomp dword [0x10008568]
fnstsw ax
test ah, 0x40
je 0x10021dd8
push 1
push 0
push 0
lea ecx, [esp + 0x120]
call fcn.10022140
jmp 0x10021e16
fld dword [0x10008598]
fdiv dword [esp + 0xc]
push ecx
fstp dword [esp + 0x10]
fld dword [esp + 0x20]
fmul dword [esp + 0x10]
fstp dword [esp]
fld dword [esp + 0x1c]
fmul dword [esp + 0x10]
push ecx
fstp dword [esp]
fld dword [esp + 0x14]
fmul dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x108]
fstp dword [esp]
call fcn.10020be0
push eax
lea ecx, [esp + 0x7c]
call fcn.1000cf20
lea edx, [esp + 0xe4]
push ebx
push edx
lea ecx, [esp + 0x80]
call fcn.10022160
push eax
lea ecx, [esp + 0x88]
call fcn.1000cf20
lea ecx, [esp + 0x6c]
call fcn.100221b0
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fcomp dword [0x10008568]
fnstsw ax
test ah, 0x40
je 0x10021e74
push 1
push 0
push 0
lea ecx, [esp + 0xd8]
call fcn.10022140
jmp 0x10021eb2
fld dword [0x10008598]
fdiv dword [esp + 0xc]
push ecx
fstp dword [esp + 0x10]
fld dword [esp + 0x78]
fmul dword [esp + 0x10]
fstp dword [esp]
fld dword [esp + 0x74]
fmul dword [esp + 0x10]
push ecx
fstp dword [esp]
fld dword [esp + 0x14]
fmul dword [esp + 0x74]
push ecx
lea ecx, [esp + 0xfc]
fstp dword [esp]
call fcn.10020be0
push eax
lea ecx, [esp + 0xb8]
call fcn.1000cf20
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x108]
push eax
push ecx
lea ecx, [esp + 0xbc]
call fcn.10022160
push eax
lea ecx, [esp + 0x94]
call fcn.1000cf20
lea ecx, [esp + 0x48]
call fcn.100221b0
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fcomp dword [0x10008568]
fnstsw ax
test ah, 0x40
je 0x10021f17
push 1
push 0
push 0
lea ecx, [esp + 0xe4]
call fcn.10022140
jmp 0x10021f55
fld dword [0x10008598]
fdiv dword [esp + 0xc]
push ecx
fstp dword [esp + 0x10]
fld dword [esp + 0x54]
fmul dword [esp + 0x10]
fstp dword [esp]
fld dword [esp + 0x50]
fmul dword [esp + 0x10]
push ecx
fstp dword [esp]
fld dword [esp + 0x14]
fmul dword [esp + 0x50]
push ecx
lea ecx, [esp + 0xcc]
fstp dword [esp]
call fcn.10020be0
push eax
lea ecx, [esp + 0xac]
call fcn.1000cf20
lea edx, [esp + 0x28]
push edi
push edx
lea ecx, [esp + 0xb0]
call fcn.10022160
push eax
lea ecx, [esp + 0x40]
call fcn.1000cf20
fld dword [esp + 0x3c]
fmul dword [esp + 0x60]
fld dword [esp + 0x44]
fmul dword [esp + 0x68]
lea ecx, [esp + 0x14]
faddp st(1)
fld dword [esp + 0x40]
fmul dword [esp + 0x64]
faddp st(1)
fld dword [esp + 0x90]
fmul dword [esp + 0x60]
fld dword [esp + 0x98]
fmul dword [esp + 0x68]
faddp st(1)
fld dword [esp + 0x94]
fmul dword [esp + 0x64]
faddp st(1)
faddp st(1)
fld dword [esp + 0x60]
fmul dword [esp + 0x84]
fld dword [esp + 0x68]
fmul dword [esp + 0x8c]
faddp st(1)
fld dword [esp + 0x64]
fmul dword [esp + 0x88]
faddp st(1)
faddp st(1)
fstp dword [esp + 0x20]
call fcn.100221b0
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fcomp dword [0x10008568]
fnstsw ax
test ah, 0x40
je 0x1002201e
push 1
push 0
push 0
lea ecx, [esp + 0x120]
call fcn.10022140
jmp 0x1002205c
fld dword [0x10008598]
fdiv dword [esp + 0xc]
push ecx
fstp dword [esp + 0x10]
fld dword [esp + 0x20]
fmul dword [esp + 0x10]
fstp dword [esp]
fld dword [esp + 0x1c]
fmul dword [esp + 0x10]
push ecx
fstp dword [esp]
fld dword [esp + 0x14]
fmul dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x108]
fstp dword [esp]
call fcn.10020be0
push eax
lea ecx, [esp + 0x7c]
call fcn.1000cf20
lea eax, [esp + 0xe4]
push ebx
push eax
lea ecx, [esp + 0x80]
call fcn.10022160
push eax
lea ecx, [esp + 0x40]
call fcn.1000cf20
lea ecx, [esp + 0x9c]
lea edx, [esp + 0xcc]
push ecx
push edx
lea ecx, [esp + 0x50]
call fcn.10022200
push eax
lea eax, [esp + 0xf8]
push edi
push eax
call fcn.100222d0
add esp, 0xc
push eax
call fcn.10022310
fstp dword [esp + 0x2c]
add esp, 8
lea ecx, [esp + 0x9c]
lea edx, [esp + 0x108]
push ecx
push edx
lea ecx, [esp + 0x74]
call fcn.10022200
push eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0xe0]
push eax
push ecx
call fcn.100222d0
add esp, 0xc
push eax
call fcn.10022310
fadd dword [esp + 0x2c]
fld dword [esp + 0xa4]
fmul dword [esp + 0x44]
fld dword [esp + 0xac]
fmul dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
add esp, 8
mov dword [esi + 0x10], edx
faddp st(1)
fld dword [esp + 0xa0]
fmul dword [esp + 0x40]
mov dword [esi + 0x14], eax
faddp st(1)
faddp st(1)
fstp dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x18], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret