Function at 0x4125b0
Capabilities:
Log keystrokes via polling

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, 0x158
mov eax, dword [ecx + 8]
mov edi, dword [ecx]
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x11c], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x120], eax
mov dword [esp + 4], 0
mov dword [esp], edi
call sym._GetWindowLongW_8
sub esp, 8
mov esi, eax
cmp ebx, 0x117
ja 0x412210
cmp ebx, 0xff
ja 0x4121f0
lea eax, [ebx - 1]
cmp eax, 0x17
ja case.0x4121ff.258
cmp ebx, 0x18
ja case.0x4121ff.258
jmp dword [ebx*4 + 0x4171a8]
lea eax, [ebx - 0x100]
cmp eax, 0x17
ja case.0x4121ff.258
jmp dword [eax*4 + 0x41720c]
cmp ebx, 0x20a
ja 0x412290
cmp ebx, 0x1ff
jbe case.0x4121ff.258
lea edx, [ebx - 0x201]
cmp edx, 9
ja case.default.0x412233
jmp dword [edx*4 + 0x41726c]
mov ebx, dword [ebp - 0x120]
mov edi, dword [esi + 8]
mov eax, ebx
movsx ecx, word [edi + 0x86]
sar eax, 0x10
cdq
idiv ecx
movzx ecx, word [edi + 0x78]
add ecx, eax
movsx eax, bx
movsx ebx, word [edi + 0x84]
cdq
shl ecx, 0x10
idiv ebx
movzx edx, ax
add dx, word [edi + 0x74]
mov dword [esp], 0
mov eax, esi
or edx, ecx
mov ecx, dword [ebp - 0x11c]
call sym._record_mouse_input
xor eax, eax
jmp 0x4122c3
cmp ebx, 0x401
je case.0x4121ff.275
lea esi, [esi]
mov eax, dword [ebp - 0x120]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x11c]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._DefWindowProcW_16
sub esp, 0x10
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 edi, dword [esi + 8]
mov eax, ebx
movsx ecx, word [edi + 0x86]
sar eax, 0x10
cdq
idiv ecx
movzx ecx, word [edi + 0x78]
add ecx, eax
movsx eax, bx
movsx ebx, word [edi + 0x84]
cdq
shl ecx, 0x10
idiv ebx
movzx edx, ax
add dx, word [edi + 0x74]
mov dword [esp], 2
mov eax, esi
or edx, ecx
mov ecx, dword [ebp - 0x11c]
call sym._record_mouse_input
xor eax, eax
jmp 0x4122c3
mov edx, dword [ebp - 0x120]
mov eax, dword [esi + 0x84]
movsx ebx, dx
sar edx, 0x10
mov dword [ebp - 0x120], ebx
mov ebx, edx
test eax, eax
je 0x412360
mov edx, dword [ebp - 0x11c]
and edx, 0xc
cmp edx, dword [eax + 0x30]
je 0x413222
mov ecx, dword [esi + 8]
mov eax, ebx
cdq
movsx edi, word [ecx + 0x86]
idiv edi
movsx edi, word [ecx + 0x84]
mov ebx, eax
mov eax, dword [ebp - 0x120]
add bx, word [ecx + 0x78]
shl ebx, 0x10
cdq
idiv edi
movzx edx, ax
add dx, word [ecx + 0x74]
mov dword [esp], 0
mov eax, esi
mov ecx, dword [ebp - 0x11c]
or edx, ebx
call sym._record_mouse_input
xor eax, eax
jmp 0x4122c3
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x78]
mov edi, dword [ecx + 0x80]
sub edi, eax
mov ebx, eax
add edi, 1
cmp edi, dword [ecx + 0x10]
jae 0x413110
mov eax, dword [esi + 0x84]
test eax, eax
je 0x41228b
mov dword [ebp - 0x118], 3
lea eax, [ebp - 0x118]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x68
call sym._SystemParametersInfoW_16
mov ecx, dword [ebp - 0x11c]
mov eax, 0x88888889
sub esp, 0x10
sar ecx, 0x10
imul ecx
lea eax, [edx + ecx]
mov edx, ecx
sar eax, 6
sar edx, 0x1f
sub edx, eax
mov eax, dword [ebp - 0x118]
imul eax, edx
mov edx, dword [esi + 8]
mov ecx, dword [edx + 0x78]
add ebx, eax
mov eax, dword [edx + 0x10]
sub eax, edi
mov dword [ebp - 0x11c], eax
xor eax, eax
test ebx, ebx
cmovs ebx, eax
mov eax, dword [ebp - 0x11c]
cmp eax, ebx
cmova eax, ebx
cmp eax, ecx
je 0x41228b
mov dword [edx + 0x78], eax
mov edx, dword [esi + 8]
lea eax, [eax + edi - 1]
mov dword [edx + 0x80], eax
mov eax, esi
call sym._update_window
xor eax, eax
jmp 0x4122c3
mov ecx, dword [esi + 0x84]
test ecx, ecx
je case.0x412233.517
mov edx, dword [ecx + 0x2c]
mov eax, dword [ecx + 0x14]
test edx, edx
jne 0x413070
test eax, eax
je case.0x412233.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 0x413078
mov ebx, dword [ecx + 0x14]
test ebx, ebx
je 0x413078
mov dword [ecx + 0x14], 0
xor eax, eax
jmp 0x4122c3
mov eax, dword [esi + 0x84]
test eax, eax
je case.0x412233.517
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x412500
mov eax, dword [eax + 0x14]
test eax, eax
je case.0x412233.517
call sym._GetCapture_0
cmp dword [esi + 0xa8], eax
jne 0x41228b
mov ebx, dword [esi + 0x84]
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41228b
mov edi, dword [esi + 8]
mov eax, dword [ebp - 0x120]
movsx ecx, word [edi + 0x86]
sar eax, 0x10
cdq
idiv ecx
movzx edx, word [edi + 0x78]
movsx ecx, word [edi + 0x84]
add edx, eax
movsx eax, word [ebp - 0x120]
mov word [ebp - 0x11c], dx
cdq
idiv ecx
mov edx, dword [ebx + 0x18]
movzx ecx, ax
mov eax, dword [ebp - 0x11c]
add cx, word [edi + 0x74]
shl eax, 0x10
or ecx, eax
mov eax, esi
call sym._move_selection
call sym._ReleaseCapture_0
xor eax, eax
jmp 0x4122c3
cmp ebx, 0x104
mov eax, dword [ebp - 0x120]
sete dl
movzx edx, dl
mov dword [esp], eax
mov ecx, dword [ebp - 0x11c]
mov eax, esi
call sym._record_key_input
xor eax, eax
jmp 0x4122c3
mov eax, dword [esi + 0x84]
test eax, eax
je 0x4125c5
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x413160
cmp ebx, 0x100
jmp 0x412586
mov eax, dword [esi + 0x84]
test eax, eax
je 0x41228b
mov eax, dword [ebp - 0x11c]
cmp eax, 0x101
je case.0x4126eb.257
cmp eax, 0x102
je case.0x4126eb.258
mov eax, dword [ebp - 0x120]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x11c]
mov dword [esp + 4], 0x112
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._DefWindowProcW_16
sub esp, 0x10
jmp 0x4122c3
mov eax, dword [esi + 0x84]
test eax, eax
je 0x41228b
cmp dword [eax + 0x64], 1
je 0x412470
xor eax, eax
jmp 0x4122c3
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x84]
mov edx, dword [ecx + 0x7c]
mov ebx, dword [ecx + 0x74]
test eax, eax
je 0x41228b
mov edi, dword [ebp - 0x11c]
movzx eax, di
cmp di, 5
ja case.0x41267a.4
jmp dword [eax*4 + 0x417294]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x84]
mov ecx, dword [edx + 0x78]
mov edi, dword [edx + 0x80]
sub edi, ecx
add edi, 1
test eax, eax
je 0x41228b
mov ebx, dword [ebp - 0x11c]
movzx eax, bx
cmp bx, 5
ja case.0x4126ba.4
jmp dword [eax*4 + 0x4172ac]
mov eax, dword [esi + 0x84]
test eax, eax
je 0x41228b
mov edx, dword [ebp - 0x11c]
sub edx, 0x101
cmp edx, 0x14
ja case.0x4126eb.259
jmp dword [edx*4 + 0x4172c4]
mov ecx, dword [esi + 0x84]
test ecx, ecx
je 0x412fb0
mov eax, dword [ebp - 0x120]
shr eax, 0x10
je 0x412fb0
mov dword [esp + 4], 0
mov eax, dword [esi + 0xa8]
mov dword [esp], eax
call sym._GetSystemMenu_8
mov ebx, eax
mov eax, dword [esi + 0x84]
sub esp, 8
mov edx, dword [eax + 0x14]
xor eax, eax
mov dword [esp + 4], 0x111
mov dword [esp], ebx
test edx, edx
sete al
mov dword [esp + 8], eax
call sym._EnableMenuItem_12
sub esp, 0xc
mov dword [esp], 0xd
call sym._IsClipboardFormatAvailable_4
sub esp, 4
test eax, eax
sete al
mov dword [esp + 4], 0x112
movzx eax, al
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._EnableMenuItem_12
sub esp, 0xc
mov dword [esp + 8], 1
mov dword [esp + 4], 0x114
mov dword [esp], ebx
call sym._EnableMenuItem_12
sub esp, 0xc
mov dword [esp + 8], 1
mov dword [esp + 4], 0x115
mov dword [esp], ebx
call sym._EnableMenuItem_12
xor eax, eax
sub esp, 0xc
jmp 0x4122c3
mov eax, dword [esi + 0x84]
test eax, eax
je 0x41228b
mov edx, dword [esi + 8]
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x41228b
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 + 0xa8]
mov dword [esp], eax
call sym._CreateCaret_16
mov eax, dword [esi + 8]
sub esp, 0x10
mov edx, dword [eax + 0x18]
test edx, edx
je 0x41228b
mov ebx, dword [esi + 0xa8]
call sym._GetFocus_0
cmp ebx, eax
jne 0x41228b
mov edx, dword [esi + 8]
movsx ecx, word [edx + 0x86]
mov eax, dword [edx + 0x20]
sub eax, dword [edx + 0x78]
imul eax, ecx
mov dword [esp + 4], eax
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x1c]
sub eax, 1
cmp eax, ecx
cmova eax, ecx
sub eax, dword [edx + 0x74]
movsx edx, word [edx + 0x84]
imul eax, edx
mov dword [esp], eax
call sym._SetCaretPos_8
mov eax, dword [esi + 0xa8]
sub esp, 8
mov dword [esp], eax
call sym._ShowCaret_4
xor eax, eax
sub esp, 4
jmp 0x4122c3
mov eax, dword [esi + 0x84]
test eax, eax
je 0x41228b
mov ebx, dword [ebp - 0x11c]
test ebx, ebx
jne 0x412470
mov edx, dword [eax + 4]
test edx, edx
je 0x4128c4
mov dword [esp], edx
call sym._DeleteObject_4
mov eax, dword [esi + 0x84]
sub esp, 4
mov dword [eax + 4], 0
xor eax, eax
jmp 0x4122c3
mov eax, dword [esi + 0x84]
test eax, eax
je 0x41228b
lea edi, [ebp - 0x118]
mov dword [esp + 4], edi
mov eax, dword [esi + 0xa8]
mov dword [esp], eax
call sym._BeginPaint_8
mov edx, dword [esi + 8]
sub esp, 8
mov eax, dword [edx + 0x78]
movsx ebx, word [edx + 0x86]
mov ecx, dword [edx + 0x74]
mov dword [ebp - 0x11c], ecx
movsx ecx, word [edx + 0x84]
mov dword [esp + 0x20], 0xcc0020
mov dword [ebp - 0x120], eax
imul eax, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x124], ecx
imul ecx, eax
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 0x84]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov ecx, dword [edx + 0x80]
mov eax, dword [ebp - 0x120]
sub ecx, eax
mov eax, ecx
add eax, 1
imul eax, ebx
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x7c]
mov edx, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x124]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
sub eax, edx
add eax, 1
imul eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x118]
mov dword [esp], eax
call sym._BitBlt_36
mov eax, dword [esi + 0x84]
sub esp, 0x24
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x413210
mov dword [esp + 4], edi
mov eax, dword [esi + 0xa8]
mov dword [esp], eax
call sym._EndPaint_8
xor eax, eax
sub esp, 8
jmp 0x4122c3
mov eax, dword [esi + 0x84]
test eax, eax
je 0x41228b
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x41228b
call sym._DestroyCaret_0
xor eax, eax
jmp 0x4122c3
mov dword [esi + 0xa8], 0
mov dword [esp], 0
call sym._PostQuitMessage_4
xor eax, eax
sub esp, 4
jmp 0x4122c3
mov eax, dword [ebp - 0x120]
mov ebx, dword [eax]
test byte [0x415080], 8
jne 0x4130e0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], edi
call sym._SetWindowLongW_12
mov eax, dword [ebx + 0x84]
mov dword [ebx + 0xa8], edi
sub esp, 0xc
test eax, eax
je 0x41228b
mov dword [esp + 4], 0
mov dword [esp], edi
call sym._GetSystemMenu_8
sub esp, 8
mov esi, eax
test eax, eax
je 0x41228b
mov edi, dword [ebx + 0x84]
call sym._CreatePopupMenu_0
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x41228b
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 sym._CreateCompatibleDC_4
mov dword [ebx], eax
sub esp, 4
xor eax, eax
jmp 0x4122c3
mov eax, dword [esi + 0x84]
test eax, eax
je 0x41228b
cmp dword [eax + 0x64], 2
je 0x41228b
mov ebx, dword [ebp - 0x120]
mov ecx, dword [esi + 8]
mov eax, ebx
movsx edi, word [ecx + 0x86]
movsx ecx, word [ecx + 0x84]
shr eax, 0x10
cdq
idiv edi
mov edx, 0x14
lea edi, [ebp - 0x118]
cmp eax, edx
cmovge edx, eax
movzx eax, bx
mov dword [ebp - 0x11c], edx
cdq
idiv ecx
mov edx, 0x14
mov ebx, edx
cmp eax, edx
mov edx, edi
cmovge ebx, eax
mov eax, esi
call sym._current_config
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], edx
mov edx, dword [ebp - 0xac]
cmp edx, ebx
jae 0x412b6c
mov dword [ebp - 0xac], ebx
mov edx, ebx
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0x11c]
cmp eax, ecx
jae 0x412b84
mov dword [ebp - 0xa8], ecx
mov eax, ecx
movsx ecx, word [ebp - 0x9c]
add ecx, ebx
cmp edx, ecx
jae 0x412b9a
sub edx, ebx
mov word [ebp - 0x9c], dx
movsx edx, word [ebp - 0x9a]
mov ebx, dword [ebp - 0x11c]
add edx, ebx
cmp eax, edx
jae 0x412bb6
sub eax, ebx
mov word [ebp - 0x9a], ax
mov eax, esi
mov edx, edi
call sym._apply_config
xor eax, eax
jmp 0x4122c3
mov eax, dword [ebp - 0x120]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x11c]
mov dword [esp + 4], 0x111
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._DefWindowProcW_16
sub esp, 0x10
jmp 0x4122c3
mov ebx, dword [ebp - 0x11c]
shr ebx, 0x10
jmp 0x41243b
lea ebx, [ecx + 8]
jmp 0x41243b
lea ebx, [ecx - 8]
jmp 0x41243b
lea ebx, [ecx + 1]
jmp 0x41243b
lea ebx, [ecx - 1]
jmp 0x41243b
lea edi, [ebx - 1]
lea esi, [esi]
sub edx, ebx
mov eax, dword [ecx + 0xc]
add edx, 1
sub eax, edx
mov dword [ebp - 0x11c], edx
xor edx, edx
test edi, edi
cmovs edi, edx
cmp eax, edi
cmova eax, edi
cmp ebx, eax
je 0x41228b
mov edi, dword [ebp - 0x11c]
mov dword [ecx + 0x74], eax
mov ecx, dword [esi + 8]
lea eax, [eax + edi - 1]
mov dword [ecx + 0x7c], eax
mov eax, esi
call sym._update_window
xor eax, eax
jmp 0x4122c3
mov edi, dword [ebp - 0x11c]
shr edi, 0x10
jmp 0x412c30
lea edi, [ebx + 8]
jmp 0x412c30
lea edi, [ebx - 8]
jmp 0x412c30
lea edi, [ebx + 1]
jmp 0x412c30
mov ebx, ecx
jmp 0x41243b
test byte [0x415080], 1
je 0x41228b
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], 0x415080
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
xor eax, eax
jmp 0x4122c3
mov edi, ebx
jmp 0x412c30
mov eax, esi
mov edx, 1
call sym._config_dialog.isra.0
xor eax, eax
jmp 0x4122c3
mov eax, esi
xor edx, edx
call sym._config_dialog.isra.0
xor eax, eax
jmp 0x4122c3
xor ebx, ebx
xor edi, edi
mov word [eax + 0x1a], bx
mov eax, dword [esi + 0x84]
mov word [eax + 0x18], di
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
mov eax, esi
xor edx, edx
call sym._update_selection
mov eax, dword [esi + 0x84]
mov dword [eax + 0x14], 1
xor eax, eax
jmp 0x4122c3
xor edx, edx
xor ecx, ecx
xor ebx, ebx
xor edi, edi
mov word [eax + 0x1a], dx
mov eax, dword [esi + 0x84]
mov word [eax + 0x18], cx
mov eax, dword [esi + 0x84]
mov word [eax + 0x1e], bx
mov eax, dword [esi + 0x84]
mov word [eax + 0x1c], di
jmp 0x412d40
mov eax, dword [esi + 0xa8]
mov dword [esp], eax
call sym._OpenClipboard_4
sub esp, 4
test eax, eax
je 0x41228b
mov dword [esp], 0xd
call sym._GetClipboardData_4
mov dword [ebp - 0x128], eax
sub esp, 4
mov edi, eax
test eax, eax
je 0x412f00
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GlobalLock]
push ebx
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x412f00
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GlobalSize]
xor ecx, ecx
shr eax, 1
push edx
mov word [ebp - 0x118], 1
mov word [ebp - 0x110], 0
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x11c], eax
je 0x412ef0
mov eax, dword [ebp - 0x11c]
xor ebx, ebx
mov dword [ebp - 0x124], esi
lea edi, [ebp - 0x118]
mov esi, ebx
mov ebx, dword [ebp - 0x12c]
sub eax, 1
mov dword [ebp - 0x120], eax
movzx eax, word [ebx + esi*2]
mov dword [esp], eax
call sym._VkKeyScanW_4
sub esp, 4
movzx ecx, al
movzx eax, al
mov word [ebp - 0x10e], cx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._MapVirtualKeyW_8
mov word [ebp - 0x10c], ax
movzx eax, word [ebx + esi*2]
sub esp, 8
mov dword [ebp - 0x100], 0
mov word [ebp - 0x10a], ax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x110]
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
mov eax, dword [ebp - 0x120]
mov dword [esp + 8], 2
cmp esi, eax
mov dword [esp + 4], edi
sete al
add esi, 1
movzx eax, al
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x124]
mov dword [esp], eax
call sym._write_console_input
cmp dword [ebp - 0x11c], esi
jne 0x412e3a
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push eax
call sym._CloseClipboard_0
xor eax, eax
jmp 0x4122c3
mov edi, dword [eax + 0x14]
test edi, edi
je 0x41228b
mov dword [eax + 0x14], 0
xor edx, edx
mov eax, esi
call sym._update_selection
mov eax, esi
call sym._copy_selection
xor eax, eax
jmp 0x4122c3
mov eax, dword [esi + 0x84]
test eax, eax
je 0x412f58
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x412fe0
mov edi, dword [eax + 0x14]
test edi, edi
jne 0x412fe0
mov ebx, dword [ebp - 0x120]
mov edi, dword [esi + 8]
mov eax, ebx
movsx ecx, word [edi + 0x86]
sar eax, 0x10
cdq
idiv ecx
movzx ecx, word [edi + 0x78]
add ecx, eax
movsx eax, bx
movsx ebx, word [edi + 0x84]
cdq
shl ecx, 0x10
idiv ebx
movzx edx, ax
add dx, word [edi + 0x74]
mov dword [esp], 1
mov eax, esi
or edx, ecx
mov ecx, dword [ebp - 0x11c]
call sym._record_mouse_input
xor eax, eax
jmp 0x4122c3
mov eax, dword [ebp - 0x120]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x11c]
mov dword [esp + 4], 0x117
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._DefWindowProcW_16
sub esp, 0x10
jmp 0x4122c3
call sym._GetCapture_0
cmp dword [esi + 0xa8], eax
jne 0x41228b
mov ecx, dword [esi + 0x84]
mov ebx, dword [ecx + 0x14]
test ebx, ebx
je 0x41228b
test byte [ebp - 0x11c], 1
je 0x41228b
mov edi, dword [esi + 8]
mov eax, dword [ebp - 0x120]
movsx ebx, word [edi + 0x86]
sar eax, 0x10
cdq
idiv ebx
movsx edx, word [edi + 0x84]
movzx ebx, word [edi + 0x78]
mov dword [ebp - 0x11c], edx
add ebx, eax
movsx eax, word [ebp - 0x120]
cdq
idiv dword [ebp - 0x11c]
movzx edx, ax
mov eax, ebx
add dx, word [edi + 0x74]
shl eax, 0x10
or edx, eax
mov eax, dword [ecx + 0x18]
mov ecx, edx
mov edx, eax
mov eax, esi
call sym._move_selection
xor eax, eax
jmp 0x4122c3
test eax, eax
jne 0x4124a4
mov edi, dword [esi + 8]
mov eax, dword [ebp - 0x120]
movsx ebx, word [edi + 0x86]
sar eax, 0x10
cdq
idiv ebx
movsx edx, word [edi + 0x84]
movzx ebx, word [edi + 0x78]
mov dword [ebp - 0x11c], edx
add ebx, eax
movsx eax, word [ebp - 0x120]
cdq
idiv dword [ebp - 0x11c]
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 + 0xa8]
mov dword [esp], eax
call sym._SetCapture_4
sub esp, 4
jmp 0x412d40
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x417187
mov dword [esp + 8], str.window_create
mov dword [esp + 4], 0x415080
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x412a35
mov eax, dword [ebp - 0x120]
movsx edi, word [ecx + 0x86]
sar eax, 0x10
cdq
idiv edi
movsx edi, word [ecx + 0x84]
add ebx, eax
movsx eax, word [ebp - 0x120]
cdq
idiv edi
movzx edx, ax
mov eax, ebx
add dx, word [ecx + 0x74]
mov dword [esp], 4
shl eax, 0x10
mov ecx, dword [ebp - 0x11c]
or edx, eax
mov eax, esi
call sym._record_mouse_input
xor eax, eax
jmp 0x4122c3
cmp ebx, 0x100
jne 0x41228b
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sym._GetKeyboardState_4
movsx eax, byte [ebp - 0x108]
sub esp, 4
shr eax, 0x1f
shl eax, 4
cmp byte [ebp - 0x76], 0
jns 0x413193
or eax, 8
cmp byte [ebp - 0x75], 0
jns 0x41319c
or eax, 4
cmp byte [ebp - 0x74], 0
jns 0x4131a5
or eax, 2
cmp byte [ebp - 0x73], 0
jns 0x4131ae
or eax, 1
and eax, 0xffffff1f
je 0x41334d
cmp eax, 0x10
jne case.0x41335b.14
mov eax, dword [ebp - 0x11c]
cmp eax, 0x27
je 0x413445
ja 0x413415
cmp eax, 0x25
je 0x413437
cmp eax, 0x26
jne case.0x41335b.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
xor eax, eax
jmp 0x4122c3
mov edx, dword [ebp - 0x118]
mov eax, esi
call sym._update_selection
jmp 0x4129b9
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x118]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._ClientToScreen_8
mov eax, dword [esi + 0x84]
sub esp, 8
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], 0x111
test eax, eax
mov dword [esp], ebx
sete al
movzx eax, al
mov dword [esp + 8], eax
call sym._EnableMenuItem_12
sub esp, 0xc
mov dword [esp], 0xd
call sym._IsClipboardFormatAvailable_4
sub esp, 4
test eax, eax
sete al
mov dword [esp + 4], 0x112
movzx eax, al
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._EnableMenuItem_12
sub esp, 0xc
mov dword [esp + 8], 1
mov dword [esp + 4], 0x114
mov dword [esp], ebx
call sym._EnableMenuItem_12
sub esp, 0xc
mov dword [esp + 8], 1
mov dword [esp + 4], 0x115
mov dword [esp], ebx
call sym._EnableMenuItem_12
sub esp, 0xc
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x114]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x118]
mov dword [esp + 4], 2
mov dword [esp + 8], eax
mov eax, dword [esi + 0x84]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sym._TrackPopupMenu_28
xor eax, eax
sub esp, 0x1c
jmp 0x4122c3
cmp dword [ebp - 0x11c], 0x1f
jbe 0x41228b
mov eax, esi
xor edx, edx
call sym._update_selection
mov eax, dword [esi + 0x84]
mov dword [eax + 0x14], 0
xor eax, eax
jmp 0x4122c3
mov eax, dword [ebp - 0x11c]
sub eax, 0xd
cmp eax, 0x1b
ja case.0x41335b.14
jmp dword [eax*4 + 0x417318]
mov ecx, dword [esi + 0x84]
movzx eax, word [ecx + 0x1e]
movzx edx, word [ecx + 0x18]
lea ebx, [eax + 1]
movzx eax, word [ecx + 0x1a]
add eax, 1
shl eax, 0x10
or edx, eax
mov eax, ebx
jmp 0x4131f9
mov eax, dword [esi + 0x84]
mov edx, dword [eax + 0x18]
movzx edi, word [eax + 0x18]
mov ecx, dword [eax + 0x1c]
mov dx, di
add dx, 1
movzx eax, word [eax + 0x1c]
mov cx, ax
mov eax, esi
add cx, 1
call sym._move_selection
xor eax, eax
jmp 0x4122c3
mov ecx, dword [esi + 0x84]
movzx eax, word [ecx + 0x1e]
movzx edx, word [ecx + 0x18]
lea ebx, [eax - 1]
movzx eax, word [ecx + 0x1a]
sub eax, 1
shl eax, 0x10
or edx, eax
mov eax, ebx
jmp 0x4131f9
mov eax, dword [esi + 0x84]
mov edx, dword [eax + 0x18]
movzx edi, word [eax + 0x18]
mov ecx, dword [eax + 0x1c]
mov dx, di
sub dx, 1
movzx eax, word [eax + 0x1c]
mov cx, ax
mov eax, esi
sub cx, 1
call sym._move_selection
xor eax, eax
jmp 0x4122c3
mov eax, dword [esi + 0x84]
jmp 0x412f17
cmp dword [ebp - 0x11c], 0x28
jne 0x413330
mov ecx, dword [esi + 0x84]
movzx eax, word [ecx + 0x1e]
mov edx, dword [ecx + 0x18]
add eax, 1
jmp 0x4131f9
mov eax, dword [esi + 0x84]
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 0x1c]
jmp 0x4133f1
mov eax, dword [esi + 0x84]
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 0x1c]
jmp 0x41339d