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

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x138
mov eax, dword [edi + 8]
mov ecx, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x118], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x114], ecx
mov dword [esp], ecx
mov dword [ebp - 0x11c], eax
mov dword [esp + 4], 0
call dword [sym.imp.user32.dll_GetWindowLongW]
mov ecx, dword [ebp - 0x114]
sub esp, 8
cmp ebx, 0x117
mov esi, eax
ja 0x4101d0
cmp ebx, 0xff
ja 0x410200
lea eax, [ebx - 1]
cmp eax, 0x17
ja case.0x41020f.258
cmp ebx, 0x18
ja case.0x41020f.258
jmp dword [ebx*4 + 0x4151bc]
cmp ebx, 0x20a
ja 0x410220
cmp ebx, 0x1ff
jbe case.0x41020f.258
sub ebx, 0x201
cmp ebx, 9
ja case.default.0x4101f3
jmp dword [ebx*4 + 0x415220]
lea eax, [ebx - 0x100]
cmp eax, 0x17
ja case.0x41020f.258
jmp dword [eax*4 + 0x415248]
cmp ebx, 0x401
jne case.0x41020f.258
mov eax, dword [esi + 0x84]
test eax, eax
je 0x410247
cmp dword [eax + 0x64], 1
jne 0x410247
lea esi, [esi]
mov eax, esi
call sym._update_window
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret 0x10
mov edi, dword [ebp - 0x11c]
mov ebx, dword [esi + 8]
mov eax, edi
movsx ecx, word [ebx + 0x86]
sar eax, 0x10
cdq
idiv ecx
movzx ecx, word [ebx + 0x78]
add ecx, eax
movsx eax, di
movsx edi, word [ebx + 0x84]
cdq
idiv edi
add ax, word [ebx + 0x74]
mov dword [esp], 0
shl ecx, 0x10
movzx edx, ax
mov eax, esi
or edx, ecx
mov ecx, dword [ebp - 0x118]
call sym._record_mouse_input
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret 0x10
mov eax, dword [ebp - 0x11c]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x118]
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
mov dword [edi], ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
jmp dword [sym.imp.user32.dll_DefWindowProcW]
mov edi, dword [ebp - 0x11c]
mov ebx, dword [esi + 8]
mov eax, edi
movsx ecx, word [ebx + 0x86]
sar eax, 0x10
cdq
idiv ecx
movzx ecx, word [ebx + 0x78]
add ecx, eax
movsx eax, di
movsx edi, word [ebx + 0x84]
cdq
shl ecx, 0x10
idiv edi
add ax, word [ebx + 0x74]
mov dword [esp], 2
movzx edx, ax
mov eax, esi
or edx, ecx
mov ecx, dword [ebp - 0x118]
call sym._record_mouse_input
jmp 0x410247
mov eax, dword [ebp - 0x11c]
mov edx, dword [esi + 0x84]
movsx edi, ax
sar eax, 0x10
test edx, edx
je 0x410368
mov ebx, dword [ebp - 0x118]
and ebx, 0xc
cmp ebx, dword [edx + 0x30]
je 0x41106d
mov ecx, dword [esi + 8]
cdq
movsx ebx, word [ecx + 0x86]
idiv ebx
movsx ebx, word [ecx + 0x84]
add ax, word [ecx + 0x78]
mov word [ebp - 0x114], ax
mov eax, edi
cdq
idiv ebx
add ax, word [ecx + 0x74]
mov ecx, dword [ebp - 0x114]
jmp 0x41028f
mov ecx, dword [esi + 0x84]
test ecx, ecx
je case.0x4101f3.517
mov edx, dword [ecx + 0x2c]
mov eax, dword [ecx + 0x14]
test edx, edx
jne 0x410f00
test eax, eax
je case.0x4101f3.517
xor edx, edx
mov eax, esi
call sym._update_selection
mov ecx, dword [esi + 0x84]
mov edi, dword [ecx + 0x2c]
test edi, edi
je 0x410f08
mov ebx, dword [ecx + 0x14]
test ebx, ebx
je 0x410f08
mov dword [ecx + 0x14], 0
jmp 0x410247
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x78]
mov ebx, dword [ecx + 0x80]
sub ebx, eax
mov dword [ebp - 0x114], eax
add ebx, 1
cmp dword [ecx + 0x10], ebx
jbe 0x410fb0
mov eax, dword [esi + 0x84]
test eax, eax
je 0x410247
lea eax, [ebp - 0x110]
mov dword [esp + 0xc], 0
mov dword [ebp - 0x110], 3
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x68
call dword [sym.imp.user32.dll_SystemParametersInfoW]
mov edi, dword [ebp - 0x118]
mov edx, 0x88888889
sub esp, 0x10
sar edi, 0x10
mov eax, edi
imul edx
lea eax, [edx + edi]
mov edx, dword [esi + 8]
sar edi, 0x1f
sar eax, 6
mov ecx, dword [edx + 0x78]
sub edi, eax
imul edi, dword [ebp - 0x110]
add edi, dword [ebp - 0x114]
mov eax, dword [edx + 0x10]
sub eax, ebx
test edi, edi
mov dword [ebp - 0x114], eax
mov eax, 0
cmovs edi, eax
mov eax, dword [ebp - 0x114]
cmp eax, edi
cmova eax, edi
cmp eax, ecx
je 0x410247
mov dword [edx + 0x78], eax
mov edx, dword [esi + 8]
lea eax, [eax + ebx - 1]
mov dword [edx + 0x80], eax
mov eax, esi
call sym._update_window
jmp 0x410247
mov eax, dword [esi + 0x84]
test eax, eax
je case.0x4101f3.517
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x4104f0
mov edi, dword [eax + 0x14]
test edi, edi
je case.0x4101f3.517
call dword [sym.imp.user32.dll_GetCapture]
cmp dword [esi + 0xac], eax
jne 0x410247
mov ecx, dword [esi + 0x84]
mov ebx, dword [ecx + 0x14]
test ebx, ebx
je 0x410247
mov edi, dword [esi + 8]
mov eax, dword [ebp - 0x11c]
movsx ebx, word [edi + 0x86]
sar eax, 0x10
cdq
idiv ebx
movzx edx, word [edi + 0x78]
movsx ebx, word [edi + 0x84]
add edx, eax
movsx eax, word [ebp - 0x11c]
mov word [ebp - 0x114], dx
cdq
idiv ebx
mov edx, dword [ebp - 0x114]
shl edx, 0x10
add ax, word [edi + 0x74]
movzx eax, ax
or eax, edx
mov edx, dword [ecx + 0x18]
mov ecx, eax
mov eax, esi
call sym._move_selection
call dword [sym.imp.user32.dll_ReleaseCapture]
jmp 0x410247
cmp ebx, 0x104
mov eax, dword [ebp - 0x11c]
sete dl
mov ecx, dword [ebp - 0x118]
movzx edx, dl
mov dword [esp], eax
mov eax, esi
call sym._record_key_input
jmp 0x410247
mov eax, dword [esi + 0x84]
test eax, eax
je 0x4105b5
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x411008
cmp ebx, 0x100
jmp 0x410576
mov edx, dword [esi + 0x84]
test edx, edx
je 0x410e50
mov eax, dword [ebp - 0x11c]
shr eax, 0x10
je 0x410e50
mov dword [esp + 4], 0
mov eax, dword [esi + 0xac]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetSystemMenu]
mov edx, eax
sub esp, 8
mov eax, esi
call sym._set_menu_details
jmp 0x410247
mov ebx, dword [esi + 0x84]
test ebx, ebx
je 0x410247
mov eax, dword [ebp - 0x118]
cmp eax, 0x101
je case.0x410793.257
cmp eax, 0x102
je case.0x410793.258
mov eax, dword [ebp - 0x11c]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x118]
mov dword [edi + 4], 0x112
mov dword [edi + 8], eax
jmp 0x4102d5
mov eax, dword [esi + 0x84]
test eax, eax
je 0x410247
lea eax, [ebp - 0x110]
mov dword [ebp - 0x114], eax
mov dword [esp + 4], eax
mov eax, dword [esi + 0xac]
mov dword [esp], eax
call dword [sym.imp.user32.dll_BeginPaint]
mov edx, dword [esi + 8]
sub esp, 8
mov ebx, dword [edx + 0x78]
movsx eax, word [edx + 0x86]
mov ecx, dword [edx + 0x74]
movsx edi, word [edx + 0x84]
mov dword [esp + 0x20], 0xcc0020
mov dword [ebp - 0x118], eax
imul eax, ebx
mov dword [esp + 0x1c], eax
mov eax, ecx
imul eax, edi
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x84]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x80]
sub eax, ebx
add eax, 1
imul eax, dword [ebp - 0x118]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x7c]
mov dword [esp + 8], 0
sub eax, ecx
mov dword [esp + 4], 0
add eax, 1
imul edi, eax
mov eax, dword [ebp - 0x110]
mov dword [esp], eax
mov dword [esp + 0xc], edi
call dword [sym.imp.gdi32.dll_BitBlt]
mov eax, dword [esi + 0x84]
sub esp, 0x24
mov edi, dword [eax + 0x14]
test edi, edi
jne 0x41105b
mov eax, dword [ebp - 0x114]
mov dword [esp + 4], eax
mov eax, dword [esi + 0xac]
mov dword [esp], eax
call dword [sym.imp.user32.dll_EndPaint]
sub esp, 8
jmp 0x410247
mov eax, dword [esi + 0x84]
test eax, eax
je 0x410247
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x410247
call dword [sym.imp.user32.dll_DestroyCaret]
jmp 0x410247
mov eax, dword [esi + 0x84]
test eax, eax
je 0x410247
mov edx, dword [ebp - 0x118]
lea ebx, [edx - 0x101]
cmp ebx, 0x14
ja case.0x410793.259
jmp dword [ebx*4 + 0x4152a8]
mov eax, dword [esi + 0x84]
test eax, eax
je 0x410247
mov ebx, dword [ebp - 0x118]
test ebx, ebx
jne 0x410240
mov edx, dword [eax + 4]
test edx, edx
je 0x4107d5
mov dword [esp], edx
call dword [sym.imp.gdi32.dll_DeleteObject]
mov eax, dword [esi + 0x84]
sub esp, 4
mov dword [eax + 4], 0
jmp 0x410247
mov dword [esi + 0xac], 0
mov dword [esp], 0
call dword [sym.imp.user32.dll_PostQuitMessage]
sub esp, 4
jmp 0x410247
mov eax, dword [ebp - 0x11c]
mov ebx, dword [eax]
test byte [0x413080], 8
jne 0x410f70
mov dword [esp], ecx
mov dword [ebp - 0x114], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
call dword [sym.imp.user32.dll_SetWindowLongW]
mov ecx, dword [ebp - 0x114]
mov eax, dword [ebx + 0x84]
sub esp, 0xc
mov dword [ebx + 0xac], ecx
test eax, eax
je 0x410247
mov dword [esp + 4], 0
mov dword [esp], ecx
call dword [sym.imp.user32.dll_GetSystemMenu]
sub esp, 8
mov esi, eax
test eax, eax
je 0x410247
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 0x410247
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 0x410247
mov edx, dword [esi + 8]
mov edi, dword [esi + 0x84]
mov ecx, dword [edx + 0x78]
mov ebx, dword [edx + 0x80]
sub ebx, ecx
add ebx, 1
test edi, edi
je 0x410247
mov edi, dword [ebp - 0x118]
movzx eax, di
cmp di, 5
ja case.0x41090a.4
jmp dword [eax*4 + 0x4152fc]
mov eax, dword [esi + 0x84]
test eax, eax
je 0x410247
mov ecx, dword [esi + 8]
mov edx, dword [ebp - 0x118]
mov ebx, dword [ecx + 0x74]
movzx eax, dx
cmp dx, 5
ja case.0x41093f.4
jmp dword [eax*4 + 0x415314]
mov eax, dword [esi + 0x84]
test eax, eax
je 0x410247
mov edx, dword [esi + 8]
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x410247
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 [esi + 0xac]
mov dword [esp], eax
call dword [sym.imp.user32.dll_CreateCaret]
mov eax, esi
sub esp, 0x10
call sym._update_window_cursor
jmp 0x410247
mov eax, dword [esi + 0x84]
test eax, eax
je 0x410247
cmp dword [eax + 0x64], 2
je 0x410247
mov ebx, dword [esi + 8]
mov eax, dword [ebp - 0x11c]
movsx ecx, word [ebx + 0x86]
shr eax, 0x10
movsx ebx, word [ebx + 0x84]
cdq
idiv ecx
mov ecx, 0x14
cmp eax, 0x14
mov edi, eax
movzx eax, word [ebp - 0x11c]
cmovl edi, ecx
cdq
idiv ebx
movd xmm1, edi
cmp eax, 0x14
cmovge ecx, eax
lea eax, [ebp - 0x110]
mov edx, eax
mov dword [ebp - 0x114], eax
mov eax, esi
mov ebx, ecx
call sym._current_config
movd xmm0, ebx
mov edx, dword [ebp - 0xa4]
punpckldq xmm0, xmm1
movq qword [ebp - 0x9c], xmm0
cmp ebx, edx
jbe 0x410a3f
mov dword [ebp - 0xa4], ebx
mov edx, ebx
mov eax, dword [ebp - 0xa0]
cmp edi, eax
jbe 0x410a51
mov dword [ebp - 0xa0], edi
mov eax, edi
movsx ecx, word [ebp - 0x94]
add ecx, ebx
cmp ecx, edx
jbe 0x410a67
sub edx, ebx
mov word [ebp - 0x94], dx
movsx edx, word [ebp - 0x92]
add edx, edi
cmp edx, eax
jbe 0x410a7d
sub eax, edi
mov word [ebp - 0x92], ax
mov edx, dword [ebp - 0x114]
mov eax, esi
call sym._apply_config
jmp 0x410247
mov eax, dword [ebp - 0x11c]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x118]
mov dword [edi + 4], 0x111
mov dword [edi + 8], eax
jmp 0x4102d5
mov edi, dword [ebp - 0x118]
shr edi, 0x10
jmp 0x41048a
lea edi, [ecx + 8]
jmp 0x41048a
lea edi, [ecx - 8]
jmp 0x41048a
lea edi, [ecx + 1]
jmp 0x41048a
lea edi, [ecx - 1]
jmp 0x41048a
mov edi, dword [ebp - 0x118]
shr edi, 0x10
lea esi, [esi]
mov edx, dword [ecx + 0x7c]
mov eax, dword [ecx + 0xc]
sub edx, ebx
add edx, 1
sub eax, edx
mov dword [ebp - 0x114], edx
test edi, edi
mov edx, 0
cmovs edi, edx
cmp eax, edi
cmova eax, edi
cmp ebx, eax
je 0x410247
mov edx, dword [ebp - 0x114]
mov dword [ecx + 0x74], eax
mov ecx, dword [esi + 8]
lea eax, [eax + edx - 1]
mov dword [ecx + 0x7c], eax
jmp 0x410240
lea edi, [ebx + 8]
jmp 0x410ae8
lea edi, [ebx - 8]
jmp 0x410ae8
lea edi, [ebx + 1]
jmp 0x410ae8
lea edi, [ebx - 1]
jmp 0x410ae8
mov edi, ecx
jmp 0x41048a
test byte [0x413080], 1
je 0x410247
mov eax, dword [ebp - 0x118]
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
jmp 0x410247
mov edi, ebx
jmp 0x410ae8
xor edx, edx
mov eax, esi
call sym._config_dialog
jmp 0x410247
mov edx, 1
mov eax, esi
call sym._config_dialog
jmp 0x410247
xor ebx, ebx
xor edi, edi
xor edx, edx
xor ecx, ecx
mov word [eax + 0x1a], bx
mov eax, dword [esi + 0x84]
mov word [eax + 0x18], di
mov eax, dword [esi + 0x84]
mov word [eax + 0x1e], dx
mov eax, dword [esi + 0x84]
mov word [eax + 0x1c], cx
lea esi, [esi]
nop
mov eax, esi
xor edx, edx
call sym._update_selection
mov eax, dword [esi + 0x84]
mov dword [eax + 0x14], 1
jmp 0x410247
mov eax, dword [esi + 0xac]
mov dword [esp], eax
call dword [sym.imp.user32.dll_OpenClipboard]
sub esp, 4
test eax, eax
je 0x410247
mov dword [esp], 0xd
call dword [sym.imp.user32.dll_GetClipboardData]
mov dword [ebp - 0x120], eax
sub esp, 4
mov edi, eax
test eax, eax
je 0x410d69
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ebx, eax
push edx
test eax, eax
je 0x410d69
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GlobalSize]
mov word [ebp - 0x110], 1
shr eax, 1
push edi
mov word [ebp - 0x108], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0x10c], 1
mov dword [ebp - 0x118], eax
je 0x410d59
mov eax, dword [ebp - 0x118]
xor edi, edi
sub eax, 1
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x114], eax
movzx eax, word [ebx + edi*2]
mov dword [esp], eax
call dword [sym.imp.user32.dll_VkKeyScanW]
sub esp, 4
movzx ecx, al
movzx eax, al
mov word [ebp - 0x106], cx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_MapVirtualKeyW]
mov word [ebp - 0x104], ax
movzx eax, word [ebx + edi*2]
sub esp, 8
mov dword [esp + 8], 2
mov word [ebp - 0x102], ax
mov eax, dword [ebp - 0x110]
mov dword [esp], esi
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xec], eax
xor eax, eax
cmp edi, dword [ebp - 0x11c]
sete al
add edi, 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x114]
mov dword [esp + 4], eax
call sym._write_console_input
cmp dword [ebp - 0x118], edi
jne 0x410ca4
mov eax, dword [ebp - 0x120]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push esi
call dword [sym.imp.user32.dll_CloseClipboard]
jmp 0x410247
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x410247
mov dword [eax + 0x14], 0
xor edx, edx
mov eax, esi
call sym._update_selection
mov eax, esi
call sym._copy_selection
jmp 0x410247
xor ecx, ecx
xor ebx, ebx
mov word [eax + 0x1a], cx
mov eax, dword [esi + 0x84]
mov word [eax + 0x18], bx
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x84]
mov eax, dword [eax + 0xc]
sub eax, 1
mov word [edx + 0x1c], ax
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x84]
mov eax, dword [eax + 0x10]
sub eax, 1
mov word [edx + 0x1e], ax
jmp 0x410be0
mov eax, dword [esi + 0x84]
test eax, eax
je 0x410df8
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x410e70
mov edi, dword [eax + 0x14]
test edi, edi
jne 0x410e70
mov edi, dword [ebp - 0x11c]
mov ebx, dword [esi + 8]
mov eax, edi
movsx ecx, word [ebx + 0x86]
sar eax, 0x10
cdq
idiv ecx
movzx ecx, word [ebx + 0x78]
add ecx, eax
movsx eax, di
movsx edi, word [ebx + 0x84]
cdq
shl ecx, 0x10
idiv edi
add ax, word [ebx + 0x74]
mov dword [esp], 1
movzx edx, ax
mov eax, esi
or edx, ecx
mov ecx, dword [ebp - 0x118]
call sym._record_mouse_input
jmp 0x410247
mov eax, dword [ebp - 0x11c]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x118]
mov dword [edi + 4], 0x117
mov dword [edi + 8], eax
jmp 0x4102d5
call dword [sym.imp.user32.dll_GetCapture]
cmp dword [esi + 0xac], eax
jne 0x410247
mov ecx, dword [esi + 0x84]
mov ebx, dword [ecx + 0x14]
test ebx, ebx
je 0x410247
test byte [ebp - 0x118], 1
je 0x410247
mov edi, dword [esi + 8]
mov eax, dword [ebp - 0x11c]
movsx ebx, word [edi + 0x86]
sar eax, 0x10
cdq
idiv ebx
movzx edx, word [edi + 0x78]
movsx ebx, word [edi + 0x84]
add edx, eax
movsx eax, word [ebp - 0x11c]
mov word [ebp - 0x114], dx
cdq
idiv ebx
mov edx, dword [ebp - 0x114]
shl edx, 0x10
add ax, word [edi + 0x74]
movzx eax, ax
or eax, edx
mov edx, dword [ecx + 0x18]
mov ecx, eax
mov eax, esi
call sym._move_selection
jmp 0x410247
test eax, eax
jne 0x4103c4
mov edi, dword [esi + 8]
mov eax, dword [ebp - 0x11c]
movsx ebx, word [edi + 0x86]
sar eax, 0x10
cdq
idiv ebx
movsx edx, word [edi + 0x84]
movzx ebx, word [edi + 0x78]
mov dword [ebp - 0x114], edx
add ebx, eax
movsx eax, word [ebp - 0x11c]
cdq
idiv dword [ebp - 0x114]
add ax, word [edi + 0x74]
mov word [ecx + 0x1e], bx
mov word [ecx + 0x1c], ax
mov eax, dword [esi + 0x84]
mov edx, dword [eax + 0x1c]
mov dword [eax + 0x18], edx
mov eax, dword [esi + 0xac]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetCapture]
sub esp, 4
jmp 0x410be0
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0x41519c
mov dword [esp + 8], str.window_create
mov dword [esp + 4], 0x413080
mov dword [esp], 3
mov dword [ebp - 0x114], ecx
call sym._wine_dbg_log.constprop.0_1
mov ecx, dword [ebp - 0x114]
jmp 0x410825
mov eax, dword [ebp - 0x11c]
movsx ebx, word [ecx + 0x86]
movzx edi, word [ebp - 0x114]
sar eax, 0x10
cdq
idiv ebx
movsx ebx, word [ecx + 0x84]
add edi, eax
movsx eax, word [ebp - 0x11c]
cdq
idiv ebx
add ax, word [ecx + 0x74]
mov ecx, edi
mov dword [esp], 4
shl ecx, 0x10
movzx edx, ax
mov eax, esi
or edx, ecx
mov ecx, dword [ebp - 0x118]
call sym._record_mouse_input
jmp 0x410247
cmp ebx, 0x100
jne 0x410247
lea eax, [ebp - 0x110]
call sym._get_ctrl_state
and eax, 0xffffff1f
je 0x411149
cmp eax, 0x10
je 0x4110fd
cmp dword [ebp - 0x118], 0x1f
jbe 0x410247
mov eax, esi
xor edx, edx
call sym._update_selection
mov eax, dword [esi + 0x84]
mov dword [eax + 0x14], 0
jmp 0x410247
mov edx, dword [ebp - 0x110]
mov eax, esi
call sym._update_selection
jmp 0x410719
movd xmm2, eax
movd xmm0, edi
mov dword [esp], ecx
lea eax, [ebp - 0x110]
punpckldq xmm0, xmm2
mov dword [ebp - 0x114], ecx
movq qword [ebp - 0x110], xmm0
mov dword [esp + 4], eax
call dword [sym.imp.user32.dll_ClientToScreen]
mov eax, dword [esi + 0x84]
sub esp, 8
mov edx, dword [eax + 0xc]
mov eax, esi
call sym._set_menu_details
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x114]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x110]
mov dword [esp + 0x14], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 2
mov eax, dword [esi + 0x84]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call dword [sym.imp.user32.dll_TrackPopupMenu]
sub esp, 0x1c
jmp 0x410247
mov eax, dword [ebp - 0x118]
cmp eax, 0x27
je 0x411253
ja 0x41120f
cmp eax, 0x25
je 0x411231
cmp eax, 0x26
jne case.0x41115b.14
mov ecx, dword [esi + 0x84]
movzx eax, word [ecx + 0x1e]
mov edx, dword [ecx + 0x18]
sub eax, 1
movzx ecx, word [ecx + 0x1c]
shl eax, 0x10
or ecx, eax
mov eax, esi
call sym._move_selection
jmp 0x410247
mov eax, dword [ebp - 0x118]
sub eax, 0xd
cmp eax, 0x1b
ja case.0x41115b.14
jmp dword [eax*4 + 0x41532c]
mov ebx, dword [esi + 0x84]
movzx eax, word [ebx + 0x1e]
lea ecx, [eax + 1]
movzx eax, word [ebx + 0x1a]
add eax, 1
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, esi
call sym._move_selection
jmp 0x410247
mov eax, dword [esi + 0x84]
mov edx, dword [eax + 0x18]
movzx ebx, word [eax + 0x18]
mov ecx, dword [eax + 0x1c]
movzx eax, word [eax + 0x1c]
add ebx, 1
add eax, 1
mov dx, bx
mov cx, ax
mov eax, esi
call sym._move_selection
jmp 0x410247
mov ebx, dword [esi + 0x84]
movzx eax, word [ebx + 0x1e]
lea ecx, [eax - 1]
movzx eax, word [ebx + 0x1a]
sub eax, 1
jmp 0x411176
mov eax, dword [esi + 0x84]
mov edx, dword [eax + 0x18]
movzx ebx, word [eax + 0x18]
mov ecx, dword [eax + 0x1c]
movzx eax, word [eax + 0x1c]
sub ebx, 1
sub eax, 1
mov dx, bx
mov cx, ax
mov eax, esi
call sym._move_selection
jmp 0x410247
mov eax, dword [esi + 0x84]
jmp 0x410d7f
cmp dword [ebp - 0x118], 0x28
jne 0x411040
mov ecx, dword [esi + 0x84]
movzx eax, word [ecx + 0x1e]
mov edx, dword [ecx + 0x18]
add eax, 1
jmp 0x411134
mov eax, dword [esi + 0x84]
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 0x1c]
movzx eax, word [eax + 0x1c]
sub eax, 1
mov cx, ax
mov eax, esi
call sym._move_selection
jmp 0x410247
mov eax, dword [esi + 0x84]
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 0x1c]
movzx eax, word [eax + 0x1c]
add eax, 1
mov cx, ax
mov eax, esi
call sym._move_selection
jmp 0x410247