Function at 0x40e7e6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, eax
xor eax, eax
push edi
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 2], al
mov byte [ebp - 1], al
mov byte [ebp - 3], al
mov byte [ebp - 4], al
call fcn.004466d0
inc eax
push eax
call fcn.00446648
mov ebx, eax
push esi
mov dword [ebp - 0x18], ebx
call fcn.004466d0
lea eax, [eax + eax + 1]
push eax
call fcn.00446648
mov edi, eax
add esp, 0x10
lea edx, [ebp - 0xc]
mov al, 0x20
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], 1
call fcn.0040ebf2
test eax, eax
jne 0x40e878
mov eax, dword [ebp - 0xc]
mov al, byte [eax + esi]
cmp al, 0x20
je 0x40e852
cmp al, 9
jne 0x40e857
inc dword [ebp - 0xc]
jmp 0x40e844
lea edx, [ebp - 0xc]
mov ebx, edi
xor al, al
call fcn.0040ebf2
push 0x4598f4
push edi
call fcn.0044857e
test eax, eax
pop ecx
pop ecx
jne 0x40e8c5
mov byte [ebp - 2], 1
xor edi, edi
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
push esi
push dword [ebx*4 + 0x462570]
call fcn.0044857e
test eax, eax
pop ecx
pop ecx
je 0x40e89c
inc ebx
cmp ebx, 0x5d
mov dword [ebp - 0x14], ebx
jl 0x40e87a
cmp ebx, 0x5d
jne 0x40e986
xor eax, eax
cmp byte [ebp - 1], 0
mov al, byte [esi]
je 0x40e960
push edi
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
and eax, 0xff
jmp 0x40ea26
push str.down
push edi
call fcn.0044857e
test eax, eax
pop ecx
pop ecx
jne 0x40e8dc
mov byte [ebp - 1], 1
jmp 0x40e878
push 0x4598e8
push edi
call fcn.0044857e
test eax, eax
pop ecx
pop ecx
jne 0x40e8f3
mov byte [ebp - 3], 1
jmp 0x40e878
push 0x4598e4
push edi
call fcn.0044857e
test eax, eax
pop ecx
pop ecx
jne 0x40e90d
mov byte [ebp - 4], 1
jmp 0x40e878
cmp byte [edi], 0x30
jne 0x40e940
mov al, byte [edi + 1]
cmp al, 0x78
je 0x40e91d
cmp al, 0x58
jne 0x40e940
add edi, 2
lea esi, [ebp - 8]
call fcn.00412333
push dword [ebp - 8]
push 0x4598e0
push dword [ebp - 0x10]
call fcn.00447329
add esp, 0xc
jmp 0x40e878
push edi
call fcn.00446d8d
xor edi, edi
cmp eax, edi
pop ecx
mov dword [ebp - 8], eax
jg 0x40e87a
mov dword [ebp - 8], 1
jmp 0x40e87a
cmp byte [ebp - 2], 0
je 0x40e975
push edi
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
and eax, 0xff
jmp 0x40e9b0
push dword [ebp - 8]
mov ecx, dword [ebp + 8]
push eax
call fcn.0040dfb8
jmp case.default.0x40ea04
cmp byte [ebx + 0x4626e8], 0
jne 0x40e9f4
cmp byte [ebp - 1], 0
je 0x40e9a2
mov eax, dword [ebx*4 + str._f_b_b..__reepqrstuvwxyz________t___]
push edi
jmp 0x40ea26
cmp byte [ebp - 2], 0
je 0x40e9b8
mov eax, dword [ebx*4 + str._f_b_b..__reepqrstuvwxyz________t___]
push edi
mov ebx, dword [ebp + 8]
jmp 0x40eba2
cmp byte [ebp - 3], 0
je 0x40e9c9
push 1
push dword [ebx*4 + str._f_b_b..__reepqrstuvwxyz________t___]
jmp 0x40e9d7
cmp byte [ebp - 4], 0
push edi
push dword [ebx*4 + str._f_b_b..__reepqrstuvwxyz________t___]
je 0x40e9e4
push dword [ebp + 8]
call fcn.0040df52
jmp case.default.0x40ea04
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
call fcn.0040e00c
jmp case.default.0x40ea04
mov eax, dword [ebx*4 + str._f_b_b..__reepqrstuvwxyz________t___]
cmp eax, 0xc
ja case.default.0x40ea04
jmp dword [eax*4 + 0x40ebbe]
cmp byte [ebp - 1], 0
jne case.0x40ea04.2
cmp byte [ebp - 2], 0
jne case.0x40ea04.3
push edi
push 0x12
jmp 0x40ea48
cmp byte [ebp - 1], 0
je 0x40ea33
push edi
push 0xd
pop eax
mov ebx, dword [ebp + 8]
call fcn.0040e62d
jmp case.default.0x40ea04
cmp byte [ebp - 2], 0
je 0x40ea44
mov ebx, dword [ebp + 8]
push edi
push 0xd
jmp 0x40eba1
push 1
push 0xd
mov eax, dword [ebp + 8]
call fcn.0040e60c
jmp case.default.0x40ea04
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
test al, 0x10
jne case.default.0x40ea04
push edi
or eax, 0x10
push 0x12
mov dword [ecx + 0xc], eax
pop eax
mov ebx, ecx
jmp 0x40ea29
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
test al, 0x10
je case.default.0x40ea04
xor eax, 0x10
mov dword [ecx + 0xc], eax
mov ebx, ecx
jmp 0x40eb9e
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
test al, 0x20
jne case.default.0x40ea04
push edi
or eax, 0x20
push 0x10
jmp 0x40ea69
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
test al, 0x20
je case.default.0x40ea04
push edi
xor eax, 0x20
push 0x10
jmp 0x40eae2
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
test al, 0x40
jne case.default.0x40ea04
push edi
or eax, 0x40
push 0x11
jmp 0x40ea69
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
test al, 0x40
je case.default.0x40ea04
push edi
xor eax, 0x40
push 0x11
mov dword [ecx + 0xc], eax
mov ebx, ecx
jmp 0x40eba1
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
test al, al
js case.default.0x40ea04
push edi
or eax, 0x80
push 0x5b
mov dword [ebx + 0xc], eax
pop eax
jmp 0x40ea29
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
test al, al
jns case.default.0x40ea04
xor eax, 0x80
push edi
mov dword [ebx + 0xc], eax
push 0x5b
jmp 0x40eba1
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
mov eax, 0x100
test eax, ecx
jne case.default.0x40ea04
push edi
or ecx, eax
push 0x5c
mov dword [edx + 0xc], ecx
pop eax
mov ebx, edx
jmp 0x40ea29
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
mov eax, 0x100
test eax, ecx
je case.default.0x40ea04
xor ecx, eax
push edi
mov dword [edx + 0xc], ecx
push 0x5c
mov ebx, edx
jmp 0x40eba1
mov ebx, dword [ebp + 8]
test byte [ebx + 0xc], 0x10
jne 0x40eb74
push edi
push 0x12
pop eax
call fcn.0040e62d
xor edi, edi
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx]
test al, al
je 0x40eb98
mov esi, ecx
movsx eax, al
add eax, 0x30
push edi
push eax
mov eax, ebx
call fcn.0040e60c
inc esi
mov al, byte [esi]
test al, al
jne 0x40eb7f
mov esi, dword [ebp - 0x18]
test byte [ebx + 0xc], 0x10
jne case.default.0x40ea04
push edi
push 0x12
pop eax
call fcn.0040e707
push esi
call fcn.0044624a
push dword [ebp - 0x10]
call fcn.0044624a
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4