Function at 0x519050
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
push ebx
push esi
xor ebx, ebx
sub eax, 5
push edi
je 0x519458
sub eax, 3
je 0x5192b9
dec eax
jne 0x5198c4
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [edi + 0x94]
push eax
mov eax, edi
call fcn.00518fd0
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x24], esi
je 0x5198c4
cmp esi, 5
jne 0x5192ab
fld qword [edi + 0x150]
mov eax, dword [edi + 0x158]
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x28]
fld qword [edi + 0x148]
lea ebx, [esp + 0x1c]
fstp qword [esp]
push ecx
call fcn.00517020
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0x10]
sub edx, ecx
mov dword [edi + 0x68], edx
mov edx, dword [esp + 0xc]
sub edx, eax
mov dword [edi + 0x6c], edx
mov dword [edi + 0x70], ecx
mov dword [edi + 0x74], eax
call dword [sym.imp.USER32.dll_GetMessageTime]
mov dword [edi + 0x8c], eax
test byte [edi], 8
jne 0x5191f4
mov eax, dword [0x621c78]
xor esi, esi
push esi
push eax
push esi
mov ebx, edi
mov ecx, dword [ebx + 0x3c]
push ecx
push esi
push esi
push esi
push esi
push SysReAllocString
push esi
push 0x5d4d38
push esi
call fcn.00405460
lea edi, [esp + 0x60]
mov dword [ebx + 0x164], eax
call fcn.00517a60
lea edi, [ebx + 0x168]
mov dword [edi], 0x2c
test byte [ebx + 4], 4
je 0x51915b
mov dword [edi + 4], 0xa0
mov edx, dword [ebx + 0x40]
mov dword [edi + 0xc], edx
jmp 0x519168
mov dword [edi + 4], 0xa1
mov eax, dword [ebx + 0x3c]
mov dword [edi + 0xc], eax
mov ecx, dword [ebx + 0x3c]
mov dword [edi + 8], ecx
mov edx, dword [0x621c78]
mov dword [edi + 0x20], edx
push edi
lea eax, [esp + 0x64]
mov dword [edi + 0x24], eax
push esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], esi
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], esi
mov ecx, dword [ebx + 0x164]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x432
push ecx
call esi
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [0x611d2c]
mov eax, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [0x611d28]
movzx edx, ax
mov eax, dword [esp + 0x10]
add eax, ecx
mov ecx, dword [ebx + 0x164]
movzx eax, ax
shl edx, 0x10
or edx, eax
push edx
push 0
push 0x412
push ecx
call esi
mov edx, dword [ebx + 0x164]
push edi
push 1
push 0x411
push edx
call esi
mov esi, dword [esp + 0x24]
mov edi, dword [ebp + 8]
fld qword [edi + 0x148]
mov eax, dword [edi + 0x158]
fstp qword [edi + 0x78]
mov dword [edi + 0x88], eax
fld qword [edi + 0x150]
fstp qword [edi + 0x80]
mov ecx, dword [edi + 0x3c]
push ecx
call dword [sym.imp.USER32.dll_HideCaret]
mov edx, dword [edi + 0x3c]
push edx
call dword [sym.imp.USER32.dll_SetCapture]
mov ebx, dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [edi + 0x48]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x30]
mov dword [esp + 0x38], ecx
mov ecx, dword [edi + 0x3c]
push eax
push ecx
mov dword [edi + 0x90], esi
mov dword [esp + 0x44], edx
call ebx
mov eax, dword [edi + 0x3c]
lea edx, [esp + 0x38]
push edx
push eax
call ebx
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_ClipCursor]
cmp esi, 0xfffffffd
je 0x51945b
mov ecx, dword [edi + 8]
mov edx, 1
shl edx, cl
mov ecx, dword [edi + 0x2a4]
push 0
lea eax, [edi + 0xc]
dec edx
push edx
mov edx, dword [edi + 0x40]
push eax
push 9
push ecx
push edx
push edi
call dword [edi + 0x2a8]
jmp 0x51945b
cmp esi, 0xfffffffd
je 0x519218
jmp 0x5191f7
call dword [sym.imp.USER32.dll_GetCapture]
mov edi, dword [ebp + 8]
cmp eax, dword [edi + 0x3c]
jne 0x5198c4
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
cmp dword [edi + 0x90], 5
jne 0x519324
test byte [edi], 8
jne 0x5192f4
mov eax, dword [edi + 0x164]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [edi + 8]
mov edx, 1
shl edx, cl
mov ecx, dword [edi + 0x2a4]
push 0
lea eax, [edi + 0xc]
dec edx
push edx
mov edx, dword [edi + 0x40]
push eax
push 4
push ecx
push edx
push edi
call dword [edi + 0x2a8]
mov dword [edi + 0x198], 0xffffffff
cmp dword [edi + 0x90], 0xfffffffd
jne 0x5193d9
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x18]
push eax
mov eax, edi
call fcn.00518fd0
cmp eax, dword [edi + 0x90]
jne 0x5193d9
mov esi, dword [esp + 0x18]
cmp esi, dword [edi + 0x94]
jne 0x5193d9
push 0x11
mov ebx, 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, dword [edi]
xor ecx, ecx
test ax, ax
setl cl
test dl, 0x20
mov eax, ecx
je 0x5193a1
mov ecx, dword [edi + 0x158]
test ecx, ecx
je 0x5193a1
test eax, eax
mov ecx, esi
mov eax, ebx
je 0x519397
shl eax, cl
not eax
mov dword [edi + 0x19c], eax
jmp 0x5193c0
shl eax, cl
xor dword [edi + 0x19c], eax
jmp 0x5193c0
test eax, eax
mov ecx, esi
mov eax, 1
je 0x5193b8
shl eax, cl
not eax
mov dword [edi + 0x9c], eax
jmp 0x5193c0
shl eax, cl
xor dword [edi + 0x9c], eax
test dl, 2
je 0x5193cb
mov dword [edi + 0x198], esi
push 0x2710
push 1
mov esi, edi
call fcn.005173d0
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x3c]
and eax, 0xfffffbff
push ecx
mov dword [edi + 4], eax
call dword [sym.imp.USER32.dll_ShowCaret]
push 0x2710
push 1
mov esi, edi
mov dword [edi + 0x90], 0xffffffff
call fcn.005173d0
mov ecx, dword [edi + 8]
mov edx, 1
shl edx, cl
mov ecx, dword [edi + 0x2a4]
push ebx
lea eax, [edi + 0xc]
dec edx
push edx
mov edx, dword [edi + 0x40]
push eax
push 8
push ecx
push edx
push edi
call dword [edi + 0x2a8]
mov ecx, dword [edi + 0x3c]
push 0
lea eax, [edi + 0x48]
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
test byte [edi + 4], 4
jne 0x5198c4
mov edx, dword [edi + 0x3c]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 8]
cmp dword [edi + 0x90], 5
jne 0x5198c4
mov ecx, dword [edi + 4]
test cl, 1
jne 0x5198c4
test ch, 0x40
jne 0x5198c4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ebx, ecx
shl ebx, 0x16
lea esi, [edi + 0x158]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
sar ebx, 0x1f
test eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], edx
je 0x5194ad
mov dword [edi + 0x19c], 0
mov edx, ebx
shl edx, 0xa
xor edx, ecx
and edx, 0x400
xor edx, ecx
mov ecx, dword [ebp + 0x10]
mov dword [edi + 4], edx
cmp dword [edi + 0x74], ecx
jne 0x5194d3
mov edx, dword [ebp + 0xc]
cmp dword [edi + 0x70], edx
je 0x519813
test ebx, ebx
je 0x5196a6
fld qword [edi + 0x150]
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x1c]
fld qword [edi + 0x148]
lea ebx, [esp + 0x34]
fstp qword [esp]
push ecx
call fcn.00517020
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x24]
mov edx, dword [ebx + 0x6c]
mov ecx, dword [esp + 0xc]
mov eax, dword [ebx + 0x68]
sub edi, edx
mov dword [esp + 0x24], edi
mov edi, dword [esi]
sub ecx, eax
cmp edi, 8
ja case.0x51952a.1
movzx eax, byte [edi + 0x5198d8]
jmp dword [eax*4 + 0x5198d0]
cmp dword [ebx + 0x194], 2
jne 0x519544
mov dword [esp + 0xc], 0
jmp 0x519558
mov eax, dword [ebp + 0xc]
sub eax, ecx
js 0x51954e
inc eax
jmp 0x51954f
dec eax
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fmul qword [0x5d9300]
fadd qword [ebx + 0x148]
fcom qword [0x5d92f0]
fnstsw ax
test ah, 5
jp 0x51957f
fstp st(0)
fld qword [0x5d92f0]
jmp 0x519594
fcom qword [0x5d6138]
fnstsw ax
test ah, 0x41
jne 0x519594
fstp st(0)
fld qword [0x5d6138]
fld qword [ebx + 0x148]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x5195dd
fst qword [ebx + 0x148]
sub esp, 0x10
fld qword [ebx + 0x150]
lea ecx, [esp + 0x1c]
fstp qword [esp + 8]
mov eax, edi
mov edi, dword [ebp + 8]
fstp qword [esp]
push ecx
lea ebx, [esp + 0x3c]
call fcn.00517020
mov edx, dword [esp + 0xc]
sub edx, dword [edi + 0x68]
mov dword [esp + 0x1c], edx
mov ebx, edi
jmp case.0x51952a.1
fstp st(0)
mov esi, dword [esi]
cmp esi, 6
ja case.0x5195f1.3
movzx eax, byte [esi + 0x5198ec]
jmp dword [eax*4 + 0x5198e4]
cmp dword [ebx + 0x194], 1
jne 0x51960b
mov dword [esp + 0xc], 0
jmp 0x519621
mov eax, dword [ebp + 0x10]
sub eax, dword [esp + 0x24]
js 0x519617
inc eax
jmp 0x519618
dec eax
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fmul qword [0x5d9300]
fsubr qword [ebx + 0x150]
fcom qword [0x5d92f0]
fnstsw ax
test ah, 5
jp 0x519648
fstp st(0)
fld qword [0x5d92f0]
jmp 0x51965d
fcom qword [0x5d6138]
fnstsw ax
test ah, 0x41
jne 0x51965d
fstp st(0)
fld qword [0x5d6138]
fld qword [ebx + 0x150]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x5196ce
mov edi, dword [ebp + 8]
fst qword [ebx + 0x150]
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x38]
fld qword [ebx + 0x148]
mov eax, esi
fstp qword [esp]
push ecx
lea ebx, [esp + 0x20]
call fcn.00517020
mov edx, dword [esp + 0xc]
sub edx, dword [edi + 0x6c]
mov dword [esp + 0x20], edx
mov ebx, edi
jmp case.0x5195f1.3
mov edx, dword [edi + 0x6c]
mov eax, dword [edi + 0x68]
add edx, ecx
add eax, dword [ebp + 0xc]
lea ecx, [edi + 0x150]
push ecx
mov ecx, dword [ebp + 8]
add edi, 0x148
push edi
mov edi, esi
call fcn.00517270
mov ebx, dword [ebp + 8]
jmp case.0x5195f1.3
fstp st(0)
mov esi, ebx
call fcn.00517b90
test byte [ebx], 8
jne 0x51980c
lea edi, [esp + 0x60]
call fcn.00517a60
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x164]
lea eax, [esi + 0x168]
push eax
push 0
push 0x436
mov edx, edi
push ecx
mov dword [esi + 0x18c], edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x3c]
push ecx
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edi, dword [esp + 0x14]
mov ecx, dword [0x611d2c]
mov ebx, dword [esp + 0x10]
mov eax, dword [0x611d28]
add edi, ecx
add ebx, eax
mov dword [esp + 0x14], edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4e
mov dword [esp + 0x14], ebx
call edi
push 0x4f
mov ebx, eax
call edi
push 0x4d
mov dword [esp + 0x50], eax
call edi
push 0x4c
mov dword [esp + 0x10], eax
call edi
mov edx, dword [esp + 0xc]
mov edi, eax
add dword [esp + 0x4c], edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x64]
push ecx
add ebx, edi
call fcn.004049f0
push eax
lea edx, [esp + 0x68]
push edx
push 0x64
call sym.vidcap60.exe__SfGetUIFont_4
push eax
call sym.vidcap60.exe__SfGetTextExtent_16
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
add eax, 0x10
lea edx, [eax + ecx]
cmp edx, ebx
mov dword [esp + 0x28], eax
jle 0x5197b9
sub ebx, eax
mov ecx, ebx
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
lea ebx, [edx + eax]
cmp ebx, dword [esp + 0x4c]
jle 0x5197d4
mov eax, dword [esp + 0x4c]
sub eax, edx
mov dword [esp + 0x14], eax
cmp ecx, edi
jge 0x5197de
mov ecx, edi
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0xc]
cmp eax, edx
jge 0x5197ec
mov eax, edx
mov dword [esp + 0x14], eax
mov edx, dword [esi + 0x164]
movzx eax, ax
movzx ecx, cx
shl eax, 0x10
or eax, ecx
push eax
push 0
push 0x412
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esp + 0x18]
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], ecx
call dword [sym.imp.USER32.dll_GetMessageTime]
test ebx, ebx
mov dword [edi + 0x8c], eax
je 0x519875
mov edx, dword [ebp + 0xc]
cmp dword [esp + 0x1c], edx
jne 0x519843
mov eax, dword [ebp + 0x10]
cmp dword [esp + 0x20], eax
je 0x519875
mov ecx, dword [edi + 4]
mov edx, dword [edi + 0x3c]
or ecx, 0x800
mov dword [edi + 4], ecx
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetCursorPos]
and dword [edi + 4], 0xfffff7ff
lea ebx, [edi + 0xc]
push ebx
lea edx, [esp + 0x44]
push edx
push edi
call fcn.00517340
push 0x2710
push 1
mov esi, edi
call fcn.005173d0
push ebx
lea eax, [esp + 0x44]
push eax
push edi
call fcn.00517380
test eax, eax
jne 0x5198c4
mov ecx, dword [edi + 8]
push eax
mov eax, dword [edi + 0x2a4]
mov edx, 1
shl edx, cl
mov ecx, dword [edi + 0x40]
dec edx
push edx
push ebx
push 5
push eax
push ecx
push edi
call dword [edi + 0x2a8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc