Function at 0x1003049f
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x10052c6e
call fcn.1001bb34
sub esp, 0x7c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 4]
cmp esi, 0x200
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], esi
je 0x100304e9
cmp esi, 0xa0
je 0x100304e9
cmp esi, 0x202
je 0x100304e9
cmp esi, 0x205
je 0x100304e9
cmp esi, 0x208
jne 0x100307b2
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call esi
test ax, ax
jl 0x100307af
push 2
call esi
test ax, ax
jl 0x100307af
push 4
call esi
test ax, ax
jl 0x100307af
call fcn.1004a65e
push dword [ebx]
mov esi, eax
mov dword [ebp - 0x18], esi
jmp 0x10030536
test word [eax + 0x38], 0x401
jne 0x1003053f
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.10034e45
test eax, eax
jne 0x10030524
cmp eax, edi
je 0x10030557
test eax, eax
jne 0x10030880
and dword [esi + 0x40], eax
or dword [esi + 0x44], 0xffffffff
jmp 0x10030880
mov ebx, dword [esi + 0x3c]
mov ecx, edi
call fcn.10035135
test ebx, ebx
mov dword [ebp - 0x14], eax
je 0x1003058d
mov ecx, ebx
call fcn.1001214e
cmp eax, dword [ebp - 0x14]
je 0x10030589
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x60]
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 4]
xor ebx, ebx
mov dword [esi + 0x3c], ebx
test ebx, ebx
jne 0x100305e7
push 0x6c
call fcn.10031579
pop ecx
mov dword [ebp - 0x1c], eax
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x100305aa
mov ecx, eax
call fcn.100301cb
mov ebx, eax
mov eax, dword [ebx]
or dword [ebp - 4], 0xffffffff
push 1
push dword [ebp - 0x14]
mov ecx, ebx
call dword [eax + 0x130]
test eax, eax
jne 0x100305cf
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 4]
jmp 0x10030880
push 0
push 0
push 0x401
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [ebp - 0x10]
mov dword [esi + 0x3c], ebx
push 0x30
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.1001c100
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
add esp, 0xc
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x1c]
mov dword [ebp - 0x28], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x30
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.1001c100
mov eax, dword [edi]
add esp, 0xc
lea ecx, [ebp - 0x58]
push ecx
push dword [ebp - 0x24]
mov ecx, edi
push dword [ebp - 0x28]
mov dword [ebp - 0x58], 0x28
call dword [eax + 0x6c]
mov ecx, eax
inc ecx
neg ecx
sbb ecx, ecx
and ecx, edi
cmp dword [esi + 0x44], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ecx
jne 0x100306a1
cmp dword [esi + 0x40], ecx
jne 0x100306a1
test byte [edi + 0x39], 4
je 0x1003068a
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
movzx eax, word [ebp - 0x1c]
movzx ecx, word [ebp - 0x20]
shl eax, 0x10
or eax, ecx
push eax
push 0
push 0x412
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x10030779
cmp eax, 0xffffffff
je 0x10030779
push dword [ebp + 8]
push ebx
call fcn.1003041d
jmp 0x10030779
cmp eax, 0xffffffff
je 0x1003079b
mov eax, dword [ebp - 0x10]
push 0xc
pop ecx
lea esi, [ebp - 0x58]
lea edi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
and byte [ebp - 0x81], 0x3f
mov edi, 0x400
test dword [eax + 0x38], edi
je 0x100306d3
or dword [ebp - 0x84], 0x20
lea eax, [ebp - 0x88]
push eax
xor esi, esi
push esi
push 0x404
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
test byte [ebp - 0x51], 0x40
jne 0x100306fd
mov ecx, dword [ebp - 0x10]
call fcn.10035e11
test eax, eax
je 0x10030740
push esi
push 1
push 0x401
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x10]
test dword [eax + 0x38], edi
je 0x1003072d
lea eax, [ebp - 0x88]
push eax
push 1
push 0x411
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x213
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [ebp - 0x18]
push dword [ebp + 8]
push ebx
call fcn.1003041d
lea edi, [esi + 0x48]
cmp dword [edi], 0x28
jb 0x10030765
push edi
push 0
push 0x405
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x44], eax
push 0xc
pop ecx
lea esi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x34], 0xffffffff
je 0x10030880
cmp dword [ebp - 0x38], 0
jne 0x10030880
push dword [ebp - 0x34]
call fcn.1001aa1e
pop ecx
jmp 0x10030880
push 0
push 0
push 0x401
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x10030743
mov esi, dword [ebp - 0x1c]
test word [edi + 0x38], 0x401
je 0x10030880
push dword [ebx]
jmp 0x100307d8
cmp eax, edi
je 0x100307e9
test word [eax + 0x38], 0x401
jne 0x100307e1
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.10034e45
test eax, eax
jne 0x100307c2
cmp eax, edi
jne 0x10030880
cmp esi, 0x100
jb 0x100307f9
cmp esi, 0x109
jbe 0x10030809
cmp esi, 0x104
jb 0x1003080e
cmp esi, 0x107
ja 0x1003080e
xor eax, eax
inc eax
jmp 0x10030810
xor eax, eax
test byte [edi + 0x39], 4
jne 0x10030880
test eax, eax
jne 0x1003087a
cmp esi, 0x201
je 0x1003087a
cmp esi, 0x203
je 0x1003087a
cmp esi, 0x204
je 0x1003087a
cmp esi, 0x206
je 0x1003087a
cmp esi, 0x207
je 0x1003087a
cmp esi, 0x209
je 0x1003087a
cmp esi, 0xa1
je 0x1003087a
cmp esi, 0xa3
je 0x1003087a
cmp esi, 0xa4
je 0x1003087a
cmp esi, 0xa6
je 0x1003087a
cmp esi, 0xa7
je 0x1003087a
cmp esi, 0xa9
jne 0x10030880
push eax
call fcn.10034244
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4