Function at 0x10021630
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10130228
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x1014a018]
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 ebx, dword [0x10a8883c]
xor eax, eax
cmp byte [ebx + 0x29], al
jne 0x1002168b
cmp dword [0x10a76d80], eax
jne 0x1002167c
cmp dword [0x10a76d84], eax
je 0x10021d6e
mov dword [0x10a76d80], eax
mov dword [0x10a76d84], eax
jmp 0x10021d6e
push 0x10a362c0
call fcn.100264b0
mov eax, dword [0x10a8883c]
fld dword [eax]
xor edi, edi
fstp dword [ebp - 0x4c]
add esp, 4
fld dword [eax + 4]
fstp dword [ebp - 0x5c]
fld dword [eax + 0x18]
fstp dword [ebp - 0x58]
fld dword [ebp - 0x4c]
fadd qword [0x1013f6d8]
fstp dword [ebp - 0x68]
fld dword [ebp - 0x5c]
fadd qword [0x10140200]
fstp dword [ebp - 0x50]
fld dword [ebp - 0x68]
fadd qword [0x1013f598]
fst qword [ebp - 0x60]
fld dword [ebp - 0x50]
cmp dword [0x10a76d78], edi
jne 0x10021700
push 0x10a36338
push edi
push edi
push edi
push 0xff6600ff
call fcn.1012e5b0
push eax
call fcn.1012e5b0
push eax
mov eax, dword [0xe8c588]
push eax
jmp 0x10021720
push 0x10a363b0
push edi
push edi
push edi
push 0x77ffff
call fcn.1012e5b0
push eax
call fcn.1012e5b0
mov ecx, dword [0xe8c588]
push eax
push ecx
mov cl, 1
call fcn.10025780
fld dword [ebp - 0x50]
fadd qword [0x1013f6d0]
add esp, 0x20
call fcn.1012e5b0
fld dword [ebp - 0x68]
mov esi, eax
call fcn.1012e5b0
mov edx, dword [0xe8c588]
push 0x10a36428
push edi
push edi
push edi
push 0xffffffffffffffff
mov ebx, eax
push esi
push ebx
push edx
mov cl, 1
call fcn.10025780
fld dword [ebp - 0x50]
fadd qword [0x10140028]
call fcn.1012e5b0
push 0x10a364a0
push edi
push edi
push edi
push 0xffae00ff
push eax
mov eax, dword [0xe8c588]
push ebx
push eax
mov cl, 1
call fcn.10025780
fld dword [ebp - 0x50]
fadd qword [0x101404e0]
add esp, 0x40
call fcn.1012e5b0
mov ecx, dword [0xe8c588]
push 0x10a36518
push edi
push edi
push edi
push 0xffb3ff
push eax
push ebx
push ecx
mov cl, 1
call fcn.10025780
fld dword [ebp - 0x50]
fadd qword [0x1013f8f8]
add esp, 0x20
push 0x10a36590
push edi
push edi
fst qword [ebp - 0x54]
fadd qword [0x1013f580]
push edi
push 0xffffffffffffffff
call fcn.1012e5b0
mov edx, dword [0xe8c588]
push eax
push ebx
push edx
mov cl, 1
call fcn.10025780
fld dword [0x10140310]
fst dword [esp + 0x1c]
fstp dword [esp + 0x18]
fld dword [0x1013fb78]
fstp dword [esp + 0x14]
fld dword [0x10140ccc]
fstp dword [esp + 0x10]
fld dword [0x1013f650]
fstp dword [esp + 0xc]
fld dword [0x10140cc8]
fstp dword [esp + 8]
fld dword [0x1014062c]
fstp dword [esp + 4]
fld dword [0x10140cc4]
fstp dword [esp]
sub esp, 8
fld qword [ebp - 0x54]
fadd qword [0x1013f6c0]
fstp dword [ebp - 0x4c]
fld dword [ebp - 0x4c]
fstp dword [esp + 4]
fld qword [ebp - 0x60]
fstp dword [ebp - 0x4c]
fld dword [ebp - 0x4c]
fstp dword [esp]
call fcn.10037f20
fld dword [ebp - 0x68]
mov eax, dword [0x10a76d80]
fadd qword [0x1013fb00]
fstp dword [ebp - 0x4c]
fld qword [ebp - 0x54]
fadd qword [0x10140028]
fstp dword [ebp - 0x50]
cmp eax, edi
jne 0x10021971
push 0x18
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x100218a0
mov esi, eax
call fcn.1010f9d0
mov dword [ebp - 0x5c], eax
jmp 0x100218a3
mov dword [ebp - 0x5c], edi
fld dword [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5c]
mov dword [0x10a76d80], eax
call fcn.1012e5b0
fld dword [ebp - 0x4c]
mov esi, eax
call fcn.1012e5b0
mov ecx, dword [0xe8c578]
push 1
push 8
mov edi, eax
mov eax, dword [ebp - 0x5c]
push esi
push edi
push ecx
mov ecx, dword [eax + 4]
mov edx, 0x421b90
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], esi
call edx
mov eax, dword [0x10a76d80]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
push 0
push 0
push 0
push 0
call eax
mov ecx, dword [0x10a76d80]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x40]
push 0
push 0x9d
push 0xff
push 0xff
call eax
mov eax, dword [0xe8c588]
push eax
mov eax, dword [0x10a76d80]
mov ecx, dword [eax + 4]
mov edx, 0x423060
call edx
mov eax, dword [0x10a76d80]
mov ecx, dword [eax + 4]
push 0
mov edx, 0x421d30
call edx
mov eax, dword [0x10a76d80]
mov ecx, dword [eax + 4]
push 1
mov edx, 0x4050f0
call edx
mov eax, dword [0x10a76d80]
mov ecx, dword [eax + 4]
push esi
push edi
mov edx, 0x417ec0
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
call edx
jmp 0x10021a43
mov ecx, dword [0x10a76d84]
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 4]
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x58]
call eax
mov ecx, dword [0x10a8883c]
cmp byte [ecx + 0x2a], 0
je 0x100219bd
fld dword [ebp - 0x50]
call fcn.1012e5b0
fld dword [ebp - 0x4c]
mov esi, eax
call fcn.1012e5b0
mov ecx, dword [0x10a76d80]
push esi
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], esi
mov ecx, dword [ecx + 4]
push eax
mov edx, 0x417ec0
call edx
mov ecx, dword [0x10a76d80]
mov ecx, dword [ecx + 4]
mov eax, 0x422320
call eax
mov eax, dword [0x10a76d80]
mov ecx, dword [eax + 4]
push 9
push 0x10a76d88
mov edx, 0x4217d0
call edx
fld dword [ebp - 0x50]
fld qword [0x1013f6c0]
push 0x1e
fsub st(1), st(0)
push 0x64
fxch st(1)
call fcn.1012e5b0
fsubr dword [ebp - 0x4c]
push eax
call fcn.1012e5b0
push eax
mov ecx, 0x790b10
call ecx
add esp, 0x10
cmp al, 1
jne 0x10021a43
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x10021a43
mov ecx, dword [0x10a76d80]
mov ecx, dword [ecx + 4]
push 1
mov eax, 0x421d80
call eax
push edi
push edi
push 0x19
mov edx, 0x6d6c20
call edx
add esp, 0xc
fld dword [ebp - 0x58]
fsub qword [0x1013fa48]
call fcn.1012e5b0
fld dword [ebp - 0x50]
fadd qword [0x1013fd80]
push 0x10a36608
push 0
mov esi, eax
push esi
push 0
push 0xff009dff
call fcn.1012e5b0
push eax
mov eax, dword [0xe8c58c]
push ebx
push eax
mov cl, 3
call fcn.10025780
fld dword [ebp - 0x50]
fadd qword [0x10140200]
add esp, 0x20
push 0x10a36680
push 0
push esi
push 0
push 0x62ff00ff
call fcn.1012e5b0
mov ecx, dword [0xe8c58c]
push eax
push ebx
push ecx
mov cl, 3
call fcn.10025780
fld dword [ebp - 0x68]
fadd qword [0x1013f750]
mov eax, dword [0x10a76d84]
add esp, 0x20
fstp dword [ebp - 0x5c]
fld dword [ebp - 0x50]
fadd qword [0x1013fb00]
fstp dword [ebp - 0x4c]
test eax, eax
jne 0x10021bc2
push 0x18
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x10021afb
mov esi, eax
call fcn.1010f9d0
mov ebx, eax
jmp 0x10021afd
xor ebx, ebx
fld dword [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
mov dword [0x10a76d84], ebx
call fcn.1012e5b0
fld dword [ebp - 0x5c]
mov esi, eax
call fcn.1012e5b0
mov ecx, dword [ebx + 4]
push 0
push 5
mov edi, eax
mov eax, dword [0xe8c578]
push esi
push edi
push eax
mov edx, 0x421b90
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], esi
call edx
mov eax, dword [0x10a76d84]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
push 0
push 0
push 0
push 0
call eax
mov ecx, dword [0x10a76d84]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x40]
push 0
push 0x9d
push 0xff
push 0xff
call eax
mov eax, dword [0xe8c588]
push eax
mov eax, dword [0x10a76d84]
mov ecx, dword [eax + 4]
mov edx, 0x423060
call edx
mov eax, dword [0x10a76d84]
mov ecx, dword [eax + 4]
push 0
mov edx, 0x421d30
call edx
mov eax, dword [0x10a76d84]
mov ecx, dword [eax + 4]
push 1
mov edx, 0x4050f0
call edx
mov eax, dword [0x10a76d84]
mov ecx, dword [eax + 4]
push esi
push edi
mov edx, 0x417ec0
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
call edx
jmp 0x10021c1f
mov ecx, dword [0x10a76d80]
mov edx, dword [ecx + 4]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
push edx
mov edx, dword [eax + 0x58]
call edx
cmp dword [0x10a88830], 0x10
mov eax, dword [0x10a8881c]
jae 0x10021be9
mov eax, 0x10a8881c
fld dword [ebp - 0x4c]
mov esi, dword [0x10a76d84]
push eax
sub esp, 8
fstp dword [esp + 4]
fld dword [ebp - 0x5c]
fstp dword [esp]
call fcn.10038660
mov ecx, dword [0x10a76d84]
mov ecx, dword [ecx + 4]
add esp, 0xc
push 5
push 0x10a76d94
mov eax, 0x4217d0
call eax
mov eax, 0x10a76d94
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10021c40
sub eax, edx
mov esi, eax
mov eax, 0x10a76d94
lea ecx, [ebp - 0x2c]
call fcn.10003210
mov dword [ebp - 4], 2
cmp dword [0x10a76d78], 0
mov eax, 0x10a366f8
je 0x10021c72
mov eax, 0x10a36770
fld dword [0x1013faa8]
push eax
mov eax, dword [0x10a8883c]
push 0
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [0x1013f550]
fstp dword [esp + 8]
fld dword [eax + 0x24]
fsub qword [0x1013f600]
fsub qword [0x1013fa48]
fstp dword [ebp - 0x58]
fld dword [ebp - 0x58]
fstp dword [esp + 4]
fld dword [eax + 0x18]
fmul qword [0x1013f510]
fadd dword [eax]
fsub qword [0x1013f918]
fstp dword [ebp - 0x58]
fld dword [ebp - 0x58]
fstp dword [esp]
push 0x10a887f8
call fcn.10026050
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 0x1c
test al, al
je 0x10021d5f
lea eax, [ebp - 0x2c]
mov edx, 0x10a8881c
call fcn.10038610
test al, al
jne 0x10021d01
push 0x10a36950
push 1
call fcn.100bbab0
add esp, 8
jmp 0x10021d37
push 0x10a76d88
call dword [sym.imp.MSVCR100.dll_atoi]
mov edx, dword [0x10a76d78]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x64]
mov ecx, 0xc
push eax
mov dword [ebp - 0x64], 0x1bd30cc1
mov dword [ebp - 0x60], edx
call fcn.10100800
add esp, 8
xor dword [0x10a76d78], 1
lea ecx, [ebp - 0x48]
push ecx
call fcn.10038520
mov edi, eax
mov esi, 0x10a8881c
mov byte [ebp - 4], 3
call fcn.10005540
cmp dword [ebp - 0x34], 0x10
jb 0x10021d5f
mov edx, dword [ebp - 0x48]
push edx
call ebx
add esp, 4
cmp dword [ebp - 0x18], 0x10
jb 0x10021d6e
mov eax, dword [ebp - 0x2c]
push eax
call ebx
add esp, 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.1012db16
mov esp, ebp
pop ebp
ret