Function at 0x4059f0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x30
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x3c]
push ebx
push ebp
push esi
cmp eax, edx
push edi
mov dword [esp + 0x24], ecx
jb 0x405f44
mov ecx, dword [ecx + 8]
cmp eax, ecx
jae 0x405f44
mov esi, eax
add eax, 2
sub esi, edx
cmp eax, ecx
jae 0x405f44
mov edi, dword [esp + 0x48]
mov ebx, dword [sym.imp.user32.dll_GetAsyncKeyState]
push 0x11
call ebx
test ax, ax
jge 0x405a44
push 0x7b
call ebx
test ax, ax
jl 0x405f44
mov eax, dword [esp + 0x24]
mov ebx, esi
push 0
lea ecx, [esp + 0x18]
mov edx, dword [eax + 4]
push 1
add ebx, edx
push ecx
push edi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x24], esi
call fcn.004025e0
mov ebp, eax
add esp, 0x10
test ebp, ebp
mov dword [esp + 0x20], ebp
jne 0x405a79
inc esi
jmp 0x405f34
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0xc]
lea esi, [ecx - 2]
cmp esi, 0x45
ja case.0x405a95.7
xor edx, edx
mov dl, byte [esi + 0x405f68]
jmp dword [edx*4 + 0x405f50]
mov esi, dword [eax + edi + 1]
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 4
push ecx
push esi
push edx
mov dword [esp + 0x24], 0
call fcn.00429130
add esp, 0x14
test eax, eax
je 0x405b06
cmp dword [esp + 0x18], 4
jne 0x405b06
jmp 0x405bca
mov esi, dword [eax + edi]
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 4
push ecx
push esi
push edx
mov dword [esp + 0x24], 0
call fcn.00429130
add esp, 0x14
test eax, eax
je 0x405b06
cmp dword [esp + 0x18], 4
je 0x405bca
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x10]
lea esi, [ecx - 2]
cmp esi, 0x45
ja case.0x405b21.7
xor ecx, ecx
mov cl, byte [esi + 0x405fc8]
jmp dword [ecx*4 + 0x405fb0]
xor ecx, ecx
lea esi, [ebx + 1]
mov cl, byte [eax + edi]
mov dword [esp + 0x10], ecx
jmp 0x405bd2
xor ecx, ecx
lea esi, [ebx + 1]
mov cx, word [eax + edi]
mov dword [esp + 0x10], ecx
jmp 0x405bd2
mov ecx, dword [eax + edi]
lea esi, [ebx + 1]
mov dword [esp + 0x10], ecx
jmp 0x405bd2
mov esi, dword [eax + edi + 1]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push 4
push eax
push esi
push ecx
mov dword [esp + 0x24], 0
call fcn.00429130
add esp, 0x14
test eax, eax
je 0x405eb8
cmp dword [esp + 0x18], 4
jne 0x405eb8
jmp 0x405bca
mov esi, dword [eax + edi]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push 4
push eax
push esi
push ecx
mov dword [esp + 0x24], 0
call fcn.00429130
add esp, 0x14
test eax, eax
je 0x405eb8
cmp dword [esp + 0x18], 4
jne 0x405eb8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x1c], 0
mov edx, dword [edx + 4]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], edx
test edx, edx
je 0x405c3f
mov ebx, dword [esp + 0x50]
mov ebx, dword [ebx + 8]
sub ebx, edx
mov edx, dword [esp + 0x1c]
sar ebx, 4
cmp edx, ebx
jae 0x405c1f
mov edx, dword [esp + 0x28]
cmp dword [edx], esi
je 0x405c1f
mov ebx, dword [esp + 0x1c]
inc ebx
add edx, 0x10
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x1c], ebx
jmp 0x405be9
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x405c3f
mov ebx, dword [esp + 0x50]
mov ebx, dword [ebx + 8]
sub ebx, edx
mov edx, dword [esp + 0x1c]
sar ebx, 4
cmp edx, ebx
jb case.0x405b21.7
mov edx, dword [esp + 0x24]
xor ebx, ebx
cmp dword [edx + 0x1c], ebx
jle case.0x405b21.7
xor edi, edi
mov ebp, edx
jmp 0x405c58
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x18]
push ecx
mov ecx, edi
add ecx, edx
call fcn.004096a0
test eax, eax
jne 0x405c88
mov eax, dword [ebp + 0x1c]
inc ebx
add edi, 0x43c
cmp ebx, eax
jl 0x405c54
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x20]
jmp case.0x405b21.7
mov ebp, dword [esp + 0x50]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], eax
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
sub ecx, esi
mov edi, esi
sar ecx, 4
cmp ecx, 1
jae 0x405d97
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x405cc1
mov eax, esi
sub eax, ecx
sar eax, 4
cmp eax, 1
ja 0x405cc6
mov eax, 1
test ecx, ecx
jne 0x405cce
xor esi, esi
jmp 0x405cd3
sub esi, ecx
sar esi, 4
lea ebp, [esi + eax]
test ebp, ebp
mov eax, ebp
jge 0x405cde
xor eax, eax
shl eax, 4
push eax
call fcn.00442732
mov edx, dword [esp + 0x54]
add esp, 4
mov dword [esp + 0x28], eax
mov ebx, eax
mov esi, dword [edx + 4]
cmp esi, edi
je 0x405d0f
push esi
push ebx
call fcn.004062e0
add esi, 0x10
add esp, 8
add ebx, 0x10
cmp esi, edi
jne 0x405cfb
lea eax, [esp + 0x30]
push eax
push ebx
call fcn.004062e0
mov ecx, dword [esp + 0x58]
add esp, 8
mov esi, edi
mov eax, dword [ecx + 8]
cmp edi, eax
mov dword [esp + 0x2c], eax
je 0x405d47
lea edi, [ebx + 0x10]
mov ebx, eax
push esi
push edi
call fcn.004062e0
add esi, 0x10
add esp, 8
add edi, 0x10
cmp esi, ebx
jne 0x405d33
mov esi, dword [esp + 0x50]
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x30], eax
call fcn.0044275b
mov eax, dword [esp + 0x2c]
mov edx, dword [esi + 4]
shl ebp, 4
add esp, 4
add ebp, eax
test edx, edx
mov dword [esi + 0xc], ebp
jne 0x405d72
xor ecx, ecx
jmp 0x405d7a
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 4
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x20]
inc ecx
mov dword [esi + 4], eax
shl ecx, 4
add ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esi + 8], ecx
jmp case.0x405b21.7
mov eax, esi
sub eax, edi
sar eax, 4
cmp eax, 1
jae 0x405e1d
cmp edi, esi
mov eax, edi
je 0x405dbc
lea ebx, [eax + 0x10]
push eax
push ebx
call fcn.004062e0
mov eax, ebx
add esp, 8
cmp eax, esi
jne 0x405da9
mov ecx, dword [ebp + 8]
mov eax, 1
mov edx, ecx
mov esi, ecx
sub edx, edi
sar edx, 4
sub eax, edx
je 0x405de7
mov ebx, eax
lea eax, [esp + 0x30]
push eax
push esi
call fcn.004062e0
add esp, 8
add esi, 0x10
dec ebx
jne 0x405dd3
mov ecx, dword [ebp + 8]
mov eax, edi
cmp edi, ecx
je 0x405e9d
mov esi, dword [esp + 0x30]
mov edx, eax
add eax, 0x10
mov dword [edx], esi
mov esi, dword [esp + 0x34]
cmp eax, ecx
mov dword [edx + 4], esi
mov esi, dword [esp + 0x38]
mov dword [edx + 8], esi
mov esi, dword [esp + 0x3c]
mov dword [edx + 0xc], esi
jne 0x405df4
jmp 0x405e9d
lea ebx, [esi - 0x10]
mov ebp, esi
cmp ebx, esi
mov dword [esp + 0x2c], ebx
je 0x405e3e
push ebx
push ebp
call fcn.004062e0
add ebx, 0x10
add esp, 8
add ebp, 0x10
cmp ebx, esi
jne 0x405e2a
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 8]
lea eax, [ecx - 0x10]
cmp edi, eax
je 0x405e70
sub eax, 0x10
sub ecx, 0x10
mov edx, eax
mov esi, ecx
cmp eax, edi
mov ebx, dword [edx]
mov dword [esi], ebx
mov ebx, dword [edx + 4]
mov dword [esi + 4], ebx
mov ebx, dword [edx + 8]
mov dword [esi + 8], ebx
mov edx, dword [edx + 0xc]
mov dword [esi + 0xc], edx
jne 0x405e4c
lea ecx, [edi + 0x10]
mov eax, edi
cmp edi, ecx
je 0x405e9d
mov esi, dword [esp + 0x30]
mov edx, eax
add eax, 0x10
mov dword [edx], esi
mov esi, dword [esp + 0x34]
cmp eax, ecx
mov dword [edx + 4], esi
mov esi, dword [esp + 0x38]
mov dword [edx + 8], esi
mov esi, dword [esp + 0x3c]
mov dword [edx + 0xc], esi
jne 0x405e79
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x20]
mov ecx, dword [eax + 8]
add ecx, 0x10
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x14]
jmp case.0x405b21.7
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
mov dl, byte [edi + eax + 1]
mov al, byte [eax + edi]
push 1
push ecx
mov ecx, dword [ebp + 0x14]
push edx
push eax
push ecx
call fcn.004024c0
mov edx, dword [ebp + 8]
mov bl, al
mov eax, dword [esp + 0x28]
push 1
push edx
and ebx, 0xff
mov cl, byte [edi + eax + 1]
mov dl, byte [eax + edi]
mov eax, dword [ebp + 0x10]
push ecx
push edx
push eax
call fcn.004024c0
mov ecx, dword [ebp + 8]
and eax, 0xff
add ebx, eax
mov eax, dword [esp + 0x3c]
push 1
push ecx
mov dl, byte [edi + eax + 1]
mov al, byte [eax + edi]
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
call fcn.004024c0
mov edx, dword [esp + 0x50]
and eax, 0xff
add edx, ebx
mov ebx, dword [esp + 0x88]
add esp, 0x3c
add eax, edx
mov esi, eax
mov eax, dword [esp + 0x24]
add ebx, 2
cmp ebx, dword [eax + 8]
jb 0x405a28
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0x10