Function at 0x409aa0
Capabilities:
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, 0x388
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
mov dword [ebp - 0x33c], eax
cmp dword [0x41d6f8], ebx
je 0x40add0
cmp ebx, 0x4e
je 0x40b2b8
ja 0x409490
lea eax, [ebx - 1]
cmp eax, 0xf
ja case.0x409484.0
cmp ebx, 0x10
ja case.0x409484.0
jmp dword [ebx*4 + 0x41177c]
cmp ebx, 0x117
je 0x40adf8
jbe 0x4098e8
cmp ebx, 0x233
je 0x4099b8
cmp ebx, 0x400
jne case.0x409484.0
mov edi, dword [ebp - 0x33c]
mov dword [esp + 4], 0x7d1
mov dword [esp], edi
call sym._GetDlgItem_8
sub esp, 8
mov esi, eax
mov dword [esp], edi
mov dword [esp + 4], 0x7d4
call sym._GetDlgItem_8
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x7d2
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov dword [ebp - 0x33c], eax
mov dword [esp], ebx
mov dword [esp + 4], 0x7d3
call sym._GetDlgItem_8
lea edx, [ebp - 0x290]
mov ecx, 0x1c
mov dword [ebp - 0x2f0], 8
mov edi, edx
mov ebx, eax
xor eax, eax
sub esp, 8
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x21c]
mov ecx, 0x2e
mov dword [ebp - 0x294], 0x74
mov dword [ebp - 0x2ec], 0x4b0
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2f0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x45f
mov dword [esp], esi
mov dword [ebp - 0x220], 0xbc
call sym._SendMessageW_16
mov edi, dword [ebp - 0x33c]
sub esp, 0x10
test eax, eax
setne al
mov dword [esp + 8], 0x3f6
movzx eax, al
mov dword [esp + 4], 0x401
mov dword [esp + 0xc], eax
mov dword [esp], edi
call sym._SendMessageW_16
lea eax, [ebp - 0x294]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x43a
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 dword [esp + 4], 0xb0
mov dword [esp], esi
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc6
mov dword [esp], esi
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x51b
mov dword [esp + 4], 0x401
mov dword [esp], edi
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x455
mov dword [esp], esi
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x51c
mov dword [esp + 4], 0x401
mov dword [esp], edi
call sym._SendMessageW_16
mov eax, dword [ebp - 0x300]
sub esp, 0x10
cmp dword [ebp - 0x30c], eax
setne al
mov dword [esp + 8], 0x51f
movzx eax, al
mov dword [esp + 4], 0x401
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
setne al
mov dword [esp + 8], 0x51e
movzx eax, al
mov dword [esp + 4], 0x401
mov dword [esp + 0xc], eax
mov dword [esp], edi
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
test byte [ebp - 0x290], 1
je 0x4096f8
mov eax, dword [ebp - 0x28c]
and eax, 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x578
mov dword [esp + 4], 0x402
mov dword [esp], ebx
call sym._SendMessageW_16
mov eax, dword [ebp - 0x290]
sub esp, 0x10
not eax
mov dword [esp + 8], 0x578
and eax, 1
mov dword [esp + 4], 0x405
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
test byte [ebp - 0x290], 2
je 0x409757
mov eax, dword [ebp - 0x28c]
shr eax, 1
and eax, 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x579
mov dword [esp + 4], 0x402
mov dword [esp], ebx
call sym._SendMessageW_16
mov eax, dword [ebp - 0x290]
sub esp, 0x10
shr eax, 1
mov dword [esp + 8], 0x579
xor eax, 1
mov dword [esp + 4], 0x405
and eax, 1
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
test byte [ebp - 0x290], 4
je 0x4097ba
mov eax, dword [ebp - 0x28c]
shr eax, 2
and eax, 1
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x57a
mov dword [esp + 4], 0x402
call sym._SendMessageW_16
mov eax, dword [ebp - 0x290]
sub esp, 0x10
shr eax, 2
mov dword [esp], ebx
xor eax, 1
mov dword [esp + 8], 0x57a
and eax, 1
mov dword [esp + 4], 0x405
mov dword [esp + 0xc], eax
call sym._SendMessageW_16
lea eax, [ebp - 0x220]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43d
mov dword [esp], esi
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
cmp word [ebp - 0x208], 1
sete al
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x44c
mov dword [esp + 4], 0x402
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
cmp word [ebp - 0x208], 3
sete al
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x44d
mov dword [esp + 4], 0x402
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
cmp word [ebp - 0x208], 2
sete al
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x44e
mov dword [esp + 4], 0x402
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
cmp word [ebp - 0x218], 0
setne al
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x522
mov dword [esp + 4], 0x402
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x4099a3
cmp ebx, 0x7b
je 0x409980
cmp ebx, 0x111
jne case.0x409484.0
call dbg.preview_isactive
mov ebx, eax
test eax, eax
jne 0x40b950
mov eax, dword [ebp - 0x33c]
mov dword [esp + 4], 0x7d1
mov dword [esp], eax
call sym._GetDlgItem_8
mov dword [ebp - 0x340], eax
sub esp, 8
cmp eax, edi
je 0x4099f5
movzx edx, si
cmp si, 0x57b
ja 0x40c850
cmp edx, 0x513
ja 0x40beb0
cmp edx, 0x44e
ja 0x40be68
cmp edx, 0x3e7
jbe case.0x40bebf.1321
lea eax, [edx - 0x3e8]
cmp eax, 0x66
ja case.0x40bebf.1321
jmp dword [eax*4 + 0x4117c0]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], 0x7b
mov eax, dword [ebp - 0x33c]
mov dword [esp], eax
call sym._DefWindowProcW_16
sub esp, 0x10
mov ebx, eax
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
lea ebx, [ebp - 0x220]
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], esi
call sym._DragQueryFileW_16
sub esp, 0x10
mov dword [esp], esi
call sym._DragFinish_4
sub esp, 4
call dbg.prompt_save_changes
test eax, eax
jne 0x40b970
xor ebx, ebx
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
call dbg.preview_isactive
test eax, eax
je 0x40b9a8
lea esi, [esi]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
jmp 0x409990
mov dword [esp], 0
xor ebx, ebx
call sym._PostQuitMessage_4
sub esp, 4
jmp 0x4099a3
mov eax, dword [ebp - 0x33c]
mov ecx, edi
mov edx, esi
call dbg.OnSize
mov ebx, eax
jmp 0x4099a3
test si, si
je 0x4099f5
mov eax, dword [ebp - 0x33c]
mov dword [esp + 4], 0x7d1
xor ebx, ebx
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov dword [esp], eax
call sym._SetFocus_4
sub esp, 4
jmp 0x4099a3
call dbg.preview_isactive
mov ebx, eax
test eax, eax
jne 0x40b898
call dbg.prompt_save_changes
test eax, eax
je 0x4099f5
mov eax, dword [0x41d708]
mov dword [esp], eax
call dbg.registry_set_options
mov dword [esp + 4], 0x41d6f0
mov dword [esp], 0x41d6e8
call dbg.registry_set_formatopts_all
mov dword [esp], 0
call sym._PostQuitMessage_4
sub esp, 4
jmp 0x4099a3
mov eax, dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [esp], 0
mov dword [ebp - 0x34c], eax
call eax
mov edi, dword [ebp - 0x33c]
sub esp, 4
mov esi, eax
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0x7d0
mov dword [esp + 4], str.RichEdit_text
mov dword [esp], 0x50000040
call sym._CreateStatusWindowW_16
mov dword [ebp - 0x33c], edi
sub esp, 0x10
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 0x7d4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0x56000241
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4116b4
mov dword [esp], pe_nt_image_headers32
call sym._CreateWindowExW_48
mov dword [ebp - 0x318], 0xc
mov dword [ebp - 0x314], 0
sub esp, 0x30
mov edi, eax
lea eax, [ebp - 0x318]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x404
mov dword [esp], edi
mov dword [ebp - 0x310], 0
call sym._SendMessageW_16
sub esp, 0x10
test eax, eax
je 0x40ce6a
mov dword [esp + 0x10], esi
mov dword [esp], edi
mov dword [esp + 0x30], 0x14
mov dword [esp + 0x2c], 0x10
mov dword [esp + 0x28], 0x10
mov dword [esp + 0x24], 0x18
mov dword [esp + 0x20], 0x18
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x64
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x7d2
mov dword [esp + 4], 0x5000010a
mov dword [ebp - 0x344], esi
mov dword [ebp - 0x340], edi
call sym._CreateToolbarEx_52
mov ecx, dword [ebp - 0x33c]
sub esp, 0x34
mov esi, eax
mov dword [esp], ecx
call sym._GetDC_4
sub esp, 4
mov edi, eax
mov dword [esp + 4], 0x5a
mov dword [esp], eax
call sym._GetDeviceCaps_8
mov ecx, dword [ebp - 0x33c]
sub esp, 8
mov dword [ebp - 0x348], eax
mov dword [esp], ecx
mov dword [esp + 4], edi
call sym._ReleaseDC_8
xor eax, eax
mov dword [ebp - 0x330], 0xffffffff
sub esp, 8
cmp dword [ebp - 0x348], 0x77
setg al
mov dword [esp], esi
mov dword [ebp - 0x32c], eax
lea eax, [ebp - 0x330]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x413
call sym._SendMessageW_16
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov edi, eax
lea eax, [eax + 6]
mov dword [ebp - 0x214], 0
mov dword [esp + 0xc], ecx
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0x3eb
mov byte [ebp - 0x218], 4
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea ecx, [ebp - 0x220]
lea eax, [edi + 7]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x220], eax
mov dword [esp + 0xc], ecx
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x21c], 0x3e9
mov byte [ebp - 0x218], 4
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea ecx, [ebp - 0x220]
lea eax, [edi + 8]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x220], eax
mov dword [esp + 0xc], ecx
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x21c], 0x3ea
mov byte [ebp - 0x218], 4
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x21c], 0
mov dword [esp + 0xc], ecx
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], 0xffffffff
mov byte [ebp - 0x217], 1
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea ecx, [ebp - 0x220]
lea eax, [edi + 0xe]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x220], eax
mov dword [esp + 0xc], ecx
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x21c], 0x3f5
mov byte [ebp - 0x218], 4
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea ecx, [ebp - 0x220]
lea eax, [edi + 9]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x220], eax
mov dword [esp + 0xc], ecx
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x21c], 0x3f3
mov byte [ebp - 0x218], 4
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x21c], 0
mov dword [esp + 0xc], ecx
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], 0xffffffff
mov byte [ebp - 0x217], 1
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea ecx, [ebp - 0x220]
lea eax, [edi + 0xc]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x220], eax
mov dword [esp + 0xc], ecx
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x21c], 0x3f6
mov byte [ebp - 0x218], 4
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x21c], 0
mov dword [esp + 0xc], ecx
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], 0xffffffff
mov byte [ebp - 0x217], 1
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x220], edi
mov dword [esp + 0xc], ecx
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x21c], 0x51f
mov byte [ebp - 0x218], 4
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea ecx, [ebp - 0x220]
lea eax, [edi + 1]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x220], eax
mov dword [esp + 0xc], ecx
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x21c], 0x51e
mov byte [ebp - 0x218], 4
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea ecx, [ebp - 0x220]
lea eax, [edi + 2]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x220], eax
mov dword [esp + 0xc], ecx
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x21c], 0x520
mov byte [ebp - 0x218], 4
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea ecx, [ebp - 0x220]
lea eax, [edi + 3]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x220], eax
add edi, 4
mov dword [esp + 0xc], ecx
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x21c], 0x51b
mov byte [ebp - 0x218], 4
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x220], edi
mov dword [esp + 0xc], ecx
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x21c], 0x51c
mov byte [ebp - 0x218], 4
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x21c], 0
mov dword [esp + 0xc], ecx
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], 0xffffffff
mov byte [ebp - 0x217], 1
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x214], 0
mov dword [esp + 0xc], ecx
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0x640
mov byte [ebp - 0x218], 4
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x421
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43a
call sym._SendMessageW_16
mov edx, dword [ebp - 0x344]
shr eax, 0x10
sub esp, 0x10
mov edi, eax
mov eax, dword [ebp - 0x340]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x7dd
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x96
mov dword [esp + 0x18], 0xc8
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50800102
mov dword [esp + 8], 0
mov dword [esp + 4], str.ComboBoxEx32
mov dword [esp], 0
call sym._CreateWindowExW_48
mov ecx, eax
sub esp, 0x30
lea eax, [ebp - 0x300]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [ebp - 0x348], ecx
call sym._GetWindowRect_8
mov eax, dword [ebp - 0x2f4]
sub eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x294], 0x50
sub esp, 8
cmp eax, edi
cmovge edi, eax
mov eax, dword [ebp - 0x340]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x40a
mov dword [ebp - 0x26c], edi
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x354], edi
lea edi, [ebp - 0x294]
mov dword [esp + 0xc], edi
mov dword [esp], eax
mov dword [ebp - 0x290], 0x171
mov dword [ebp - 0x28c], 0x105
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x260], 2
call sym._SendMessageW_16
mov esi, dword [ebp - 0x348]
sub esp, 0x10
mov dword [esp], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x31
call sym._SendMessageW_16
mov dword [ebp - 0x348], esi
sub esp, 0x10
mov dword [ebp - 0x350], eax
mov dword [esp], esi
call sym._GetDC_4
mov ecx, dword [ebp - 0x350]
sub esp, 4
mov esi, eax
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._SelectObject_8
sub esp, 8
mov dword [ebp - 0x350], eax
lea eax, [ebp - 0x328]
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xf
mov dword [esp + 4], str.Times_New_Roman
call sym._GetTextExtentPointW_16
lea eax, [ebp - 0x320]
sub esp, 0x10
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 3
mov dword [esp + 4], 0x411c1c
call sym._GetTextExtentPointW_16
mov ecx, dword [ebp - 0x350]
sub esp, 0x10
mov dword [esp + 4], ecx
mov dword [esp], esi
call sym._SelectObject_8
sub esp, 8
mov dword [esp + 4], esi
mov esi, dword [ebp - 0x348]
mov dword [esp], esi
call sym._ReleaseDC_8
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x274], esi
sub esp, 8
mov esi, dword [sym.imp.kernel32.dll_MulDiv]
mov dword [esp + 8], 2
mov dword [esp + 4], 3
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x354]
mov dword [ebp - 0x260], 4
sub esp, 0xc
add eax, edx
mov dword [esp + 0xc], edi
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x340]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x40a
mov dword [esp], eax
call sym._SendMessageW_16
mov edx, dword [ebp - 0x344]
mov eax, dword [ebp - 0x340]
sub esp, 0x10
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x7de
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x96
mov dword [esp + 0x18], 0x32
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50800002
mov dword [esp + 8], 0
mov dword [esp + 4], str.ComboBoxEx32
mov dword [esp], 0
call sym._CreateWindowExW_48
mov dword [ebp - 0x350], eax
sub esp, 0x30
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x320]
mov dword [esp + 8], 2
mov dword [esp + 4], 3
mov dword [esp], eax
call esi
mov esi, dword [ebp - 0x340]
mov edx, dword [ebp - 0x354]
mov dword [ebp - 0x260], 5
sub esp, 0xc
xor dword [ebp - 0x28c], 1
mov dword [esp], esi
add edx, eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x40a
mov dword [ebp - 0x268], edx
call sym._SendMessageW_16
mov edx, dword [ebp - 0x344]
mov dword [ebp - 0x340], esi
sub esp, 0x10
mov dword [esp + 0x10], edx
mov dword [esp], esi
mov dword [esp + 0x30], 0x14
mov dword [esp + 0x2c], 0x10
mov dword [esp + 0x28], 0x10
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x20], 0x10
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x65
mov dword [esp + 0xc], 8
mov dword [esp + 8], 0x7d3
mov dword [esp + 4], 0x1000010a
call sym._CreateToolbarEx_52
sub esp, 0x34
mov esi, eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0x454
mov dword [esp], eax
call sym._SendMessageW_16
lea eax, [ebp - 0x220]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x214], 0
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0x578
mov byte [ebp - 0x218], 4
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea eax, [ebp - 0x220]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x214], 0
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x220], 1
mov dword [ebp - 0x21c], 0x579
mov byte [ebp - 0x218], 4
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea eax, [ebp - 0x220]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x214], 0
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x220], 2
mov dword [ebp - 0x21c], 0x57a
mov byte [ebp - 0x218], 4
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea eax, [ebp - 0x220]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x214], 0
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x220], 3
mov dword [ebp - 0x21c], 0x57b
mov byte [ebp - 0x218], 4
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea eax, [ebp - 0x220]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x21c], 0
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], 0xffffffff
mov byte [ebp - 0x217], 1
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea eax, [ebp - 0x220]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x214], 0
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x220], 4
mov dword [ebp - 0x21c], 0x44c
mov byte [ebp - 0x218], 4
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea eax, [ebp - 0x220]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x214], 0
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x220], 5
mov dword [ebp - 0x21c], 0x44d
mov byte [ebp - 0x218], 4
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea eax, [ebp - 0x220]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x214], 0
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x220], 6
mov dword [ebp - 0x21c], 0x44e
mov byte [ebp - 0x218], 4
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
lea eax, [ebp - 0x220]
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov dword [ebp - 0x21c], 0
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], 0xffffffff
mov byte [ebp - 0x217], 1
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
mov eax, 0x804
mov dword [ebp - 0x218], 0
sub esp, 0x10
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x220]
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x21c], 0x522
mov dword [ebp - 0x210], 0xffffffff
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x421
call sym._SendMessageW_16
mov dword [ebp - 0x274], esi
mov esi, dword [ebp - 0x340]
mov dword [ebp - 0x260], 3
sub esp, 0x10
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x40a
mov dword [esp], esi
call sym._SendMessageW_16
mov edx, dword [ebp - 0x344]
sub esp, 0x10
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x7df
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x18], 0xc8
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], 0
mov dword [esp + 4], str.Static
mov dword [esp], 0
call sym._CreateWindowExW_48
or dword [ebp - 0x28c], 1
sub esp, 0x30
mov dword [ebp - 0x274], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x40a
mov dword [esp], esi
mov dword [ebp - 0x260], 0
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 0x40cd68
mov eax, dword [ebp - 0x344]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x7d1
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x33c]
mov dword [esp + 0x1c], 0x64
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0x3e8
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x51301144
mov dword [esp + 8], 0
mov dword [esp + 4], str.RichEdit20W
mov dword [esp], 0x200
call sym._CreateWindowExW_48
mov dword [0x41d704], eax
sub esp, 0x30
test eax, eax
je 0x40cf99
mov dword [esp], eax
xor edi, edi
call dbg.setup_richedit_olecallback
mov eax, dword [0x41d704]
mov dword [esp], eax
call sym._SetFocus_4
mov eax, dword [0x41d704]
sub esp, 4
mov dword [esp + 0xc], 0x80000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x445
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
call dbg.set_default_font
mov eax, dword [0x41d708]
mov dword [ebp - 0x30c], 0
mov dword [ebp - 0x308], 0
mov dword [esp], eax
mov dword [ebp - 0x304], 0
call sym._GetDC_4
mov esi, eax
mov eax, dword [ebp - 0x348]
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x407
mov dword [esp], eax
call sym._SendMessageW_16
mov byte [ebp - 0x2d9], 1
sub esp, 0x10
mov dword [ebp - 0x354], eax
lea eax, [ebp - 0x30c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2f0]
mov dword [esp + 0x10], 0
mov dword [esp + 8], dbg.enum_font_proc
mov dword [esp + 4], eax
mov dword [esp], esi
mov word [ebp - 0x2d4], di
mov byte [ebp - 0x2d5], 0
call sym._EnumFontFamiliesExW_20
mov eax, dword [ebp - 0x308]
sub esp, 0x14
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30c]
mov dword [esp + 0xc], dbg.fonts_desc_compare
mov dword [esp + 8], 8
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_qsort]
cmp dword [ebp - 0x308], 1
jbe 0x40ce28
mov eax, dword [sym.imp.ucrtbase.dll_free]
xor edi, edi
mov dword [ebp - 0x344], eax
jmp 0x40ad74
add edi, 1
cmp ebx, edi
je 0x40ad65
mov eax, dword [ebp - 0x30c]
mov edx, dword [ebp - 0x340]
mov ecx, dword [eax + edx + 4]
mov edx, dword [eax + edx]
mov dword [eax + esi + 0xc], ecx
mov dword [eax + esi + 8], edx
mov edx, dword [ebp - 0x340]
mov eax, dword [ebp - 0x30c]
mov dword [eax + edx], 0
add ebx, 1
cmp ebx, dword [ebp - 0x308]
jae 0x40b410
mov eax, dword [ebp - 0x30c]
lea edx, [edi*8]
mov esi, edx
lea edx, [ebx*8]
mov ecx, dword [eax + edi*8]
mov dword [ebp - 0x340], edx
mov dword [esp + 4], ecx
mov eax, dword [eax + ebx*8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x40ad30
mov eax, dword [ebp - 0x30c]
mov eax, dword [eax + ebx*8]
mov dword [esp], eax
mov eax, dword [ebp - 0x344]
call eax
mov eax, dword [ebp - 0x30c]
mov dword [eax + ebx*8], 0
jmp 0x40ad65
mov eax, dword [edi + 0xc]
test al, 0x40
jne 0x40be50
test al, 0x38
je 0x4099f5
mov eax, edi
call sym._handle_findmsg.part.0
mov ebx, eax
jmp 0x4099a3
mov edi, dword [ebp - 0x33c]
mov dword [esp + 4], 0x7d1
mov dword [esp], edi
call sym._GetDlgItem_8
sub esp, 8
mov ebx, eax
mov dword [esp], edi
mov dword [esp + 4], 0x7d0
call sym._GetDlgItem_8
sub esp, 8
mov edi, eax
lea eax, [ebp - 0x300]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x30c]
mov dword [esp + 8], eax
mov eax, dword [0x41d704]
mov dword [esp + 4], 0xb0
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [ebp - 0x300]
sub esp, 0x10
cmp dword [ebp - 0x30c], eax
sete al
mov dword [esp + 4], 0x51e
movzx eax, al
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._EnableMenuItem_12
mov eax, dword [ebp - 0x300]
sub esp, 0xc
cmp dword [ebp - 0x30c], eax
sete al
mov dword [esp + 4], 0x51f
movzx eax, al
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._EnableMenuItem_12
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x9c
sub esp, 0xc
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43d
mov dword [esp], ebx
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 4], 0xfffffff0
mov dword [esp], ebx
call sym._GetWindowLongW_8
shr eax, 8
sub esp, 8
and eax, 8
mov dword [esp + 4], 0x516
mov dword [esp + 8], eax
mov dword [esp], esi
call sym._CheckMenuItem_12
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb8
mov dword [esp], ebx
call sym._SendMessageW_16
sub esp, 0x10
test eax, eax
setne al
mov dword [esp + 4], 0x517
movzx eax, al
mov dword [esp], esi
shl eax, 3
mov dword [esp + 8], eax
call sym._CheckMenuItem_12
sub esp, 0xc
test byte [ebp - 0x21c], 8
jne 0x40b848
mov dword [esp + 8], 0
mov dword [esp + 4], 0x44c
mov dword [esp], esi
call sym._CheckMenuItem_12
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], 0x44d
mov dword [esp], esi
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0x44e
mov dword [esp], esi
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
cmp word [ebp - 0x218], 1
sete al
mov dword [esp + 4], 0x523
shl eax, 3
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
cmp word [ebp - 0x218], 2
sete al
mov dword [esp + 4], 0x524
shl eax, 3
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
cmp word [ebp - 0x218], 3
sete al
mov dword [esp + 4], 0x525
shl eax, 3
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
cmp word [ebp - 0x218], 4
sete al
mov dword [esp + 4], 0x526
shl eax, 3
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
cmp word [ebp - 0x218], 5
sete al
mov dword [esp + 4], 0x527
shl eax, 3
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
cmp word [ebp - 0x218], 6
sete al
mov dword [esp + 4], 0x528
shl eax, 3
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._CheckMenuItem_12
sub esp, 0xc
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc6
call sym._SendMessageW_16
sub esp, 0x10
test eax, eax
sete al
mov dword [esp + 4], 0x51b
movzx eax, al
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._EnableMenuItem_12
sub esp, 0xc
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x455
call sym._SendMessageW_16
sub esp, 0x10
test eax, eax
sete al
mov dword [esp + 4], 0x51c
movzx eax, al
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._EnableMenuItem_12
mov eax, dword [0x410284]
sub esp, 0xc
mov dword [esp], eax
call sym._reg_formatindex
mov dword [esp + 4], 0x5dc
mov eax, dword [eax*4 + 0x41d6e8]
mov dword [esp], esi
add eax, eax
and eax, 8
mov dword [esp + 8], eax
call sym._CheckMenuItem_12
mov eax, dword [0x410284]
sub esp, 0xc
mov dword [esp], eax
call sym._reg_formatindex
mov dword [esp + 4], 0x5dd
mov eax, dword [eax*4 + 0x41d6e8]
mov dword [esp], esi
and eax, 8
mov dword [esp + 8], eax
call sym._CheckMenuItem_12
sub esp, 0xc
mov dword [esp], edi
call sym._IsWindowVisible_4
sub esp, 4
test eax, eax
setne al
mov dword [esp + 4], 0x5de
movzx eax, al
mov dword [esp], esi
shl eax, 3
mov dword [esp + 8], eax
call sym._CheckMenuItem_12
mov eax, dword [0x410284]
sub esp, 0xc
mov dword [esp], eax
call sym._reg_formatindex
mov dword [esp + 4], 0x5df
mov eax, dword [eax*4 + 0x41d6e8]
mov dword [esp], esi
shl eax, 3
and eax, 8
mov dword [esp + 8], eax
call sym._CheckMenuItem_12
lea eax, [ebp - 0x2f0]
mov dword [ebp - 0x2f0], 8
mov dword [ebp - 0x2ec], 0x4b0
sub esp, 0xc
mov dword [esp + 8], eax
mov eax, dword [0x41d704]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x45f
mov dword [esp], eax
call sym._SendMessageW_16
mov ebx, eax
sub esp, 0x10
xor eax, eax
test ebx, ebx
mov dword [esp + 4], 0x3f6
sete al
mov dword [esp], esi
mov edi, eax
mov dword [esp + 8], edi
call sym._EnableMenuItem_12
lea eax, [ebp - 0x294]
mov dword [ebp - 0x294], 0x30
mov dword [ebp - 0x290], 0x20
sub esp, 0xc
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3f7
mov dword [esp], esi
call sym._GetMenuItemInfoW_16
mov eax, 1
sub esp, 0x10
test ebx, ebx
je 0x40b27f
mov edx, dword [ebp - 0x274]
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], eax
xor ebx, ebx
mov dword [esp + 4], 0x3f7
mov dword [esp], esi
call sym._EnableMenuItem_12
sub esp, 0xc
mov dword [esp + 8], edi
mov dword [esp + 4], 0x3f8
mov dword [esp], esi
call sym._EnableMenuItem_12
sub esp, 0xc
jmp 0x4099a3
mov esi, dword [ebp - 0x33c]
mov dword [esp + 4], 0x7d1
mov dword [esp], esi
call sym._GetDlgItem_8
sub esp, 8
mov dword [ebp - 0x344], eax
mov dword [esp], esi
mov dword [esp + 4], 0x7d4
call sym._GetDlgItem_8
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0x7dd
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x7de
mov dword [esp], esi
call sym._GetDlgItem_8
sub esp, 8
mov dword [ebp - 0x340], eax
mov dword [esp + 4], 0x7d3
mov dword [esp], esi
call sym._GetDlgItem_8
mov edx, dword [edi]
sub esp, 8
cmp ebx, edx
je 0x40cd48
cmp dword [ebp - 0x340], edx
je 0x40b9c0
cmp eax, edx
je 0x40cc20
cmp dword [ebp - 0x344], edx
jne 0x4099f5
cmp dword [edi + 8], 0x702
jne 0x4099f5
call dbg.update_font_list
mov eax, dword [ebp - 0x344]
mov dword [esp + 0xc], 0
lea ebx, [ebp - 0x220]
mov dword [esp + 8], 0
mov dword [esp + 4], 0xba
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0xc]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.selection___ld.._ld__line_count_Id
call sym._sprintf
mov edi, dword [ebp - 0x33c]
mov dword [esp + 4], 0x7d0
mov dword [esp], edi
call sym._GetDlgItem_8
sub esp, 8
mov dword [esp + 4], ebx
mov ebx, 1
mov dword [esp], eax
call sym._SetWindowTextA_8
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x400
mov dword [esp], edi
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x4099a3
lea edx, [edi + 1]
mov dword [ebp - 0x308], edx
test edx, edx
je 0x40b4b2
mov edi, dword [ebp - 0x348]
xor ebx, ebx
xor esi, esi
xor eax, eax
mov dword [ebp + eax - 0x21c], esi
add eax, 4
cmp eax, 0x20
jb 0x40b42d
mov dword [ebp - 0x220], 0x21
mov eax, dword [ebp - 0x30c]
lea eax, [eax + ebx*8]
mov ecx, dword [eax]
mov dword [ebp - 0x21c], 0xffffffff
mov dword [ebp - 0x218], ecx
mov eax, dword [eax + 4]
mov dword [esp + 8], 0
mov dword [ebp - 0x200], eax
lea eax, [ebp - 0x220]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x40b
mov dword [esp], edi
call sym._SendMessageW_16
mov eax, dword [ebp - 0x30c]
sub esp, 0x10
mov eax, dword [eax + ebx*8]
add ebx, 1
mov dword [esp], eax
mov eax, dword [ebp - 0x344]
call eax
cmp ebx, dword [ebp - 0x308]
jb 0x40b42b
mov eax, dword [ebp - 0x30c]
mov dword [esp], eax
mov eax, dword [ebp - 0x344]
call eax
lea edx, [ebp - 0x21c]
xor eax, eax
mov ecx, 0x1c
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x220]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [0x41d704]
mov dword [esp + 4], 0x43a
mov dword [esp], eax
mov dword [ebp - 0x220], 0x74
call sym._SendMessageW_16
lea eax, [ebp - 0x206]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x354]
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [ebp - 0x350]
sub esp, 0x10
call dbg.populate_size_list
mov dword [esp], 0
mov eax, dword [ebp - 0x34c]
call eax
sub esp, 4
mov ebx, eax
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], 0x41cca0
mov dword [esp + 4], 0x57b
mov dword [esp], eax
call sym._LoadStringW_16
mov ecx, 0x2a
lea esi, [eax + eax + 2]
sub esp, 0x10
xor eax, eax
lea edx, [esi + 0x41cca0]
jmp 0x40b597
movzx ecx, word [eax + str..rtf]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40b590
cmp word [esi + 0x41cca0], 0
je 0x40ce60
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40b5b8
sub eax, edx
add eax, 2
lea esi, [edx + eax]
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], esi
mov dword [esp + 4], 0x579
mov dword [esp], ebx
call sym._LoadStringW_16
mov ecx, 0x2a
lea edx, [esi + eax*2 + 2]
sub esp, 0x10
xor eax, eax
jmp 0x40b5ff
movzx ecx, word [eax + 0x411b54]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40b5f8
cmp word [edx], 0
je 0x40ce56
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40b620
sub eax, edx
add eax, 2
lea esi, [edx + eax]
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], esi
mov dword [esp + 4], 0x57a
mov dword [esp], ebx
call sym._LoadStringW_16
mov ecx, 0x2a
lea edx, [esi + eax*2 + 2]
sub esp, 0x10
xor eax, eax
jmp 0x40b667
movzx ecx, word [eax + 0x411b54]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40b660
cmp word [edx], 0
je 0x40ce4c
mov eax, edx
nop
add eax, 2
cmp word [eax], 0
jne 0x40b680
sub eax, edx
add eax, 2
lea esi, [edx + eax]
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], esi
mov dword [esp + 4], 0x578
mov dword [esp], ebx
call sym._LoadStringW_16
mov ecx, 0x2a
lea edx, [esi + eax*2 + 2]
sub esp, 0x10
xor eax, eax
jmp 0x40b6c7
movzx ecx, word [eax + 0x411b4c]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40b6c0
cmp word [edx], 0
je 0x40ce42
mov eax, edx
nop
add eax, 2
cmp word [eax], 0
jne 0x40b6e0
sub eax, edx
add eax, 2
xor esi, esi
mov word [edx + eax], si
mov dword [esp], ebx
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], 0x41caa0
mov dword [esp + 4], 0x6a4
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], 0x41c8a0
mov dword [esp + 4], 0x6a5
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], 0x41c6a0
mov dword [esp + 4], 0x5b2
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], 0x41c4a0
mov dword [esp + 4], 0x5b3
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], 0x41c2a0
mov dword [esp + 4], 0x5b4
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], 0x41c0a0
mov dword [esp + 4], 0x5b5
call sym._LoadStringW_16
mov eax, dword [0x41d704]
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
sub esp, 0x10
mov dword [esp], str.commdlg_FindReplace
call sym._RegisterWindowMessageW_4
mov edi, dword [ebp - 0x33c]
sub esp, 4
mov dword [0x41d6f8], eax
mov dword [esp], edi
call dbg.registry_read_filelist
mov dword [esp + 4], 0x41d6f0
mov dword [esp], 0x41d6e8
call dbg.registry_read_formatopts_all
call dbg.registry_read_options
mov dword [esp + 4], 1
mov dword [esp], edi
call sym._DragAcceptFiles_8
sub esp, 8
jmp 0x4099a3
movzx edx, word [ebp - 0x208]
cmp edx, 1
je 0x40ce08
mov dword [esp + 8], 0
mov dword [esp + 4], 0x44c
mov dword [esp], esi
mov dword [ebp - 0x33c], edx
call sym._CheckMenuItem_12
mov edx, dword [ebp - 0x33c]
sub esp, 0xc
cmp edx, 3
jne 0x40cbe8
mov dword [esp + 8], 8
jmp 0x40af7a
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 4], 0x898
mov dword [esp], eax
call sym._LoadMenuW_8
mov edi, dword [ebp - 0x33c]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x7d1
mov dword [esp], edi
call sym._GetDlgItem_8
sub esp, 8
mov esi, eax
call dbg.set_bar_states
mov dword [esp + 4], 1
mov dword [esp], esi
call sym._ShowWindow_8
sub esp, 8
mov dword [esp], edi
call dbg.close_preview
mov dword [esp + 4], ebx
xor ebx, ebx
mov dword [esp], edi
call sym._SetMenu_8
sub esp, 8
mov dword [esp], edi
call dbg.registry_read_filelist
lea eax, [ebp - 0x220]
mov dword [esp + 4], eax
mov eax, dword [0x41d708]
mov dword [esp], eax
call sym._GetClientRect_8
mov eax, dword [ebp - 0x214]
movzx ecx, word [ebp - 0x218]
xor edx, edx
sub esp, 8
shl eax, 0x10
or ecx, eax
mov eax, dword [0x41d708]
call dbg.OnSize
jmp 0x4099a3
mov eax, dword [ebp - 0x33c]
mov dword [esp + 4], esi
mov dword [esp], eax
call dbg.preview_command
mov ebx, eax
jmp 0x4099a3
mov eax, ebx
xor ebx, ebx
call dbg.DoOpenFile
jmp 0x4099f7
mov eax, dword [ebp - 0x340]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], 0x111
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x4099a3
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], 0xf
jmp 0x409990
cmp dword [edi + 8], 0xfffffcda
jne 0x4099f5
mov eax, dword [ebp - 0x340]
lea edx, [edi + 0x14]
xor ebx, ebx
call dbg.on_sizelist_modified
jmp 0x4099a3
mov eax, dword [ebp - 0x33c]
mov dword [ebp - 0x340], edx
mov dword [esp], eax
call sym._GetMenu_4
mov edx, dword [ebp - 0x340]
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], 0x30
push edi
mov dword [ebp - 0x21c], 0x20
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 0x4099a3
mov eax, dword [ebp - 0x200]
call dbg.DoOpenFile
jmp 0x4099a3
cmp edx, 0x44d
je 0x40cfee
xor eax, eax
cmp edx, 0x44e
sete al
add eax, 1
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0xbc
mov dword [ebp - 0x21c], 8
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x340]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x447
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x4099a3
call dbg.DialogSaveFile
jmp 0x4099a3
mov eax, dword [0x410284]
mov dword [esp], eax
call sym._reg_formatindex
mov edi, dword [eax*4 + 0x41d6e8]
mov esi, eax
mov dword [eax*4 + 0x41d6e8], 2
call dbg.set_bar_states
mov eax, dword [0x41d704]
mov dword [esp + 4], 0
mov dword [esi*4 + 0x41d6e8], edi
mov dword [esp], eax
call sym._ShowWindow_8
push edi
push edi
mov edi, dword [ebp - 0x33c]
mov dword [esp + 4], 0x41d4e0
mov dword [esp], edi
call dbg.init_preview
mov dword [esp + 4], 0
mov dword [esp], edi
call sym._SetMenu_8
push eax
push eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._InvalidateRect_12
sub esp, 0xc
jmp 0x4099a3
mov eax, dword [ebp - 0x33c]
mov dword [esp + 4], 0x41d4e0
mov dword [esp], eax
call dbg.dialog_print
mov eax, dword [0x410284]
mov dword [esp], eax
call sym._reg_formatindex
mov eax, dword [eax*4 + 0x41d6f0]
mov dword [esp + 4], eax
mov eax, dword [0x41d708]
mov dword [esp], eax
call dbg.target_device
jmp 0x4099a3
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov edx, dword [ebp - 0x33c]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], dbg.newfile_proc
mov dword [esp + 8], edx
mov dword [esp + 4], 0x835
mov dword [esp], eax
call sym._DialogBoxParamW_20
sub esp, 0x14
mov esi, eax
cmp eax, 0x64
je 0x4099f5
call dbg.prompt_save_changes
test eax, eax
je 0x4099f5
xor eax, eax
lea edi, [ebp - 0x220]
call dbg.set_caption
mov eax, dword [0x41d704]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x447
mov dword [esp], eax
mov dword [ebp - 0x220], 0xbc
mov dword [ebp - 0x21c], 8
mov word [ebp - 0x208], 1
mov word [0x41d4e0], 0
call sym._SendMessageW_16
mov eax, dword [0x41d704]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0x4b0
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x461
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [0x41d704]
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 dword [0x410284], esi
sub esp, 0x10
call dbg.set_bar_states
call dbg.set_default_font
mov eax, dword [0x410284]
mov dword [esp], eax
call sym._reg_formatindex
mov eax, dword [eax*4 + 0x41d6f0]
mov dword [esp + 4], eax
mov eax, dword [0x41d708]
mov dword [esp], eax
call dbg.target_device
call dbg.update_font_list
jmp 0x4099a3
cmp word [0x41d4e0], 0
je case.0x409974.1004
mov edx, dword [0x410284]
mov eax, 0x41d4e0
call dbg.DoSaveFile
jmp 0x4099a3
xor eax, eax
lea edi, [ebp - 0x220]
mov ecx, 0x82
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x28c]
mov ecx, 0x14
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [0x41d708]
mov dword [ebp - 0x294], 0x58
mov dword [ebp - 0x260], 0x801804
mov dword [ebp - 0x290], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x278], eax
mov eax, dword [0x410284]
mov dword [ebp - 0x288], 0x41cca0
mov dword [ebp - 0x274], 0x104
mov dword [ebp - 0x258], 0x411b28
cmp eax, 1
je 0x40cfcb
cmp eax, 0x11
sete al
movzx eax, al
add eax, eax
add eax, 1
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x294]
mov dword [esp], eax
call sym._GetOpenFileNameW_4
push edx
test eax, eax
je 0x4099a3
call dbg.prompt_save_changes
test eax, eax
je 0x4099a3
mov eax, dword [ebp - 0x278]
call dbg.DoOpenFile
jmp 0x4099a3
mov eax, dword [ebp - 0x33c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10
mov dword [esp], eax
call sym._PostMessageW_16
sub esp, 0x10
jmp 0x4099a3
mov eax, dword [0x41c06c]
test al, 0x40
jne 0x40cfd5
test al, 0x38
je 0x4099f5
mov eax, 0x41c060
call sym._handle_findmsg.part.0
jmp 0x4099a3
xor eax, eax
call sym._dialog_find.constprop.0
jmp 0x4099a3
mov eax, 1
call sym._dialog_find.constprop.0
jmp 0x4099a3
mov eax, dword [0x41d708]
mov dword [esp + 4], 0x41d4e0
mov dword [esp], eax
call dbg.print_quick
jmp 0x40bb5f
mov eax, dword [ebp - 0x33c]
mov dword [esp], eax
call dbg.dialog_printsetup
jmp 0x40bb5f
mov dword [0x41d700], 0
xor ebx, ebx
mov dword [edi + 0xc], 8
jmp 0x4099a3
cmp edx, 0x4b0
je 0x40cead
cmp edx, 0x4b1
jne case.0x40bebf.1321
mov dword [esp + 0xc], 0xc0ffff
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x340]
mov dword [esp + 4], 0x443
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x4099a3
sub edx, 0x514
cmp edx, 0x67
ja case.0x40bebf.1321
jmp dword [edx*4 + 0x41195c]
mov eax, dword [ebp - 0x340]
lea edx, [ebp - 0x220]
mov dword [esp + 8], 0
lea edi, [esi - 0x522]
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x43d
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
lea edx, [ebp - 0x220]
sub esp, 0x10
test ax, ax
je 0x40cf73
cmp si, 0x522
je 0x40d020
cmp di, ax
je 0x40d020
mov dword [ebp - 0x214], 0
mov word [ebp - 0x218], di
movzx edi, di
mov dword [0x410280], edi
mov dword [ebp - 0x170], 0x2000001
mov word [ebp - 0x16c], 0x168
mov dword [ebp - 0x20c], 0x168
mov dword [esp + 0xc], edx
jmp 0x40ba89
lea edx, [ebp - 0x21c]
xor eax, eax
mov ecx, 0x1c
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x220]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x340]
mov dword [esp + 4], 0x43a
mov dword [esp], eax
mov dword [ebp - 0x220], 0x74
call sym._SendMessageW_16
sub esp, 0x10
cmp si, 0x579
je 0x40cff8
cmp si, 0x57a
je 0x40d00c
mov dword [ebp - 0x21c], 1
mov eax, 1
xor dword [ebp - 0x218], eax
lea eax, [ebp - 0x220]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x340]
mov dword [esp + 4], 0x444
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x4099a3
xor eax, eax
mov ecx, 0x1c
lea edi, [ebp - 0x21c]
rep stosd dword es:[edi], eax
xor eax, eax
cmp si, 0x518
lea edx, [ebp - 0x220]
sete al
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x340]
mov dword [esp + 4], 0x43a
mov dword [esp], eax
mov dword [ebp - 0x220], 0x74
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x4099a3
lea edx, [ebp - 0x21c]
xor eax, eax
mov ecx, 0x2e
mov edi, edx
lea esi, [ebp - 0x220]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x340]
mov dword [esp + 0xc], esi
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 0x4099a3
mov eax, dword [ebp - 0x340]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x303
mov dword [esp], eax
call sym._PostMessageW_16
sub esp, 0x10
jmp 0x4099a3
mov eax, dword [0x41d708]
mov dword [esp], eax
call sym._GetDC_4
lea edx, [ebp - 0x2e8]
mov ecx, 0xd
mov edi, edx
mov edx, dword [0x41d708]
mov dword [ebp - 0x33c], eax
xor eax, eax
push esi
lea esi, [ebp - 0x220]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x2ec], edx
lea edx, [ebp - 0x294]
mov ecx, 0x1c
mov dword [ebp - 0x2e4], edx
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x2f0], 0x3c
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [0x41d704]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x43a
mov dword [esp], eax
mov dword [ebp - 0x2dc], 0x1800141
mov dword [ebp - 0x220], 0x74
call sym._SendMessageW_16
mov ecx, dword [ebp - 0x2e4]
xor eax, eax
sub esp, 0x10
movzx edx, word [ebp + eax - 0x206]
mov word [ecx + eax + 0x1c], dx
add eax, 2
test dx, dx
jne 0x40c184
mov eax, dword [ebp - 0x218]
mov edx, dword [ebp - 0x2e4]
mov ecx, eax
shr ecx, 1
and ecx, 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
and eax, 1
shr ecx, 2
mov byte [edx + 0x16], al
mov eax, dword [ebp - 0x33c]
and ecx, 1
mov byte [edx + 0x15], cl
mov dword [esp + 4], 0x5a
mov dword [esp], eax
call sym._GetDeviceCaps_8
mov ecx, 0x14
push edx
push edx
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 ecx
test eax, eax
je 0x4099a3
lea edx, [ebp - 0x218]
xor eax, eax
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 0x40c290
mov dword [ebp - 0x218], 1
test ah, 2
je 0x40c29c
or dword [ebp - 0x218], 2
mov eax, dword [ebp - 0x2e4]
cmp byte [eax + 0x15], 0
je 0x40c2af
or dword [ebp - 0x218], 4
cmp byte [eax + 0x16], 0
je 0x40c2bc
or dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [ebp - 0x20c], eax
mov eax, dword [0x41d704]
mov dword [esp + 4], 0x444
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [ebp - 0x2e4]
sub esp, 0x10
add eax, 0x1c
call dbg.set_font
jmp 0x4099a3
mov edi, dword [ebp - 0x340]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb8
mov dword [esp], edi
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], 0
test eax, eax
je 0x40cf39
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb9
mov dword [esp], edi
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x4099a3
mov edi, dword [ebp - 0x340]
mov dword [esp + 4], 0xfffffff0
mov dword [esp], edi
call sym._GetWindowLongW_8
push edx
push edx
mov dword [esp + 0xc], 0
test ah, 8
je 0x40cf61
mov dword [esp + 8], 0
mov dword [esp + 4], 0xcf
mov dword [esp], edi
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x4099a3
mov edi, dword [ebp - 0x340]
lea eax, [ebp - 0x294]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp], edi
mov dword [esp + 4], 0x434
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 0xffffffff
call sym._SendMessageW_16
mov eax, dword [ebp - 0x290]
sub eax, dword [ebp - 0x294]
add eax, 1
sub esp, 0x10
add eax, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], edi
lea edi, [ebp - 0x220]
mov dword [esp + 0xc], eax
mov esi, eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43e
call sym._SendMessageW_16
mov eax, dword [ebp - 0x290]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x294]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.Start___ld__End___ld
call sym._sprintf
mov dword [esp + 4], edi
mov edi, dword [ebp - 0x33c]
mov dword [esp + 0xc], 0
mov dword [esp], edi
mov dword [esp + 8], str.Editor
call sym._MessageBoxA_16
sub esp, 0x10
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], global_lpCaption
call sym._MessageBoxW_16
sub esp, 0x10
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x4099a3
lea eax, [ebp - 0x220]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x340]
mov dword [esp + 4], 0x437
mov dword [esp], eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xffffffff
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x4099a3
mov edi, dword [ebp - 0x33c]
mov dword [esp + 4], 0x7d4
mov dword [esp], edi
call sym._GetDlgItem_8
push esi
push esi
mov dword [esp + 4], 0x7d3
mov dword [esp], eax
call sym._GetDlgItem_8
push edx
mov esi, eax
push edx
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], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 0x41d
call sym._SendMessageW_16
mov eax, dword [ebp - 0x294]
sub esp, 0x10
mov dword [ebp - 0x2f0], eax
mov eax, dword [ebp - 0x288]
mov dword [esp], esi
mov dword [ebp - 0x2ec], eax
lea eax, [ebp - 0x2f0]
mov dword [esp + 4], eax
call sym._ClientToScreen_8
mov eax, dword [0x41d6fc]
push ecx
push ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._GetSubMenu_8
mov edx, dword [ebp - 0x2ec]
push esi
push esi
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x2f0]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 8], edx
mov dword [esp + 4], 0x180
mov dword [esp], eax
call sym._TrackPopupMenu_28
lea esi, [eax - 0x708]
mov dword [ebp - 0x33c], eax
sub esp, 0x1c
cmp esi, 0x10
ja 0x4099a3
lea edx, [ebp - 0x21c]
xor eax, eax
mov ecx, 0x1c
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x220]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x340]
mov dword [esp + 4], 0x43a
mov dword [esp], eax
mov dword [ebp - 0x220], 0x74
call sym._SendMessageW_16
mov dword [ebp - 0x21c], 0x40000000
sub esp, 0x10
cmp dword [ebp - 0x33c], 0x718
je 0x40d055
mov eax, dword [esi*4 + 0x411ca0]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x218]
and eax, 0xbfffffff
mov dword [ebp - 0x218], eax
jmp 0x40bff0
mov eax, dword [ebp - 0x340]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x302
mov dword [esp], eax
call sym._PostMessageW_16
sub esp, 0x10
jmp 0x4099a3
mov eax, dword [ebp - 0x340]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x454
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x4099a3
mov eax, dword [ebp - 0x340]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc7
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x4099a3
mov eax, dword [ebp - 0x340]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x301
mov dword [esp], eax
call sym._PostMessageW_16
sub esp, 0x10
jmp 0x4099a3
mov eax, dword [ebp - 0x340]
mov dword [esp], eax
call sym._GetWindowTextLengthW_4
push ecx
lea edi, [eax + 1]
mov ecx, dword [sym.imp.ucrtbase.dll_malloc]
lea edx, [edi + edi]
mov dword [ebp - 0x33c], eax
mov dword [ebp - 0x348], edx
mov dword [ebp - 0x344], ecx
mov dword [esp], edx
call ecx
mov dword [esp + 8], edi
mov esi, eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x340]
mov dword [esp], eax
call sym._GetWindowTextW_12
sub esp, 0xc
mov dword [esp + 4], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], global_lpCaption
mov dword [esp], 0
call sym._MessageBoxW_16
sub esp, 0x10
mov dword [esp], esi
mov esi, dword [sym.imp.ucrtbase.dll_free]
call esi
mov edx, dword [ebp - 0x348]
mov ecx, dword [ebp - 0x344]
mov dword [esp], edx
call ecx
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x33c]
mov edi, eax
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x220]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x340]
mov dword [esp + 4], 0x44b
mov dword [esp], eax
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x220], 0
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 4], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], global_lpCaption
mov dword [esp], 0
call sym._MessageBoxW_16
sub esp, 0x10
mov dword [esp], edi
call esi
jmp 0x4099a3
mov eax, dword [ebp - 0x340]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x300
mov dword [esp], eax
call sym._PostMessageW_16
sub esp, 0x10
jmp 0x4099a3
cmp edx, 0x644
ja 0x40c8e8
cmp edx, 0x63f
ja 0x40c9b8
cmp edx, 0x5de
je 0x40cef0
jbe 0x40c930
cmp edx, 0x5df
jne case.0x40bebf.1321
mov eax, dword [0x410284]
mov dword [esp], eax
call sym._reg_formatindex
mov edx, dword [eax*4 + 0x41d6e8]
xor eax, eax
not edx
and edx, 1
call dbg.set_toolbar_state
lea eax, [ebp - 0x220]
mov dword [esp + 4], eax
mov eax, dword [0x41d708]
mov dword [esp], eax
call sym._GetClientRect_8
mov eax, dword [ebp - 0x214]
movzx ecx, word [ebp - 0x218]
xor edx, edx
sub esp, 8
shl eax, 0x10
or ecx, eax
mov eax, dword [0x41d708]
call dbg.OnSize
jmp 0x4099a3
cmp edx, 0x7dd
je 0x40cec2
cmp edx, 0x7de
jne case.0x40bebf.1321
shr esi, 0x10
cmp esi, 9
jne 0x4099f5
lea edx, [ebp - 0x220]
mov eax, edi
mov ecx, 0x100
call sym._get_comboexlist_selection.isra.0
lea edx, [ebp - 0x220]
mov eax, edi
call dbg.on_sizelist_modified
jmp 0x4099a3
cmp edx, 0x5dc
je 0x40cf15
cmp edx, 0x5dd
jne case.0x40bebf.1321
mov eax, dword [0x410284]
mov dword [esp], eax
call sym._reg_formatindex
xor edx, edx
test byte [eax*4 + 0x41d6e8], 8
mov eax, 4
sete dl
call dbg.set_toolbar_state
mov eax, dword [0x410284]
mov dword [esp], eax
call sym._reg_formatindex
xor edx, edx
test byte [eax*4 + 0x41d6e8], 8
mov eax, 5
sete dl
call dbg.set_toolbar_state
mov eax, dword [0x410284]
mov dword [esp], eax
call sym._reg_formatindex
xor edx, edx
test byte [eax*4 + 0x41d6e8], 8
mov eax, 3
sete dl
jmp 0x40c8a1
sub edx, 0x641
mov dword [esp], 0
cmp edx, 3
ja case.default.0x40c9ce
jmp dword [edx*4 + 0x411afc]
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push edx
mov edx, dword [ebp - 0x33c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], dbg.tabstops_proc
mov dword [esp + 8], edx
mov dword [esp + 4], 0x837
mov dword [esp], eax
call sym._DialogBoxParamW_20
sub esp, 0x14
jmp 0x4099a3
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov edx, dword [ebp - 0x33c]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], dbg.paraformat_proc
mov dword [esp + 8], edx
mov dword [esp + 4], 0x836
mov dword [esp], eax
call sym._DialogBoxParamW_20
sub esp, 0x14
jmp 0x4099a3
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push edi
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 [0x41d708]
mov dword [esp + 8], 0
mov dword [esp + 4], global_lpCaption
mov dword [esp], eax
call sym._ShellAboutW_16
sub esp, 0x10
jmp 0x4099a3
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0x220], 0x38
push ecx
mov esi, eax
mov dword [ebp - 0x21c], 8
mov dword [ebp - 0x214], 0x838
mov dword [esp], 1
mov dword [ebp - 0x208], dbg.formatopts_proc
mov dword [ebp - 0x218], eax
call sym._reg_formatindex
mov dword [esp], 2
mov dword [ebp - 0x204], eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x200], 0
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x20c], 0x599
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 - 0x288], esi
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x200]
mov dword [ebp - 0x1d4], 0x59a
mov dword [ebp - 0x1c8], eax
mov eax, dword [0x41d708]
mov dword [ebp - 0x294], 0x34
mov dword [ebp - 0x28c], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x274], eax
mov eax, dword [0x410284]
mov dword [ebp - 0x290], 0x8c
mov dword [ebp - 0x280], 0x598
shr eax, 1
mov dword [ebp - 0x27c], 2
and eax, 1
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x294]
mov dword [esp], eax
mov dword [ebp - 0x284], 0x66
call sym._PropertySheetW_4
push esi
call dbg.set_bar_states
jmp 0x40bb5f
mov dword [esp + 8], 0
mov dword [esp + 4], 0x44d
mov dword [esp], esi
call sym._CheckMenuItem_12
mov edx, dword [ebp - 0x33c]
xor eax, eax
sub esp, 0xc
cmp edx, 2
sete al
shl eax, 3
jmp 0x40af8f
cmp dword [edi + 8], 0xfffffd3a
jne 0x4099f5
mov esi, dword [ebp - 0x33c]
mov dword [esp], esi
call sym._GetMenu_4
sub esp, 4
test eax, eax
je 0x4099f5
lea edx, [ebp - 0x220]
mov dword [esp + 8], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x52d
mov dword [esp], eax
mov dword [ebp - 0x220], 0x30
mov dword [ebp - 0x21c], 4
call sym._GetMenuItemInfoW_16
mov ebx, dword [ebp - 0x20c]
sub esp, 0x10
test ebx, ebx
je 0x4099f5
lea ebx, [ebp - 0x2f0]
mov dword [esp + 0xc], ebx
mov eax, dword [edi + 0xc]
mov dword [esp + 4], 0x433
mov dword [esp + 8], eax
mov eax, dword [edi]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 0xc], 2
mov dword [esp + 4], 0
mov eax, dword [edi]
mov dword [esp], eax
call sym._MapWindowPoints_16
mov edx, dword [ebp - 0x2ec]
mov eax, dword [ebp - 0x2f0]
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x294], 0x14
sub esp, 0x10
mov dword [ebp - 0x28c], edx
mov edx, dword [ebp - 0x2e8]
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x288], edx
mov edx, dword [ebp - 0x2e4]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x40
mov dword [esp], eax
mov dword [ebp - 0x284], edx
call sym._TrackPopupMenuEx_24
sub esp, 0x18
jmp 0x4099a3
cmp dword [edi + 8], 0xfffffcda
jne 0x4099f5
lea eax, [edi + 0x14]
xor ebx, ebx
call dbg.on_fontlist_modified
jmp 0x4099a3
mov eax, dword [ebp - 0x33c]
mov dword [esp], 0
mov dword [ebp - 0x220], 0x28
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x34c]
call eax
mov dword [ebp - 0x214], 0x6a7
mov dword [ebp - 0x218], eax
sub esp, 4
lea eax, [ebp - 0x220]
mov dword [esp], eax
mov dword [ebp - 0x210], global_lpCaption
mov dword [ebp - 0x20c], 0x30
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x200], 0
mov dword [ebp - 0x1fc], 0
call sym._MessageBoxIndirectW_4
sub esp, 4
mov dword [esp], 1
call sym._PostQuitMessage_4
sub esp, 4
jmp 0x40ab7f
mov dword [esp + 8], 8
mov dword [esp + 4], 0x44c
mov dword [esp], esi
call sym._CheckMenuItem_12
sub esp, 0xc
jmp 0x40af72
mov dword [ebp - 0x308], 1
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x344], eax
jmp 0x40b421
mov eax, 2
jmp 0x40b6ee
mov eax, 2
jmp 0x40b68e
mov eax, 2
jmp 0x40b62e
mov eax, 2
jmp 0x40b5c6
mov ebx, 0xffffffff
jmp 0x4099a3
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov edx, dword [ebp - 0x33c]
push esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], dbg.datetime_proc
mov dword [esp + 8], edx
mov dword [esp + 4], 0x834
mov dword [esp], eax
call sym._DialogBoxParamW_20
sub esp, 0x14
jmp 0x4099a3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
jmp 0x40be90
shr esi, 0x10
cmp esi, 9
jne 0x4099f5
mov eax, edi
mov ecx, 0x20
lea edx, [ebp - 0x220]
call sym._get_comboexlist_selection.isra.0
lea eax, [ebp - 0x220]
call dbg.on_fontlist_modified
jmp 0x4099a3
mov eax, dword [0x410284]
mov dword [esp], eax
call sym._reg_formatindex
test byte [eax*4 + 0x41d6e8], 2
sete al
movzx eax, al
call dbg.set_statusbar_state
jmp 0x40c8a6
mov eax, dword [0x410284]
mov dword [esp], eax
call sym._reg_formatindex
xor edx, edx
test byte [eax*4 + 0x41d6e8], 4
mov eax, 2
sete dl
jmp 0x40c8a1
mov dword [esp + 8], 1
mov dword [esp + 4], 0xb9
mov eax, dword [ebp - 0x340]
xor ebx, ebx
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x4099f7
mov dword [esp + 8], 1
mov dword [esp + 4], 0xcf
jmp 0x40cf49
mov dword [ebp - 0x214], 0x168
cmp si, 0x522
jne 0x40bf49
mov eax, dword [0x410280]
mov word [ebp - 0x218], ax
jmp 0x40bf59
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 4], str.Error_code__lu_n
mov dword [esp + 8], ebx
or ebx, 0xffffffff
mov dword [esp], eax
call sym._fprintf.constprop.0
jmp 0x4099a3
mov eax, 1
jmp 0x40bd75
mov dword [0x41d700], 0
mov dword [0x41c06c], 8
jmp 0x4099a3
mov eax, 3
jmp 0x40ba64
mov dword [ebp - 0x21c], 2
mov eax, 2
jmp 0x40bfea
mov dword [ebp - 0x21c], 4
mov eax, 4
jmp 0x40bfea
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 0x40bf76
mov eax, dword [ebp - 0x218]
or eax, 0x40000000
jmp 0x40c656