Function at 0x401710
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x94], eax
movss xmm1, dword [0x4032c4]
movss xmm2, dword [0x4032c8]
movss xmm3, dword [0x4032c0]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x10], edi
mov edi, 0x7fff
movaps xmm0, xmm2
mov eax, esi
divss xmm0, xmm1
cdq
addss xmm1, xmm3
cvttss2si ecx, xmm0
idiv ecx
test al, 1
mov eax, 0xffff8000
cmove eax, edi
mov word [esi*2 + 0x405450], ax
inc esi
cmp esi, 0x35d54
jl 0x401752
push 0x30000
xor eax, eax
mov dword [esp + 0x60], 0x10001
push eax
push 0x401070
mov word [esp + 0x78], ax
xorps xmm0, xmm0
lea eax, [esp + 0x68]
mov dword [esp + 0x6c], 0xac44
push eax
push 0xffffffffffffffff
push 0x470efc
mov dword [esp + 0x7c], 0x15888
mov dword [esp + 0x80], 0x100002
mov dword [esp + 0x54], 0x405450
mov dword [esp + 0x58], 0x6baa8
movups xmmword [esp + 0x5c], xmm0
movq qword [esp + 0x6c], xmm0
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x20
lea eax, [esp + 0x40]
push eax
push dword [0x470efc]
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [esp + 0x40]
push eax
push dword [0x470efc]
call dword [sym.imp.WINMM.dll_waveOutWrite]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov dword [0x405448], eax
call esi
mov edi, dword [esp + 0x10]
push 0x7f00
push 0
mov dword [0x470ef8], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x401090
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], str.Glitchy
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x4018b4
push 0x10
push 0
push str.Cannot_register_class_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00401b12
mov esp, ebp
pop ebp
ret 0x10
push 0
push edi
push 0
push 0
push dword [0x470ef8]
push dword [0x405448]
push 0
push 0
push 0x80000000
push 0
push str.Glitchy
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x40190a
push 0x10
push eax
push str.Cannot_create_window_
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00401b12
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov edi, dword [sym.imp.USER32.dll_DestroyWindow]
xorps xmm0, xmm0
add esp, 4
movaps xmmword [esp + 0x70], xmm0
movq qword [esp + 0x80], xmm0
mov dword [esp + 0x88], 0
nop dword [eax]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x401970
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x401980
push esi
call edi
cmp dword [esp + 0x74], 0x12
jne 0x401940
mov ecx, dword [esp + 0x9c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00401b12
mov esp, ebp
pop ebp
ret 0x10