Function at 0x408c60
Capabilities:
Access peb ldr_data
Capture webcam image
Get graphical window text
Get number of processors
Get process heap flags
Get process heap force flags
Hide graphical window

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, 0x398
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
cmp dword [0x41c6f8], esi
mov edi, dword [ecx + 8]
mov dword [ebp - 0x33c], eax
mov ebx, dword [ecx + 0xc]
je 0x409eb0
cmp esi, 0x4e
je 0x409ed0
ja 0x408cc0
lea eax, [esi - 1]
cmp eax, 0xf
ja case.0x408cb6.0
cmp esi, 0x10
nop
ja case.0x408cb6.0
jmp dword [esi*4 + 0x410798]
cmp esi, 0x117
je 0x40a030
lea esi, [esi]
jbe 0x409148
cmp esi, 0x233
je 0x409e30
cmp esi, 0x400
jne case.0x408cb6.0
mov edi, dword [ebp - 0x33c]
mov edx, 0x7d1
mov dword [esp + 4], edx
mov dword [esp], edi
call sym._GetDlgItem_8
mov ecx, 0x7d4
sub esp, 8
mov esi, eax
mov dword [esp + 4], ecx
mov dword [esp], edi
mov edi, 0x7d2
call sym._GetDlgItem_8
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov edi, eax
mov dword [esp], ebx
mov eax, 0x7d3
mov dword [esp + 4], eax
call sym._GetDlgItem_8
xor edx, edx
mov ebx, eax
sub esp, 8
xor eax, eax
mov dword [ebp + eax - 0x290], edx
mov dword [ebp + eax - 0x28c], edx
add eax, 8
cmp eax, 0x70
jb 0x408d50
mov eax, 0x74
xor edx, edx
mov dword [ebp - 0x294], eax
xor eax, eax
mov dword [ebp + eax - 0x21c], edx
mov dword [ebp + eax - 0x218], edx
add eax, 8
cmp eax, 0xb8
jb 0x408d75
mov dword [esp], esi
mov eax, 0xbc
mov edx, 0x45f
mov dword [ebp - 0x220], eax
mov eax, 8
mov dword [ebp - 0x2f0], eax
mov eax, 0x4b0
mov dword [ebp - 0x2ec], eax
xor eax, eax
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2f0]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call sym._SendMessageW_16
mov ecx, 0x3f6
sub esp, 0x10
test eax, eax
mov dword [esp + 8], ecx
setne al
mov dword [esp], edi
movzx eax, al
mov dword [esp + 0xc], eax
mov eax, 0x401
mov dword [esp + 4], eax
call sym._SendMessageW_16
lea eax, [ebp - 0x294]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 8], eax
mov eax, 0x43a
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._SendMessageW_16
lea eax, [ebp - 0x300]
sub esp, 0x10
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x30c]
mov dword [esp + 8], eax
mov eax, 0xb0
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._SendMessageW_16
xor edx, edx
mov ecx, 0xc6
xor eax, eax
sub esp, 0x10
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
mov dword [esp], esi
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, 0x51b
mov dword [esp + 8], eax
mov eax, 0x401
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x455
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._SendMessageW_16
mov edx, 0x51c
mov ecx, 0x401
sub esp, 0x10
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
mov dword [esp], edi
call sym._SendMessageW_16
mov eax, dword [ebp - 0x300]
sub esp, 0x10
cmp dword [ebp - 0x30c], eax
mov dword [esp], edi
setne al
movzx eax, al
mov dword [esp + 0xc], eax
mov eax, 0x51f
mov dword [esp + 8], eax
mov eax, 0x401
mov dword [esp + 4], eax
call sym._SendMessageW_16
mov eax, dword [ebp - 0x300]
sub esp, 0x10
cmp dword [ebp - 0x30c], eax
mov dword [esp], edi
setne al
movzx eax, al
mov dword [esp + 0xc], eax
mov eax, 0x51e
mov dword [esp + 8], eax
mov eax, 0x401
mov dword [esp + 4], eax
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
test byte [ebp - 0x290], 1
je 0x408f46
mov eax, dword [ebp - 0x28c]
and eax, 1
mov dword [esp + 0xc], eax
mov edx, 0x578
mov ecx, 0x402
mov dword [esp + 8], edx
mov edi, 0x578
mov dword [esp + 4], ecx
mov dword [esp], ebx
call sym._SendMessageW_16
mov eax, dword [ebp - 0x290]
not eax
and eax, 1
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, 0x405
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
test byte [ebp - 0x290], 2
je 0x408fa9
mov eax, dword [ebp - 0x28c]
shr eax, 1
and eax, 1
mov dword [esp + 0xc], eax
mov eax, 0x579
mov dword [esp + 8], eax
mov eax, 0x402
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._SendMessageW_16
mov eax, dword [ebp - 0x290]
shr eax, 1
xor eax, 1
sub esp, 0x10
and eax, 1
mov dword [esp + 0xc], eax
mov eax, 0x579
mov dword [esp + 8], eax
mov eax, 0x405
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
test byte [ebp - 0x290], 4
je 0x409010
mov eax, dword [ebp - 0x28c]
shr eax, 2
and eax, 1
mov dword [esp + 0xc], eax
mov edx, 0x402
mov eax, 0x57a
mov dword [esp + 4], edx
mov edi, 0x405
mov dword [esp + 8], eax
mov dword [esp], ebx
call sym._SendMessageW_16
mov eax, dword [ebp - 0x290]
mov ecx, 0x57a
shr eax, 2
xor eax, 1
sub esp, 0x10
and eax, 1
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov edi, 0x522
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym._SendMessageW_16
lea eax, [ebp - 0x220]
sub esp, 0x10
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x43d
mov dword [esp], esi
mov esi, 0x402
mov dword [esp + 4], eax
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
cmp word [ebp - 0x208], 1
mov dword [esp], ebx
sete al
mov dword [esp + 0xc], eax
mov eax, 0x44c
mov dword [esp + 8], eax
mov eax, 0x402
mov dword [esp + 4], eax
call sym._SendMessageW_16
xor eax, eax
mov edx, 0x402
sub esp, 0x10
cmp word [ebp - 0x208], 3
mov dword [esp + 4], edx
mov dword [esp], ebx
sete al
mov dword [esp + 0xc], eax
mov eax, 0x44d
mov dword [esp + 8], eax
call sym._SendMessageW_16
xor eax, eax
mov ecx, 0x44e
sub esp, 0x10
cmp word [ebp - 0x208], 2
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], ebx
sete al
mov dword [esp + 0xc], eax
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
cmp word [ebp - 0x218], 0
mov dword [esp + 8], edi
mov dword [esp], ebx
setne al
xor esi, esi
mov dword [esp + 0xc], eax
mov eax, 0x402
mov dword [esp + 4], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x409208
cmp esi, 0x7b
je 0x409e80
cmp esi, 0x111
jne case.0x408cb6.0
call sym._preview_isactive
test eax, eax
mov esi, eax
jne 0x40aed0
mov eax, dword [ebp - 0x33c]
mov ecx, 0x7d1
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._GetDlgItem_8
mov dword [ebp - 0x340], eax
sub esp, 8
cmp eax, ebx
je 0x409dce
cmp di, 0x57b
movzx edx, di
ja 0x40ba30
cmp edx, 0x513
ja 0x40af68
cmp edx, 0x44e
ja 0x40b9e0
cmp edx, 0x3e7
jbe case.0x40af77.1321
lea eax, [edx - 0x3e8]
cmp eax, 0x66
ja case.0x40af77.1321
jmp dword [eax*4 + 0x4107dc]
call sym._preview_isactive
test eax, eax
je 0x40af20
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x33c]
mov dword [esp], eax
call sym._DefWindowProcW_16
sub esp, 0x10
mov esi, eax
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp], 0
mov eax, dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0x354], eax
call eax
mov edi, dword [ebp - 0x33c]
mov edx, 0x7d0
mov ecx, str.RichEdit_text
sub esp, 4
mov ebx, eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], 0x50000040
call sym._CreateStatusWindowW_16
xor eax, eax
mov edx, 0x80000000
mov dword [ebp - 0x33c], edi
mov ecx, 0x56000241
sub esp, 0x10
mov dword [esp + 0x2c], eax
mov eax, 0x7d4
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, 0x80000000
mov dword [esp + 0x20], edi
xor edi, edi
mov dword [esp + 0x14], eax
mov eax, str.ReBarWindow32
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 4], eax
mov dword [esp], pe_nt_image_headers32
call sym._CreateWindowExW_48
mov edx, 0x404
mov edi, eax
mov eax, 0xc
mov dword [ebp - 0x318], eax
xor eax, eax
sub esp, 0x30
mov dword [ebp - 0x314], eax
xor eax, eax
mov dword [ebp - 0x310], eax
lea eax, [ebp - 0x318]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], edi
call sym._SendMessageW_16
sub esp, 0x10
test eax, eax
je 0x40bff2
mov eax, 0x14
mov edx, 0x10
mov dword [esp + 0x30], eax
mov eax, 0x18
mov ecx, 0x10
mov dword [esp + 0x24], eax
mov eax, 0x18
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x2c], edx
mov edx, 1
mov dword [esp + 0x28], ecx
mov ecx, 0x7d2
mov dword [esp + 0x18], eax
mov eax, 0x64
mov dword [ebp - 0x344], ebx
mov dword [esp + 0x10], ebx
mov ebx, 0x5000010a
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 0x14], eax
mov dword [ebp - 0x340], edi
call sym._CreateToolbarEx_52
mov ecx, dword [ebp - 0x33c]
sub esp, 0x34
mov ebx, eax
mov dword [esp], ecx
call sym._GetDC_4
sub esp, 4
mov edi, eax
mov dword [esp], edi
mov eax, 0x5a
mov dword [esp + 4], eax
call sym._GetDeviceCaps_8
mov ecx, dword [ebp - 0x33c]
mov dword [ebp - 0x348], eax
sub esp, 8
mov dword [esp], ecx
mov dword [esp + 4], edi
call sym._ReleaseDC_8
mov eax, 0xffffffff
mov dword [ebp - 0x330], eax
xor eax, eax
sub esp, 8
cmp dword [ebp - 0x348], 0x77
mov dword [esp], ebx
setg al
mov dword [ebp - 0x32c], eax
lea eax, [ebp - 0x330]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x413
mov dword [esp + 4], eax
call sym._SendMessageW_16
mov ecx, 0x3eb
sub esp, 0x10
mov edi, eax
mov dword [esp], 0
lea edx, [eax + 6]
mov eax, ebx
call sym._AddButtonStyle
lea edx, [edi + 7]
mov eax, ebx
mov dword [esp], 0
mov ecx, 0x3e9
call sym._AddButtonStyle
lea edx, [edi + 8]
mov ecx, 0x3ea
mov dword [esp], 0
mov eax, ebx
call sym._AddButtonStyle
mov eax, ebx
call sym._AddSeparator
lea edx, [edi + 0xe]
mov eax, ebx
mov dword [esp], 0
mov ecx, 0x3f5
call sym._AddButtonStyle
lea edx, [edi + 9]
mov ecx, 0x3f3
mov dword [esp], 0
mov eax, ebx
call sym._AddButtonStyle
mov eax, ebx
call sym._AddSeparator
lea edx, [edi + 0xc]
mov ecx, 0x3f6
mov dword [esp], 0
mov eax, ebx
call sym._AddButtonStyle
mov eax, ebx
call sym._AddSeparator
mov edx, edi
mov eax, ebx
mov dword [esp], 0
mov ecx, 0x51f
call sym._AddButtonStyle
lea edx, [edi + 1]
mov eax, ebx
mov dword [esp], 0
mov ecx, 0x51e
call sym._AddButtonStyle
lea edx, [edi + 2]
mov eax, ebx
mov dword [esp], 0
mov ecx, 0x520
call sym._AddButtonStyle
lea edx, [edi + 3]
mov eax, ebx
mov dword [esp], 0
mov ecx, 0x51b
call sym._AddButtonStyle
lea edx, [edi + 4]
mov ecx, 0x51c
mov dword [esp], 0
mov eax, ebx
xor edi, edi
call sym._AddButtonStyle
mov eax, ebx
call sym._AddSeparator
xor edx, edx
mov eax, ebx
mov dword [esp], 0
mov ecx, 0x640
call sym._AddButtonStyle
xor edx, edx
mov ecx, 0x421
mov dword [esp + 8], edx
xor eax, eax
mov dword [esp + 4], ecx
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
mov dword [esp + 8], eax
mov eax, 0x43a
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._SendMessageW_16
mov edx, dword [ebp - 0x344]
xor ecx, ecx
shr eax, 0x10
sub esp, 0x10
mov dword [esp + 0x28], edx
mov edi, eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov eax, 0x7dd
mov edx, 0xc8
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x340]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov dword [esp], 0
mov dword [esp + 0x20], eax
mov eax, 0x96
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, 0x50800102
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, str.ComboBoxEx32
mov dword [esp + 4], eax
call sym._CreateWindowExW_48
mov ecx, eax
sub esp, 0x30
mov dword [esp], ecx
lea eax, [ebp - 0x300]
mov dword [esp + 4], eax
mov dword [ebp - 0x348], ecx
call sym._GetWindowRect_8
mov eax, dword [ebp - 0x2fc]
mov ecx, 0x50
mov dword [ebp - 0x294], ecx
mov edx, dword [ebp - 0x2f4]
mov dword [ebp - 0x274], ebx
sub edx, eax
mov eax, 0x105
mov dword [ebp - 0x28c], eax
sub esp, 8
cmp edx, edi
cmovl edx, edi
xor eax, eax
mov dword [ebp - 0x268], eax
xor eax, eax
mov edi, 0x171
mov dword [ebp - 0x270], eax
mov eax, 2
xor ebx, ebx
mov dword [ebp - 0x260], eax
mov eax, 0xffffffff
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x340]
mov dword [ebp - 0x290], edi
lea edi, [ebp - 0x294]
mov dword [ebp - 0x26c], edx
mov dword [ebp - 0x25c], edx
mov dword [ebp - 0x350], edx
mov edx, 0x40a
mov dword [esp + 4], edx
mov dword [esp + 0xc], edi
mov dword [esp], eax
call sym._SendMessageW_16
xor ecx, ecx
mov eax, 0x31
sub esp, 0x10
mov dword [esp + 8], ebx
mov ebx, dword [ebp - 0x348]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._SendMessageW_16
mov dword [ebp - 0x348], ebx
mov dword [ebp - 0x34c], eax
sub esp, 0x10
mov dword [esp], ebx
call sym._GetDC_4
mov ecx, dword [ebp - 0x34c]
sub esp, 4
mov ebx, eax
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._SelectObject_8
mov dword [ebp - 0x34c], eax
lea eax, [ebp - 0x328]
sub esp, 8
mov dword [esp + 0xc], eax
mov eax, 0xf
mov dword [esp + 8], eax
mov eax, str.Times_New_Roman
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._GetTextExtentPointW_16
lea eax, [ebp - 0x320]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, 3
mov dword [esp + 8], eax
mov eax, 0x410c3c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._GetTextExtentPointW_16
mov ecx, dword [ebp - 0x34c]
sub esp, 0x10
mov dword [esp + 4], ecx
mov dword [esp], ebx
call sym._SelectObject_8
sub esp, 8
mov dword [esp + 4], ebx
mov ebx, dword [ebp - 0x348]
mov dword [esp], ebx
call sym._ReleaseDC_8
mov eax, dword [ebp - 0x328]
mov ecx, 3
mov dword [ebp - 0x274], ebx
mov edx, 2
mov ebx, dword [sym.imp.kernel32.dll_MulDiv]
sub esp, 8
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x350]
mov dword [ebp - 0x34c], edx
add eax, edx
sub esp, 0xc
mov dword [ebp - 0x268], eax
mov eax, 4
mov dword [ebp - 0x260], eax
mov eax, 0xffffffff
mov dword [esp + 8], eax
mov eax, 0x40a
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x340]
mov dword [esp + 0xc], edi
mov dword [esp], eax
call sym._SendMessageW_16
xor eax, eax
mov edx, dword [ebp - 0x344]
mov ecx, 0x32
sub esp, 0x10
mov dword [esp + 0x2c], eax
mov eax, 0x7de
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x340]
mov dword [esp + 0x28], edx
mov edx, 0x96
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, 0x50800002
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, str.ComboBoxEx32
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CreateWindowExW_48
mov ecx, 3
mov edx, 2
mov dword [ebp - 0x358], eax
sub esp, 0x30
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x320]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x34c]
mov ebx, 5
mov dword [ebp - 0x260], ebx
mov ebx, dword [ebp - 0x340]
sub esp, 0xc
add edx, eax
mov dword [esp], ebx
mov eax, 0xffffffff
mov dword [esp + 8], eax
mov eax, 0x40a
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
xor dword [ebp - 0x28c], 1
mov dword [ebp - 0x268], edx
call sym._SendMessageW_16
mov eax, 0x14
mov edx, 0x10
mov dword [ebp - 0x340], ebx
mov ecx, 0x10
sub esp, 0x10
mov dword [esp + 0x30], eax
mov eax, 0x10
mov dword [esp + 0x2c], eax
mov eax, 0x10
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x24], edx
mov edx, dword [ebp - 0x344]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, 0x65
mov dword [esp + 0x14], eax
mov eax, 8
mov dword [esp + 0x10], edx
mov edx, 0x1000010a
mov dword [esp + 0xc], eax
mov eax, 0x7d3
mov dword [esp + 4], edx
mov dword [esp + 0x20], ecx
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._CreateToolbarEx_52
mov ecx, 1
mov ebx, eax
sub esp, 0x34
mov dword [esp + 0xc], ecx
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x454
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._SendMessageW_16
xor edx, edx
mov eax, ebx
mov ecx, 0x578
sub esp, 0x10
mov dword [esp], 0
call sym._AddButtonStyle
mov eax, ebx
mov ecx, 0x579
mov dword [esp], 0
mov edx, 1
call sym._AddButtonStyle
mov eax, ebx
mov ecx, 0x57a
mov dword [esp], 0
mov edx, 2
call sym._AddButtonStyle
mov ecx, 0x57b
mov edx, 3
mov dword [esp], 0
mov eax, ebx
call sym._AddButtonStyle
mov eax, ebx
call sym._AddSeparator
mov eax, ebx
mov ecx, 0x44c
mov dword [esp], 0
mov edx, 4
call sym._AddButtonStyle
mov eax, ebx
mov ecx, 0x44d
mov dword [esp], 0
mov edx, 5
call sym._AddButtonStyle
mov ecx, 0x44e
mov edx, 6
mov dword [esp], 0
mov eax, ebx
call sym._AddButtonStyle
mov eax, ebx
call sym._AddSeparator
mov ecx, 0x522
mov edx, 7
mov dword [esp], 8
mov eax, ebx
call sym._AddButtonStyle
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x421
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._SendMessageW_16
mov ecx, 0xffffffff
mov edx, 3
mov dword [ebp - 0x274], ebx
mov ebx, 0x40a
mov dword [ebp - 0x260], edx
sub esp, 0x10
mov dword [esp + 4], ebx
mov ebx, dword [ebp - 0x340]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
mov dword [esp], ebx
call sym._SendMessageW_16
xor eax, eax
mov edx, dword [ebp - 0x344]
mov ecx, 0x50000000
sub esp, 0x10
mov dword [esp + 0x2c], eax
mov eax, 0x7df
mov dword [esp + 0x24], eax
mov eax, 0xa
mov dword [esp + 0x1c], eax
mov eax, 0xc8
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x28], edx
xor edx, edx
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, str.Static
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CreateWindowExW_48
or dword [ebp - 0x28c], 1
mov dword [ebp - 0x274], eax
xor eax, eax
sub esp, 0x30
mov dword [ebp - 0x260], eax
mov eax, 0xffffffff
mov dword [esp + 8], eax
mov eax, 0x40a
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp], str.RICHED20.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x40bf30
xor eax, eax
mov edx, 0x7d1
mov dword [esp + 0x2c], eax
mov eax, dword [ebp - 0x344]
mov ecx, 0x64
mov dword [esp + 0x24], edx
xor edi, edi
mov ebx, 0x3e8
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x33c]
mov dword [esp + 0x14], edi
mov dword [esp], 0x200
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, 0x51301144
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, str.RichEdit20W
mov dword [esp + 4], eax
call sym._CreateWindowExW_48
mov dword [0x41c704], eax
sub esp, 0x30
test eax, eax
je 0x40c130
mov dword [esp], eax
xor edi, edi
mov ebx, 0x80000
call sym._setup_richedit_olecallback
mov eax, dword [0x41c704]
mov dword [esp], eax
call sym._SetFocus_4
mov eax, 0x445
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [0x41c704]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
xor edi, edi
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
call sym._set_default_font
xor eax, eax
mov dword [ebp - 0x30c], eax
xor eax, eax
mov dword [ebp - 0x308], eax
xor eax, eax
mov dword [ebp - 0x304], eax
mov eax, dword [0x41c708]
mov dword [esp], eax
call sym._GetDC_4
xor edx, edx
mov ecx, 0x407
sub esp, 4
mov ebx, eax
mov dword [esp + 8], edx
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x348]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._SendMessageW_16
mov byte [ebp - 0x2d9], 1
mov word [ebp - 0x2d4], di
mov byte [ebp - 0x2d5], 0
mov dword [ebp - 0x35c], eax
sub esp, 0x10
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x30c]
mov dword [esp + 0xc], eax
mov eax, sym._enum_font_proc_16
mov dword [esp + 8], eax
lea eax, [ebp - 0x2f0]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._EnumFontFamiliesExW_20
mov eax, sym._fonts_desc_compare
sub esp, 0x14
mov dword [esp + 0xc], eax
mov eax, 8
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x308]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_qsort]
cmp dword [ebp - 0x308], 1
jbe 0x40bf9e
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
xor edi, edi
mov dword [ebp - 0x34c], eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x350], eax
jmp 0x409d0a
cmp esi, dword [ebp - 0x340]
lea eax, [edi + 2]
mov dword [ebp - 0x344], eax
je 0x409ea0
mov edi, dword [ebp - 0x30c]
mov eax, dword [edi + ebx]
mov edx, dword [edi + ebx + 4]
mov dword [edi + ecx + 8], eax
mov dword [edi + ecx + 0xc], edx
mov edi, dword [ebp - 0x340]
mov ecx, dword [ebp - 0x30c]
mov dword [ecx + ebx], 0
inc esi
cmp esi, dword [ebp - 0x308]
jae 0x40a510
mov eax, dword [ebp - 0x30c]
lea ecx, [edi*8]
mov dword [ebp - 0x344], ecx
lea ebx, [esi*8]
mov edx, dword [eax + ecx]
mov dword [esp + 4], edx
mov eax, dword [eax + ebx]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
lea edx, [edi + 1]
mov ecx, dword [ebp - 0x344]
mov dword [ebp - 0x340], edx
sub esp, 8
test eax, eax
jne 0x409cc0
mov eax, dword [ebp - 0x30c]
xor ecx, ecx
mov eax, dword [eax + ebx]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x350]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x34c]
call eax
mov eax, dword [ebp - 0x30c]
mov dword [eax + ebx], 0
lea eax, [edi + 1]
mov dword [ebp - 0x344], eax
sub esp, 0xc
jmp 0x409cfd
mov dword [esp], 0
xor esi, esi
call sym._PostQuitMessage_4
sub esp, 4
jmp 0x409208
mov eax, dword [ebp - 0x33c]
mov ecx, ebx
mov edx, edi
call sym._OnSize
mov esi, eax
jmp 0x409208
test di, di
jne 0x40aef0
xor esi, esi
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
call sym._preview_isactive
test eax, eax
mov esi, eax
jne 0x40ae40
call sym._prompt_save_changes
test eax, eax
je 0x409dce
mov eax, dword [0x41c708]
mov ebx, 0x41c6f0
mov dword [esp], eax
call sym._registry_set_options
mov dword [esp + 4], ebx
mov dword [esp], 0x41c6e8
call sym._registry_set_formatopts_all
mov dword [esp], 0
call sym._PostQuitMessage_4
sub esp, 4
jmp 0x409208
xor ecx, ecx
mov edx, 0x104
mov dword [esp + 0xc], edx
lea ebx, [ebp - 0x220]
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp], edi
call sym._DragQueryFileW_16
sub esp, 0x10
mov dword [esp], edi
call sym._DragFinish_4
sub esp, 4
call sym._prompt_save_changes
test eax, eax
je 0x409dce
mov eax, ebx
xor esi, esi
call sym._DoOpenFile
jmp 0x409dd0
mov dword [esp + 0xc], ebx
mov ebx, 0x7b
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
jmp 0x4091f5
mov edi, esi
jmp 0x409cfd
mov eax, ebx
call sym._handle_findmsg
lea esp, [ebp - 0x10]
pop ecx
pop ebx
mov esi, eax
mov eax, esi
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov edi, dword [ebp - 0x33c]
mov esi, 0x7d1
mov dword [esp + 4], esi
mov dword [esp], edi
call sym._GetDlgItem_8
mov dword [ebp - 0x344], eax
sub esp, 8
mov eax, 0x7d4
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._GetDlgItem_8
sub esp, 8
mov edi, eax
mov dword [esp], edi
mov eax, 0x7dd
mov dword [esp + 4], eax
call sym._GetDlgItem_8
sub esp, 8
mov esi, eax
mov dword [esp], edi
mov eax, 0x7de
mov dword [esp + 4], eax
call sym._GetDlgItem_8
mov dword [ebp - 0x340], eax
sub esp, 8
mov eax, 0x7d3
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._GetDlgItem_8
mov edx, dword [ebx]
sub esp, 8
cmp esi, edx
je 0x40bee0
cmp dword [ebp - 0x340], edx
je 0x40af40
cmp eax, edx
je 0x40bdb0
cmp dword [ebp - 0x344], edx
jne 0x409dce
cmp dword [ebx + 8], 0x702
jne 0x409dce
call sym._update_font_list
mov eax, 0xba
xor esi, esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x344]
xor edi, edi
mov dword [esp + 0xc], esi
mov esi, 1
mov dword [esp + 8], edi
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0xc]
lea ebx, [ebp - 0x220]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, str.selection___d.._d__line_count_ld
mov dword [esp + 4], eax
call sym._sprintf
mov edi, dword [ebp - 0x33c]
mov eax, 0x7d0
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._GetDlgItem_8
sub esp, 8
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._SetWindowTextA_8
xor eax, eax
mov edx, 0x400
sub esp, 8
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], edi
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x409208
mov esi, dword [ebp - 0x33c]
mov ecx, 0x7d1
mov dword [esp + 4], ecx
mov dword [esp], esi
call sym._GetDlgItem_8
sub esp, 8
mov ebx, eax
mov dword [esp], esi
mov eax, 0x7d0
mov dword [esp + 4], eax
call sym._GetDlgItem_8
sub esp, 8
mov esi, eax
lea eax, [ebp - 0x300]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x30c]
mov dword [esp + 8], eax
mov eax, 0xb0
mov dword [esp + 4], eax
mov eax, dword [0x41c704]
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [ebp - 0x300]
sub esp, 0x10
cmp dword [ebp - 0x30c], eax
mov dword [esp], edi
sete al
movzx eax, al
mov dword [esp + 8], eax
mov eax, 0x51e
mov dword [esp + 4], eax
call sym._EnableMenuItem_12
mov eax, dword [ebp - 0x300]
sub esp, 0xc
cmp dword [ebp - 0x30c], eax
mov dword [esp], edi
sete al
movzx eax, al
mov dword [esp + 8], eax
mov eax, 0x51f
mov dword [esp + 4], eax
call sym._EnableMenuItem_12
mov eax, 0x9c
xor edx, edx
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
mov ecx, 0x43d
sub esp, 0xc
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym._SendMessageW_16
mov eax, 0xfffffff0
sub esp, 0x10
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._GetWindowLongW_8
shr eax, 8
sub esp, 8
mov dword [esp], edi
and eax, 8
mov dword [esp + 8], eax
mov eax, 0x516
mov dword [esp + 4], eax
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0xb8
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._SendMessageW_16
mov edx, 0x517
sub esp, 0x10
test eax, eax
mov dword [esp + 4], edx
setne al
mov dword [esp], edi
movzx eax, al
shl eax, 3
mov dword [esp + 8], eax
call sym._CheckMenuItem_12
mov edx, dword [ebp - 0x21c]
sub esp, 0xc
and edx, 8
mov dword [ebp - 0x33c], edx
jne 0x40add8
mov dword [esp], edi
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x44c
mov dword [esp + 4], eax
call sym._CheckMenuItem_12
mov edx, 0x44d
xor eax, eax
sub esp, 0xc
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._CheckMenuItem_12
mov edx, dword [ebp - 0x33c]
sub esp, 0xc
mov dword [esp + 8], edx
mov ecx, 0x44e
mov dword [esp + 4], ecx
mov dword [esp], edi
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
cmp word [ebp - 0x218], 1
mov dword [esp], edi
sete al
shl eax, 3
mov dword [esp + 8], eax
mov eax, 0x523
mov dword [esp + 4], eax
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
cmp word [ebp - 0x218], 2
mov dword [esp], edi
sete al
shl eax, 3
mov dword [esp + 8], eax
mov eax, 0x524
mov dword [esp + 4], eax
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
cmp word [ebp - 0x218], 3
mov dword [esp], edi
sete al
shl eax, 3
mov dword [esp + 8], eax
mov eax, 0x525
mov dword [esp + 4], eax
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
cmp word [ebp - 0x218], 4
mov dword [esp], edi
sete al
shl eax, 3
mov dword [esp + 8], eax
mov eax, 0x526
mov dword [esp + 4], eax
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
cmp word [ebp - 0x218], 5
mov dword [esp], edi
sete al
shl eax, 3
mov dword [esp + 8], eax
mov eax, 0x527
mov dword [esp + 4], eax
call sym._CheckMenuItem_12
xor eax, eax
mov edx, 0x528
sub esp, 0xc
cmp word [ebp - 0x218], 6
mov dword [esp + 4], edx
mov dword [esp], edi
sete al
shl eax, 3
mov dword [esp + 8], eax
call sym._CheckMenuItem_12
xor eax, eax
xor ecx, ecx
sub esp, 0xc
mov dword [esp + 8], eax
mov eax, 0xc6
mov dword [esp + 0xc], ecx
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._SendMessageW_16
sub esp, 0x10
test eax, eax
mov dword [esp], edi
sete al
movzx eax, al
mov dword [esp + 8], eax
mov eax, 0x51b
mov dword [esp + 4], eax
call sym._EnableMenuItem_12
xor eax, eax
mov edx, 0x455
sub esp, 0xc
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], edx
mov dword [esp], ebx
mov ebx, 8
mov dword [esp + 8], eax
call sym._SendMessageW_16
mov ecx, 0x51c
sub esp, 0x10
test eax, eax
mov dword [esp + 4], ecx
sete al
mov dword [esp], edi
movzx eax, al
mov dword [esp + 8], eax
call sym._EnableMenuItem_12
mov eax, dword [0x40f2a4]
sub esp, 0xc
mov dword [esp], eax
call sym._reg_formatindex
mov dword [esp], edi
mov eax, dword [eax*4 + 0x41c6e8]
and eax, 4
cmovne eax, ebx
mov dword [esp + 8], eax
mov eax, 0x5dc
mov dword [esp + 4], eax
call sym._CheckMenuItem_12
mov eax, dword [0x40f2a4]
sub esp, 0xc
mov dword [esp], eax
call sym._reg_formatindex
mov dword [esp], edi
mov eax, dword [eax*4 + 0x41c6e8]
and eax, 8
cmovne eax, ebx
mov dword [esp + 8], eax
mov eax, 0x5dd
mov dword [esp + 4], eax
call sym._CheckMenuItem_12
sub esp, 0xc
mov dword [esp], esi
call sym._IsWindowVisible_4
sub esp, 4
test eax, eax
mov dword [esp], edi
setne al
movzx eax, al
shl eax, 3
mov dword [esp + 8], eax
mov eax, 0x5de
mov dword [esp + 4], eax
call sym._CheckMenuItem_12
mov eax, dword [0x40f2a4]
sub esp, 0xc
mov dword [esp], eax
call sym._reg_formatindex
mov dword [esp], edi
mov eax, dword [eax*4 + 0x41c6e8]
and eax, 1
cmovne eax, ebx
mov ebx, 0x45f
mov dword [esp + 8], eax
mov eax, 0x5df
mov dword [esp + 4], eax
call sym._CheckMenuItem_12
mov eax, 8
xor ecx, ecx
mov dword [ebp - 0x2f0], eax
lea eax, [ebp - 0x2f0]
mov edx, 0x4b0
mov dword [ebp - 0x2ec], edx
sub esp, 0xc
mov dword [esp + 8], eax
mov eax, dword [0x41c704]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], ebx
xor ebx, ebx
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
test eax, eax
mov dword [esp], edi
sete bl
mov esi, eax
mov dword [esp + 8], ebx
mov eax, 0x3f6
mov dword [esp + 4], eax
call sym._EnableMenuItem_12
mov eax, 0x30
mov dword [ebp - 0x294], eax
mov eax, 0x20
mov dword [ebp - 0x290], eax
lea eax, [ebp - 0x294]
sub esp, 0xc
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x3f7
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._GetMenuItemInfoW_16
mov eax, 1
sub esp, 0x10
test esi, esi
je 0x40a4d7
mov edx, dword [ebp - 0x274]
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], eax
mov esi, 0x3f7
mov dword [esp + 4], esi
xor esi, esi
mov dword [esp], edi
call sym._EnableMenuItem_12
mov eax, 0x3f8
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._EnableMenuItem_12
sub esp, 0xc
jmp 0x409208
mov eax, dword [ebp - 0x344]
mov dword [ebp - 0x308], eax
test eax, eax
je 0x40bfe1
lea eax, [ebp - 0x220]
xor esi, esi
mov dword [ebp - 0x344], eax
xor ebx, ebx
mov edi, dword fs:[0x18]
nop
lea esi, [esi]
xor eax, eax
mov dword [ebp + eax - 0x21c], ebx
mov dword [ebp + eax - 0x218], ebx
add eax, 8
cmp eax, 0x20
jb 0x40a542
mov edx, dword [ebp - 0x30c]
lea ecx, [esi*8]
mov eax, 0x21
mov dword [ebp - 0x220], eax
mov eax, ecx
inc esi
mov dword [ebp - 0x340], ecx
mov ecx, 0xffffffff
add eax, edx
mov edx, dword [eax]
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], edx
mov eax, dword [eax + 4]
mov dword [ebp - 0x200], eax
mov eax, dword [ebp - 0x344]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x40b
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x348]
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [ebp - 0x30c]
mov ecx, dword [ebp - 0x340]
mov eax, dword [eax + ecx]
sub esp, 0x10
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x34c]
call eax
sub esp, 0xc
cmp esi, dword [ebp - 0x308]
jb 0x40a540
mov edx, dword [ebp - 0x30c]
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x34c]
call eax
xor edx, edx
xor eax, eax
sub esp, 0xc
mov dword [ebp + eax - 0x21c], edx
mov dword [ebp + eax - 0x218], edx
add eax, 8
cmp eax, 0x70
jb 0x40a628
mov eax, 0x74
mov edx, 0x43a
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x344]
mov ebx, 0xc
mov dword [esp + 4], edx
mov esi, 0xff
mov edi, 0x41bca0
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [0x41c704]
mov dword [esp], eax
call sym._SendMessageW_16
lea eax, [ebp - 0x206]
xor ecx, ecx
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x35c]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [ebp - 0x358]
sub esp, 0x10
call sym._populate_size_list
mov eax, dword [ebp - 0x354]
mov dword [esp], 0
call eax
sub esp, 4
mov ebx, eax
mov dword [esp + 0xc], esi
mov eax, 0x57b
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._LoadStringW_16
lea esi, [eax + eax + 2]
sub esp, 0x10
lea edx, [esi + 0x41bca0]
xor eax, eax
lea esi, [esi]
movzx ecx, word [eax + str..rtf]
mov word [edx + eax], cx
add eax, 2
test ecx, ecx
jne 0x40a6f0
cmp word [esi + 0x41bca0], 0
je 0x40bfd7
mov eax, edx
lea esi, [esi]
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x40a720
sub eax, edx
add eax, 2
mov dword [esp], ebx
lea esi, [edx + eax]
mov eax, 0xff
mov dword [esp + 0xc], eax
mov eax, 0x579
mov dword [esp + 8], esi
mov dword [esp + 4], eax
call sym._LoadStringW_16
lea edx, [esi + eax*2 + 2]
sub esp, 0x10
xor eax, eax
nop
lea esi, [esi]
movzx ecx, word [eax + 0x410b70]
mov word [edx + eax], cx
add eax, 2
test ecx, ecx
jne 0x40a760
cmp word [edx], 0
je 0x40bfcd
mov eax, edx
nop
add eax, 2
cmp word [eax], 0
jne 0x40a780
sub eax, edx
add eax, 2
mov dword [esp], ebx
lea esi, [edx + eax]
mov eax, 0xff
mov dword [esp + 0xc], eax
mov eax, 0x57a
mov dword [esp + 8], esi
mov dword [esp + 4], eax
call sym._LoadStringW_16
lea edx, [esi + eax*2 + 2]
sub esp, 0x10
xor eax, eax
nop
lea esi, [esi]
movzx ecx, word [eax + 0x410b70]
mov word [edx + eax], cx
add eax, 2
test ecx, ecx
jne 0x40a7c0
cmp word [edx], 0
je 0x40bfc3
mov eax, edx
nop
add eax, 2
cmp word [eax], 0
jne 0x40a7e0
sub eax, edx
add eax, 2
lea esi, [edx + eax]
mov ecx, 0xff
mov dword [esp + 0xc], ecx
mov edi, 0x578
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], ebx
call sym._LoadStringW_16
lea edx, [esi + eax*2 + 2]
sub esp, 0x10
xor eax, eax
nop
lea esi, [esi]
movzx ecx, word [eax + 0x410b68]
mov word [edx + eax], cx
add eax, 2
test ecx, ecx
jne 0x40a820
cmp word [edx], 0
je 0x40bfb9
mov eax, edx
nop
add eax, 2
cmp word [eax], 0
jne 0x40a840
sub eax, edx
add eax, 2
mov word [edx + eax], 0
mov eax, 0xff
mov esi, 0xff
mov dword [esp + 0xc], eax
mov eax, 0x41baa0
mov edi, 0x41b6a0
mov dword [esp + 8], eax
mov eax, 0x6a4
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._LoadStringW_16
mov edx, 0x41b8a0
mov ecx, 0x6a5
mov eax, 0xff
sub esp, 0x10
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym._LoadStringW_16
mov eax, 0x5b2
sub esp, 0x10
mov dword [esp + 0xc], esi
mov esi, 0xff
mov dword [esp + 8], edi
mov edi, 0x41b0a0
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._LoadStringW_16
mov eax, 0xff
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, 0x41b4a0
mov dword [esp + 8], eax
mov eax, 0x5b3
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._LoadStringW_16
mov edx, 0x41b2a0
mov ecx, 0x5b4
mov eax, 0xff
sub esp, 0x10
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym._LoadStringW_16
mov eax, 0x5b5
sub esp, 0x10
mov dword [esp + 0xc], esi
xor esi, esi
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._LoadStringW_16
xor eax, eax
sub esp, 0x10
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0xb9
mov dword [esp + 4], eax
mov eax, dword [0x41c704]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp], str.commdlg_FindReplace
call sym._RegisterWindowMessageW_4
mov edi, dword [ebp - 0x33c]
mov dword [0x41c6f8], eax
sub esp, 4
mov dword [esp], edi
call sym._registry_read_filelist
mov eax, 0x41c6f0
mov dword [esp + 4], eax
mov dword [esp], 0x41c6e8
call sym._registry_read_formatopts_all
call sym._registry_read_options
mov edx, 1
mov dword [esp + 4], edx
mov dword [esp], edi
call sym._DragAcceptFiles_8
sub esp, 8
jmp 0x409208
call sym._DialogSaveFile
jmp 0x409208
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov edi, dword [ebp - 0x33c]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], sym._newfile_proc_16
mov dword [esp + 8], edi
mov dword [esp + 4], 0x835
mov dword [esp], eax
call sym._DialogBoxParamW_20
sub esp, 0x14
cmp eax, 0x64
mov ebx, eax
je 0x409dce
call sym._prompt_save_changes
test eax, eax
je 0x409dce
xor eax, eax
call sym._set_caption
mov word [0x41c4e0], 0
call sym._clear_formatting
lea eax, [ebp - 0x220]
mov dword [esp + 8], eax
mov eax, dword [0x41c704]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x461
mov dword [ebp - 0x220], 0
mov dword [esp], eax
mov dword [ebp - 0x21c], 0x4b0
call sym._SendMessageW_16
mov eax, dword [0x41c704]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb9
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, ebx
sub esp, 0x10
call sym._set_fileformat
call sym._update_font_list
jmp 0x409208
cmp word [0x41c4e0], 0
je case.0x4091d5.1004
mov edx, dword [0x40f2a4]
mov eax, 0x41c4e0
call sym._DoSaveFile
jmp 0x409208
xor edx, edx
xor eax, eax
mov dword [ebp + eax - 0x220], edx
mov dword [ebp + eax - 0x21c], edx
add eax, 8
cmp eax, 0x208
jb 0x40aac4
lea edx, [ebp - 0x28c]
xor eax, eax
mov ecx, 0x14
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [0x41c708]
mov dword [ebp - 0x294], 0x58
mov dword [ebp - 0x260], 0x801804
mov dword [ebp - 0x288], 0x41bca0
mov dword [ebp - 0x290], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x278], eax
mov eax, dword [0x40f2a4]
mov dword [ebp - 0x274], 0x104
mov dword [ebp - 0x258], 0x410b44
cmp eax, 1
je 0x40c1eb
cmp eax, 0x11
sete al
movzx eax, al
add eax, eax
inc eax
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x294]
mov dword [esp], eax
call sym._GetOpenFileNameW_4
push edi
test eax, eax
je 0x409208
call sym._prompt_save_changes
test eax, eax
je 0x409208
mov eax, dword [ebp - 0x278]
call sym._DoOpenFile
jmp 0x409208
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x33c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10
mov dword [esp], eax
call sym._PostMessageW_16
sub esp, 0x10
jmp 0x409208
mov eax, 1
call sym._dialog_find.constprop.0
jmp 0x409208
mov eax, 0x41b060
call sym._handle_findmsg
jmp 0x409208
xor eax, eax
call sym._dialog_find.constprop.0
lea esi, [esi]
jmp 0x409208
mov dword [esp + 4], 0x41c4e0
mov eax, dword [0x41c708]
mov dword [esp], eax
call sym._print_quick
mov eax, dword [0x40f2a4]
mov dword [esp], eax
call sym._reg_formatindex
mov eax, dword [eax*4 + 0x41c6f0]
mov dword [esp + 4], eax
mov eax, dword [0x41c708]
mov dword [esp], eax
call sym._target_device
jmp 0x409208
mov eax, dword [ebp - 0x33c]
mov dword [esp], eax
call sym._dialog_printsetup
jmp 0x40abfa
mov eax, dword [0x40f2a4]
mov dword [esp], eax
call sym._reg_formatindex
mov ebx, eax
mov edi, dword [eax*4 + 0x41c6e8]
mov dword [eax*4 + 0x41c6e8], 2
call sym._set_bar_states
mov eax, dword [0x41c704]
mov dword [esp + 4], 0
mov dword [ebx*4 + 0x41c6e8], edi
mov dword [esp], eax
call sym._ShowWindow_8
mov edi, dword [ebp - 0x33c]
push ecx
push ecx
mov dword [esp + 4], 0x41c4e0
mov dword [esp], edi
call sym._init_preview
mov dword [esp + 4], 0
mov dword [esp], edi
call sym._SetMenu_8
push ebx
push ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._InvalidateRect_12
sub esp, 0xc
jmp 0x409208
mov dword [esp + 4], 0x41c4e0
mov eax, dword [ebp - 0x33c]
mov dword [esp], eax
call sym._dialog_print
jmp 0x40abfa
mov dword [ebp - 0x340], edx
mov eax, dword [ebp - 0x33c]
mov dword [esp], eax
call sym._GetMenu_4
mov edx, dword [ebp - 0x340]
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], 0x30
mov dword [ebp - 0x21c], 0x20
push ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._GetMenuItemInfoW_16
sub esp, 0x10
test eax, eax
je 0x409208
mov eax, dword [ebp - 0x200]
call sym._DoOpenFile
jmp 0x409208
mov dword [ebp - 0x220], 0xbc
cmp edx, 0x44d
mov dword [ebp - 0x21c], 8
je 0x40c1cd
cmp edx, 0x44e
jne 0x40c1bf
mov word [ebp - 0x208], 2
lea eax, [ebp - 0x220]
mov dword [esp + 0xc], eax
mov eax, 0x447
xor edi, edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x340]
mov dword [esp + 8], edi
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x409208
mov dword [esp + 0xc], ebx
mov eax, dword [ebp - 0x340]
mov dword [esp + 8], edi
mov dword [esp + 4], 0x111
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x409208
movzx edx, word [ebp - 0x208]
mov dword [ebp - 0x33c], edx
cmp edx, 1
je 0x40bf60
mov dword [esp], edi
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x44c
mov dword [esp + 4], eax
call sym._CheckMenuItem_12
mov edx, dword [ebp - 0x33c]
sub esp, 0xc
cmp edx, 3
jne 0x40befc
mov dword [esp], edi
mov eax, 8
mov dword [esp + 8], eax
mov eax, 0x44d
mov dword [esp + 4], eax
call sym._CheckMenuItem_12
sub esp, 0xc
xor edx, edx
jmp 0x40a1d6
mov dword [esp], 0
mov esi, 0x898
mov edi, 0x7d1
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._LoadMenuW_8
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edi
mov edi, dword [ebp - 0x33c]
mov dword [esp], edi
call sym._GetDlgItem_8
sub esp, 8
mov esi, eax
call sym._set_bar_states
mov eax, 1
mov dword [esp], esi
xor esi, esi
mov dword [esp + 4], eax
call sym._ShowWindow_8
sub esp, 8
mov dword [esp], edi
call sym._close_preview
mov dword [esp + 4], ebx
mov dword [esp], edi
call sym._SetMenu_8
sub esp, 8
mov dword [esp], edi
call sym._registry_read_filelist
call sym._update_window
jmp 0x409208
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x33c]
mov dword [esp], eax
call sym._preview_command
mov esi, eax
jmp 0x409208
mov eax, dword [ebp - 0x33c]
mov ecx, 0x7d1
xor esi, esi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov dword [esp], eax
call sym._SetFocus_4
sub esp, 4
jmp 0x409208
mov dword [esp + 0xc], ebx
mov eax, 0xf
mov dword [esp + 8], edi
mov dword [esp + 4], eax
jmp 0x4091f5
cmp dword [ebx + 8], 0xfffffcda
jne 0x409dce
mov eax, dword [ebp - 0x340]
lea edx, [ebx + 0x14]
xor esi, esi
call sym._on_sizelist_modified
jmp 0x409208
lea eax, [edx - 0x514]
cmp eax, 0x67
ja case.0x40af77.1321
jmp dword [eax*4 + 0x410978]
mov dword [esp + 4], 0x7d4
mov edi, dword [ebp - 0x33c]
mov dword [esp], edi
call sym._GetDlgItem_8
push edx
push edx
mov dword [esp + 4], 0x7d3
mov dword [esp], eax
call sym._GetDlgItem_8
push ecx
mov ebx, eax
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x57b
mov dword [esp + 4], 0x419
mov dword [esp], eax
call sym._SendMessageW_16
lea edx, [ebp - 0x294]
sub esp, 0x10
mov dword [esp + 0xc], edx
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x41d
call sym._SendMessageW_16
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x2f0], eax
mov eax, dword [ebp - 0x288]
sub esp, 0x10
mov dword [esp], ebx
mov dword [ebp - 0x2ec], eax
lea eax, [ebp - 0x2f0]
mov dword [esp + 4], eax
call sym._ClientToScreen_8
mov eax, dword [0x41c6fc]
push ebx
push ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._GetSubMenu_8
push edx
push edx
mov edx, dword [ebp - 0x2ec]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x2f0]
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0x180
mov dword [esp], eax
mov dword [esp + 8], edx
call sym._TrackPopupMenu_28
mov dword [ebp - 0x33c], eax
lea ebx, [eax - 0x708]
sub esp, 0x1c
cmp ebx, 0x10
ja 0x409208
lea edx, [ebp - 0x21c]
xor eax, eax
mov edi, edx
mov ecx, 0x1c
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x220]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x340]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x43a
mov dword [ebp - 0x220], 0x74
mov dword [esp], eax
call sym._SendMessageW_16
mov dword [ebp - 0x21c], 0x40000000
sub esp, 0x10
cmp dword [ebp - 0x33c], 0x718
je 0x40c1db
mov eax, dword [ebx*4 + 0x410cc0]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x218]
and eax, 0xbfffffff
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x220]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x340]
mov ebx, 1
mov edi, 0x444
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x409208
xor eax, eax
mov ecx, 0x1c
mov dword [ebp - 0x33c], edx
lea edi, [ebp - 0x21c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x340]
lea ebx, [ebp - 0x220]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x43a
mov dword [esp], eax
mov dword [ebp - 0x220], 0x74
call sym._SendMessageW_16
mov edx, dword [ebp - 0x33c]
sub esp, 0x10
cmp edx, 0x579
je 0x40c162
cmp edx, 0x57a
je 0x40c176
mov dword [ebp - 0x21c], 1
mov eax, 1
xor dword [ebp - 0x218], eax
mov dword [esp + 0xc], ebx
jmp 0x40b109
mov eax, dword [0x41c708]
mov dword [esp], eax
call sym._GetDC_4
lea edx, [ebp - 0x2e8]
mov edi, edx
mov edx, dword [0x41c708]
push ecx
mov ecx, 0xd
mov dword [ebp - 0x33c], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, 0x1c
mov dword [ebp - 0x2ec], edx
lea edx, [ebp - 0x294]
mov dword [ebp - 0x2e4], edx
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x2f0], 0x3c
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x220]
mov dword [esp + 0xc], eax
mov eax, dword [0x41c704]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x43a
mov dword [ebp - 0x2dc], 0x1800141
mov dword [esp], eax
mov dword [ebp - 0x220], 0x74
call sym._SendMessageW_16
mov edx, dword [ebp - 0x2e4]
xor eax, eax
sub esp, 0x10
movzx ebx, word [ebp + eax - 0x206]
mov word [edx + eax + 0x1c], bx
add eax, 2
test ebx, ebx
jne 0x40b253
mov eax, dword [ebp - 0x218]
mov edx, dword [ebp - 0x2e4]
mov ecx, eax
shr ecx, 1
and cl, 1
mov byte [edx + 0x14], cl
mov ecx, eax
and ecx, 1
cmp ecx, 1
sbb ecx, ecx
and ecx, 0xfffffed4
add ecx, 0x2bc
mov dword [edx + 0x10], ecx
mov ecx, eax
shr eax, 3
shr ecx, 2
and al, 1
mov byte [edx + 0x16], al
mov eax, dword [ebp - 0x33c]
and cl, 1
mov byte [edx + 0x15], cl
mov dword [esp + 4], 0x5a
mov dword [esp], eax
call sym._GetDeviceCaps_8
mov ecx, 0x14
push edi
push edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x214]
mov dword [esp + 8], 0x48
cdq
idiv ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_MulDiv]
mov edx, dword [ebp - 0x2e4]
neg eax
sub esp, 0xc
mov dword [edx], eax
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x2d8], eax
lea eax, [ebp - 0x2f0]
mov dword [esp], eax
call sym._ChooseFontW_4
push edx
test eax, eax
je 0x409208
lea edx, [ebp - 0x218]
mov eax, ebx
mov ecx, 0x1b
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x220], 0x74
mov dword [ebp - 0x21c], 0xc000000f
add eax, eax
mov dword [ebp - 0x214], eax
movzx eax, word [ebp - 0x2c0]
test ah, 1
je 0x40b35d
mov dword [ebp - 0x218], 1
test ah, 2
je 0x40b369
or dword [ebp - 0x218], 2
mov eax, dword [ebp - 0x2e4]
cmp byte [eax + 0x15], 0
je 0x40b37c
or dword [ebp - 0x218], 4
cmp byte [eax + 0x16], 0
je 0x40b389
or dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x220]
mov dword [esp + 0xc], eax
mov eax, dword [0x41c704]
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [ebp - 0x2e4]
add eax, 0x1c
sub esp, 0x10
call sym._set_font
jmp 0x409208
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x340]
lea edi, [ebp - 0x220]
mov dword [esp + 0xc], edi
lea ebx, [edx - 0x522]
mov dword [esp + 4], 0x43d
movzx ebx, bx
mov dword [ebp - 0x33c], edx
mov dword [esp], eax
mov dword [ebp - 0x220], 0xbc
mov dword [ebp - 0x21c], 0x20
call sym._SendMessageW_16
movzx eax, word [ebp - 0x218]
mov dword [ebp - 0x21c], 0x8000e024
mov edx, dword [ebp - 0x33c]
sub esp, 0x10
test eax, eax
je 0x40c10e
cmp edx, 0x522
je 0x40c18a
cmp ebx, eax
je 0x40c18a
mov dword [ebp - 0x214], 0
mov dword [0x40f2a0], ebx
mov word [ebp - 0x218], bx
mov dword [ebp - 0x170], 0x2000001
mov word [ebp - 0x16c], 0x168
mov dword [ebp - 0x20c], 0x168
mov dword [esp + 0xc], edi
jmp 0x40ad86
lea edx, [ebp - 0x21c]
xor eax, eax
mov edi, edx
mov ecx, 0x2e
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x340]
lea ebx, [ebp - 0x220]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43d
mov dword [esp], eax
mov dword [ebp - 0x220], 0xbc
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x409208
xor eax, eax
mov ecx, 0x1b
lea edi, [ebp - 0x218]
rep stosd dword es:[edi], eax
lea ebx, [ebp - 0x220]
xor eax, eax
mov dword [esp + 0xc], ebx
cmp edx, 0x518
mov dword [esp + 4], 0x43a
sete al
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x340]
mov dword [ebp - 0x220], 0x74
mov dword [ebp - 0x21c], 0
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x409208
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x340]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x301
mov dword [esp], eax
call sym._PostMessageW_16
sub esp, 0x10
jmp 0x409208
mov eax, dword [ebp - 0x340]
mov edi, dword fs:[0x18]
mov dword [esp], eax
call sym._GetWindowTextLengthW_4
mov ebx, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x344], ebx
mov dword [ebp - 0x33c], eax
lea edx, [eax + 1]
push ecx
lea ecx, [edx + edx]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [ebp - 0x34c], ecx
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x348], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x348]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x340]
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._GetWindowTextW_12
sub esp, 0xc
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x410d38
mov dword [esp], 0
call sym._MessageBoxW_16
mov edx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x348], edx
sub esp, 0x10
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
mov ecx, dword [ebp - 0x34c]
mov ebx, dword [ebp - 0x344]
sub esp, 0xc
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x33c]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
sub esp, 0xc
mov ebx, eax
mov dword [esp + 8], 0
lea eax, [ebp - 0x220]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x340]
mov dword [esp + 4], 0x44b
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x410d38
mov dword [esp + 4], ebx
mov dword [esp], 0
call sym._MessageBoxW_16
mov edx, dword [ebp - 0x348]
sub esp, 0x10
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
sub esp, 0xc
jmp 0x409208
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x340]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x454
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x409208
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x340]
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc7
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x409208
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x340]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x302
mov dword [esp], eax
call sym._PostMessageW_16
sub esp, 0x10
jmp 0x409208
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x340]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x300
mov dword [esp], eax
call sym._PostMessageW_16
sub esp, 0x10
jmp 0x409208
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x340]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x303
mov dword [esp], eax
call sym._PostMessageW_16
sub esp, 0x10
jmp 0x409208
mov dword [esp + 8], 0
lea eax, [ebp - 0x294]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x340]
mov dword [esp + 4], 0x434
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 0xffffffff
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [ebp - 0x290]
sub eax, dword [ebp - 0x294]
mov ebx, dword fs:[0x18]
inc eax
add eax, eax
sub esp, 0x10
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x340]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43e
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [ebp - 0x290]
lea edx, [ebp - 0x220]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x294]
mov dword [esp], edx
mov dword [esp + 4], str.Start___d__End___d
mov dword [esp + 8], eax
call sym._sprintf
mov eax, dword [ebp - 0x33c]
lea edx, [ebp - 0x220]
mov dword [esp + 4], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Editor
mov dword [esp], eax
call sym._MessageBoxA_16
mov eax, dword [ebp - 0x33c]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x410d38
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._MessageBoxW_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x409208
mov dword [esp + 8], 0
lea eax, [ebp - 0x220]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x340]
mov dword [esp + 4], 0x437
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xffffffff
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x409208
mov dword [esp + 0xc], 0
mov edi, dword [ebp - 0x340]
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb8
mov dword [esp], edi
call sym._SendMessageW_16
sub esp, 0x10
test eax, eax
mov dword [esp + 0xc], 0
je 0x40c0d4
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb9
mov dword [esp], edi
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x409208
mov dword [esp + 4], 0xfffffff0
mov edi, dword [ebp - 0x340]
mov dword [esp], edi
call sym._GetWindowLongW_8
push edx
test ah, 8
push edx
mov dword [esp + 0xc], 0
je 0x40c0fc
mov dword [esp + 8], 0
mov dword [esp + 4], 0xcf
mov dword [esp], edi
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x409208
cmp edx, 0x4b0
je 0x40c0bf
cmp edx, 0x4b1
jne case.0x40af77.1321
mov dword [esp + 0xc], 0xc0ffff
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x340]
mov ebx, 0x443
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x409208
cmp edx, 0x644
ja 0x40bcc0
cmp edx, 0x63f
ja 0x40ba90
cmp edx, 0x5de
je 0x40bffc
jbe 0x40bd10
cmp edx, 0x5df
jne case.0x40af77.1321
mov eax, dword [0x40f2a4]
mov dword [esp], eax
call sym._reg_formatindex
mov edx, dword [eax*4 + 0x41c6e8]
xor eax, eax
not edx
and edx, 1
call sym._set_toolbar_state
call sym._update_window
jmp 0x409208
mov dword [esp], 0
sub edx, 0x641
cmp edx, 3
ja case.default.0x40baa6
jmp dword [edx*4 + 0x410b18]
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push edi
mov edi, dword [ebp - 0x33c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], sym._tabstops_proc_16
mov dword [esp + 8], edi
mov dword [esp + 4], 0x837
mov dword [esp], eax
call sym._DialogBoxParamW_20
sub esp, 0x14
jmp 0x409208
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov edi, dword [ebp - 0x33c]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], sym._paraformat_proc_16
mov dword [esp + 8], edi
mov dword [esp + 4], 0x836
mov dword [esp], eax
call sym._DialogBoxParamW_20
sub esp, 0x14
jmp 0x409208
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push ebx
mov dword [esp + 0x14], 0x8000
mov dword [esp + 0x10], 0x30
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], 1
mov dword [esp + 4], 0x66
mov dword [esp], eax
call sym._LoadImageW_24
sub esp, 0x18
mov dword [esp + 0xc], eax
mov eax, dword [0x41c708]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x410d38
mov dword [esp], eax
call sym._ShellAboutW_16
sub esp, 0x10
jmp 0x409208
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0x220], 0x38
mov dword [ebp - 0x21c], 8
mov dword [ebp - 0x214], 0x838
mov dword [ebp - 0x208], sym._formatopts_proc_16
push edx
mov ebx, eax
mov dword [esp], 1
mov dword [ebp - 0x218], eax
call sym._reg_formatindex
mov dword [esp], 2
mov dword [ebp - 0x200], 0
mov dword [ebp - 0x20c], 0x599
mov dword [ebp - 0x204], eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x1d0], eax
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x1e0], eax
call sym._reg_formatindex
mov dword [ebp - 0x1d4], 0x59a
mov dword [ebp - 0x294], 0x34
mov dword [ebp - 0x290], 0x8c
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x280], 0x598
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x200]
mov dword [ebp - 0x27c], 2
mov dword [ebp - 0x284], 0x66
mov dword [ebp - 0x1c8], eax
mov eax, dword [0x41c708]
mov dword [ebp - 0x28c], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x274], eax
mov eax, dword [0x40f2a4]
shr eax, 1
and eax, 1
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x294]
mov dword [esp], eax
call sym._PropertySheetW_4
push ecx
call sym._set_bar_states
jmp 0x40abfa
cmp edx, 0x7dd
je 0x40c027
cmp edx, 0x7de
jne case.0x40af77.1321
shr edi, 0x10
cmp edi, 9
jne 0x409dce
lea edx, [ebp - 0x220]
mov ecx, 0x100
mov eax, ebx
call sym._get_comboexlist_selection
lea edx, [ebp - 0x220]
mov eax, ebx
call sym._on_sizelist_modified
jmp 0x409208
cmp edx, 0x5dc
je 0x40c08e
cmp edx, 0x5dd
jne case.0x40af77.1321
mov eax, dword [0x40f2a4]
mov dword [esp], eax
call sym._reg_formatindex
mov edx, dword [eax*4 + 0x41c6e8]
mov eax, 4
shr edx, 3
xor edx, 1
and edx, 1
call sym._set_toolbar_state
mov eax, dword [0x40f2a4]
mov dword [esp], eax
call sym._reg_formatindex
mov edx, dword [eax*4 + 0x41c6e8]
mov eax, 5
shr edx, 3
xor edx, 1
and edx, 1
call sym._set_toolbar_state
mov eax, dword [0x40f2a4]
mov dword [esp], eax
call sym._reg_formatindex
mov edx, dword [eax*4 + 0x41c6e8]
mov eax, 3
shr edx, 3
xor edx, 1
and edx, 1
call sym._set_toolbar_state
call sym._update_window
jmp 0x409208
cmp dword [ebx + 8], 0xfffffd3a
jne 0x409dce
mov edi, dword [ebp - 0x33c]
mov dword [esp], edi
call sym._GetMenu_4
sub esp, 4
test eax, eax
je 0x409dce
mov edx, 0x30
xor esi, esi
mov dword [ebp - 0x220], edx
lea edx, [ebp - 0x220]
mov ecx, 4
mov dword [esp + 0xc], edx
mov edx, 0x52d
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0x21c], ecx
call sym._GetMenuItemInfoW_16
mov ecx, dword [ebp - 0x20c]
sub esp, 0x10
test ecx, ecx
je 0x409dce
lea esi, [ebp - 0x2f0]
mov ecx, 0x433
mov dword [esp + 0xc], esi
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, 2
sub esp, 0x10
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], esi
xor esi, esi
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._MapWindowPoints_16
mov edx, dword [ebp - 0x2ec]
mov eax, 0x14
mov dword [ebp - 0x294], eax
mov eax, dword [ebp - 0x2f0]
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x28c], edx
mov edx, dword [ebp - 0x2e8]
mov dword [ebp - 0x290], eax
sub esp, 0x10
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [ebp - 0x288], edx
mov edx, dword [ebp - 0x2e4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edx
mov dword [esp], eax
mov dword [ebp - 0x284], edx
call sym._TrackPopupMenuEx_24
sub esp, 0x18
jmp 0x409208
cmp dword [ebx + 8], 0xfffffcda
jne 0x409dce
lea eax, [ebx + 0x14]
xor esi, esi
call sym._on_fontlist_modified
jmp 0x409208
mov dword [esp], edi
xor edx, edx
mov ecx, 0x44d
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call sym._CheckMenuItem_12
mov edx, dword [ebp - 0x33c]
sub esp, 0xc
cmp edx, 2
jne 0x40ae34
mov edx, 8
jmp 0x40a1d6
mov eax, dword [ebp - 0x33c]
mov ecx, 0x30
mov edx, 0x6a7
call sym._MessageBoxWithResStringW.constprop.0
mov dword [esp], 1
call sym._PostQuitMessage_4
sub esp, 4
jmp 0x409b15
mov dword [esp], edi
mov edx, 8
mov ecx, 0x44c
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
mov dword [esp + 8], eax
mov eax, 0x44d
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._CheckMenuItem_12
xor edx, edx
sub esp, 0xc
jmp 0x40a1d6
mov eax, 1
mov dword [ebp - 0x308], eax
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x34c], eax
jmp 0x40a524
mov eax, 2
jmp 0x40a84e
mov eax, 2
jmp 0x40a7ee
mov eax, 2
jmp 0x40a78e
mov eax, 2
jmp 0x40a72e
lea eax, [ebp - 0x220]
mov dword [ebp - 0x344], eax
jmp 0x40a5fa
mov esi, 0xffffffff
jmp 0x409208
mov eax, dword [0x40f2a4]
mov dword [esp], eax
call sym._reg_formatindex
mov eax, dword [eax*4 + 0x41c6e8]
shr eax, 1
xor eax, 1
and eax, 1
call sym._set_statusbar_state
call sym._update_window
jmp 0x409208
shr edi, 0x10
cmp edi, 9
jne 0x409dce
mov ecx, 0x20
mov eax, ebx
lea edx, [ebp - 0x220]
call sym._get_comboexlist_selection
lea eax, [ebp - 0x220]
call sym._on_fontlist_modified
jmp 0x409208
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov edi, dword [ebp - 0x33c]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], sym._datetime_proc_16
mov dword [esp + 8], edi
mov dword [esp + 4], 0x834
mov dword [esp], eax
call sym._DialogBoxParamW_20
sub esp, 0x14
jmp 0x409208
mov eax, dword [0x40f2a4]
mov dword [esp], eax
call sym._reg_formatindex
mov edx, dword [eax*4 + 0x41c6e8]
mov eax, 2
shr edx, 2
xor edx, 1
and edx, 1
call sym._set_toolbar_state
call sym._update_window
jmp 0x409208
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
jmp 0x40ba08
mov dword [esp + 8], 1
mov dword [esp + 4], 0xb9
mov eax, dword [ebp - 0x340]
xor esi, esi
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x409dd0
mov dword [esp + 8], 1
mov dword [esp + 4], 0xcf
jmp 0x40c0e4
mov dword [ebp - 0x214], 0x168
cmp edx, 0x522
jne 0x40b45d
movzx ebx, word [0x40f2a0]
jmp 0x40b463
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
or esi, 0xffffffff
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 4], str.Error_code__u_n
mov dword [esp + 8], ebx
mov dword [esp], eax
call sym._fprintf.constprop.0
jmp 0x409208
mov dword [ebp - 0x21c], 2
mov eax, 2
jmp 0x40b1a8
mov dword [ebp - 0x21c], 4
mov eax, 4
jmp 0x40b1a8
mov word [ebp - 0x218], 0
mov dword [ebp - 0x170], 0
mov word [ebp - 0x16c], 0
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x214], 0xfffffe98
jmp 0x40b487
mov word [ebp - 0x208], 1
jmp 0x40ad7c
mov word [ebp - 0x208], 3
jmp 0x40ad7c
mov eax, dword [ebp - 0x218]
or eax, 0x40000000
jmp 0x40b0f9
mov eax, 1
jmp 0x40ab4f