Function at 0x40416d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor eax, eax
mov esi, ecx
push 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call edi
mov ebx, 0x8000
mov ecx, dword [ebp + 0xc]
and eax, ebx
neg eax
sbb eax, eax
and al, 0xee
add eax, 0x14
cmp ecx, 0x6b
mov dword [0x40cba4], eax
jne 0x4041d6
fld dword [esi + 0x94]
fcomp dword [0x4072fc]
fnstsw ax
sahf
jae 0x40454b
fld dword [esi + 0x94]
fadd dword [0x4072f8]
fstp dword [esi + 0x94]
jmp 0x404405
cmp ecx, 0x31
jne 0x4041df
fld1
jmp 0x4041cb
cmp ecx, 0x51
jne 0x4041f3
mov dword [esi + 0x94], 0x3faa3d71
jmp 0x404405
cmp ecx, 0x32
jne 0x404207
mov dword [esi + 0x94], 0x40000000
jmp 0x404405
cmp ecx, 0x57
jne 0x40421b
mov dword [esi + 0x94], 0x3fd47ae1
jmp 0x404405
cmp ecx, 0x33
jne 0x40422f
mov dword [esi + 0x94], 0x40400000
jmp 0x404405
cmp ecx, 0x34
jne 0x404243
mov dword [esi + 0x94], 0x40800000
jmp 0x404405
cmp ecx, 0x35
jne 0x404257
mov dword [esi + 0x94], 0x40a00000
jmp 0x404405
cmp ecx, 0x36
jne 0x40426b
mov dword [esi + 0x94], 0x40c00000
jmp 0x404405
cmp ecx, 0x37
jne 0x40427f
mov dword [esi + 0x94], 0x40e00000
jmp 0x404405
cmp ecx, 0x38
jne 0x404293
mov dword [esi + 0x94], 0x41000000
jmp 0x404405
cmp ecx, 0x39
jne 0x4042a7
mov dword [esi + 0x94], 0x41100000
jmp 0x404405
cmp ecx, 0x50
jne 0x4042c1
push 0
mov ecx, esi
call fcn.00405739
mov dword [ebp - 4], 1
jmp 0x40454b
cmp ecx, 0x43
jne 0x4042d9
push 1
mov ecx, esi
pop edi
push edi
call fcn.00405739
mov dword [ebp - 4], edi
jmp 0x40454b
cmp ecx, 0x42
jne 0x4042e9
push 0
mov ecx, esi
call fcn.00405b5f
jmp 0x4042b5
cmp ecx, 0x54
jne 0x4042f7
mov ecx, esi
call fcn.004057ac
jmp 0x4042b5
cmp ecx, 0x46
je 0x404534
cmp ecx, 0x7a
je 0x404534
cmp ecx, 0x45
jne 0x404331
xor eax, eax
mov ecx, esi
cmp dword [esi + 0x60], eax
sete al
mov dword [esi + 0x60], eax
call fcn.00404c36
mov dword [ebp - 4], 1
call fcn.0040215d
jmp 0x40454b
cmp ecx, 0x70
jne 0x40435a
mov ecx, esi
call fcn.00404f2e
push 0
push 0x8008
push 0x111
push dword [esi + 0x68]
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
pop eax
jmp 0x40454e
cmp ecx, 0x71
jne 0x404363
push 0
jmp 0x40437f
cmp ecx, 0x72
jne 0x404378
push 1
mov ecx, esi
pop edi
push edi
call fcn.00404d19
jmp 0x4042d1
cmp ecx, 0x73
jne 0x40438b
push 2
mov ecx, esi
call fcn.00404d19
jmp 0x4042b5
cmp ecx, 0x58
jne 0x40439c
mov ecx, esi
call fcn.00404cfd
jmp 0x4042b5
cmp ecx, 0x48
jne 0x4043c2
mov ecx, esi
call fcn.00404f2e
push 0
push 0x8009
push 0x111
push dword [esi + 0x68]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4042b5
cmp ecx, 0x6d
jne 0x40449d
fld dword [esi + 0x94]
fcomp dword [0x4072f4]
fnstsw ax
sahf
jbe 0x40454b
fld dword [0x4072f8]
fcom dword [esi + 0x94]
fnstsw ax
sahf
jae 0x404549
fld dword [esi + 0x94]
fsub st(1)
fstp dword [esi + 0x94]
fstp st(0)
fld dword [esi + 0x94]
push ecx
push ecx
mov dword [ebp - 4], 1
fstp qword [esp]
push str._.1f_X
push 0x417910
call sub.MSVCRT.dll_sprintf
add esp, 0x10
mov edi, 0x2be2
push edi
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_KillTimer]
xor ebx, ebx
push ebx
push 0xbb8
push edi
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [esi + 0x54], ebx
je 0x404483
mov edx, dword [esi + 0x1c]
cmp edx, ebx
je 0x404483
push 9
xor eax, eax
pop ecx
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
fld1
fstp dword [ebp - 0x10]
mov eax, dword [esi + 0x94]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], eax
mov eax, dword [0x417904]
cmp eax, ebx
je 0x404493
lea ecx, [ebp - 0x30]
push ecx
push edx
call eax
jmp 0x404493
push 0x105
push ebx
push ebx
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_RedrawWindow]
call fcn.0040215d
jmp 0x40454b
cmp ecx, 0x1b
jne 0x4044be
push 0x5b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ebx, eax
jne 0x40454b
mov ecx, esi
call fcn.00404f2e
jmp 0x40454b
cmp ecx, 0x25
jne 0x4044d3
sub dword [esi + 0x84], eax
mov eax, dword [0x40cba4]
sub dword [ebp - 0xc], eax
jmp 0x404510
cmp ecx, 0x27
jne 0x4044e8
add dword [esi + 0x84], eax
mov eax, dword [0x40cba4]
add dword [ebp - 0xc], eax
jmp 0x404510
cmp ecx, 0x26
jne 0x4044fd
add dword [esi + 0x88], eax
mov eax, dword [0x40cba4]
add dword [ebp - 8], eax
jmp 0x404510
cmp ecx, 0x28
jne 0x40454b
sub dword [esi + 0x88], eax
mov eax, dword [0x40cba4]
sub dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0x11
call edi
shr eax, 0xf
and eax, 1
mov ecx, esi
push eax
push dword [esi + 0x88]
push dword [esi + 0x84]
call fcn.00404083
jmp 0x40454b
mov ecx, esi
call fcn.00404c76
mov dword [ebp - 4], 1
call fcn.0040215d
jmp 0x40454b
fstp st(0)
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc