Function at 0x40fbf0
Capabilities:
Log keystrokes
Log keystrokes via polling
Open clipboard
Read clipboard data

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x148
mov eax, dword [ecx + 8]
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x11c], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 4], 0
mov dword [ebp - 0x120], eax
mov dword [esp], esi
call dword [sym.imp.user32.dll_GetWindowLongW]
sub esp, 8
mov edi, eax
cmp ebx, 0x117
ja 0x40fc60
cmp ebx, 0xff
ja 0x40fc90
lea eax, [ebx - 1]
cmp eax, 0x17
ja case.0x40fc9f.258
cmp ebx, 0x18
ja case.0x40fc9f.258
jmp dword [ebx*4 + 0x41511c]
cmp ebx, 0x20a
ja 0x40fcb0
cmp ebx, 0x1ff
jbe case.0x40fc9f.258
lea edx, [ebx - 0x201]
cmp edx, 9
ja case.default.0x40fc83
jmp dword [edx*4 + 0x415180]
lea eax, [ebx - 0x100]
cmp eax, 0x17
ja case.0x40fc9f.258
jmp dword [eax*4 + 0x4151a8]
cmp ebx, 0x401
jne case.0x40fc9f.258
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40fce0
cmp dword [eax + 0x64], 1
jne 0x40fce0
lea esi, [esi]
mov eax, edi
call sym._update_window
lea esi, [esi]
nop
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov ebx, dword [ebp - 0x120]
mov esi, dword [edi + 8]
mov eax, ebx
movsx ecx, word [esi + 0x86]
sar eax, 0x10
cdq
idiv ecx
movzx ecx, word [esi + 0x78]
add ecx, eax
movsx eax, bx
movsx ebx, word [esi + 0x84]
cdq
shl ecx, 0x10
idiv ebx
add ax, word [esi + 0x74]
movzx edx, ax
or edx, ecx
mov dword [esp], 0
mov ecx, dword [ebp - 0x11c]
mov eax, edi
call sym._record_mouse_input
jmp 0x40fce0
mov eax, dword [ebp - 0x120]
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x11c]
mov dword [esp + 8], eax
call dword [sym.imp.user32.dll_DefWindowProcW]
sub esp, 0x10
jmp 0x40fce2
mov ebx, dword [ebp - 0x120]
mov esi, dword [edi + 8]
mov eax, ebx
movsx ecx, word [esi + 0x86]
sar eax, 0x10
cdq
idiv ecx
movzx ecx, word [esi + 0x78]
add ecx, eax
movsx eax, bx
movsx ebx, word [esi + 0x84]
cdq
shl ecx, 0x10
idiv ebx
add ax, word [esi + 0x74]
mov dword [esp], 2
movzx edx, ax
mov eax, edi
or edx, ecx
mov ecx, dword [ebp - 0x11c]
call sym._record_mouse_input
xor eax, eax
jmp 0x40fce2
mov eax, dword [ebp - 0x120]
mov edx, dword [edi + 0x84]
movsx ecx, ax
sar eax, 0x10
test edx, edx
je 0x40fdf0
mov ebx, dword [ebp - 0x11c]
and ebx, 0xc
cmp ebx, dword [edx + 0x30]
je 0x410b07
mov esi, dword [edi + 8]
cdq
movsx ebx, word [esi + 0x86]
idiv ebx
movzx ebx, word [esi + 0x78]
movsx edx, word [esi + 0x84]
add ebx, eax
mov eax, ecx
mov ecx, edx
cdq
shl ebx, 0x10
idiv ecx
movzx ecx, word [esi + 0x74]
add ecx, eax
movzx edx, cx
or edx, ebx
jmp 0x40fd27
mov ecx, dword [edi + 0x84]
test ecx, ecx
je case.0x40fc83.517
mov edx, dword [ecx + 0x2c]
mov eax, dword [ecx + 0x14]
test edx, edx
jne 0x4109b0
test eax, eax
je case.0x40fc83.517
xor edx, edx
mov eax, edi
call sym._update_selection
mov ecx, dword [edi + 0x84]
mov esi, dword [ecx + 0x2c]
test esi, esi
je 0x4109b8
mov ebx, dword [ecx + 0x14]
test ebx, ebx
je 0x4109b8
mov dword [ecx + 0x14], 0
xor eax, eax
jmp 0x40fce2
mov ecx, dword [edi + 8]
mov esi, dword [ecx + 0x80]
mov eax, dword [ecx + 0x78]
inc esi
mov ebx, eax
sub esi, eax
cmp dword [ecx + 0x10], esi
jbe 0x410a50
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40fce0
lea eax, [ebp - 0x118]
mov dword [esp + 0xc], 0
mov dword [ebp - 0x118], 3
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x68
call dword [sym.imp.user32.dll_SystemParametersInfoW]
mov eax, dword [ebp - 0x11c]
mov edx, 0x88888889
sub esp, 0x10
sar eax, 0x10
neg eax
mov ecx, eax
imul edx
mov eax, ecx
sar eax, 0x1f
add edx, ecx
sar edx, 6
sub edx, eax
mov eax, dword [ebp - 0x118]
imul eax, edx
mov edx, dword [edi + 8]
mov ecx, dword [edx + 0x78]
add ebx, eax
mov eax, dword [edx + 0x10]
sub eax, esi
test ebx, ebx
mov dword [ebp - 0x11c], eax
mov eax, 0
cmovs ebx, eax
mov eax, dword [ebp - 0x11c]
cmp eax, ebx
cmova eax, ebx
cmp eax, ecx
je 0x40fce0
mov dword [edx + 0x78], eax
mov edx, dword [edi + 8]
lea eax, [eax + esi - 1]
mov dword [edx + 0x80], eax
mov eax, edi
call sym._update_window
xor eax, eax
jmp 0x40fce2
mov eax, dword [edi + 0x84]
test eax, eax
je case.0x40fc83.517
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40ff78
mov esi, dword [eax + 0x14]
test esi, esi
je case.0x40fc83.517
call dword [sym.imp.user32.dll_GetCapture]
cmp dword [edi + 0xa8], eax
jne 0x40fce0
mov ecx, dword [edi + 0x84]
mov ebx, dword [ecx + 0x14]
test ebx, ebx
je 0x40fce0
mov ebx, dword [edi + 8]
mov eax, dword [ebp - 0x120]
movsx esi, word [ebx + 0x86]
sar eax, 0x10
cdq
idiv esi
movzx esi, word [ebx + 0x78]
add esi, eax
movsx eax, word [ebp - 0x120]
mov word [ebp - 0x11c], si
movsx esi, word [ebx + 0x84]
cdq
idiv esi
mov edx, dword [ebp - 0x11c]
shl edx, 0x10
add ax, word [ebx + 0x74]
movzx eax, ax
or eax, edx
mov edx, dword [ecx + 0x18]
mov ecx, eax
mov eax, edi
call sym._move_selection
call dword [sym.imp.user32.dll_ReleaseCapture]
xor eax, eax
jmp 0x40fce2
cmp ebx, 0x104
mov eax, dword [ebp - 0x120]
sete dl
mov ecx, dword [ebp - 0x11c]
movzx edx, dl
mov dword [esp], eax
mov eax, edi
call sym._record_key_input
jmp 0x40fce0
mov eax, dword [edi + 0x84]
test eax, eax
je 0x410045
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x410aa0
cmp ebx, 0x100
jmp 0x410006
mov edx, dword [edi + 0x84]
test edx, edx
je 0x4108f0
mov eax, dword [ebp - 0x120]
shr eax, 0x10
je 0x4108f0
mov dword [esp + 4], 0
mov eax, dword [edi + 0xa8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetSystemMenu]
mov edx, eax
sub esp, 8
mov eax, edi
call sym._set_menu_details
jmp 0x40fce0
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40fce0
mov eax, dword [ebp - 0x11c]
cmp eax, 0x101
je case.0x410233.257
cmp eax, 0x102
je case.0x410233.258
mov eax, dword [ebp - 0x120]
mov dword [esp + 4], 0x112
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x11c]
mov dword [esp + 8], eax
call dword [sym.imp.user32.dll_DefWindowProcW]
sub esp, 0x10
jmp 0x40fce2
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40fce0
lea eax, [ebp - 0x118]
mov dword [ebp - 0x11c], eax
mov dword [esp + 4], eax
mov eax, dword [edi + 0xa8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_BeginPaint]
mov edx, dword [edi + 8]
sub esp, 8
mov esi, dword [edx + 0x78]
movsx eax, word [edx + 0x84]
movsx ebx, word [edx + 0x86]
mov ecx, dword [edx + 0x74]
mov dword [esp + 0x20], 0xcc0020
mov dword [ebp - 0x120], eax
mov eax, esi
imul eax, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x120]
imul eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x84]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x80]
inc eax
sub eax, esi
imul eax, ebx
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x7c]
mov dword [esp + 8], 0
inc eax
mov dword [esp + 4], 0
sub eax, ecx
imul eax, dword [ebp - 0x120]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x118]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_BitBlt]
mov eax, dword [edi + 0x84]
sub esp, 0x24
mov esi, dword [eax + 0x14]
test esi, esi
jne 0x410af5
mov eax, dword [ebp - 0x11c]
mov dword [esp + 4], eax
mov eax, dword [edi + 0xa8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_EndPaint]
sub esp, 8
jmp 0x40fce0
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40fce0
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40fce0
call dword [sym.imp.user32.dll_DestroyCaret]
xor eax, eax
jmp 0x40fce2
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40fce0
mov edx, dword [ebp - 0x11c]
sub edx, 0x101
cmp edx, 0x14
ja case.0x410233.259
jmp dword [edx*4 + 0x415208]
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40fce0
mov ebx, dword [ebp - 0x11c]
test ebx, ebx
jne 0x40fcd0
mov edx, dword [eax + 4]
test edx, edx
je 0x410275
mov dword [esp], edx
call dword [sym.imp.gdi32.dll_DeleteObject]
mov eax, dword [edi + 0x84]
sub esp, 4
mov dword [eax + 4], 0
xor eax, eax
jmp 0x40fce2
mov dword [edi + 0xa8], 0
mov dword [esp], 0
call dword [sym.imp.user32.dll_PostQuitMessage]
xor eax, eax
sub esp, 4
jmp 0x40fce2
mov eax, dword [ebp - 0x120]
mov ebx, dword [eax]
test byte [0x413080], 8
jne 0x410a20
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.user32.dll_SetWindowLongW]
mov eax, dword [ebx + 0x84]
mov dword [ebx + 0xa8], esi
sub esp, 0xc
test eax, eax
je 0x40fce0
mov dword [esp], esi
mov dword [esp + 4], 0
call dword [sym.imp.user32.dll_GetSystemMenu]
sub esp, 8
mov esi, eax
test eax, eax
je 0x40fce0
mov edi, dword [ebx + 0x84]
call dword [sym.imp.user32.dll_CreatePopupMenu]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40fce0
mov edx, 1
mov eax, esi
call sym._fill_menu.isra.0
mov eax, dword [ebx + 0x84]
xor edx, edx
mov eax, dword [eax + 0xc]
call sym._fill_menu.isra.0
mov ebx, dword [ebx + 0x84]
mov dword [esp], 0
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
mov dword [ebx], eax
sub esp, 4
xor eax, eax
jmp 0x40fce2
mov edx, dword [edi + 8]
mov eax, dword [edx + 0x80]
mov ecx, dword [edx + 0x78]
lea esi, [eax + 1]
mov eax, dword [edi + 0x84]
sub esi, ecx
test eax, eax
je 0x40fce0
mov ebx, dword [ebp - 0x11c]
movzx eax, bx
cmp bx, 5
ja case.0x4103a2.4
jmp dword [eax*4 + 0x41525c]
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40fce0
mov ecx, dword [edi + 8]
mov esi, dword [ebp - 0x11c]
mov ebx, dword [ecx + 0x74]
movzx eax, si
cmp si, 5
ja case.0x4103d7.4
jmp dword [eax*4 + 0x415274]
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40fce0
mov edx, dword [edi + 8]
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x40fce0
movsx ecx, word [edx + 0x86]
mov dword [esp + 0xc], ecx
movsx edx, word [edx + 0x84]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x10]
mov dword [esp + 4], eax
mov eax, dword [edi + 0xa8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_CreateCaret]
mov eax, edi
sub esp, 0x10
call sym._update_window_cursor
xor eax, eax
jmp 0x40fce2
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40fce0
cmp dword [eax + 0x64], 2
je 0x40fce0
mov ebx, dword [edi + 8]
mov eax, dword [ebp - 0x120]
movsx ecx, word [ebx + 0x86]
shr eax, 0x10
movsx ebx, word [ebx + 0x84]
cdq
idiv ecx
mov ecx, 0x14
cmp eax, 0x14
mov esi, eax
movzx eax, word [ebp - 0x120]
cmovl esi, ecx
cdq
idiv ebx
cmp eax, 0x14
cmovge ecx, eax
lea eax, [ebp - 0x118]
mov edx, eax
mov dword [ebp - 0x11c], eax
mov eax, edi
mov ebx, ecx
call sym._current_config
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], esi
cmp ebx, edx
jbe 0x4104c7
mov dword [ebp - 0xac], ebx
mov edx, ebx
mov eax, dword [ebp - 0xa8]
cmp esi, eax
jbe 0x4104d9
mov dword [ebp - 0xa8], esi
mov eax, esi
movsx ecx, word [ebp - 0x9c]
add ecx, ebx
cmp ecx, edx
jbe 0x4104ef
sub edx, ebx
mov word [ebp - 0x9c], dx
movsx edx, word [ebp - 0x9a]
add edx, esi
cmp edx, eax
jbe 0x410505
sub eax, esi
mov word [ebp - 0x9a], ax
mov edx, dword [ebp - 0x11c]
mov eax, edi
call sym._apply_config
xor eax, eax
jmp 0x40fce2
mov eax, dword [ebp - 0x120]
mov dword [esp + 4], 0x111
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x11c]
mov dword [esp + 8], eax
call dword [sym.imp.user32.dll_DefWindowProcW]
sub esp, 0x10
jmp 0x40fce2
mov ebx, dword [ebp - 0x11c]
shr ebx, 0x10
jmp 0x40ff0d
lea ebx, [ecx + 8]
jmp 0x40ff0d
lea ebx, [ecx - 8]
jmp 0x40ff0d
lea ebx, [ecx + 1]
jmp 0x40ff0d
lea ebx, [ecx - 1]
jmp 0x40ff0d
mov esi, dword [ebp - 0x11c]
shr esi, 0x10
lea esi, [esi]
mov eax, dword [ecx + 0x7c]
lea edx, [eax + 1]
mov eax, dword [ecx + 0xc]
sub edx, ebx
sub eax, edx
mov dword [ebp - 0x11c], edx
test esi, esi
mov edx, 0
cmovs esi, edx
cmp eax, esi
cmova eax, esi
cmp ebx, eax
je 0x40fce0
mov esi, dword [ebp - 0x11c]
mov dword [ecx + 0x74], eax
mov ecx, dword [edi + 8]
lea eax, [eax + esi - 1]
mov dword [ecx + 0x7c], eax
jmp 0x40fcd0
lea esi, [ebx + 8]
jmp 0x410588
lea esi, [ebx - 8]
jmp 0x410588
lea esi, [ebx + 1]
jmp 0x410588
lea esi, [ebx - 1]
jmp 0x410588
mov ebx, ecx
jmp 0x40ff0d
test byte [0x413080], 1
je 0x40fce0
mov eax, dword [ebp - 0x11c]
mov dword [esp + 0xc], str.Unhandled_yet_command:__Ix_n
mov dword [esp + 8], str.window_proc
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x413080
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
xor eax, eax
jmp 0x40fce2
mov esi, ebx
jmp 0x410588
xor edx, edx
mov eax, edi
call sym._config_dialog
xor eax, eax
jmp 0x40fce2
mov edx, 1
mov eax, edi
call sym._config_dialog
xor eax, eax
jmp 0x40fce2
xor esi, esi
xor edx, edx
xor ecx, ecx
xor ebx, ebx
mov word [eax + 0x1a], si
mov eax, dword [edi + 0x84]
mov word [eax + 0x18], dx
mov eax, dword [edi + 0x84]
mov word [eax + 0x1e], cx
mov eax, dword [edi + 0x84]
mov word [eax + 0x1c], bx
lea esi, [esi]
mov eax, edi
xor edx, edx
call sym._update_selection
mov eax, dword [edi + 0x84]
mov dword [eax + 0x14], 1
jmp 0x40fce0
mov eax, dword [edi + 0xa8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_OpenClipboard]
sub esp, 4
test eax, eax
je 0x40fce0
mov dword [esp], 0xd
call dword [sym.imp.user32.dll_GetClipboardData]
mov dword [ebp - 0x128], eax
sub esp, 4
mov esi, eax
test eax, eax
je 0x410805
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ebx, eax
push ecx
test eax, eax
je 0x410805
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GlobalSize]
mov word [ebp - 0x118], 1
shr eax, 1
push edx
mov word [ebp - 0x110], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x120], eax
je 0x4107f5
mov eax, dword [ebp - 0x120]
xor esi, esi
dec eax
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x11c], eax
movzx eax, word [ebx + esi*2]
mov dword [esp], eax
call dword [sym.imp.user32.dll_VkKeyScanW]
sub esp, 4
movzx ecx, al
movzx eax, al
mov word [ebp - 0x10e], cx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_MapVirtualKeyW]
mov word [ebp - 0x10c], ax
movzx eax, word [ebx + esi*2]
sub esp, 8
mov dword [esp + 8], 2
mov word [ebp - 0x10a], ax
mov eax, dword [ebp - 0x118]
mov dword [esp], edi
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0xf4], eax
xor eax, eax
cmp esi, dword [ebp - 0x124]
sete al
inc esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x11c]
mov dword [esp + 4], eax
call sym._write_console_input
cmp dword [ebp - 0x120], esi
jne 0x410742
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push esi
call dword [sym.imp.user32.dll_CloseClipboard]
jmp 0x40fce0
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x40fce0
mov dword [eax + 0x14], 0
xor edx, edx
mov eax, edi
call sym._update_selection
mov eax, edi
call sym._copy_selection
xor eax, eax
jmp 0x40fce2
xor ecx, ecx
xor ebx, ebx
mov word [eax + 0x1a], cx
mov eax, dword [edi + 0x84]
mov word [eax + 0x18], bx
mov eax, dword [edi + 8]
mov edx, dword [edi + 0x84]
mov eax, dword [eax + 0xc]
dec eax
mov word [edx + 0x1c], ax
mov eax, dword [edi + 8]
mov edx, dword [edi + 0x84]
mov eax, dword [eax + 0x10]
dec eax
mov word [edx + 0x1e], ax
jmp 0x410680
mov eax, dword [edi + 0x84]
test eax, eax
je 0x410898
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x410920
mov esi, dword [eax + 0x14]
test esi, esi
jne 0x410920
mov ebx, dword [ebp - 0x120]
mov esi, dword [edi + 8]
mov eax, ebx
movsx ecx, word [esi + 0x86]
sar eax, 0x10
cdq
idiv ecx
movzx ecx, word [esi + 0x78]
add ecx, eax
movsx eax, bx
movsx ebx, word [esi + 0x84]
cdq
shl ecx, 0x10
idiv ebx
add ax, word [esi + 0x74]
mov dword [esp], 1
movzx edx, ax
mov eax, edi
or edx, ecx
mov ecx, dword [ebp - 0x11c]
call sym._record_mouse_input
xor eax, eax
jmp 0x40fce2
mov eax, dword [ebp - 0x120]
mov dword [esp + 4], 0x117
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x11c]
mov dword [esp + 8], eax
call dword [sym.imp.user32.dll_DefWindowProcW]
sub esp, 0x10
jmp 0x40fce2
call dword [sym.imp.user32.dll_GetCapture]
cmp dword [edi + 0xa8], eax
jne 0x40fce0
mov ecx, dword [edi + 0x84]
mov ebx, dword [ecx + 0x14]
test ebx, ebx
je 0x40fce0
test byte [ebp - 0x11c], 1
je 0x40fce0
mov ebx, dword [edi + 8]
mov eax, dword [ebp - 0x120]
movsx esi, word [ebx + 0x86]
sar eax, 0x10
cdq
idiv esi
movzx esi, word [ebx + 0x78]
add esi, eax
movsx eax, word [ebp - 0x120]
mov word [ebp - 0x11c], si
movsx esi, word [ebx + 0x84]
cdq
idiv esi
mov edx, dword [ebp - 0x11c]
shl edx, 0x10
add ax, word [ebx + 0x74]
movzx eax, ax
or eax, edx
mov edx, dword [ecx + 0x18]
mov ecx, eax
mov eax, edi
call sym._move_selection
xor eax, eax
jmp 0x40fce2
test eax, eax
jne 0x40fe4c
mov ebx, dword [edi + 8]
mov eax, dword [ebp - 0x120]
movsx esi, word [ebx + 0x86]
sar eax, 0x10
cdq
idiv esi
movsx edx, word [ebx + 0x84]
movzx esi, word [ebx + 0x78]
mov dword [ebp - 0x11c], edx
add esi, eax
movsx eax, word [ebp - 0x120]
cdq
idiv dword [ebp - 0x11c]
add ax, word [ebx + 0x74]
mov word [ecx + 0x1e], si
mov word [ecx + 0x1c], ax
mov eax, dword [edi + 0x84]
mov edx, dword [eax + 0x1c]
mov dword [eax + 0x18], edx
mov eax, dword [edi + 0xa8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetCapture]
sub esp, 4
jmp 0x410680
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x4150fc
mov dword [esp + 8], str.window_create
mov dword [esp + 4], 0x413080
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x4102c5
mov eax, dword [ebp - 0x120]
movsx esi, word [ecx + 0x86]
sar eax, 0x10
cdq
idiv esi
movsx esi, word [ecx + 0x84]
add ebx, eax
movsx eax, word [ebp - 0x120]
cdq
idiv esi
add ax, word [ecx + 0x74]
mov ecx, ebx
mov dword [esp], 4
shl ecx, 0x10
movzx edx, ax
mov eax, edi
or edx, ecx
mov ecx, dword [ebp - 0x11c]
call sym._record_mouse_input
xor eax, eax
jmp 0x40fce2
cmp ebx, 0x100
jne 0x40fce0
lea eax, [ebp - 0x118]
call sym._get_ctrl_state
and eax, 0xffffff1f
je 0x410bcf
cmp eax, 0x10
je 0x410b85
cmp dword [ebp - 0x11c], 0x1f
jbe 0x40fce0
mov eax, edi
xor edx, edx
call sym._update_selection
mov eax, dword [edi + 0x84]
mov dword [eax + 0x14], 0
xor eax, eax
jmp 0x40fce2
mov edx, dword [ebp - 0x118]
mov eax, edi
call sym._update_selection
jmp 0x4101bb
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], ecx
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.user32.dll_ClientToScreen]
mov eax, dword [edi + 0x84]
sub esp, 8
mov edx, dword [eax + 0xc]
mov eax, edi
call sym._set_menu_details
mov eax, dword [ebp - 0x114]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x118]
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 2
mov eax, dword [edi + 0x84]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call dword [sym.imp.user32.dll_TrackPopupMenu]
xor eax, eax
sub esp, 0x1c
jmp 0x40fce2
mov eax, dword [ebp - 0x11c]
cmp eax, 0x27
je 0x410ce0
ja 0x410ca0
cmp eax, 0x25
je 0x410cc0
cmp eax, 0x26
jne case.0x410be1.14
mov ecx, dword [edi + 0x84]
movzx eax, word [ecx + 0x1e]
mov edx, dword [ecx + 0x18]
dec eax
movzx ecx, word [ecx + 0x1c]
shl eax, 0x10
or ecx, eax
mov eax, edi
call sym._move_selection
jmp 0x40fce0
mov eax, dword [ebp - 0x11c]
sub eax, 0xd
cmp eax, 0x1b
ja case.0x410be1.14
jmp dword [eax*4 + 0x41528c]
mov ebx, dword [edi + 0x84]
movzx eax, word [ebx + 0x1e]
lea ecx, [eax + 1]
movzx eax, word [ebx + 0x1a]
inc eax
movzx edx, word [ebx + 0x18]
shl eax, 0x10
or edx, eax
mov eax, ecx
movzx ecx, word [ebx + 0x1c]
shl eax, 0x10
or ecx, eax
mov eax, edi
call sym._move_selection
jmp 0x40fce0
mov eax, dword [edi + 0x84]
mov edx, dword [eax + 0x18]
movzx ebx, word [eax + 0x18]
mov ecx, dword [eax + 0x1c]
movzx eax, word [eax + 0x1c]
inc ebx
inc eax
mov dx, bx
mov cx, ax
mov eax, edi
call sym._move_selection
jmp 0x40fce0
mov ebx, dword [edi + 0x84]
movzx eax, word [ebx + 0x1e]
lea ecx, [eax - 1]
movzx eax, word [ebx + 0x1a]
dec eax
jmp 0x410bfa
mov eax, dword [edi + 0x84]
mov edx, dword [eax + 0x18]
movzx ebx, word [eax + 0x18]
mov ecx, dword [eax + 0x1c]
movzx eax, word [eax + 0x1c]
dec ebx
dec eax
mov dx, bx
mov cx, ax
mov eax, edi
call sym._move_selection
jmp 0x40fce0
mov eax, dword [edi + 0x84]
xor edx, edx
mov dword [eax + 0x14], 0
mov eax, edi
call sym._update_selection
mov eax, edi
call sym._copy_selection
jmp 0x40fce0
cmp dword [ebp - 0x11c], 0x28
jne 0x410ad8
mov ecx, dword [edi + 0x84]
movzx eax, word [ecx + 0x1e]
mov edx, dword [ecx + 0x18]
inc eax
jmp 0x410bba
mov eax, dword [edi + 0x84]
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 0x1c]
movzx eax, word [eax + 0x1c]
dec eax
mov cx, ax
mov eax, edi
call sym._move_selection
jmp 0x40fce0
mov eax, dword [edi + 0x84]
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 0x1c]
movzx eax, word [eax + 0x1c]
inc eax
mov cx, ax
mov eax, edi
call sym._move_selection
jmp 0x40fce0