Function at 0x6c37b2f8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xdc
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [0x6c3c65f8]
cmp dword [ebx + 4], eax
je 0x6c37b348
mov dword [esp + 8], str._gdk_input_other_event:_not_wintab_window_
mov dword [esp + 4], 0x10
mov dword [esp], 0x6c3be015
call sym._g_log
xor eax, eax
jmp 0x6c37b340
fstp st(0)
fstp st(0)
jmp 0x6c37b340
fstp st(0)
fstp st(0)
nop
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call sym.libgdk_win32_2.0_0.dll_gdk_window_at_pointer
mov dword [ebp - 0x68], eax
test eax, eax
je 0x6c37b6d4
mov ecx, dword [ebp - 0x68]
mov dword [esp], ecx
call sym._g_object_ref
mov esi, dword [ebp - 0x68]
mov dword [esp], esi
call sym.libgdk_win32_2.0_0.dll_gdk_drawable_get_display
test dword [0x6c3c60a4], 0x402
jne 0x6c37b3d0
cmp dword [edi + 4], 0x7ff0
je 0x6c37b41c
call sym.libgdk_win32_2.0_0.dll_gdk_window_object_get_type
mov dword [ebp - 0x6c], eax
mov dword [esp + 4], eax
mov esi, dword [ebp - 0x68]
mov dword [esp], esi
call sym._g_type_check_instance_cast
mov ecx, eax
mov eax, dword [edi + 4]
cmp eax, 0x7ff0
je 0x6c37b4b0
cmp eax, 0x7ff5
je 0x6c37b448
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x84], edx
call sym._gdk_drawable_impl_win32_get_type
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx + 0xc]
mov dword [esp], eax
call sym._g_type_check_instance_cast
mov dword [esp + 0xc], esi
mov edx, dword [ebp - 0x84]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
mov dword [esp], str._gdk_input_other_event:_window_p__d_d_n
call sym._g_print
jmp 0x6c37b387
lea eax, [ebp - 0x4c]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp + 4], eax
mov eax, dword [edi + 0xc]
mov dword [esp], eax
call dword [0x6c3c65fc]
sub esp, 0xc
test eax, eax
jne 0x6c37b394
xor eax, eax
jmp 0x6c37b3c8
cmp word [edi + 0xc], 0
je 0x6c37b6e4
mov dword [ebx], 0x14
mov eax, 1
call sym._set_ignore_core
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call sym.__gdk_win32_get_next_tick
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 0
test dword [0x6c3c60a4], 0x402
je 0x6c37b71c
cmp dword [ebx], 0x14
je 0x6c37b728
mov eax, 0x6c3be3d4
mov dword [esp + 4], eax
mov dword [esp], str.WINTAB_proximity__s_n
call sym._g_print
mov eax, 1
jmp 0x6c37b340
mov esi, dword [0x6c3c65c8]
test esi, esi
jne 0x6c37b6f8
mov eax, dword [ebp - 0x68]
cmp eax, dword [0x6c3c65b8]
je 0x6c37b73e
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x70], edx
mov edx, dword [edi + 0xc]
mov eax, dword [0x6c3c8ff4]
test eax, eax
je 0x6c37b3c6
mov dword [ebp - 0x78], ecx
jmp 0x6c37b4f3
mov eax, dword [eax + 4]
test eax, eax
je 0x6c37b340
mov esi, dword [eax]
cmp edx, dword [esi + 0x38]
jne 0x6c37b4e8
mov ecx, dword [ebp - 0x70]
cmp ecx, dword [esi + 0x3c]
jne 0x6c37b4e8
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0xbc], esi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6c37b3c6
mov esi, dword [esi + 0x40]
mov dword [ebp - 0x70], esi
and esi, 0x80
je 0x6c37b732
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0xc0]
mov dword [edx], eax
mov dword [ebp - 0x7c], 1
test dword [ebp - 0x70], 0x100
je 0x6c37b568
mov esi, dword [ebp - 0xbc]
mov esi, dword [esi + 0x34]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x7c]
mov dword [esi + eax*4], edx
inc eax
mov dword [ebp - 0x7c], eax
test dword [ebp - 0x70], 0x400
je 0x6c37b587
mov esi, dword [ebp - 0xbc]
mov esi, dword [esi + 0x34]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x7c]
mov dword [esi + eax*4], edx
inc eax
mov dword [ebp - 0x7c], eax
test dword [ebp - 0x70], 0x1000
je 0x6c37b696
mov esi, dword [ebp - 0x7c]
shl esi, 2
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x34]
add esi, eax
fld qword [0x6c3be6c8]
fld st(0)
fimul dword [ebp - 0x34]
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx + 0x50]
xor edx, edx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
fild qword [ebp - 0x78]
fld dword [0x6c3be6b4]
fmul st(1), st(0)
fxch st(2)
fdivrp st(1)
fst qword [esp]
mov dword [ebp - 0x84], ecx
fstp qword [ebp - 0x98]
fstp qword [ebp - 0xb8]
fstp qword [ebp - 0xa8]
call sym._cos
fld qword [ebp - 0xa8]
fimul dword [ebp - 0x30]
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx + 0x60]
xor edx, edx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
fild qword [ebp - 0x78]
fld qword [ebp - 0xb8]
fmulp st(1)
fdivp st(1)
fstp qword [esp]
fstp qword [ebp - 0xa8]
call sym._cos
fld qword [ebp - 0xa8]
fmul st(1)
fld dword [0x6c3be6c0]
fmul st(1), st(0)
fxch st(1)
fnstcw word [ebp - 0x62]
mov ax, word [ebp - 0x62]
mov ah, 0xc
mov word [ebp - 0x64], ax
fldcw word [ebp - 0x64]
fistp dword [esi]
fldcw word [ebp - 0x62]
fld qword [ebp - 0x98]
fstp qword [esp]
fstp qword [ebp - 0xb8]
fstp qword [ebp - 0xa8]
call sym._sin
fld qword [ebp - 0xa8]
fmulp st(1)
fld qword [ebp - 0xb8]
fmulp st(1)
fnstcw word [ebp - 0x62]
mov ax, word [ebp - 0x62]
mov ah, 0xc
mov word [ebp - 0x64], ax
fldcw word [ebp - 0x64]
fistp dword [esi + 4]
fldcw word [ebp - 0x62]
add dword [ebp - 0x7c], 2
mov ecx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x7c]
mov esi, dword [ebp - 0xbc]
cmp dword [esi + 0x1c], eax
je 0x6c37b77c
mov dword [esp + 0x10], str.k__gdkdev__info.num_axes
mov dword [esp + 0xc], str._gdk_input_other_event
mov dword [esp + 8], 0x3be
mov dword [esp + 4], str.gdkinput_win32.c
mov dword [esp], 0x6c3be015
call sym._g_assertion_message_expr
mov edx, dword [0x6c3c65b8]
mov dword [ebp - 0x68], edx
jmp 0x6c37b365
mov dword [ebx], 0x15
xor eax, eax
call sym._set_ignore_core
jmp 0x6c37b463
test dword [0x6c3c60a4], 0x402
je 0x6c37b3c6
mov dword [esp], str...._ignored_when_moving_sizing_n
call sym._g_print
xor eax, eax
jmp 0x6c37b340
mov eax, 1
jmp 0x6c37b340
mov eax, 0x6c3be3d1
jmp 0x6c37b496
mov dword [ebp - 0x7c], 0
jmp 0x6c37b549
mov edx, dword [0x6c3c65ec]
test edx, edx
jne 0x6c37b4cd
xor eax, eax
test dword [0x6c3c60a4], 0x402
je 0x6c37b340
mov dword [esp], str...._is_root_n
mov dword [ebp - 0x84], eax
call sym._g_print
mov eax, dword [ebp - 0x84]
jmp 0x6c37b340
mov edx, dword [ebp - 0x44]
mov eax, edx
and eax, 7
and edx, 0xfffffff8
mov esi, dword [eax*4 + 0x6c3be660]
or edx, esi
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x78], eax
cmp eax, edx
je 0x6c37ba44
mov esi, edx
xor esi, eax
mov dword [ebx + 0x28], 1
mov edx, 0x1f
mov eax, 1
mov dword [ebp - 0x80], ecx
mov ecx, esi
mov esi, dword [ebp - 0xbc]
jmp 0x6c37b7d8
shl eax, 1
inc dword [ebx + 0x28]
dec edx
je 0x6c37ba31
test eax, ecx
je 0x6c37b7cc
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0xbc], esi
test dword [ebp - 0x70], eax
jne 0x6c37ba1f
mov dword [ebx], 7
mov dword [ebp - 0x70], 0x200
xor eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0xbc]
mov dword [edx + 0x30], eax
mov eax, dword [0x6c3c65ec]
test eax, eax
je 0x6c37b88f
mov edx, dword [ebp - 0x6c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._g_type_check_instance_cast
mov esi, eax
call sym.__gdk_window_impl_win32_get_type
mov dword [esp + 4], eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call sym._g_type_check_instance_cast
mov edx, dword [eax + 0xac]
test edx, edx
je 0x6c37b9fc
mov ecx, dword [ebp - 0x70]
test dword [esi + 0x20], ecx
je 0x6c37b9fc
mov eax, dword [0x6c3c65f0]
test eax, eax
je 0x6c37b9fc
test dword [0x6c3c60a4], 0x402
jne 0x6c37bd1d
mov eax, dword [0x6c3c65ec]
mov dword [esp], eax
call sym._g_object_ref
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call sym._g_object_unref
mov edx, dword [0x6c3c65ec]
mov dword [ebp - 0x68], edx
mov ecx, esi
mov esi, dword [ebp - 0xbc]
mov dword [ebp - 0x78], esi
mov esi, ecx
mov dword [ebp - 0x7c], ebx
mov ebx, dword [ebp - 0x68]
mov dword [ebp - 0x80], edi
nop
call sym.__gdk_window_impl_win32_get_type
mov dword [esp + 4], eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call sym._g_type_check_instance_cast
mov edi, dword [eax + 0xac]
test edi, edi
je 0x6c37b8ce
mov eax, dword [ebp - 0x70]
test dword [esi + 0x20], eax
jne 0x6c37baa3
test dword [0x6c3c60a4], 0x402
jne 0x6c37b9e8
mov edi, dword [esi + 0x10]
mov edx, dword [ebp - 0x6c]
mov dword [esp + 4], edx
mov eax, dword [0x6c3c65b8]
mov dword [esp], eax
call sym._g_type_check_instance_cast
cmp edi, eax
je 0x6c37b3c6
mov ecx, dword [ebp - 0x70]
test dword [esi + 0x54], ecx
jne 0x6c37ba80
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
call sym._gdk_drawable_impl_win32_get_type
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._g_type_check_instance_cast
lea edx, [ebp - 0x28]
mov dword [esp + 4], edx
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call sym._ClientToScreen_8
sub esp, 8
mov dword [esp], ebx
call sym._g_object_unref
mov ebx, dword [esi + 0x10]
mov ecx, dword [ebp - 0x6c]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call sym._g_type_check_instance_cast
mov esi, eax
mov dword [esp], ebx
call sym._g_object_ref
call sym._gdk_drawable_impl_win32_get_type
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._g_type_check_instance_cast
lea edx, [ebp - 0x28]
mov dword [esp + 4], edx
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call sym._ScreenToClient_8
sub esp, 8
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edi
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x20], edx
test dword [0x6c3c60a4], 0x402
je 0x6c37b8a4
mov dword [ebp - 0x84], edx
call sym._gdk_drawable_impl_win32_get_type
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._g_type_check_instance_cast
mov edx, dword [ebp - 0x84]
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
mov dword [esp], str...._propagating_to__p__d_d_n
call sym._g_print
jmp 0x6c37b8a4
mov dword [esp], str...._not_selected_n
call sym._g_print
jmp 0x6c37b8de
test dword [0x6c3c60a4], 0x402
je 0x6c37b3c6
mov dword [esp], str...._grabber_doesnt_want_it_n
call sym._g_print
xor eax, eax
jmp 0x6c37b340
mov dword [ebx], 4
mov dword [ebp - 0x70], 0x100
jmp 0x6c37b7fb
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0xbc], esi
mov eax, 0x80000000
jmp 0x6c37b7e5
mov dword [ebx], 3
mov eax, dword [ebp - 0x78]
and eax, 1
cmp eax, 1
sbb esi, esi
and esi, 0xffffffd0
add esi, 0x34
mov dword [ebp - 0x70], esi
test byte [ebp - 0x78], 2
je 0x6c37ba6a
or esi, 0x50
mov dword [ebp - 0x70], esi
test byte [ebp - 0x78], 4
je 0x6c37b807
or dword [ebp - 0x70], 0x90
jmp 0x6c37b807
test dword [0x6c3c60a4], 0x402
je 0x6c37b3c6
mov dword [esp], str...._wants_ordinary_event__ignoring_this_n
call sym._g_print
xor eax, eax
jmp 0x6c37b340
mov dword [ebp - 0x68], ebx
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0xbc], ecx
mov ebx, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x80]
mov esi, dword [ebp - 0x68]
mov dword [esp], esi
call sym.__gdk_input_window_find
mov esi, eax
test eax, eax
je 0x6c37bcf1
mov eax, dword [ebp - 0xbc]
cmp dword [eax + 0x14], 2
jne 0x6c37bae2
xor eax, eax
cmp dword [esi + 4], 2
je 0x6c37b340
mov edx, dword [ebp - 0x68]
mov dword [ebx + 4], edx
mov dword [esp], 0x11
call sym._GetKeyState_4
push ecx
mov ecx, eax
shr ecx, 0xd
and ecx, 4
mov dword [ebp - 0x68], ecx
mov dword [esp], 0x10
call sym._GetKeyState_4
push edx
test ax, ax
js 0x6c37bce8
mov dword [esp], 0x12
call sym._GetKeyState_4
push ecx
test ax, ax
js 0x6c37bcdf
mov dword [esp], 0x14
call sym._GetKeyState_4
push edx
test al, 1
je 0x6c37bb41
or dword [ebp - 0x68], 2
mov eax, dword [ebx]
cmp eax, 4
je 0x6c37bc16
cmp eax, 7
je 0x6c37bc16
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call sym.__gdk_win32_get_next_tick
mov dword [ebx + 0xc], eax
mov word [ebx + 0x28], 0
mov eax, dword [ebp - 0xbc]
mov dword [ebx + 0x2c], eax
mov dword [esp + 4], 8
mov eax, dword [eax + 0x1c]
mov dword [esp], eax
call sym._g_malloc_n
mov dword [ebx + 0x20], eax
mov edx, dword [ebp - 0xbc]
mov ecx, dword [edx + 0x34]
lea edx, [ebx + 0x18]
mov dword [esp + 8], edx
lea edx, [ebx + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov edx, esi
mov eax, dword [ebp - 0xbc]
call sym._gdk_input_translate_coordinates
fld qword [ebx + 0x10]
fld st(0)
fiadd dword [esi + 8]
fstp qword [ebx + 0x30]
fld qword [ebx + 0x18]
fld st(0)
fiadd dword [esi + 0xc]
fstp qword [ebx + 0x38]
mov ecx, dword [ebp - 0xbc]
mov eax, dword [ecx + 0x30]
shl eax, 8
and eax, 0x1f00
or eax, dword [ebp - 0x68]
mov dword [ebx + 0x24], eax
mov eax, 1
test dword [0x6c3c60a4], 0x402
je 0x6c37b334
fstp qword [esp + 0xc]
fstp qword [esp + 4]
mov dword [esp], str.WINTAB_motion:__g__g_n
mov dword [ebp - 0x84], eax
call sym._g_print
mov eax, dword [ebp - 0x84]
jmp 0x6c37b340
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call sym.__gdk_win32_get_next_tick
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebx + 0x2c], eax
mov eax, dword [eax + 0x1c]
mov dword [esp + 4], 8
mov dword [esp], eax
call sym._g_malloc_n
mov dword [ebx + 0x20], eax
mov edx, dword [ebp - 0xbc]
mov ecx, dword [edx + 0x34]
lea edx, [ebx + 0x18]
mov dword [esp + 8], edx
lea edx, [ebx + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov edx, esi
mov eax, dword [ebp - 0xbc]
call sym._gdk_input_translate_coordinates
fld qword [ebx + 0x10]
fld st(0)
fiadd dword [esi + 8]
fstp qword [ebx + 0x30]
fld qword [ebx + 0x18]
fld st(0)
fiadd dword [esi + 0xc]
fstp qword [ebx + 0x38]
mov ecx, dword [ebp - 0xbc]
mov eax, dword [ecx + 0x30]
shl eax, 8
and eax, 0x1f00
or eax, dword [ebp - 0x68]
mov dword [ebx + 0x24], eax
mov eax, 1
test dword [0x6c3c60a4], 0x402
je 0x6c37b33a
mov edx, dword [ebx + 0x28]
mov eax, str.release
cmp dword [ebx], 4
je 0x6c37bd2e
fstp qword [esp + 0x14]
fstp qword [esp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], str.WINTAB_button__s:_d__g__g_n
call sym._g_print
mov eax, 1
jmp 0x6c37b340
or dword [ebp - 0x68], 8
jmp 0x6c37bb2c
or dword [ebp - 0x68], 1
jmp 0x6c37bb16
mov dword [esp + 0x10], str.input_window___NULL
mov dword [esp + 0xc], str._gdk_input_other_event
mov dword [esp + 8], 0x42a
mov dword [esp + 4], str.gdkinput_win32.c
mov dword [esp], 0x6c3be015
call sym._g_assertion_message_expr
mov dword [esp], str...._to_grabber_n
call sym._g_print
jmp 0x6c37b86c
mov eax, str.press
jmp 0x6c37bcb9