Function at 0x406269
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x330
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
cmp dword [0x419f6c], eax
jne 0x40540e
call dbg.handle_findmsg
xor eax, eax
add esp, 0x330
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
cmp eax, 0x4d
jg 0x405e8a
dec eax
cmp eax, 0xf
ja case.0x405427.3
jmp dword [eax*4 + 0x40c950]
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov esi, eax
push 0x7d0
push ebx
push str.RichEdit_text
push 0x50000040
call dword [sym.imp.comctl32.dll_CreateStatusWindowW]
sub esp, 0x30
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], ebx
movaps xmm0, xmmword [0x40c770]
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x7d4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 4], str.ReBarWindow32
mov dword [esp], 0x80
call dword [sym.imp.user32.dll_CreateWindowExW]
mov edi, eax
mov dword [ebp - 0xc8], 0xc
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
lea eax, [ebp - 0xc8]
push eax
push 0
push 0x404
push edi
call dword [sym.imp.user32.dll_SendMessageW]
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
je 0x405401
sub esp, 0x34
movaps xmm0, xmmword [0x40c780]
movups xmmword [esp + 0x24], xmm0
movaps xmm0, xmmword [0x40c790]
movups xmmword [esp + 0x14], xmm0
mov dword [esp + 0x10], esi
mov dword [esp], edi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x7d2
mov dword [esp + 4], 0x5000010a
call sym._CreateToolbarEx_52
mov dword [ebp - 0x14], ebx
mov ebx, eax
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_GetDC]
mov dword [ebp - 0x10], esi
mov esi, eax
push 0x5a
push eax
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
mov dword [ebp - 0x24], edi
mov edi, eax
push esi
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_ReleaseDC]
mov dword [ebp - 0xbc], 0xffffffff
xor eax, eax
cmp edi, 0x78
setge al
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xbc]
mov esi, dword [sym.imp.user32.dll_SendMessageW]
push eax
push 0
push 0x413
push ebx
call esi
mov edi, eax
add eax, 6
mov dword [ebp - 0x2d0], eax
movaps xmm0, xmmword [0x40c7a0]
movups xmmword [ebp - 0x2cc], xmm0
lea eax, [ebp - 0x2d0]
push eax
push 1
push 0x444
push ebx
call esi
lea eax, [edi + 7]
mov dword [ebp - 0x2d0], eax
movaps xmm0, xmmword [0x40c7b0]
movups xmmword [ebp - 0x2cc], xmm0
lea eax, [ebp - 0x2d0]
push eax
push 1
push 0x444
push ebx
call esi
lea eax, [edi + 8]
mov dword [ebp - 0x2d0], eax
movaps xmm0, xmmword [0x40c7c0]
movups xmmword [ebp - 0x2cc], xmm0
lea eax, [ebp - 0x2d0]
push eax
push 1
push 0x444
push ebx
call esi
movaps xmm0, xmmword [0x40c7d0]
movups xmmword [ebp - 0x2d0], xmm0
mov dword [ebp - 0x2c0], 0xffffffff
lea eax, [ebp - 0x2d0]
push eax
push 1
push 0x444
push ebx
call esi
lea eax, [edi + 0xe]
mov dword [ebp - 0x2d0], eax
movaps xmm0, xmmword [0x40c7e0]
movups xmmword [ebp - 0x2cc], xmm0
lea eax, [ebp - 0x2d0]
push eax
push 1
push 0x444
push ebx
call esi
lea eax, [edi + 9]
mov dword [ebp - 0x2d0], eax
movaps xmm0, xmmword [0x40c7f0]
movups xmmword [ebp - 0x2cc], xmm0
lea eax, [ebp - 0x2d0]
push eax
push 1
push 0x444
push ebx
call esi
movaps xmm0, xmmword [0x40c7d0]
movups xmmword [ebp - 0x2d0], xmm0
mov dword [ebp - 0x2c0], 0xffffffff
lea eax, [ebp - 0x2d0]
push eax
push 1
push 0x444
push ebx
call esi
lea eax, [edi + 0xc]
mov dword [ebp - 0x2d0], eax
movaps xmm0, xmmword [0x40c800]
movups xmmword [ebp - 0x2cc], xmm0
lea eax, [ebp - 0x2d0]
push eax
push 1
push 0x444
push ebx
call esi
movaps xmm0, xmmword [0x40c7d0]
movups xmmword [ebp - 0x2d0], xmm0
mov dword [ebp - 0x2c0], 0xffffffff
lea eax, [ebp - 0x2d0]
push eax
push 1
push 0x444
push ebx
call esi
mov dword [ebp - 0x2d0], edi
movaps xmm0, xmmword [0x40c810]
movups xmmword [ebp - 0x2cc], xmm0
lea eax, [ebp - 0x2d0]
push eax
push 1
push 0x444
push ebx
call esi
lea eax, [edi + 1]
mov dword [ebp - 0x2d0], eax
movaps xmm0, xmmword [0x40c820]
movups xmmword [ebp - 0x2cc], xmm0
lea eax, [ebp - 0x2d0]
push eax
push 1
push 0x444
push ebx
call esi
lea eax, [edi + 2]
mov dword [ebp - 0x2d0], eax
movaps xmm0, xmmword [0x40c830]
movups xmmword [ebp - 0x2cc], xmm0
lea eax, [ebp - 0x2d0]
push eax
push 1
push 0x444
push ebx
call esi
lea eax, [edi + 3]
mov dword [ebp - 0x2d0], eax
movaps xmm0, xmmword [0x40c840]
movups xmmword [ebp - 0x2cc], xmm0
lea eax, [ebp - 0x2d0]
push eax
push 1
push 0x444
push ebx
call esi
add edi, 4
mov dword [ebp - 0x2d0], edi
movaps xmm0, xmmword [0x40c850]
movups xmmword [ebp - 0x2cc], xmm0
lea edi, [ebp - 0x2d0]
push edi
push 1
push 0x444
push ebx
call esi
movaps xmm0, xmmword [0x40c7d0]
movups xmmword [ebp - 0x2d0], xmm0
mov dword [ebp - 0x2c0], 0xffffffff
push edi
push 1
push 0x444
push ebx
call esi
movaps xmm0, xmmword [0x40c860]
movups xmmword [ebp - 0x2d0], xmm0
mov dword [ebp - 0x2c0], 0xffffffff
push edi
push 1
push 0x444
push ebx
call esi
push 0
push 0
push 0x421
push ebx
call esi
push 0
push 0
push 0x43a
push ebx
call esi
mov esi, eax
shr esi, 0x10
sub esp, 0x30
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x20], eax
movaps xmm0, xmmword [0x40c870]
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x7dd
mov dword [esp + 0x1c], 0x96
mov dword [esp + 0x18], 0xc8
mov dword [esp + 4], str.ComboBoxEx32
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x3c]
push ecx
push eax
call dword [sym.imp.user32.dll_GetWindowRect]
mov edi, dword [ebp - 0x30]
sub edi, dword [ebp - 0x38]
cmp esi, edi
cmovg edi, esi
movzx eax, di
mov ecx, edi
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 0x40], ecx
push ecx
push 0
push 0x41f
push ebx
mov esi, dword [sym.imp.user32.dll_SendMessageW]
call esi
mov dword [ebp - 0xb4], 0x50
mov dword [ebp - 0xb0], 0x171
mov dword [ebp - 0xac], 0x105
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], 2
lea eax, [ebp - 0xb4]
push eax
push 0xffffffffffffffff
push 0x40a
push dword [ebp - 0x24]
call esi
push 0
push 0
push 0x31
mov ebx, dword [ebp - 0x28]
push ebx
call esi
mov esi, eax
push ebx
call dword [sym.imp.user32.dll_GetDC]
mov ebx, eax
push esi
push eax
call dword [sym.imp.gdi32.dll_SelectObject]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2e0]
mov esi, dword [sym.imp.gdi32.dll_GetTextExtentPointW]
push eax
push 0xf
push str.Times_New_Roman
push ebx
call esi
lea eax, [ebp - 0x2d8]
push eax
push 3
push 0x40d312
push ebx
call esi
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.gdi32.dll_SelectObject]
push ebx
mov esi, dword [ebp - 0x28]
push esi
call dword [sym.imp.user32.dll_ReleaseDC]
mov dword [ebp - 0x94], esi
push 2
push 3
push dword [ebp - 0x2e0]
call dword [sym.imp.kernel32.dll_MulDiv]
add eax, edi
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x80], 4
lea eax, [ebp - 0xb4]
push eax
push 0xffffffffffffffff
push 0x40a
mov esi, dword [ebp - 0x24]
push esi
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x30
mov ebx, dword [ebp - 0x10]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], esi
movaps xmm0, xmmword [0x40c880]
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x7de
mov dword [esp + 0x1c], 0x96
mov dword [esp + 0x18], 0x32
mov dword [esp + 4], str.ComboBoxEx32
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x94], eax
push 2
push 3
push dword [ebp - 0x2d8]
call dword [sym.imp.kernel32.dll_MulDiv]
add eax, edi
mov edi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x88], eax
xor byte [ebp - 0xac], 1
mov dword [ebp - 0x80], 5
lea eax, [ebp - 0xb4]
push eax
push 0xffffffffffffffff
push 0x40a
push esi
call edi
sub esp, 0x34
movaps xmm0, xmmword [0x40c890]
movups xmmword [esp + 0x24], xmm0
movaps xmm0, xmmword [0x40c8a0]
movups xmmword [esp + 0x14], xmm0
mov dword [esp + 0x10], ebx
mov dword [esp], esi
mov dword [esp + 0xc], 8
mov dword [esp + 8], 0x7d3
mov dword [esp + 4], 0x1000010a
call sym._CreateToolbarEx_52
mov ebx, eax
push 1
push 0
push 0x454
push eax
mov esi, edi
call edi
push dword [ebp - 0x40]
push 0
push 0x41f
push ebx
call edi
movaps xmm0, xmmword [0x40c8b0]
movups xmmword [ebp - 0x2d0], xmm0
mov dword [ebp - 0x2c0], 0xffffffff
lea edi, [ebp - 0x2d0]
push edi
push 1
push 0x444
push ebx
call esi
movaps xmm0, xmmword [0x40c8c0]
movups xmmword [ebp - 0x2d0], xmm0
mov dword [ebp - 0x2c0], 0xffffffff
push edi
push 1
push 0x444
push ebx
call esi
movaps xmm0, xmmword [0x40c8d0]
movups xmmword [ebp - 0x2d0], xmm0
mov dword [ebp - 0x2c0], 0xffffffff
push edi
push 1
push 0x444
push ebx
call esi
movaps xmm0, xmmword [0x40c8e0]
movups xmmword [ebp - 0x2d0], xmm0
mov dword [ebp - 0x2c0], 0xffffffff
push edi
push 1
push 0x444
push ebx
call esi
movaps xmm0, xmmword [0x40c7d0]
movups xmmword [ebp - 0x2d0], xmm0
mov dword [ebp - 0x2c0], 0xffffffff
push edi
push 1
push 0x444
push ebx
call esi
movaps xmm0, xmmword [0x40c8f0]
movups xmmword [ebp - 0x2d0], xmm0
mov dword [ebp - 0x2c0], 0xffffffff
push edi
push 1
push 0x444
push ebx
call esi
movaps xmm0, xmmword [0x40c900]
movups xmmword [ebp - 0x2d0], xmm0
mov dword [ebp - 0x2c0], 0xffffffff
push edi
push 1
push 0x444
push ebx
call esi
movaps xmm0, xmmword [0x40c910]
movups xmmword [ebp - 0x2d0], xmm0
mov dword [ebp - 0x2c0], 0xffffffff
push edi
push 1
push 0x444
push ebx
call esi
movaps xmm0, xmmword [0x40c7d0]
movups xmmword [ebp - 0x2d0], xmm0
mov dword [ebp - 0x2c0], 0xffffffff
push edi
push 1
push 0x444
push ebx
call esi
movaps xmm0, xmmword [0x40c920]
movups xmmword [ebp - 0x2d0], xmm0
mov dword [ebp - 0x2c0], 0xffffffff
push edi
push 1
push 0x444
push ebx
call esi
push 0
push 0
push 0x421
push ebx
call esi
mov dword [ebp - 0x94], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x80], 3
lea eax, [ebp - 0xb4]
push eax
push 0xffffffffffffffff
push 0x40a
mov edi, dword [ebp - 0x24]
push edi
call esi
push 0
push dword [ebp - 0x10]
push 0x7df
push edi
push 0xa
push 0xc8
push 0
push 0
push 0x50000000
push 0
push str.Static
push 0
call dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x80], 0
or byte [ebp - 0xac], 1
lea eax, [ebp - 0xb4]
push eax
push 0xffffffffffffffff
push 0x40a
push edi
call esi
push str.RICHED20.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryW]
test eax, eax
jne 0x405cca
mov dword [ebp - 0x2d0], 0x28
mov dword [ebp - 0x2cc], ebx
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0x2c8], eax
mov dword [ebp - 0x2c4], 0x6a7
mov dword [ebp - 0x2c0], 0x40d2c2
mov dword [ebp - 0x2bc], 0x30
xorps xmm0, xmm0
movups xmmword [ebp - 0x2b8], xmm0
lea eax, [ebp - 0x2d0]
push eax
call dword [sym.imp.user32.dll_MessageBoxIndirectW]
push 1
call dword [sym.imp.user32.dll_PostQuitMessage]
sub esp, 0x30
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ebx
movaps xmm0, xmmword [0x40c930]
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x7d1
mov dword [esp + 0x1c], 0x64
mov dword [esp + 0x18], 0x3e8
mov dword [esp + 4], str.RichEdit20W
mov dword [esp], 0x200
call dword [sym.imp.user32.dll_CreateWindowExW]
mov ecx, eax
mov dword [0x419f78], eax
test eax, eax
mov eax, 0xffffffff
je 0x405401
push ecx
call dbg.setup_richedit_olecallback
add esp, 4
push dword [0x419f78]
call dword [sym.imp.user32.dll_SetFocus]
push 0x80000
push 0
push 0x445
push dword [0x419f78]
call dword [sym.imp.user32.dll_SendMessageW]
xorps xmm0, xmm0
movsd qword [ebp - 0x264], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x274], xmm0
movups xmmword [ebp - 0x284], xmm0
movups xmmword [ebp - 0x294], xmm0
movups xmmword [ebp - 0x2a4], xmm0
movups xmmword [ebp - 0x2b4], xmm0
movups xmmword [ebp - 0x2c4], xmm0
mov dword [ebp - 0x2d0], 0x74
mov dword [ebp - 0x2cc], 0x20000007
mov dword [ebp - 0x2c8], 0
test byte [0x419258], 2
mov ecx, str.Courier_New
mov eax, str.Times_New_Roman
cmove eax, ecx
xor ecx, ecx
nop word cs:[eax + eax]
movzx edx, word [eax + ecx]
mov word [ebp + ecx - 0x2b6], dx
add ecx, 2
test dx, dx
jne 0x405dd0
lea eax, [ebp - 0x2d0]
push eax
push 0
push 0x444
push dword [0x419f78]
call esi
xorps xmm0, xmm0
movsd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
push dword [0x419f58]
call dword [sym.imp.user32.dll_GetDC]
mov edi, eax
push 0
push 0
push 0x407
push dword [ebp - 0x28]
call esi
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x325], 1
mov word [ebp - 0x320], 0
mov byte [ebp - 0x321], 0
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x33c]
push 0
push eax
push dbg._enum_font_proc@16
push ecx
push edi
call dword [sym.imp.gdi32.dll_EnumFontFamiliesExW]
push dbg.fonts_desc_compare
push 8
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.ucrtbase.dll_qsort]
add esp, 0x10
cmp dword [ebp - 0x1c], 2
jb 0x4067c4
mov esi, 1
xor ebx, ebx
mov edi, dword [sym.imp.kernel32.dll_lstrcmpiW]
jmp 0x4061e6
cmp eax, 0x116
jg 0x405ecf
cmp eax, 0x4e
je 0x4062ff
cmp eax, 0x7b
je 0x4066f5
cmp eax, 0x111
jne case.0x405427.3
mov esi, ecx
call dbg.preview_isactive
test eax, eax
je 0x4067b2
push edi
push ebx
call dbg.preview_command
add esp, 0x338
jmp 0x405407
cmp eax, 0x117
je 0x4063da
cmp eax, 0x233
je 0x4066fb
cmp eax, 0x400
jne case.0x405427.3
mov edi, dword [sym.imp.user32.dll_GetDlgItem]
push 0x7d1
push ebx
call edi
mov dword [ebp - 0x14], eax
push 0x7d4
push ebx
call edi
mov esi, eax
push 0x7d2
push eax
call edi
mov ebx, eax
push 0x7d3
push esi
call edi
mov dword [ebp - 0x10], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0xb0], xmm0
movups xmmword [ebp - 0xa0], xmm0
movups xmmword [ebp - 0x90], xmm0
movups xmmword [ebp - 0x80], xmm0
movups xmmword [ebp - 0x70], xmm0
movups xmmword [ebp - 0x60], xmm0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0xb4], 0x74
movups xmmword [ebp - 0x2cc], xmm0
movups xmmword [ebp - 0x2bc], xmm0
movups xmmword [ebp - 0x2ac], xmm0
movups xmmword [ebp - 0x29c], xmm0
movups xmmword [ebp - 0x28c], xmm0
movups xmmword [ebp - 0x27c], xmm0
movups xmmword [ebp - 0x26c], xmm0
movups xmmword [ebp - 0x25c], xmm0
movups xmmword [ebp - 0x24c], xmm0
movups xmmword [ebp - 0x23c], xmm0
movups xmmword [ebp - 0x22c], xmm0
xorps xmm0, xmm0
movsd qword [ebp - 0x21c], xmm0
mov dword [ebp - 0x2d0], 0xbc
mov dword [ebp - 0x33c], 8
mov dword [ebp - 0x338], 0x4b0
lea eax, [ebp - 0x33c]
mov edi, dword [sym.imp.user32.dll_SendMessageW]
push 0
push eax
push 0x45f
mov esi, dword [ebp - 0x14]
push esi
call edi
xor ecx, ecx
test eax, eax
setne cl
push ecx
push 0x3f6
push 0x401
push ebx
call edi
lea eax, [ebp - 0xb4]
push eax
push 1
push 0x43a
push esi
call edi
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x3c]
push eax
push ecx
push 0xb0
push esi
call edi
push 0
push 0
push 0xc6
push esi
call edi
push eax
push 0x51b
push 0x401
push ebx
call edi
push 0
push 0
push 0x455
push esi
call edi
push eax
push 0x51c
push 0x401
push ebx
call edi
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
cmp eax, dword [ebp - 0x20]
setne cl
push ecx
push 0x51f
push 0x401
push ebx
call edi
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
cmp eax, dword [ebp - 0x20]
setne cl
push ecx
push 0x51e
push 0x401
push ebx
call edi
mov eax, dword [ebp - 0xb0]
and eax, dword [ebp - 0xac]
and eax, 1
push eax
push 0x578
push 0x402
mov esi, dword [ebp - 0x10]
push esi
call edi
mov eax, dword [ebp - 0xb0]
not eax
and eax, 1
push eax
push 0x578
push 0x405
push esi
call edi
movzx ecx, byte [ebp - 0xb0]
shr cl, 1
mov eax, dword [ebp - 0xac]
and eax, 2
shr eax, 1
and al, cl
movzx eax, al
push eax
push 0x579
push 0x402
push esi
call edi
xor eax, eax
test byte [ebp - 0xb0], 2
sete al
push eax
push 0x579
push 0x405
push esi
call edi
movzx ecx, byte [ebp - 0xb0]
shr cl, 2
mov eax, dword [ebp - 0xac]
and eax, 4
shr eax, 2
and al, cl
movzx eax, al
push eax
push 0x57a
push 0x402
push esi
call edi
xor eax, eax
test byte [ebp - 0xb0], 4
sete al
push eax
push 0x57a
push 0x405
push esi
call edi
lea eax, [ebp - 0x2d0]
push eax
push 0
push 0x43d
push dword [ebp - 0x14]
call edi
xor eax, eax
cmp word [ebp - 0x2b8], 1
sete al
push eax
push 0x44c
push 0x402
push esi
call edi
xor eax, eax
cmp word [ebp - 0x2b8], 3
sete al
push eax
push 0x44d
push 0x402
push esi
call edi
xor eax, eax
cmp word [ebp - 0x2b8], 2
sete al
push eax
push 0x44e
push 0x402
push esi
call edi
xor eax, eax
cmp word [ebp - 0x2c8], 0
setne al
push eax
push 0x522
push 0x402
push esi
call edi
jmp 0x4053ff
mov eax, dword [ebp - 0x20]
push dword [eax + esi*8]
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [eax + esi*8], 0
mov eax, ebx
inc esi
mov ebx, eax
cmp esi, dword [ebp - 0x1c]
jae 0x4067d0
mov eax, dword [ebp - 0x20]
push dword [eax + ebx*8]
push dword [eax + esi*8]
call edi
test eax, eax
je 0x4061bf
lea ecx, [ebx + 1]
mov eax, esi
cmp esi, ecx
je 0x4061da
mov eax, dword [ebp - 0x20]
movsd xmm0, qword [eax + esi*8]
movsd qword [eax + ebx*8 + 8], xmm0
mov ebx, ecx
jmp 0x4061ce
mov esi, ecx
call dbg.preview_isactive
test eax, eax
je 0x406762
add esp, 0x330
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.user32.dll_DefWindowProcW]
xor eax, eax
test di, di
je 0x405401
push 0x7d1
push ebx
call dword [sym.imp.user32.dll_GetDlgItem]
push eax
call dword [sym.imp.user32.dll_SetFocus]
jmp 0x4053ff
mov eax, ecx
mov ecx, ebx
mov edx, edi
push eax
call dbg.OnSize
add esp, 0x334
jmp 0x405407
call dbg.preview_isactive
test eax, eax
je 0x406774
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push 0x898
push eax
call dword [sym.imp.user32.dll_LoadMenuW]
mov esi, eax
push 0x7d1
push ebx
call dword [sym.imp.user32.dll_GetDlgItem]
mov edi, eax
call dbg.set_bar_states
push 1
push edi
call dword [sym.imp.user32.dll_ShowWindow]
push ebx
call dbg.close_preview
add esp, 4
push esi
push ebx
call dword [sym.imp.user32.dll_SetMenu]
push ebx
call dbg.registry_read_filelist
add esp, 4
lea eax, [ebp - 0x2d0]
push eax
push dword [0x419f58]
call dword [sym.imp.user32.dll_GetClientRect]
mov ecx, dword [0x419f58]
movzx eax, word [ebp - 0x2c8]
mov esi, dword [ebp - 0x2c4]
shl esi, 0x10
or esi, eax
xor edx, edx
push esi
call dbg.OnSize
xor eax, eax
add esp, 4
jmp 0x405401
mov esi, ebx
mov ebx, dword [sym.imp.user32.dll_GetDlgItem]
push 0x7d1
push esi
mov dword [ebp - 0x10], ecx
call ebx
mov dword [ebp - 0x24], eax
push 0x7d4
mov dword [ebp - 0x14], esi
push esi
call ebx
mov edi, eax
push 0x7dd
push eax
call ebx
mov esi, eax
push 0x7de
push edi
call ebx
push 0x7d3
push edi
mov edi, eax
call ebx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx]
cmp ecx, esi
je 0x406734
cmp ecx, edi
je 0x406734
cmp ecx, eax
je 0x406ac6
xor eax, eax
mov ebx, dword [ebp - 0x24]
cmp ecx, ebx
jne 0x405401
cmp dword [edx + 8], 0x702
jne 0x405401
mov esi, edx
call dbg.update_font_list
mov edi, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
push 0
push 0
push 0xba
push ebx
call dword [sym.imp.user32.dll_SendMessageW]
lea ebx, [ebp - 0x2d0]
push eax
push esi
push edi
push str.selection___ld.._ld__line_count_Id
push ebx
call sym._sprintf
add esp, 0x14
push 0x7d0
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.user32.dll_GetDlgItem]
push ebx
push eax
call dword [sym.imp.user32.dll_SetWindowTextA]
push 0
push 0
push 0x400
push esi
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, 1
jmp 0x405401
mov esi, dword [sym.imp.user32.dll_GetDlgItem]
push 0x7d1
push ebx
call esi
mov dword [ebp - 0x14], eax
push 0x7d0
push ebx
call esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x3c]
mov esi, dword [sym.imp.user32.dll_SendMessageW]
push eax
push ecx
push 0xb0
push dword [0x419f78]
call esi
mov ebx, esi
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
cmp eax, dword [ebp - 0x20]
sete cl
mov esi, dword [sym.imp.user32.dll_EnableMenuItem]
push ecx
push 0x51e
push edi
call esi
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
cmp eax, dword [ebp - 0x20]
sete cl
push ecx
push 0x51f
push edi
call esi
mov dword [ebp - 0x2d0], 0x9c
lea eax, [ebp - 0x2d0]
push eax
push 0
push 0x43d
mov esi, dword [ebp - 0x14]
push esi
call ebx
push 0xfffffffffffffff0
push esi
mov ebx, esi
call dword [sym.imp.user32.dll_GetWindowLongW]
shr eax, 8
and eax, 8
mov esi, dword [sym.imp.user32.dll_CheckMenuItem]
push eax
push 0x516
push edi
call esi
push 0
push 0
push 0xb8
push ebx
call dword [sym.imp.user32.dll_SendMessageW]
xor ecx, ecx
test eax, eax
setne cl
shl ecx, 3
push ecx
push 0x517
push edi
call esi
mov eax, dword [ebp - 0x2cc]
and eax, 8
movzx ecx, word [ebp - 0x2b8]
cmp eax, 1
mov ebx, 0
sbb ebx, ebx
or ebx, ecx
xor eax, eax
cmp ebx, 1
sete al
shl eax, 3
push eax
push 0x44c
push edi
call esi
xor eax, eax
cmp ebx, 3
sete al
shl eax, 3
push eax
push 0x44d
push edi
call esi
xor eax, eax
cmp ebx, 2
sete al
shl eax, 3
push eax
push 0x44e
push edi
call esi
xor eax, eax
cmp word [ebp - 0x2c8], 1
sete al
shl eax, 3
push eax
push 0x523
push edi
call esi
xor eax, eax
cmp word [ebp - 0x2c8], 2
sete al
shl eax, 3
push eax
push 0x524
push edi
call esi
xor eax, eax
cmp word [ebp - 0x2c8], 3
sete al
shl eax, 3
push eax
push 0x525
push edi
call esi
xor eax, eax
cmp word [ebp - 0x2c8], 4
sete al
shl eax, 3
push eax
push 0x526
push edi
call esi
xor eax, eax
cmp word [ebp - 0x2c8], 5
sete al
shl eax, 3
push eax
push 0x527
push edi
call esi
xor eax, eax
cmp word [ebp - 0x2c8], 6
sete al
shl eax, 3
push eax
push 0x528
push edi
call esi
push 0
push 0
push 0xc6
push dword [ebp - 0x14]
mov esi, dword [sym.imp.user32.dll_SendMessageW]
call esi
xor ecx, ecx
test eax, eax
sete cl
push ecx
push 0x51b
push edi
mov ebx, dword [sym.imp.user32.dll_EnableMenuItem]
call ebx
push 0
push 0
push 0x455
push dword [ebp - 0x14]
call esi
xor ecx, ecx
test eax, eax
sete cl
push ecx
push 0x51c
push edi
call ebx
push dword [0x419258]
call dbg.reg_formatindex
add esp, 4
mov eax, dword [eax*4 + 0x419f70]
add eax, eax
and eax, 8
push eax
push 0x5dc
push edi
mov esi, dword [sym.imp.user32.dll_CheckMenuItem]
call esi
push dword [0x419258]
call dbg.reg_formatindex
add esp, 4
mov eax, dword [eax*4 + 0x419f70]
and eax, 8
push eax
push 0x5dd
push edi
call esi
push dword [ebp - 0x10]
call dword [sym.imp.user32.dll_IsWindowVisible]
xor ecx, ecx
test eax, eax
setne cl
shl ecx, 3
push ecx
push 0x5de
push edi
call esi
push dword [0x419258]
call dbg.reg_formatindex
add esp, 4
mov eax, dword [eax*4 + 0x419f70]
shl eax, 3
and eax, 8
push eax
push 0x5df
push edi
call esi
mov dword [ebp - 0x33c], 8
mov dword [ebp - 0x338], 0x4b0
lea eax, [ebp - 0x33c]
push 0
push eax
push 0x45f
push dword [0x419f78]
call dword [sym.imp.user32.dll_SendMessageW]
xor ebx, ebx
test eax, eax
sete bl
push ebx
push 0x3f6
push edi
mov esi, dword [sym.imp.user32.dll_EnableMenuItem]
call esi
mov dword [ebp - 0xb4], 0x30
mov dword [ebp - 0xb0], 0x20
lea eax, [ebp - 0xb4]
push eax
push 0
push 0x3f7
push edi
call dword [sym.imp.user32.dll_GetMenuItemInfoW]
cmp dword [ebp - 0x94], 0
sete al
or al, bl
movzx eax, al
push eax
push 0x3f7
push edi
call esi
push ebx
push 0x3f8
push edi
call esi
jmp 0x4053ff
push ecx
push edi
push 0x7b
jmp 0x406768
lea eax, [ebp - 0x2d0]
push 0x104
push eax
push 0
push edi
call dword [sym.imp.shell32.dll_DragQueryFileW]
push edi
call dword [sym.imp.shell32.dll_DragFinish]
call dbg.prompt_save_changes
test eax, eax
je 0x4053ff
lea ecx, [ebp - 0x2d0]
call dbg.DoOpenFile
jmp 0x4053ff
xor eax, eax
cmp dword [edx + 8], 0xfffffcda
jne 0x405401
cmp ecx, esi
je 0x406b83
cmp ecx, edi
jne 0x405401
add edx, 0x14
mov ecx, edi
call dbg.on_sizelist_modified
jmp 0x4053ff
mov ecx, esi
push esi
push edi
push 0xf
push ebx
call dword [sym.imp.user32.dll_DefWindowProcW]
jmp 0x405401
call dbg.prompt_save_changes
mov ecx, eax
xor eax, eax
test ecx, ecx
je 0x405401
push dword [0x419f58]
call dbg.registry_set_options
add esp, 4
push 0x419f60
push 0x419f70
call dbg.registry_set_formatopts_all
add esp, 8
push 0
call dword [sym.imp.user32.dll_PostQuitMessage]
jmp 0x4053ff
mov ecx, ebx
mov edx, edi
push esi
call dbg.OnCommand
add esp, 4
jmp 0x4053ff
mov dword [ebp - 0x1c], 1
mov ebx, dword [ebp - 0x28]
jmp 0x4067d9
inc eax
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x28]
je 0x40684e
xor esi, esi
lea edi, [ebp - 0x2cc]
nop word cs:[eax + eax]
xorps xmm0, xmm0
movups xmmword [edi + 0x10], xmm0
movups xmmword [edi], xmm0
mov dword [ebp - 0x2d0], 0x21
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + esi*8]
mov dword [ebp - 0x2c8], ecx
mov dword [ebp - 0x2cc], 0xffffffff
mov eax, dword [eax + esi*8 + 4]
mov dword [ebp - 0x2b0], eax
lea eax, [ebp - 0x2d0]
push eax
push 0
push 0x40b
push ebx
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [ebp - 0x20]
push dword [eax + esi*8]
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
inc esi
cmp esi, dword [ebp - 0x1c]
jb 0x4067f0
push dword [ebp - 0x20]
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
xorps xmm0, xmm0
movups xmmword [ebp - 0x26c], xmm0
movups xmmword [ebp - 0x27c], xmm0
movups xmmword [ebp - 0x28c], xmm0
movups xmmword [ebp - 0x29c], xmm0
movups xmmword [ebp - 0x2ac], xmm0
movups xmmword [ebp - 0x2bc], xmm0
movups xmmword [ebp - 0x2cc], xmm0
mov dword [ebp - 0x2d0], 0x74
lea eax, [ebp - 0x2d0]
push eax
push 0
push 0x43a
push dword [0x419f78]
mov esi, dword [sym.imp.user32.dll_SendMessageW]
call esi
lea eax, [ebp - 0x2b6]
push eax
push 0
push 0xc
push dword [ebp - 0x10]
call esi
mov ecx, dword [ebp - 0x2c]
call dbg.populate_size_list
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov edi, eax
push 0xff
push 0x419f7c
push 0x57b
push eax
call dword [sym.imp.user32.dll_LoadStringW]
mov dword [eax + eax + 0x419f7e], 0x2e002a
mov dword [eax + eax + 0x419f82], 0x740072
mov dword [eax + eax + 0x419f86], 0x66
lea esi, [eax*2 + 0x419f80]
nop word cs:[eax + eax]
cmp word [esi - 2], 0
lea esi, [esi + 2]
jne 0x406920
lea eax, [esi - 2]
push 0xff
push eax
push 0x579
mov dword [ebp - 0x10], edi
push edi
call dword [sym.imp.user32.dll_LoadStringW]
lea edi, [eax + eax]
mov dword [esi + eax*2], 0x2e002a
mov dword [esi + eax*2 + 4], 0x780074
mov dword [esi + eax*2 + 8], 0x74
nop dword [eax]
cmp word [esi + edi], 0
lea esi, [esi + 2]
jne 0x406960
lea eax, [esi + edi]
push 0xff
push eax
push 0x57a
push dword [ebp - 0x10]
call dword [sym.imp.user32.dll_LoadStringW]
mov ebx, eax
lea eax, [edi + eax*2]
mov dword [esi + eax + 2], 0x2e002a
mov dword [esi + eax + 6], 0x780074
mov dword [esi + eax + 0xa], 0x74
lea eax, [esi + edi]
add eax, 2
add esi, edi
add esi, 4
nop dword [eax]
add esi, 2
cmp word [eax + ebx*2], 0
lea eax, [eax + 2]
jne 0x4069b0
lea eax, [eax + ebx*2]
add ebx, ebx
push 0xff
push eax
push 0x578
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.user32.dll_LoadStringW]
lea ecx, [ebx + eax*2]
lea eax, [esi + ecx]
movsd xmm0, qword [0x40c940]
movsd qword [esi + ecx], xmm0
nop word [eax + eax]
cmp word [eax], 0
lea eax, [eax + 2]
jne 0x4069f0
mov word [eax], 0
mov esi, dword [sym.imp.user32.dll_LoadStringW]
push 0xff
push 0x41a7a2
push 0x6a4
push edi
call esi
push 0xff
push 0x41a9a0
push 0x6a5
push edi
call esi
push 0xff
push 0x41ab9e
push 0x5b2
push edi
call esi
push 0xff
push 0x41ad9c
push 0x5b3
push edi
call esi
push 0xff
push 0x41af9a
push 0x5b4
push edi
call esi
push 0xff
push 0x41b198
push 0x5b5
push edi
call esi
push 0
push 0
push 0xb9
push dword [0x419f78]
call dword [sym.imp.user32.dll_SendMessageW]
push str.commdlg_FindReplace
call dword [sym.imp.user32.dll_RegisterWindowMessageW]
mov dword [0x419f6c], eax
mov esi, dword [ebp - 0x14]
push esi
call dbg.registry_read_filelist
add esp, 4
push 0x419f60
push 0x419f70
call dbg.registry_read_formatopts_all
add esp, 8
call dbg.registry_read_options
push 1
push esi
call dword [sym.imp.shell32.dll_DragAcceptFiles]
jmp 0x4053ff
xor eax, eax
cmp dword [edx + 8], 0xfffffd3a
mov ebx, dword [ebp - 0x14]
jne 0x405401
push ebx
call dword [sym.imp.user32.dll_GetMenu]
test eax, eax
je 0x4053ff
mov dword [ebp - 0x2d0], 0x30
mov dword [ebp - 0x2cc], 4
lea ecx, [ebp - 0x2d0]
push ecx
push 0
push 0x52d
push eax
call dword [sym.imp.user32.dll_GetMenuItemInfoW]
cmp dword [ebp - 0x2bc], 0
je 0x4053ff
lea esi, [ebp - 0x33c]
push esi
mov edi, dword [ebp - 0x10]
push dword [edi + 0xc]
push 0x433
push dword [edi]
call dword [sym.imp.user32.dll_SendMessageW]
push 2
push esi
push 0
push dword [edi]
call dword [sym.imp.user32.dll_MapWindowPoints]
mov dword [ebp - 0xb4], 0x14
movups xmm0, xmmword [ebp - 0x33c]
movups xmmword [ebp - 0xb0], xmm0
lea eax, [ebp - 0xb4]
push eax
push ebx
push dword [ebp - 0x330]
push dword [ebp - 0x33c]
push 0x40
push dword [ebp - 0x2bc]
call dword [sym.imp.user32.dll_TrackPopupMenuEx]
jmp 0x4053ff
add edx, 0x14
xorps xmm0, xmm0
movups xmmword [ebp - 0x26c], xmm0
movups xmmword [ebp - 0x27c], xmm0
movups xmmword [ebp - 0x28c], xmm0
movups xmmword [ebp - 0x29c], xmm0
movups xmmword [ebp - 0x2ac], xmm0
movups xmmword [ebp - 0x2bc], xmm0
movups xmmword [ebp - 0x2cc], xmm0
mov dword [ebp - 0x2d0], 0x74
lea eax, [ebp - 0x2d0]
push eax
push 1
push 0x43a
push dword [0x419f78]
mov edi, edx
call dword [sym.imp.user32.dll_SendMessageW]
lea eax, [ebp - 0x2b6]
mov esi, edi
push edi
push eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
test eax, eax
je 0x4053ff
mov ecx, esi
call dbg.set_font
jmp 0x4053ff