Function at 0x10048537
Capabilities:
Log keystrokes via polling
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071f46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10048583
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x70], eax
push 0x18d7
push dword [ebp - 0x70]
push 0
push dword [ebp - 0x74]
call fcn.1004884e
add esp, 0x10
jmp 0x1004881d
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x28], 0xad72
mov dword [ebp - 0x24], 0xad72
mov dword [ebp - 0x20], 0xad72
mov dword [ebp - 0x1c], 0xad72
mov dword [ebp - 0x30], 0xe730
mov dword [ebp - 0x18], 2
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x28], 0
jne 0x10048694
push 4
pop eax
imul eax, eax, 3
push 4
pop ecx
imul ecx, ecx, 0
mov ecx, dword [ebp + ecx - 0x28]
cmp dword [ebp + eax - 0x28], ecx
jge 0x1004860b
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x28], 0
jne 0x1004860b
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x28], 0
jne 0x1004860b
and dword [ebp - 0x40], 0
jmp 0x10048612
mov dword [ebp - 0x40], 1
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x28]
cmp dword [ebp - 0x40], eax
jg 0x10048629
mov dword [ebp - 0x3c], 1
jmp 0x1004862d
and dword [ebp - 0x3c], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x28]
cmp dword [ebp - 0x3c], eax
jg 0x10048645
mov dword [ebp - 0x50], 1
jmp 0x10048649
and dword [ebp - 0x50], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x28]
mov dword [ebp - 0x30], eax
imul eax, dword [ebp - 0x50], 0xf157
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x30], eax
jg 0x10048671
mov dword [ebp - 0x4c], 1
jmp 0x10048675
and dword [ebp - 0x4c], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [ebp + eax - 0x28]
push 4
pop eax
shl eax, 0
cmp ecx, dword [ebp + eax - 0x28]
je 0x10048694
and dword [ebp - 0x44], 0
jmp 0x1004869b
mov dword [ebp - 0x44], 1
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x28]
cmp dword [ebp - 0x44], eax
jle 0x100486b3
mov dword [ebp - 0x38], 1
jmp 0x100486b7
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
sub eax, 0x55073046
push 4
pop ecx
shl ecx, 1
cmp eax, dword [ebp + ecx - 0x28]
je 0x100486dd
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x28], 0
jne 0x100486dd
and dword [ebp - 0x34], 0
jmp 0x100486e4
mov dword [ebp - 0x34], 1
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x28]
cmp dword [ebp - 0x34], eax
jl 0x100486fc
mov dword [ebp - 0x48], 1
jmp 0x10048700
and dword [ebp - 0x48], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x48]
sub ecx, dword [ebp + eax - 0x28]
push 4
pop eax
imul eax, eax, 0
cmp ecx, dword [ebp + eax - 0x28]
jle 0x1004877a
mov byte [ebp - 0xf], 0
movzx eax, byte [ebp - 0xf]
test eax, eax
je 0x1004873a
push 0x3cd
push 0x2104
push 0x2438
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov dword [ebp - 0x18], 0
jmp 0x1004874a
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xfffffff5
jne 0x10048778
mov byte [ebp - 0x10], 0
movzx eax, byte [ebp - 0x10]
test eax, eax
je 0x10048764
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x10048776
call dword [sym.imp.KERNEL32.dll_GetACP]
jmp 0x10048743
jmp 0x10048797
mov byte [ebp - 0xe], 0
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x10048791
push 0xf2
call dword [sym.imp.USER32.dll_GetMenu]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x2c], 5
mov dword [ebp - 0x7c], 0x4e79
mov dword [ebp - 0x2c], 0xffffffe3
jmp 0x100487c1
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xfffffff3
jne 0x100487e0
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x100487de
push 0x363
call dword [sym.imp.USER32.dll_GetKeyState]
jmp 0x100487ba
push 1
mov eax, dword [ebp - 0x78]
push dword [eax]
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x6c]
call fcn.1004c132
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
and dword [ebp - 4], 0
push dword [ebp - 0x60]
mov ecx, dword [ebp - 0x68]
call fcn.10011f14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.10011f0a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret