Function at 0x5f40c8cb
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f4a79ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push esi
push edi
mov dword [ebp - 0xb8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x200
je 0x5f40c92c
cmp dword [ebp - 0x10], 0xa0
je 0x5f40c92c
cmp dword [ebp - 0x10], 0x202
je 0x5f40c92c
cmp dword [ebp - 0x10], 0x205
je 0x5f40c92c
cmp dword [ebp - 0x10], 0x208
jne 0x5f40cefd
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jl 0x5f40cefd
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
test eax, eax
jl 0x5f40cefd
push 4
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jl 0x5f40cefd
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call sym.MFC42D.DLL_Ordinal_2217
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x5f40c996
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x28]
and edx, 0x401
test edx, edx
jne 0x5f40c996
mov ecx, dword [ebp - 0x44]
call sym.MFC42D.DLL_Ordinal_2790
mov dword [ebp - 0x44], eax
jmp 0x5f40c973
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0xb8]
je 0x5f40c9dc
cmp dword [ebp - 0x44], 0
jne 0x5f40c9d7
mov ecx, 0x5f4ce13c
call fcn.5f48f1e0
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
mov dword [ecx + 0xd0], 0
mov edx, dword [ebp - 0x8c]
mov dword [edx + 0xd4], 0xffffffff
jmp 0x5f40d052
mov ecx, 0x5f4ce13c
call fcn.5f48f1e0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0xcc]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0xb8]
call sym.MFC42D.DLL_Ordinal_2793
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x4c], 0
je 0x5f40ca7e
mov ecx, dword [ebp - 0x4c]
call sym.MFC42D.DLL_Ordinal_2776
cmp eax, dword [ebp - 0x88]
je 0x5f40ca7e
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4c]
call dword [eax + 0x60]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0xa0], edx
cmp dword [ebp - 0xa0], 0
je 0x5f40ca60
push 1
mov eax, dword [ebp - 0xa0]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xa0]
call dword [edx + 4]
mov dword [ebp - 0xbc], eax
jmp 0x5f40ca6a
mov dword [ebp - 0xbc], 0
mov eax, dword [ebp - 0x40]
mov dword [eax + 0xcc], 0
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0
jne 0x5f40cb62
push 0x186
push str.tooltip.cpp
push 0x5c
call sym.MFC42D.DLL_Ordinal_719
mov dword [ebp - 0xac], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0xac], 0
je 0x5f40cac2
mov ecx, dword [ebp - 0xac]
call sym.MFC42D.DLL_Ordinal_519
mov dword [ebp - 0xc0], eax
jmp 0x5f40cacc
mov dword [ebp - 0xc0], 0
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0x4c], edx
push 1
mov eax, dword [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x4c]
call sym.MFC42D.DLL_Ordinal_1629
test eax, eax
jne 0x5f40cb45
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0xb0], edx
cmp dword [ebp - 0xb0], 0
je 0x5f40cb36
push 1
mov eax, dword [ebp - 0xb0]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xb0]
call dword [edx + 4]
mov dword [ebp - 0xc4], eax
jmp 0x5f40cb40
mov dword [ebp - 0xc4], 0
jmp 0x5f40d052
push 0
push 0
push 0x401
mov ecx, dword [ebp - 0x4c]
call sym.MFC42D.DLL_Ordinal_4475
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 0xcc], ecx
push 0x190
push str.tooltip.cpp
mov edx, dword [ebp - 0x4c]
push edx
call sym.MFC42D.DLL_Ordinal_1042
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x5f40cb9a
push 0x191
push str.tooltip.cpp
call sym.MFC42D.DLL_Ordinal_1041
test eax, eax
je 0x5f40cb9a
int3
xor edx, edx
test edx, edx
jne 0x5f40cb75
push 0x2c
push 0
lea eax, [ebp - 0x3c]
push eax
call sub.MSVCRTD.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], 0x28
mov dword [ebp - 0x38], 1
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x30], ecx
lea edx, [ebp - 0x3c]
push edx
push 0
push 0x408
mov ecx, dword [ebp - 0x4c]
call sym.MFC42D.DLL_Ordinal_4475
test eax, eax
jne 0x5f40cc92
cmp dword [ebp - 0x38], 1
je 0x5f40cc0b
push 0x19b
push str.tooltip.cpp
call sym.MFC42D.DLL_Ordinal_1041
test eax, eax
je 0x5f40cc0b
int3
xor eax, eax
test eax, eax
jne 0x5f40cbf1
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ebp - 0x34]
cmp edx, dword [ecx + 0x20]
je 0x5f40cc33
push 0x19c
push str.tooltip.cpp
call sym.MFC42D.DLL_Ordinal_1041
test eax, eax
je 0x5f40cc33
int3
xor eax, eax
test eax, eax
jne 0x5f40cc11
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ebp - 0x30]
cmp edx, dword [ecx + 0x20]
je 0x5f40cc5b
push 0x19d
push str.tooltip.cpp
call sym.MFC42D.DLL_Ordinal_1041
test eax, eax
je 0x5f40cc5b
int3
xor eax, eax
test eax, eax
jne 0x5f40cc39
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0x404
mov ecx, dword [ebp - 0x4c]
call sym.MFC42D.DLL_Ordinal_4475
test eax, eax
jne 0x5f40cc8c
push 0x19e
push str.tooltip.cpp
call sym.MFC42D.DLL_Ordinal_1041
test eax, eax
je 0x5f40cc8c
int3
xor edx, edx
test edx, edx
jne 0x5f40cc61
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [eax + 0x14]
push edx
lea ecx, [ebp - 0x80]
call sym.MFC42D.DLL_Ordinal_420
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x2c
push 0
lea eax, [ebp - 0x78]
push eax
call sub.MSVCRTD.dll_memset
add esp, 0xc
mov dword [ebp - 0x78], 0x28
lea ecx, [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xb8]
call dword [edx + 0x6c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
sub eax, 0xffffffff
neg eax
sbb eax, eax
and eax, dword [ebp - 0xb8]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0xd4]
cmp edx, dword [ebp - 0x48]
jne 0x5f40cd29
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0xd0]
cmp ecx, dword [ebp - 0x84]
je 0x5f40ce7d
cmp dword [ebp - 0x48], 0xffffffff
je 0x5f40ce0a
mov ecx, 0xb
lea esi, [ebp - 0x78]
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x38]
and edx, 0x3fffffff
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0x28]
and ecx, 0x400
test ecx, ecx
je 0x5f40cd68
mov edx, dword [ebp - 0x38]
or edx, 0x20
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x404
mov ecx, dword [ebp - 0x4c]
call sym.MFC42D.DLL_Ordinal_4475
test eax, eax
jne 0x5f40cd93
push 0x1b3
push str.tooltip.cpp
call sym.MFC42D.DLL_Ordinal_1041
test eax, eax
je 0x5f40cd93
int3
xor ecx, ecx
test ecx, ecx
jne 0x5f40cd68
mov edx, dword [ebp - 0x74]
and edx, 0x40000000
test edx, edx
jne 0x5f40cdb5
mov ecx, dword [ebp - 0xb8]
call sym.MFC42D.DLL_Ordinal_3387
test eax, eax
je 0x5f40ce08
push 0
push 1
push 0x401
mov ecx, dword [ebp - 0x4c]
call sym.MFC42D.DLL_Ordinal_4475
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0x28]
and ecx, 0x400
test ecx, ecx
je 0x5f40cdec
lea edx, [ebp - 0x3c]
push edx
push 1
push 0x411
mov ecx, dword [ebp - 0x4c]
call sym.MFC42D.DLL_Ordinal_4475
push 0x213
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x5f40ce1b
push 0
push 0
push 0x401
mov ecx, dword [ebp - 0x4c]
call sym.MFC42D.DLL_Ordinal_4475
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.5f40c826
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 0xd8], 0x28
jb 0x5f40ce4d
mov edx, dword [ebp - 0x40]
add edx, 0xd8
push edx
push 0
push 0x405
mov ecx, dword [ebp - 0x4c]
call sym.MFC42D.DLL_Ordinal_4475
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x84]
mov dword [eax + 0xd0], ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x48]
mov dword [edx + 0xd4], eax
mov edi, dword [ebp - 0x40]
add edi, 0xd8
mov ecx, 0xb
lea esi, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
jmp 0x5f40cedf
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx + 0x28]
and edx, 0x400
test edx, edx
je 0x5f40cecc
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp - 0x94]
and ecx, 0xffff
mov edx, dword [ebp - 0x90]
and edx, 0xffff
shl edx, 0x10
or ecx, edx
push ecx
push 0
push 0x412
mov ecx, dword [ebp - 0x4c]
call sym.MFC42D.DLL_Ordinal_4475
jmp 0x5f40cedf
cmp dword [ebp - 0x48], 0xffffffff
je 0x5f40cedf
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.5f40c826
cmp dword [ebp - 0x54], 0xffffffff
je 0x5f40cef8
cmp dword [ebp - 0x58], 0
jne 0x5f40cef8
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
jmp 0x5f40d052
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0x28]
and ecx, 0x401
test ecx, ecx
je 0x5f40d052
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call sym.MFC42D.DLL_Ordinal_2217
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x5f40cf61
mov ecx, dword [ebp - 0x98]
cmp ecx, dword [ebp - 0xb8]
je 0x5f40cf61
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x28]
and eax, 0x401
test eax, eax
jne 0x5f40cf61
mov ecx, dword [ebp - 0x98]
call sym.MFC42D.DLL_Ordinal_2790
mov dword [ebp - 0x98], eax
jmp 0x5f40cf25
mov ecx, dword [ebp - 0x98]
cmp ecx, dword [ebp - 0xb8]
je 0x5f40cf74
jmp 0x5f40d052
cmp dword [ebp - 0x10], 0x100
jb 0x5f40cf86
cmp dword [ebp - 0x10], 0x108
jbe 0x5f40cfa4
cmp dword [ebp - 0x10], 0x104
jb 0x5f40cf98
cmp dword [ebp - 0x10], 0x107
jbe 0x5f40cfa4
mov dword [ebp - 0xc8], 0
jmp 0x5f40cfae
mov dword [ebp - 0xc8], 1
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0x28]
and ecx, 0x400
test ecx, ecx
jne 0x5f40d052
cmp dword [ebp - 0x9c], 0
jne 0x5f40d046
cmp dword [ebp - 0x10], 0x201
je 0x5f40d046
cmp dword [ebp - 0x10], 0x203
je 0x5f40d046
cmp dword [ebp - 0x10], 0x204
je 0x5f40d046
cmp dword [ebp - 0x10], 0x206
je 0x5f40d046
cmp dword [ebp - 0x10], 0x207
je 0x5f40d046
cmp dword [ebp - 0x10], 0x209
je 0x5f40d046
cmp dword [ebp - 0x10], 0xa1
je 0x5f40d046
cmp dword [ebp - 0x10], 0xa3
je 0x5f40d046
cmp dword [ebp - 0x10], 0xa4
je 0x5f40d046
cmp dword [ebp - 0x10], 0xa6
je 0x5f40d046
cmp dword [ebp - 0x10], 0xa7
je 0x5f40d046
cmp dword [ebp - 0x10], 0xa9
jne 0x5f40d052
mov edx, dword [ebp - 0x9c]
push edx
call sym.MFC42D.DLL_Ordinal_1349
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4