Function at 0x40e833
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.00446710
inc eax
push eax
call fcn.00446688
mov ebx, eax
push esi
mov dword [ebp - 0x18], ebx
call fcn.00446710
lea eax, [eax + eax + 1]
push eax
call fcn.00446688
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.0040ec3f
test eax, eax
jne 0x40e8c5
mov eax, dword [ebp - 0xc]
mov al, byte [eax + esi]
cmp al, 0x20
je 0x40e89f
cmp al, 9
jne 0x40e8a4
inc dword [ebp - 0xc]
jmp 0x40e891
lea edx, [ebp - 0xc]
mov ebx, edi
xor al, al
call fcn.0040ec3f
push 0x4598f4
push edi
call fcn.004485be
test eax, eax
pop ecx
pop ecx
jne 0x40e912
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.004485be
test eax, eax
pop ecx
pop ecx
je 0x40e8e9
inc ebx
cmp ebx, 0x5d
mov dword [ebp - 0x14], ebx
jl 0x40e8c7
cmp ebx, 0x5d
jne 0x40e9d3
xor eax, eax
cmp byte [ebp - 1], 0
mov al, byte [esi]
je 0x40e9ad
push edi
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
and eax, 0xff
jmp 0x40ea73
push str.down
push edi
call fcn.004485be
test eax, eax
pop ecx
pop ecx
jne 0x40e929
mov byte [ebp - 1], 1
jmp 0x40e8c5
push 0x4598e8
push edi
call fcn.004485be
test eax, eax
pop ecx
pop ecx
jne 0x40e940
mov byte [ebp - 3], 1
jmp 0x40e8c5
push 0x4598e4
push edi
call fcn.004485be
test eax, eax
pop ecx
pop ecx
jne 0x40e95a
mov byte [ebp - 4], 1
jmp 0x40e8c5
cmp byte [edi], 0x30
jne 0x40e98d
mov al, byte [edi + 1]
cmp al, 0x78
je 0x40e96a
cmp al, 0x58
jne 0x40e98d
add edi, 2
lea esi, [ebp - 8]
call fcn.0041484f
push dword [ebp - 8]
push 0x4598e0
push dword [ebp - 0x10]
call fcn.00447369
add esp, 0xc
jmp 0x40e8c5
push edi
call fcn.00446dcd
xor edi, edi
cmp eax, edi
pop ecx
mov dword [ebp - 8], eax
jg 0x40e8c7
mov dword [ebp - 8], 1
jmp 0x40e8c7
cmp byte [ebp - 2], 0
je 0x40e9c2
push edi
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
and eax, 0xff
jmp 0x40e9fd
push dword [ebp - 8]
mov ecx, dword [ebp + 8]
push eax
call fcn.0040e005
jmp case.default.0x40ea51
cmp byte [ebx + 0x4626e8], 0
jne 0x40ea41
cmp byte [ebp - 1], 0
je 0x40e9ef
mov eax, dword [ebx*4 + str._f_b_b..__reepqrstuvwxyz________t___]
push edi
jmp 0x40ea73
cmp byte [ebp - 2], 0
je 0x40ea05
mov eax, dword [ebx*4 + str._f_b_b..__reepqrstuvwxyz________t___]
push edi
mov ebx, dword [ebp + 8]
jmp 0x40ebef
cmp byte [ebp - 3], 0
je 0x40ea16
push 1
push dword [ebx*4 + str._f_b_b..__reepqrstuvwxyz________t___]
jmp 0x40ea24
cmp byte [ebp - 4], 0
push edi
push dword [ebx*4 + str._f_b_b..__reepqrstuvwxyz________t___]
je 0x40ea31
push dword [ebp + 8]
call fcn.0040df9f
jmp case.default.0x40ea51
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
call fcn.0040e059
jmp case.default.0x40ea51
mov eax, dword [ebx*4 + str._f_b_b..__reepqrstuvwxyz________t___]
cmp eax, 0xc
ja case.default.0x40ea51
jmp dword [eax*4 + 0x40ec0b]
cmp byte [ebp - 1], 0
jne case.0x40ea51.2
cmp byte [ebp - 2], 0
jne case.0x40ea51.3
push edi
push 0x12
jmp 0x40ea95
cmp byte [ebp - 1], 0
je 0x40ea80
push edi
push 0xd
pop eax
mov ebx, dword [ebp + 8]
call fcn.0040e67a
jmp case.default.0x40ea51
cmp byte [ebp - 2], 0
je 0x40ea91
mov ebx, dword [ebp + 8]
push edi
push 0xd
jmp 0x40ebee
push 1
push 0xd
mov eax, dword [ebp + 8]
call fcn.0040e659
jmp case.default.0x40ea51
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
test al, 0x10
jne case.default.0x40ea51
push edi
or eax, 0x10
push 0x12
mov dword [ecx + 0xc], eax
pop eax
mov ebx, ecx
jmp 0x40ea76
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
test al, 0x10
je case.default.0x40ea51
xor eax, 0x10
mov dword [ecx + 0xc], eax
mov ebx, ecx
jmp 0x40ebeb
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
test al, 0x20
jne case.default.0x40ea51
push edi
or eax, 0x20
push 0x10
jmp 0x40eab6
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
test al, 0x20
je case.default.0x40ea51
push edi
xor eax, 0x20
push 0x10
jmp 0x40eb2f
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
test al, 0x40
jne case.default.0x40ea51
push edi
or eax, 0x40
push 0x11
jmp 0x40eab6
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
test al, 0x40
je case.default.0x40ea51
push edi
xor eax, 0x40
push 0x11
mov dword [ecx + 0xc], eax
mov ebx, ecx
jmp 0x40ebee
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
test al, al
js case.default.0x40ea51
push edi
or eax, 0x80
push 0x5b
mov dword [ebx + 0xc], eax
pop eax
jmp 0x40ea76
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
test al, al
jns case.default.0x40ea51
xor eax, 0x80
push edi
mov dword [ebx + 0xc], eax
push 0x5b
jmp 0x40ebee
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
mov eax, 0x100
test eax, ecx
jne case.default.0x40ea51
push edi
or ecx, eax
push 0x5c
mov dword [edx + 0xc], ecx
pop eax
mov ebx, edx
jmp 0x40ea76
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
mov eax, 0x100
test eax, ecx
je case.default.0x40ea51
xor ecx, eax
push edi
mov dword [edx + 0xc], ecx
push 0x5c
mov ebx, edx
jmp 0x40ebee
mov ebx, dword [ebp + 8]
test byte [ebx + 0xc], 0x10
jne 0x40ebc1
push edi
push 0x12
pop eax
call fcn.0040e67a
xor edi, edi
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx]
test al, al
je 0x40ebe5
mov esi, ecx
movsx eax, al
add eax, 0x30
push edi
push eax
mov eax, ebx
call fcn.0040e659
inc esi
mov al, byte [esi]
test al, al
jne 0x40ebcc
mov esi, dword [ebp - 0x18]
test byte [ebx + 0xc], 0x10
jne case.default.0x40ea51
push edi
push 0x12
pop eax
call fcn.0040e754
push esi
call fcn.0044627e
push dword [ebp - 0x10]
call fcn.0044627e
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4