Function at 0x421510
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1c]
test eax, eax
jg 0x421531
jl case.default.0x4215bc
mov eax, dword [esi + 0x18]
test eax, eax
jb case.default.0x4215bc
mov ecx, dword [esi]
test ecx, ecx
je case.default.0x4215bc
call fcn.0040fbd0
mov dword [esp + 0x14], eax
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x2c]
push 0x17
push eax
push 1
mov ebp, edx
mov dword [esp + 0x38], 0x1c
call fcn.00446cf9
mov ecx, dword [esi + 0x20]
call fcn.00447ed2
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
shr eax, 0x15
and al, 1
mov byte [esp + 0x17], al
call edi
mov bx, ax
push 0x10
shr ebx, 0xf
and bl, 1
call edi
shr eax, 0xf
and al, 1
push 0x12
mov byte [esp + 0x16], al
call edi
shr eax, 0xf
test al, 1
jne case.default.0x4215bc
mov ecx, dword [esp + 0x4c]
lea eax, [ecx - 0x21]
cmp eax, 7
ja case.default.0x4215bc
jmp dword [eax*4 + 0x421a8c]
mov edx, dword [esi + 0x18]
mov edi, dword [esi + 0x1c]
mov eax, edx
mov ecx, edi
sub eax, 0x10
sbb ecx, 0
js case.default.0x4215bc
jg 0x4215e3
test eax, eax
jb case.default.0x4215bc
mov bl, byte [esp + 0x12]
test bl, bl
je 0x421603
mov ebx, dword [esi + 0x14]
test ebx, ebx
jg 0x42160c
jl 0x4215fb
mov ebx, dword [esi + 0x10]
test ebx, ebx
jae 0x42160c
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edi
jmp 0x42160c
or edx, 0xffffffff
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], eax
lea edx, [esp + 0x1c]
mov dword [esi + 0x1c], ecx
mov eax, ecx
mov ecx, dword [esi + 0x18]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00420410
test al, al
jne 0x421a11
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x115
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x421a11
mov edx, dword [esi + 0x18]
mov edi, dword [esi + 0x1c]
mov ecx, edx
mov eax, edi
add ecx, 0x10
adc eax, 0
cmp eax, ebp
jg case.default.0x4215bc
jl 0x42166c
cmp ecx, dword [esp + 0x14]
jae case.default.0x4215bc
mov bl, byte [esp + 0x12]
test bl, bl
je 0x42168c
mov ebx, dword [esi + 0x14]
test ebx, ebx
jg 0x421695
jl 0x421684
mov ebx, dword [esi + 0x10]
test ebx, ebx
jae 0x421695
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edi
jmp 0x421695
or edx, 0xffffffff
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], ecx
lea ecx, [esp + 0x1c]
mov dword [esi + 0x1c], eax
mov edx, eax
mov eax, dword [esi + 0x18]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00420410
test al, al
jne 0x421a11
mov ecx, dword [esi + 0x20]
push 0
push 1
push 0x115
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x421a11
mov edx, dword [esi + 0x18]
mov edi, dword [esi + 0x1c]
mov eax, edx
mov ecx, edi
sub eax, 1
sbb ecx, 0
js case.default.0x4215bc
jg 0x4216f1
test eax, eax
jb case.default.0x4215bc
mov bl, byte [esp + 0x12]
test bl, bl
je 0x421711
mov ebx, dword [esi + 0x14]
test ebx, ebx
jg 0x42171a
jl 0x421709
mov ebx, dword [esi + 0x10]
test ebx, ebx
jae 0x42171a
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edi
jmp 0x42171a
or edx, 0xffffffff
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], eax
lea eax, [esp + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [esi + 0x18]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00420410
test al, al
jne 0x421a11
push 0
push 0
jmp 0x4218cf
mov edx, dword [esi + 0x18]
mov edi, dword [esi + 0x1c]
mov ecx, edx
mov eax, edi
add ecx, 1
adc eax, 0
cmp eax, ebp
jg case.default.0x4215bc
jl 0x421766
cmp ecx, dword [esp + 0x14]
jae case.default.0x4215bc
mov bl, byte [esp + 0x12]
test bl, bl
je 0x421786
mov ebx, dword [esi + 0x14]
test ebx, ebx
jg 0x42178f
jl 0x42177e
mov ebx, dword [esi + 0x10]
test ebx, ebx
jae 0x42178f
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edi
jmp 0x42178f
or edx, 0xffffffff
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], ecx
lea edx, [esp + 0x1c]
mov dword [esi + 0x1c], eax
mov ecx, dword [esi + 0x18]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00420410
test al, al
jne 0x421a11
mov edx, dword [esi + 0x20]
push 0
push 1
push 0x115
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x421a11
mov al, byte [esp + 0x12]
test al, al
je 0x4217ec
mov eax, dword [esi + 0x14]
test eax, eax
jg 0x4217f5
jl 0x4217e1
mov eax, dword [esi + 0x10]
test eax, eax
jae 0x4217f5
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov dword [esi + 0x10], ecx
jmp 0x4217f2
or edx, 0xffffffff
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
test bl, bl
jne 0x42183a
mov al, byte [esp + 0x13]
test al, al
je 0x42183a
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esi + 0x18]
mov edi, dword [esi + 0x1c]
mov eax, 0
shl ecx, 4
add ecx, ebx
adc eax, edi
cmp eax, ebp
jg 0x421a11
jl 0x42182b
cmp ecx, dword [esp + 0x14]
jae 0x421a11
mov dword [esi + 0x18], ecx
push 0
mov dword [esi + 0x1c], eax
push 3
jmp 0x4218cf
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
sub edx, 1
mov eax, ebp
sbb eax, 0
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov edx, dword [ecx + 0x1c]
push 0
push 7
push 0x115
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x421a11
mov al, byte [esp + 0x12]
test al, al
je 0x42188d
mov eax, dword [esi + 0x14]
test eax, eax
jg 0x421896
jl 0x42187f
mov eax, dword [esi + 0x10]
test eax, eax
jae 0x421896
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
jmp 0x421896
or edx, 0xffffffff
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
test bl, bl
jne 0x4218e6
mov al, byte [esp + 0x13]
test al, al
je 0x4218e6
mov edx, dword [esp + 0x3c]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
xor edi, edi
shl edx, 4
sub eax, edx
sbb ecx, edi
js 0x421a11
jg 0x4218c5
test eax, eax
jb 0x421a11
mov dword [esi + 0x18], eax
push 0
mov dword [esi + 0x1c], ecx
push 2
mov eax, dword [esi + 0x20]
push 0x115
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x421a11
mov edx, dword [esi + 0x20]
xor eax, eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
push eax
mov eax, dword [edx + 0x1c]
push 6
push 0x115
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x421a11
test bl, bl
jne 0x42196e
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
test eax, eax
jl case.default.0x4215bc
jg 0x421924
test ecx, ecx
jbe case.default.0x4215bc
mov dl, byte [esp + 0x12]
test dl, dl
je 0x421944
mov edx, dword [esi + 0x14]
test edx, edx
jg 0x42194d
jl 0x42193c
mov edx, dword [esi + 0x10]
test edx, edx
jae 0x42194d
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
jmp 0x42194d
or edx, 0xffffffff
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
push 0
push 0x10
push eax
push ecx
call fcn.00433ef0
push 0
push 0x10
push edx
push eax
call fcn.00433bc0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
jmp 0x421a11
push 0x21
mov ecx, esi
call fcn.00421510
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 4
test bl, bl
jne 0x421a6c
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
test eax, eax
jl case.default.0x4215bc
jg 0x4219a1
test ecx, ecx
jb case.default.0x4215bc
mov dl, byte [esp + 0x12]
test dl, dl
je 0x4219c1
mov edx, dword [esi + 0x14]
test edx, edx
jg 0x4219ca
jl 0x4219b9
mov edx, dword [esi + 0x10]
test edx, edx
jae 0x4219ca
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
jmp 0x4219ca
or edx, 0xffffffff
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
push 0
push 0x10
push eax
push ecx
call fcn.00433ef0
push 0
push 0x10
push edx
push eax
call fcn.00433bc0
add eax, 0xf
adc edx, 0
mov dword [esi + 0x18], eax
mov ecx, edx
mov dword [esi + 0x1c], edx
cmp ecx, ebp
jl 0x421a11
jg 0x4219ff
mov edx, dword [esi + 0x18]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x421a11
mov eax, dword [esp + 0x14]
mov ecx, ebp
sub eax, 1
sbb ecx, 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov edx, dword [esi + 0x1c]
cmp edx, ebp
jl 0x421a37
jg 0x421a27
mov ecx, dword [esi + 0x18]
mov eax, dword [esp + 0x14]
cmp ecx, eax
jb 0x421a37
jmp 0x421a2b
mov eax, dword [esp + 0x14]
sub eax, 1
sbb ebp, 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebp
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
push edx
push eax
mov ecx, esi
call fcn.00421ab0
mov ecx, esi
call fcn.00420750
mov esi, dword [esi + 0x20]
push 1
push 0
push 0
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_RedrawWindow]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x38
ret 4
push 0x22
mov ecx, esi
call fcn.00421510
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x38
ret 4