Function at 0x10021ca0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b8871
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x100d9f50]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x100d9f50]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
lea edi, [esp + 0x164]
mov esi, ecx
call fcn.10014ac0
mov eax, edi
dec eax
xor ebx, ebx
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x10021cf3
mov ecx, dword [0x100ca780]
mov dl, byte [0x100ca784]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x164]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x10021d14
mov ecx, dword [0x100ca690]
mov dl, byte [0x100ca694]
mov dword [eax], ecx
add esi, 0x6b0
mov byte [eax + 4], dl
mov eax, dword [esi + 4]
sub eax, dword [esi]
xor edi, edi
sar eax, 2
mov dword [esp + 0x10], esi
test eax, eax
je 0x10021d64
mov ecx, dword [esi]
mov eax, dword [ecx + edi*4]
cmp eax, ebx
je 0x10021d57
push eax
call fcn.10047d94
add esp, 4
mov edx, dword [esi + 4]
sub edx, dword [esi]
inc edi
sar edx, 2
cmp edi, edx
jb 0x10021d45
mov ecx, dword [esi + 4]
mov edi, dword [esi]
cmp edi, ecx
je 0x10021d8f
mov eax, ecx
sub eax, ecx
sar eax, 2
lea esi, [eax*4]
push esi
push ecx
push edi
call fcn.10048120
mov eax, dword [esp + 0x1c]
add esp, 0xc
add esi, edi
mov dword [eax + 4], esi
lea ecx, [esp + 0x164]
push 0x100c8ea4
push ecx
call fcn.1004860b
mov esi, eax
add esp, 8
mov dword [esp + 0x24], esi
cmp esi, ebx
je 0x10022126
push esi
lea edx, [esp + 0x68]
push 0x100
push edx
call fcn.1004864a
push esi
call fcn.10048622
add esp, 0x10
test eax, eax
jne 0x1002211d
push 0x100
lea eax, [esp + 0x68]
push ebx
push eax
call fcn.1004c8a0
push esi
lea ecx, [esp + 0x74]
push 0x100
push ecx
call fcn.1004864a
mov edi, 0xf
lea eax, [esp + 0x7c]
add esp, 0x18
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10021e10
sub eax, ecx
push eax
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x50]
call fcn.100048f0
mov dword [esp + 0x280], ebx
push 1
push 0x100c8ebc
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.100048f0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x30]
mov byte [esp + 0x284], 2
call fcn.10014dd0
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add esp, 4
cmp ecx, 5
jae 0x10021f03
cmp esi, ebx
je 0x10021ed6
mov edi, esi
cmp esi, dword [esp + 0x18]
je 0x10021ec8
cmp dword [edi + 0x14], 0x10
jb 0x10021eb3
mov eax, dword [edi]
push eax
call fcn.10047d94
add esp, 4
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
add edi, 0x1c
cmp edi, dword [esp + 0x18]
jne 0x10021ea2
push esi
call fcn.10047d94
add esp, 4
mov edi, 0xf
mov esi, 0x10
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x40], esi
jb 0x10021efa
mov edx, dword [esp + 0x2c]
push edx
call fcn.10047d94
add esp, 4
mov dword [esp + 0x40], edi
jmp 0x100220de
push 0x2c
call fcn.10047d9f
add esp, 4
cmp dword [esi + 0x14], 0x10
mov edi, eax
mov dword [esp + 0x28], edi
jb 0x10021f1d
mov eax, dword [esi]
jmp 0x10021f1f
mov eax, esi
mov edx, edi
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx + 0x18], cl
inc eax
cmp cl, bl
jne 0x10021f23
cmp dword [esi + 0x30], 0x10
lea eax, [esi + 0x1c]
jb 0x10021f39
mov eax, dword [eax]
push eax
call fcn.10049ef8
mov dword [edi + 8], eax
lea eax, [esi + 0x38]
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x10021f50
mov eax, dword [eax]
push eax
call fcn.10049ef8
mov dword [edi], eax
lea eax, [esi + 0x54]
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x10021f66
mov eax, dword [eax]
push eax
call fcn.10049ef8
mov dword [edi + 4], eax
lea eax, [esi + 0x70]
add esp, 4
mov dword [edi + 0x10], ebx
cmp dword [eax + 0x14], 0x10
jb 0x10021f80
mov eax, dword [eax]
movsx edx, byte [eax]
push edx
call fcn.10048a94
add esp, 4
push ebx
push eax
mov dword [edi + 0xc], eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov edx, dword [esp + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [edx + 4]
lea ecx, [esp + 0x28]
cmp ecx, eax
jae 0x1002201e
mov edx, dword [edx]
cmp edx, ecx
ja 0x1002201a
mov edi, ecx
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 8]
sub edi, edx
sar edi, 2
cmp eax, ecx
jne 0x10022004
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x1002214a
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x10022004
mov edx, ecx
shr edx, 1
mov esi, 0x3fffffff
sub esi, edx
cmp esi, ecx
jae 0x10021fee
xor ecx, ecx
jmp 0x10021ff0
add ecx, edx
cmp ecx, eax
jae 0x10021ff6
mov ecx, eax
mov esi, dword [esp + 0x10]
push ecx
call fcn.1001d2e0
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
lea ecx, [eax + edi*4]
mov eax, dword [edx + 4]
cmp eax, ebx
je 0x10022077
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x10022077
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 8]
cmp eax, ecx
jne 0x1002206e
mov edx, dword [edx]
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x1002214a
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x1002206a
mov edx, ecx
shr edx, 1
mov esi, 0x3fffffff
sub esi, edx
cmp esi, ecx
jae 0x10022054
xor ecx, ecx
jmp 0x10022056
add ecx, edx
cmp ecx, eax
jae 0x1002205c
mov ecx, eax
mov esi, dword [esp + 0x10]
push ecx
call fcn.1001d2e0
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
cmp eax, ebx
je 0x10022077
mov dword [eax], edi
add dword [edx + 4], 4
mov edi, esi
cmp esi, dword [esp + 0x18]
je 0x100220a9
cmp dword [edi + 0x14], 0x10
jb 0x10022094
mov eax, dword [edi]
push eax
call fcn.10047d94
add esp, 4
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
add edi, 0x1c
cmp edi, dword [esp + 0x18]
jne 0x10022083
push esi
call fcn.10047d94
mov esi, 0x10
add esp, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x40], esi
jb 0x100220d6
mov edx, dword [esp + 0x2c]
push edx
call fcn.10047d94
add esp, 4
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x280], 0xffffffff
mov byte [esp + 0x2c], bl
mov dword [esp + 0x3c], ebx
cmp dword [esp + 0x5c], esi
jb 0x10022104
mov eax, dword [esp + 0x48]
push eax
call fcn.10047d94
add esp, 4
mov ecx, dword [esp + 0x24]
push ecx
call fcn.10048622
mov esi, dword [esp + 0x28]
add esp, 4
test eax, eax
je 0x10021dd3
push esi
call fcn.10048883
add esp, 4
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.10047d85
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call fcn.100320c2
int3