Function at 0x514630
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598afb
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
push esi
push edi
mov eax, dword [0x6de5c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc0], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x200
je 0x51469a
cmp dword [ebp - 0x10], 0xa0
je 0x51469a
cmp dword [ebp - 0x10], 0x202
je 0x51469a
cmp dword [ebp - 0x10], 0x205
je 0x51469a
cmp dword [ebp - 0x10], 0x208
jne 0x514b99
push 1
call dword [0x59b7e8]
movsx edx, ax
test edx, edx
jl 0x514b99
push 2
call dword [0x59b7e8]
movsx eax, ax
test eax, eax
jl 0x514b99
push 4
call dword [0x59b7e8]
movsx ecx, ax
test ecx, ecx
jl 0x514b99
call fcn.004e2780
mov dword [ebp - 0x60], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.004885b0
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x51470a
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x3c]
and edx, 0x401
jne 0x51470a
mov ecx, dword [ebp - 0x5c]
call fcn.0049b840
mov dword [ebp - 0x5c], eax
jmp 0x5146e9
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0xc0]
je 0x514734
cmp dword [ebp - 0x5c], 0
jne 0x51472f
mov ecx, dword [ebp - 0x60]
mov dword [ecx + 0x40], 0
mov edx, dword [ebp - 0x60]
mov dword [edx + 0x44], 0xffffffff
jmp 0x514ce8
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0xc0]
call fcn.0048c220
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x58], 0
je 0x5147c1
mov ecx, dword [ebp - 0x58]
call fcn.0049a150
cmp eax, dword [ebp - 0x24]
je 0x5147c1
mov edx, dword [ebp - 0x58]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x58]
mov edx, dword [eax + 0x68]
call edx
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0xa4], ecx
cmp dword [ebp - 0xa4], 0
je 0x5147a6
push 1
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xa4]
mov edx, dword [eax + 4]
call edx
mov dword [ebp - 0xc4], eax
jmp 0x5147b0
mov dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0x60]
mov dword [eax + 0x3c], 0
mov dword [ebp - 0x58], 0
cmp dword [ebp - 0x58], 0
jne 0x5148a9
push 0x19c
push 0x615c74
push 0x70
call fcn.004854e0
mov dword [ebp - 0xb0], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0xb0], 0
je 0x514805
mov ecx, dword [ebp - 0xb0]
call fcn.00513840
mov dword [ebp - 0xc8], eax
jmp 0x51480f
mov dword [ebp - 0xc8], 0
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xac], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0x58], edx
push 1
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x58]
mov eax, dword [edx + 0x13c]
call eax
test eax, eax
jne 0x51488f
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0xb8]
mov dword [ebp - 0xb4], edx
cmp dword [ebp - 0xb4], 0
je 0x514880
push 1
mov eax, dword [ebp - 0xb4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xb4]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0xcc], eax
jmp 0x51488a
mov dword [ebp - 0xcc], 0
jmp 0x514ce8
push 0
push 0
push 0x401
mov ecx, dword [ebp - 0x58]
call fcn.0049a1c0
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x58]
mov dword [ecx + 0x3c], edx
push 0x1a6
push 0x615ce4
mov eax, dword [ebp - 0x58]
push eax
call fcn.004c3b10
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x20]
push edx
call dword [0x59b774]
test eax, eax
jne 0x5148e1
push 0x1a7
push 0x615d1c
call fcn.004c6b20
test eax, eax
je 0x5148e1
int3
push 0x30
push 0
lea ecx, [ebp - 0x90]
push ecx
call fcn.005238a0
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [edx + 0x14]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00588cd0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 0x20]
push ecx
call dword [0x59b72c]
push 0x30
push 0
lea edx, [ebp - 0x54]
push edx
call fcn.005238a0
add esp, 0xc
mov dword [ebp - 0x54], 0x28
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc0]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xc0]
mov eax, dword [edx + 0x74]
call eax
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
sub ecx, 0xffffffff
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0xc0]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0x44]
cmp eax, dword [ebp - 0x20]
jne 0x514981
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x40]
cmp edx, dword [ebp - 0x1c]
je 0x514b17
cmp dword [ebp - 0x20], 0xffffffff
je 0x514a69
mov ecx, 0xc
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x8c]
and eax, 0x3fffffff
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ecx + 0x3c]
and edx, 0x400
je 0x5149cc
mov eax, dword [ebp - 0x8c]
or eax, 0x20
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x90]
push ecx
push 0
push 0x432
mov ecx, dword [ebp - 0x58]
call fcn.0049a1c0
test eax, eax
jne 0x5149fa
push 0x1bd
push 0x615d54
call fcn.004c6b20
test eax, eax
je 0x5149fa
int3
mov eax, dword [ebp - 0x50]
and eax, 0x40000000
jne 0x514a13
mov ecx, dword [ebp - 0xc0]
call fcn.0048c290
test eax, eax
je 0x514a67
push 0
push 1
push 0x401
mov ecx, dword [ebp - 0x58]
call fcn.0049a1c0
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ecx + 0x3c]
and edx, 0x400
je 0x514a4b
lea eax, [ebp - 0x90]
push eax
push 1
push 0x411
mov ecx, dword [ebp - 0x58]
call fcn.0049a1c0
push 0x213
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x20]
push edx
call dword [0x59b860]
jmp 0x514a7a
push 0
push 0
push 0x401
mov ecx, dword [ebp - 0x58]
call fcn.0049a1c0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00514570
mov edx, dword [ebp - 0x60]
cmp dword [edx + 0x48], 0
je 0x514ab1
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0x48]
cmp dword [ecx], 0x28
jb 0x514ab1
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0x48]
push eax
push 0
push 0x433
mov ecx, dword [ebp - 0x58]
call fcn.0049a1c0
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x40], edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x44], ecx
mov edx, dword [ebp - 0x60]
cmp dword [edx + 0x48], 0
jne 0x514b05
push 0x1db
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_tooltip.cpp
push 0x30
call fcn.00485460
add esp, 0xc
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xbc]
mov dword [eax + 0x48], ecx
push 0x30
push 0
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0x48]
push eax
call fcn.005238a0
add esp, 0xc
mov ecx, dword [ebp - 0x60]
mov edi, dword [ecx + 0x48]
mov ecx, 0xc
lea esi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
jmp 0x514b7c
mov edx, dword [ebp - 0xc0]
mov eax, dword [edx + 0x3c]
and eax, 0x400
je 0x514b69
lea ecx, [ebp - 0x98]
push ecx
call dword [0x59b7cc]
mov edx, dword [ebp - 0x98]
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp - 0x94]
and ecx, 0xffff
movzx edx, cx
shl edx, 0x10
or eax, edx
push eax
push 0
push 0x412
mov ecx, dword [ebp - 0x58]
call fcn.0049a1c0
jmp 0x514b7c
cmp dword [ebp - 0x20], 0xffffffff
je 0x514b7c
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00514570
cmp dword [ebp - 0x30], 0xffffffff
je 0x514b94
cmp dword [ebp - 0x34], 0
jne 0x514b94
mov edx, dword [ebp - 0x30]
push edx
call fcn.00524790
add esp, 4
jmp 0x514ce8
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 0x3c]
and ecx, 0x401
je 0x514ce8
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.004885b0
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x514bf9
mov ecx, dword [ebp - 0x9c]
cmp ecx, dword [ebp - 0xc0]
je 0x514bf9
mov edx, dword [ebp - 0x9c]
mov eax, dword [edx + 0x3c]
and eax, 0x401
jne 0x514bf9
mov ecx, dword [ebp - 0x9c]
call fcn.0049b840
mov dword [ebp - 0x9c], eax
jmp 0x514bbf
mov ecx, dword [ebp - 0x9c]
cmp ecx, dword [ebp - 0xc0]
je 0x514c0c
jmp 0x514ce8
cmp dword [ebp - 0x10], 0x100
jb 0x514c1e
cmp dword [ebp - 0x10], 0x109
jbe 0x514c3c
cmp dword [ebp - 0x10], 0x104
jb 0x514c30
cmp dword [ebp - 0x10], 0x107
jbe 0x514c3c
mov dword [ebp - 0xd0], 0
jmp 0x514c46
mov dword [ebp - 0xd0], 1
mov edx, dword [ebp - 0xd0]
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 0x3c]
and ecx, 0x400
jne 0x514ce8
cmp dword [ebp - 0xa0], 0
jne 0x514cdc
cmp dword [ebp - 0x10], 0x201
je 0x514cdc
cmp dword [ebp - 0x10], 0x203
je 0x514cdc
cmp dword [ebp - 0x10], 0x204
je 0x514cdc
cmp dword [ebp - 0x10], 0x206
je 0x514cdc
cmp dword [ebp - 0x10], 0x207
je 0x514cdc
cmp dword [ebp - 0x10], 0x209
je 0x514cdc
cmp dword [ebp - 0x10], 0xa1
je 0x514cdc
cmp dword [ebp - 0x10], 0xa3
je 0x514cdc
cmp dword [ebp - 0x10], 0xa4
je 0x514cdc
cmp dword [ebp - 0x10], 0xa6
je 0x514cdc
cmp dword [ebp - 0x10], 0xa7
je 0x514cdc
cmp dword [ebp - 0x10], 0xa9
jne 0x514ce8
mov edx, dword [ebp - 0xa0]
push edx
call fcn.00489da0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4