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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x134
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], esi
mov dword [ebp - 0x114], eax
call dword [sym.imp.user32.dll_GetWindowLongW]
sub esp, 8
mov edi, eax
cmp ebx, 0x117
ja 0x40cc70
cmp ebx, 0xff
ja 0x40cca0
lea eax, [ebx - 1]
cmp eax, 0x17
ja case.0x40ccaf.258
cmp ebx, 0x18
ja case.0x40ccaf.258
jmp dword [ebx*4 + 0x415c78]
cmp ebx, 0x20a
ja 0x40ccc0
cmp ebx, 0x1ff
jbe case.0x40ccaf.258
lea edx, [ebx - 0x201]
cmp edx, 9
ja case.default.0x40cc93
jmp dword [edx*4 + 0x415cdc]
lea eax, [ebx - 0x100]
cmp eax, 0x17
ja case.0x40ccaf.258
jmp dword [eax*4 + 0x415d04]
cmp ebx, 0x401
jne case.0x40ccaf.258
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40cce7
cmp dword [eax + 0x64], 1
jne 0x40cce7
lea esi, [esi]
mov eax, edi
call sym._update_window
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov ebx, dword [ebp - 0x114]
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], 0
movzx edx, ax
mov eax, edi
or edx, ecx
mov ecx, dword [ebp - 0x110]
call sym._record_mouse_input
jmp 0x40cce7
mov eax, dword [ebp - 0x114]
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp dword [sym.imp.user32.dll_DefWindowProcW]
mov ebx, dword [ebp - 0x114]
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 - 0x110]
call sym._record_mouse_input
jmp 0x40cce7
mov eax, dword [ebp - 0x114]
mov edx, dword [edi + 0x84]
movsx ecx, ax
sar eax, 0x10
test edx, edx
je 0x40cde8
mov ebx, dword [ebp - 0x110]
and ebx, 0xc
cmp ebx, dword [edx + 0x30]
je 0x40dac5
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]
mov dword [esp], 0
add ecx, eax
mov eax, edi
movzx edx, cx
mov ecx, dword [ebp - 0x110]
or edx, ebx
call sym._record_mouse_input
jmp 0x40cce7
mov ecx, dword [edi + 0x84]
test ecx, ecx
je case.0x40cc93.517
mov edx, dword [ecx + 0x2c]
mov eax, dword [ecx + 0x14]
test edx, edx
jne 0x40d970
test eax, eax
je case.0x40cc93.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 0x40d978
mov ebx, dword [ecx + 0x14]
test ebx, ebx
je 0x40d978
mov dword [ecx + 0x14], 0
jmp 0x40cce7
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 0x40da10
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40cce7
lea eax, [ebp - 0x10c]
mov dword [esp + 0xc], 0
mov dword [ebp - 0x10c], 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 - 0x110]
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 - 0x10c]
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 - 0x110], eax
mov eax, 0
cmovs ebx, eax
mov eax, dword [ebp - 0x110]
cmp eax, ebx
cmova eax, ebx
cmp eax, ecx
je 0x40cce7
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
jmp 0x40cce7
mov eax, dword [edi + 0x84]
test eax, eax
je case.0x40cc93.517
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40cf80
mov esi, dword [eax + 0x14]
test esi, esi
je case.0x40cc93.517
call dword [sym.imp.user32.dll_GetCapture]
cmp dword [edi + 0xac], eax
jne 0x40cce7
mov ecx, dword [edi + 0x84]
mov ebx, dword [ecx + 0x14]
test ebx, ebx
je 0x40cce7
mov ebx, dword [edi + 8]
mov eax, dword [ebp - 0x114]
movsx esi, word [ebx + 0x86]
sar eax, 0x10
cdq
idiv esi
movzx esi, word [ebx + 0x78]
add esi, eax
movsx eax, word [ebp - 0x114]
mov word [ebp - 0x110], si
movsx esi, word [ebx + 0x84]
cdq
idiv esi
mov edx, dword [ebp - 0x110]
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]
jmp 0x40cce7
cmp ebx, 0x104
mov eax, dword [ebp - 0x114]
sete dl
mov ecx, dword [ebp - 0x110]
movzx edx, dl
mov dword [esp], eax
mov eax, edi
call sym._record_key_input
jmp 0x40cce7
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40d045
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x40da60
cmp ebx, 0x100
jmp 0x40d006
mov edx, dword [edi + 0x84]
test edx, edx
je 0x40d8c0
mov eax, dword [ebp - 0x114]
shr eax, 0x10
je 0x40d8c0
mov dword [esp + 4], 0
mov eax, dword [edi + 0xac]
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 0x40cce7
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40cce7
mov eax, dword [ebp - 0x110]
cmp eax, 0x101
je case.0x40d223.257
cmp eax, 0x102
je case.0x40d223.258
mov eax, dword [ebp - 0x114]
mov dword [ebp + 0xc], 0x112
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp + 0x10], eax
jmp 0x40cd5d
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40cce7
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x110], eax
mov dword [esp + 4], eax
mov eax, dword [edi + 0xac]
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 - 0x114], eax
mov eax, esi
imul eax, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x114]
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 - 0x114]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x10c]
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 0x40dab3
mov eax, dword [ebp - 0x110]
mov dword [esp + 4], eax
mov eax, dword [edi + 0xac]
mov dword [esp], eax
call dword [sym.imp.user32.dll_EndPaint]
sub esp, 8
jmp 0x40cce7
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40cce7
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40cce7
call dword [sym.imp.user32.dll_DestroyCaret]
jmp 0x40cce7
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40cce7
mov ecx, dword [ebp - 0x110]
lea edx, [ecx - 0x101]
cmp edx, 0x14
ja case.0x40d223.259
jmp dword [edx*4 + 0x415d64]
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40cce7
mov ebx, dword [ebp - 0x110]
test ebx, ebx
jne 0x40cce0
mov edx, dword [eax + 4]
test edx, edx
je 0x40d265
mov dword [esp], edx
call dword [sym.imp.gdi32.dll_DeleteObject]
mov eax, dword [edi + 0x84]
sub esp, 4
mov dword [eax + 4], 0
jmp 0x40cce7
mov dword [edi + 0xac], 0
mov dword [esp], 0
call dword [sym.imp.user32.dll_PostQuitMessage]
sub esp, 4
jmp 0x40cce7
mov eax, dword [ebp - 0x114]
mov ebx, dword [eax]
test byte [0x413034], 8
jne 0x40d9e0
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 + 0xac], esi
sub esp, 0xc
test eax, eax
je 0x40cce7
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 0x40cce7
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 0x40cce7
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
jmp 0x40cce7
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 0x40cce7
mov ebx, dword [ebp - 0x110]
movzx eax, bx
cmp bx, 5
ja case.0x40d392.4
jmp dword [eax*4 + 0x415db8]
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40cce7
mov ecx, dword [edi + 8]
mov esi, dword [ebp - 0x110]
mov ebx, dword [ecx + 0x74]
movzx eax, si
cmp si, 5
ja case.0x40d3c7.4
jmp dword [eax*4 + 0x415dd0]
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40cce7
mov edx, dword [edi + 8]
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x40cce7
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 + 0xac]
mov dword [esp], eax
call dword [sym.imp.user32.dll_CreateCaret]
mov eax, edi
sub esp, 0x10
call sym._update_window_cursor
jmp 0x40cce7
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40cce7
cmp dword [eax + 0x64], 2
je 0x40cce7
mov ebx, dword [edi + 8]
mov eax, dword [ebp - 0x114]
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 - 0x114]
cmovl esi, ecx
cdq
idiv ebx
cmp eax, 0x14
cmovge ecx, eax
lea eax, [ebp - 0x10c]
mov edx, eax
mov dword [ebp - 0x110], eax
mov eax, edi
mov ebx, ecx
call sym._current_config
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], esi
cmp ebx, edx
jbe 0x40d4b7
mov dword [ebp - 0xa0], ebx
mov edx, ebx
mov eax, dword [ebp - 0x9c]
cmp esi, eax
jbe 0x40d4c9
mov dword [ebp - 0x9c], esi
mov eax, esi
movsx ecx, word [ebp - 0x90]
add ecx, ebx
cmp ecx, edx
jbe 0x40d4df
sub edx, ebx
mov word [ebp - 0x90], dx
movsx edx, word [ebp - 0x8e]
add edx, esi
cmp edx, eax
jbe 0x40d4f5
sub eax, esi
mov word [ebp - 0x8e], ax
mov edx, dword [ebp - 0x110]
mov eax, edi
call sym._apply_config
jmp 0x40cce7
mov eax, dword [ebp - 0x114]
mov dword [ebp + 0xc], 0x111
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp + 0x10], eax
jmp 0x40cd5d
mov ebx, dword [ebp - 0x110]
shr ebx, 0x10
jmp 0x40cf15
lea ebx, [ecx + 8]
jmp 0x40cf15
lea ebx, [ecx - 8]
jmp 0x40cf15
lea ebx, [ecx + 1]
jmp 0x40cf15
lea ebx, [ecx - 1]
jmp 0x40cf15
mov esi, dword [ebp - 0x110]
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 - 0x110], edx
test esi, esi
mov edx, 0
cmovs esi, edx
cmp eax, esi
cmova eax, esi
cmp ebx, eax
je 0x40cce7
mov esi, dword [ebp - 0x110]
mov dword [ecx + 0x74], eax
mov ecx, dword [edi + 8]
lea eax, [eax + esi - 1]
mov dword [ecx + 0x7c], eax
jmp 0x40cce0
lea esi, [ebx + 8]
jmp 0x40d568
lea esi, [ebx - 8]
jmp 0x40d568
lea esi, [ebx + 1]
jmp 0x40d568
lea esi, [ebx - 1]
jmp 0x40d568
mov ebx, ecx
jmp 0x40cf15
test byte [0x413034], 1
je 0x40cce7
mov eax, dword [ebp - 0x110]
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], 0x413034
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x40cce7
mov esi, ebx
jmp 0x40d568
xor edx, edx
mov eax, edi
call sym._config_dialog
jmp 0x40cce7
mov edx, 1
mov eax, edi
call sym._config_dialog
jmp 0x40cce7
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]
nop
mov eax, edi
xor edx, edx
call sym._update_selection
mov eax, dword [edi + 0x84]
mov dword [eax + 0x14], 1
jmp 0x40cce7
mov eax, dword [edi + 0xac]
mov dword [esp], eax
call dword [sym.imp.user32.dll_OpenClipboard]
sub esp, 4
test eax, eax
je 0x40cce7
mov dword [esp], 0xd
call dword [sym.imp.user32.dll_GetClipboardData]
mov dword [ebp - 0x11c], eax
sub esp, 4
mov esi, eax
test eax, eax
je 0x40d7e5
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ebx, eax
push ecx
test eax, eax
je 0x40d7e5
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GlobalSize]
mov word [ebp - 0x10c], 1
shr eax, 1
push edx
mov word [ebp - 0x104], 0
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x114], eax
je 0x40d7d5
mov eax, dword [ebp - 0x114]
xor esi, esi
dec eax
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x110], 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 - 0x102], cx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_MapVirtualKeyW]
mov word [ebp - 0x100], ax
movzx eax, word [ebx + esi*2]
sub esp, 8
mov dword [esp + 8], 2
mov word [ebp - 0xfe], ax
mov eax, dword [ebp - 0x10c]
mov dword [esp], edi
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0xe8], eax
xor eax, eax
cmp esi, dword [ebp - 0x118]
sete al
inc esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x110]
mov dword [esp + 4], eax
call sym._write_console_input
cmp dword [ebp - 0x114], esi
jne 0x40d722
mov eax, dword [ebp - 0x11c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push esi
call dword [sym.imp.user32.dll_CloseClipboard]
jmp 0x40cce7
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x40cce7
mov dword [eax + 0x14], 0
xor edx, edx
mov eax, edi
call sym._update_selection
mov eax, edi
call sym._copy_selection
jmp 0x40cce7
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 0x40d660
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40d868
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40d8e0
mov esi, dword [eax + 0x14]
test esi, esi
jne 0x40d8e0
mov ebx, dword [ebp - 0x114]
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 - 0x110]
call sym._record_mouse_input
jmp 0x40cce7
mov eax, dword [ebp - 0x114]
mov dword [ebp + 0xc], 0x117
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp + 0x10], eax
jmp 0x40cd5d
call dword [sym.imp.user32.dll_GetCapture]
cmp dword [edi + 0xac], eax
jne 0x40cce7
mov ecx, dword [edi + 0x84]
mov ebx, dword [ecx + 0x14]
test ebx, ebx
je 0x40cce7
test byte [ebp - 0x110], 1
je 0x40cce7
mov ebx, dword [edi + 8]
mov eax, dword [ebp - 0x114]
movsx esi, word [ebx + 0x86]
sar eax, 0x10
cdq
idiv esi
movzx esi, word [ebx + 0x78]
add esi, eax
movsx eax, word [ebp - 0x114]
mov word [ebp - 0x110], si
movsx esi, word [ebx + 0x84]
cdq
idiv esi
mov edx, dword [ebp - 0x110]
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
jmp 0x40cce7
test eax, eax
jne 0x40ce54
mov ebx, dword [edi + 8]
mov eax, dword [ebp - 0x114]
movsx esi, word [ebx + 0x86]
sar eax, 0x10
cdq
idiv esi
movsx edx, word [ebx + 0x84]
movzx esi, word [ebx + 0x78]
mov dword [ebp - 0x110], edx
add esi, eax
movsx eax, word [ebp - 0x114]
cdq
idiv dword [ebp - 0x110]
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 + 0xac]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetCapture]
sub esp, 4
jmp 0x40d660
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x415c58
mov dword [esp + 8], str.window_create
mov dword [esp + 4], 0x413034
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x40d2b5
mov eax, dword [ebp - 0x114]
movsx esi, word [ecx + 0x86]
sar eax, 0x10
cdq
idiv esi
movsx esi, word [ecx + 0x84]
add ebx, eax
movsx eax, word [ebp - 0x114]
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 - 0x110]
call sym._record_mouse_input
jmp 0x40cce7
cmp ebx, 0x100
jne 0x40cce7
lea eax, [ebp - 0x10c]
call sym._get_ctrl_state
and eax, 0xffffff1f
je 0x40db8b
cmp eax, 0x10
je 0x40db41
cmp dword [ebp - 0x110], 0x1f
jbe 0x40cce7
mov eax, edi
xor edx, edx
call sym._update_selection
mov eax, dword [edi + 0x84]
mov dword [eax + 0x14], 0
jmp 0x40cce7
mov edx, dword [ebp - 0x10c]
mov eax, edi
call sym._update_selection
jmp 0x40d1ab
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 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 - 0x108]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x10c]
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]
sub esp, 0x1c
jmp 0x40cce7
mov eax, dword [ebp - 0x110]
cmp eax, 0x27
je 0x40dc85
ja 0x40dc45
cmp eax, 0x25
je 0x40dc65
cmp eax, 0x26
jne case.0x40db9d.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 0x40cce7
mov eax, dword [ebp - 0x110]
sub eax, 0xd
cmp eax, 0x1b
ja case.0x40db9d.14
jmp dword [eax*4 + 0x415de8]
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 0x40cce7
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 0x40cce7
mov ebx, dword [edi + 0x84]
movzx eax, word [ebx + 0x1e]
lea ecx, [eax - 1]
movzx eax, word [ebx + 0x1a]
dec eax
jmp 0x40dbb6
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 0x40cce7
mov eax, dword [edi + 0x84]
jmp 0x40d7fb
cmp dword [ebp - 0x110], 0x28
jne 0x40da98
mov ecx, dword [edi + 0x84]
movzx eax, word [ecx + 0x1e]
mov edx, dword [ecx + 0x18]
inc eax
jmp 0x40db76
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 0x40cce7
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 0x40cce7