Function at 0x578680
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 4]
mov ebx, ecx
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa8], edi
cmp esi, 0x200
je 0x5786e1
cmp esi, 0xa0
je 0x5786e1
cmp esi, 0x2a3
je 0x5786e1
cmp esi, 0x202
je 0x5786e1
cmp esi, 0x205
je 0x5786e1
cmp esi, 0x208
jne 0x578d23
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x578d23
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x578d23
push 4
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x578d23
cmp dword [ebp + 0x10], 0
mov esi, 0x401
jne 0x578756
mov ecx, dword [edi]
push ecx
call fcn.0040cf29
test eax, eax
je 0x578746
mov edi, dword [sym.imp.USER32.dll_GetParent]
test dword [eax + 0x58], esi
jne 0x578746
mov edx, dword [eax + 0x20]
push edx
call edi
push eax
call fcn.0040cf29
test eax, eax
jne 0x578731
mov ecx, dword [ebp - 0xa0]
cmp eax, ecx
jne 0x578def
jmp 0x57875c
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
jne 0x578764
xor eax, eax
jmp 0x578767
mov eax, dword [ecx + 0x20]
push eax
call fcn.0053d3d0
mov edi, eax
mov eax, dword [ebx + 0x60]
add esp, 4
mov dword [ebp - 0xbc], edi
test eax, eax
je 0x5787ba
cmp dword [eax + 0x20], 0
je 0x5787ba
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x5787ba
test edi, edi
jne 0x5787ba
mov ebx, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x20]
push edi
push edi
push esi
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0xa0]
call fcn.0040d5ce
mov ecx, dword [ebx + 0x60]
mov edi, eax
test ecx, ecx
je 0x5787e1
call fcn.0040e764
cmp eax, edi
je 0x5787e1
mov ecx, dword [ebx + 0x60]
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
call eax
mov eax, dword [ebx + 0x60]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x5787fc
cmp dword [eax + 0x20], 0
jne 0x57895e
test eax, eax
jne 0x578809
mov edx, dword [ebx]
mov eax, dword [edx + 0x50]
push edi
mov ecx, ebx
call eax
mov dword [ebx + 0x60], eax
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x578def
cmp dword [eax + 0x20], 0
jne 0x57887a
push eax
push 0x6b6924
call fcn.00418d79
add esp, 8
test eax, eax
je 0x57883e
mov edx, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x60]
or edx, 3
push edx
push edi
call fcn.00577bf0
jmp 0x57887a
mov eax, dword [ebx + 0x60]
push eax
push 0x69488c
call fcn.00418d79
add esp, 8
test eax, eax
je 0x578def
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x60]
mov eax, dword [ecx]
mov eax, dword [eax + 0x160]
dec edx
neg edx
sbb edx, edx
and edx, 0xffffffc0
add edx, 0x40
or edx, dword [ebx + 0x40]
or edx, 3
push edx
push edi
call eax
mov ecx, dword [ebx + 0x60]
test ecx, ecx
je 0x578def
cmp dword [ecx + 0x20], 0
je 0x578def
push 1
lea edx, [ebx + 0x98]
push edx
call fcn.00432c3c
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x60]
mov edx, dword [eax + 0x20]
push ecx
push 0
push 0x418
push edx
call esi
mov eax, dword [ebx + 0x60]
mov edx, dword [eax + 0x20]
lea ecx, [ebx + 0x44]
push ecx
push 0
push 0x41a
push edx
call esi
mov eax, dword [ebx + 0x90]
or edi, 0xffffffff
cmp eax, edi
je 0x5788e3
mov ecx, dword [ebx + 0x60]
push 0
push eax
mov eax, dword [ecx + 0x20]
push 0x413
push eax
call esi
mov eax, dword [ebx + 0x94]
cmp eax, edi
je 0x5788fe
mov ecx, dword [ebx + 0x60]
mov ecx, dword [ecx + 0x20]
push 0
push eax
push 0x414
push ecx
call esi
cmp dword [ebx + 0x58], edi
je 0x578918
movzx edx, word [ebx + 0x58]
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 0x20]
push edx
push 1
push 0x403
push eax
call esi
cmp dword [ebx + 0x54], edi
je 0x578932
movzx ecx, word [ebx + 0x54]
mov eax, dword [ebx + 0x60]
mov edx, dword [eax + 0x20]
push ecx
push 3
push 0x403
push edx
call esi
cmp dword [ebx + 0x5c], edi
je 0x57894c
movzx ecx, word [ebx + 0x5c]
mov eax, dword [ebx + 0x60]
mov edx, dword [eax + 0x20]
push ecx
push 2
push 0x403
push edx
call esi
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x401
push eax
call esi
mov ecx, dword [ebx + 0x60]
mov edi, dword [ebp - 0xa0]
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xa8]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0xa4], ecx
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xb8], edx
mov edx, dword [edi + 0x20]
push ecx
push edx
mov dword [ebp - 0xb4], eax
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x2c
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.005036f0
add esp, 0xc
cmp dword [ebx + 0x20], 0
jne 0x5789d3
cmp dword [ebx + 0x24], 0
mov dword [ebp - 0x70], 0x28
je 0x5789da
mov dword [ebp - 0x70], 0x2c
mov edx, dword [ebx]
mov edx, dword [edx + 0x54]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0xb4]
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0xb8]
push ecx
push eax
push edi
mov ecx, ebx
call edx
cmp dword [ebx + 0x20], 0
mov dword [ebp - 0xa0], eax
je 0x578a37
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x578a37
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x578a37
push eax
push ecx
call fcn.0050040c
add esp, 8
test eax, eax
jne 0x578a37
mov eax, dword [ebp - 0x44]
push eax
call fcn.00500ff5
add esp, 4
mov dword [ebp - 0x44], 0
test byte [ebx + 0x40], 2
jne 0x578a55
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0053cea0
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 4]
push eax
call fcn.0053cea0
add esp, 8
cmp dword [ebx + 0xa8], 0
je 0x578a76
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00577730
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 4]
push eax
call fcn.00577730
add esp, 8
mov ecx, dword [ebx + 0x70]
cmp ecx, dword [ebp - 0x64]
jne 0x578ae3
mov edx, dword [ebx + 0x6c]
cmp edx, dword [ebp - 0x68]
jne 0x578ae3
mov edi, dword [sym.imp.USER32.dll_CopyRect]
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0xac], 0
call edi
lea edx, [ebx + 0x74]
push edx
lea eax, [ebp - 0x24]
push eax
call edi
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
je 0x578aed
cmp dword [ebp - 0xa0], 0xffffffff
je 0x578cd5
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
push eax
push ecx
mov ecx, ebx
call fcn.00578330
jmp 0x578cd5
mov dword [ebp - 0xac], 1
cmp dword [ebx + 0x64], 0x28
lea eax, [ebx + 0x64]
mov dword [ebp - 0xb0], eax
jb 0x578b19
cmp dword [ebp - 0xac], 0
jne 0x578b19
mov edx, dword [ebp - 0xa4]
push eax
mov eax, dword [edx + 0x20]
push 0
push 0x405
push eax
call esi
cmp dword [ebp - 0xa0], 0xffffffff
je 0x578c73
mov eax, dword [ebp - 0xa4]
mov ecx, 0xb
lea esi, [ebp - 0x70]
lea edi, [ebp - 0x9c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x6c]
lea edx, [ebp - 0x9c]
push edx
and ecx, 0x3fffffff
push 0
mov dword [ebp - 0x98], ecx
mov ecx, dword [eax + 0x20]
push 0x404
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0x30]
cmp eax, 3
je 0x578bea
cmp eax, 6
je 0x578bea
cmp eax, 7
je 0x578bea
cmp dword [ebx + 0x34], 0x50050
jae 0x578b82
test eax, eax
je 0x578bea
cmp dword [ebx + 0x20], 0
je 0x578bcd
cmp dword [ebp - 0x44], 0
je 0x578bcd
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x578bcd
mov edx, dword [ebx + 0x38]
mov esi, dword [ebp - 0xa4]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov eax, dword [esi + 0x20]
push edx
push 0x420
push eax
call edi
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0x9c]
push edx
push 0
push 0x40c
push eax
mov dword [ebp - 0x78], ecx
call edi
jmp 0x578bf6
mov esi, dword [ebp - 0xa4]
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x420
push ecx
call edi
jmp 0x578bf6
mov esi, dword [ebp - 0xa4]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebx + 0x24], 0
je 0x578c37
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x578c28
mov eax, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x28]
add eax, dword [ebp - 0xa0]
push edx
push eax
call fcn.00562c40
test eax, eax
je 0x578c28
mov ecx, dword [esi + 0x20]
push eax
push 0
push 0x2a49
push ecx
jmp 0x578c35
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x2a49
push edx
call edi
test dword [ebp - 0x6c], 0x40000000
jne 0x578c49
cmp dword [ebp - 0xbc], 0
je 0x578c94
mov eax, dword [esi + 0x20]
push 0
push 1
push 0x401
push eax
call edi
mov ecx, dword [esi + 0x20]
push 0x213
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x578c94
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx + 0x20]
push 0
push 0
push 0x401
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xa8]
push ecx
push esi
mov ecx, ebx
call fcn.00578330
mov eax, dword [ebp - 0xb0]
cmp dword [eax], 0x28
jb 0x578cc5
cmp dword [ebp - 0xac], 0
je 0x578cc5
mov edx, dword [esi + 0x20]
push eax
push 0
push 0x405
push edx
call edi
mov edi, dword [ebp - 0xb0]
mov ecx, 0xb
lea esi, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x4c]
cmp eax, 0xffffffff
je 0x578cec
cmp dword [ebp - 0x50], 0
jne 0x578cec
push eax
call fcn.00500ff5
add esp, 4
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x578cfc
push eax
call fcn.00500ff5
add esp, 4
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x578def
push eax
call fcn.00500ff5
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 0x10], 0
jne 0x578d6d
mov eax, dword [edi]
push eax
call fcn.0040cf29
test eax, eax
je 0x578d61
mov edi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x578d40
cmp eax, dword [ebp - 0xa0]
je 0x578d6d
test dword [eax + 0x58], 0x401
jne 0x578d61
mov ecx, dword [eax + 0x20]
push ecx
call edi
push eax
call fcn.0040cf29
test eax, eax
jne 0x578d40
cmp eax, dword [ebp - 0xa0]
jne 0x578def
cmp esi, 0x100
jb 0x578d7d
cmp esi, 0x108
jbe 0x578de8
lea edx, [esi - 0x104]
cmp edx, 3
jbe 0x578de8
cmp esi, 0x201
je 0x578de8
cmp esi, 0x203
je 0x578de8
cmp esi, 0x204
je 0x578de8
cmp esi, 0x206
je 0x578de8
cmp esi, 0x207
je 0x578de8
cmp esi, 0x209
je 0x578de8
cmp esi, 0xa1
je 0x578de8
cmp esi, 0xa3
je 0x578de8
cmp esi, 0xa4
je 0x578de8
cmp esi, 0xa6
je 0x578de8
cmp esi, 0xa7
je 0x578de8
cmp esi, 0xa9
jne 0x578def
mov ecx, ebx
call fcn.005783f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005000ee
mov esp, ebp
pop ebp
ret 0xc