Function at 0x404760
Capabilities:
Access peb ldr_data
Get graphical window text
Get kernel32 base address
Get process heap flags

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, 0x268
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
movzx edx, word [0x40b20c]
mov esi, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
cmp edx, eax
je 0x404920
cmp eax, 0x11
ja 0x4047b0
test eax, eax
je case.0x4047a7.0
cmp eax, 0x11
ja case.0x4047a7.0
jmp dword [eax*4 + 0x408180]
cmp eax, 0x233
je 0x404f88
jbe 0x4047e0
xor edx, edx
cmp eax, 0x307
jne case.0x4047a7.0
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp eax, 0x111
je 0x404960
cmp eax, 0x117
jne case.0x4047a7.0
mov eax, dword [0x40a02c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc6
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
test eax, eax
sete al
mov dword [esp + 4], 0x110
movzx eax, al
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._EnableMenuItem_12
sub esp, 0xc
mov dword [esp], 1
call sym._IsClipboardFormatAvailable_4
sub esp, 4
test eax, eax
sete al
mov dword [esp + 4], 0x113
xor ebx, ebx
movzx eax, al
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._EnableMenuItem_12
mov eax, dword [0x40a02c]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb0
mov dword [esp], eax
call sym._SendMessageW_16
mov edx, eax
sub esp, 0x10
shr edx, 0x10
mov dword [esp + 4], 0x111
cmp dx, ax
mov dword [esp], esi
sete bl
mov dword [esp + 8], ebx
call sym._EnableMenuItem_12
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x112
mov dword [esp], esi
call sym._EnableMenuItem_12
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x114
mov dword [esp], esi
call sym._EnableMenuItem_12
mov eax, dword [0x40a02c]
sub esp, 0xc
mov dword [esp], eax
call sym._GetWindowTextLengthW_4
sub esp, 4
test eax, eax
sete al
mov dword [esp + 4], 0x116
movzx eax, al
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._EnableMenuItem_12
xor edx, edx
sub esp, 0xc
jmp 0x4047ca
mov eax, dword [ebx + 0xc]
test al, 0x40
je 0x404931
mov dword [0x40a028], 0
test al, 8
jne 0x404d08
test al, 0x10
jne 0x404b98
test al, 0x20
jne 0x4049a0
xor edx, edx
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
movzx esi, si
sub esi, 0x100
cmp esi, 0x40
ja case.0x40496e.263
jmp dword [esi*4 + 0x4081c8]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._DefWindowProcW_16
sub esp, 0x10
mov edx, eax
jmp 0x4047ca
mov eax, dword [ebx]
mov dword [0x40b1cc], eax
mov eax, dword [ebx + 4]
mov dword [0x40b1d0], eax
mov eax, dword [ebx + 8]
mov dword [0x40b1d4], eax
mov eax, dword [ebx + 0xc]
mov dword [0x40b1d8], eax
mov eax, dword [ebx + 0x10]
mov dword [0x40b1dc], eax
mov eax, dword [ebx + 0x14]
mov dword [0x40b1e0], eax
mov eax, dword [ebx + 0x18]
mov dword [0x40b1e4], eax
mov eax, dword [ebx + 0x1c]
mov dword [0x40b1e8], eax
mov eax, dword [ebx + 0x20]
mov dword [0x40b1ec], eax
mov eax, dword [ebx + 0x24]
mov dword [0x40b1f0], eax
mov edx, dword [ebx + 0x10]
cmp word [edx], 0
je 0x40589c
mov eax, edx
nop
add eax, 2
cmp word [eax], 0
jne 0x404a00
sub eax, edx
sar eax, 1
mov dword [ebp - 0x240], eax
mov eax, dword [0x40a02c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb1
mov dword [esp], eax
mov esi, dword fs:[0x18]
call sym._SendMessageW_16
sub esp, 0x10
mov eax, dword [0x40a02c]
mov dword [esp], eax
call sym._GetWindowTextLengthW_4
lea ecx, [eax + 1]
sub esp, 4
lea eax, [ecx + ecx]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x23c], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
test eax, eax
je case.0x40496e.263
mov ecx, dword [ebp - 0x23c]
mov dword [esp + 4], eax
mov eax, dword [0x40a02c]
mov dword [esp + 8], ecx
mov dword [esp], eax
call sym._GetWindowTextW_12
lea eax, [ebp - 0x220]
sub esp, 0xc
mov dword [esp + 0xc], eax
mov eax, dword [0x40a02c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb0
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [ebx + 0xc]
sub esp, 0x10
and eax, 5
cmp eax, 1
je 0x404fd0
cmp eax, 5
jne case.0x40496e.263
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x220]
lea eax, [edi + eax*2]
mov dword [esp], eax
call sym._StrStrW_8
sub esp, 8
mov ecx, eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x23c], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0x23c]
sub esp, 0xc
test ecx, ecx
je 0x4058ab
mov eax, dword [ebp - 0x240]
sub ecx, edi
mov dword [esp + 4], 0xb1
sar ecx, 1
add eax, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov eax, dword [0x40a02c]
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [ebx + 0x14]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [0x40a02c]
mov dword [esp + 8], 1
mov dword [esp + 4], 0xc2
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x404a42
mov eax, dword [ebx]
mov dword [0x40b1cc], eax
mov eax, dword [ebx + 4]
mov dword [0x40b1d0], eax
mov eax, dword [ebx + 8]
mov dword [0x40b1d4], eax
mov eax, dword [ebx + 0xc]
mov dword [0x40b1d8], eax
mov eax, dword [ebx + 0x10]
mov dword [0x40b1dc], eax
mov eax, dword [ebx + 0x14]
mov dword [0x40b1e0], eax
mov eax, dword [ebx + 0x18]
mov dword [0x40b1e4], eax
mov eax, dword [ebx + 0x1c]
mov dword [0x40b1e8], eax
mov eax, dword [ebx + 0x20]
mov dword [0x40b1ec], eax
mov eax, dword [ebx + 0x24]
mov dword [0x40b1f0], eax
mov edx, dword [ebx + 0x10]
cmp word [edx], 0
je 0x40588d
mov eax, edx
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x404c00
sub eax, edx
sar eax, 1
mov dword [ebp - 0x23c], eax
mov eax, dword [0x40a02c]
mov dword [esp], eax
call sym._GetWindowTextLengthW_4
lea esi, [eax + 1]
sub esp, 4
lea ecx, [esi + esi]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x405710
mov dword [esp + 4], eax
mov eax, dword [0x40a02c]
mov dword [esp + 8], esi
mov dword [esp], eax
call sym._GetWindowTextW_12
lea eax, [ebp - 0x224]
sub esp, 0xc
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x220]
mov dword [esp + 8], eax
mov eax, dword [0x40a02c]
mov dword [esp + 4], 0xb0
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [ebx + 0xc]
sub esp, 0x10
mov edx, eax
and edx, 5
cmp edx, 1
je 0x405820
cmp edx, 5
jne 0x404941
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x224]
sub eax, edx
cmp eax, dword [ebp - 0x23c]
je 0x4058da
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov dword [esp], ebx
call dbg.NOTEPAD_DoFind
mov eax, dword [ebx + 0xc]
jmp 0x404941
mov eax, dword [ebx]
mov dword [0x40b1cc], eax
mov eax, dword [ebx + 4]
mov dword [0x40b1d0], eax
mov eax, dword [ebx + 8]
mov dword [0x40b1d4], eax
mov eax, dword [ebx + 0xc]
mov dword [0x40b1d8], eax
mov eax, dword [ebx + 0x10]
mov dword [0x40b1dc], eax
mov eax, dword [ebx + 0x14]
mov dword [0x40b1e0], eax
mov eax, dword [ebx + 0x18]
mov dword [0x40b1e4], eax
mov eax, dword [ebx + 0x1c]
mov dword [0x40b1e8], eax
mov eax, dword [ebx + 0x20]
mov dword [0x40b1ec], eax
mov eax, dword [ebx + 0x24]
mov dword [esp], ebx
mov dword [0x40b1f0], eax
call dbg.NOTEPAD_DoFind
mov eax, dword [ebx + 0xc]
jmp 0x404939
lea eax, [ebp - 0x228]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x22c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftNotepad
mov dword [esp], 0x80000001
call sym._RegCreateKeyExW_36
sub esp, 0x24
test eax, eax
je 0x404ff8
mov dword [esp], 0
call sym._PostQuitMessage_4
xor edx, edx
sub esp, 4
jmp 0x4047ca
mov eax, ebx
movzx ebx, bx
mov dword [esp + 0x18], 0x204
shr eax, 0x10
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov eax, dword [0x40a02c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._SetWindowPos_28
xor edx, edx
sub esp, 0x1c
jmp 0x4047ca
mov eax, dword [0x40a02c]
mov dword [esp], eax
call sym._SetFocus_4
xor edx, edx
sub esp, 4
jmp 0x4047ca
call dbg.DoCloseFile
test eax, eax
je case.0x40496e.263
mov dword [esp], edi
call sym._DestroyWindow_4
xor edx, edx
sub esp, 4
jmp 0x4047ca
call dbg.DoCloseFile
xor edx, edx
test eax, eax
setne dl
jmp 0x4047ca
lea eax, [ebp - 0x220]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._GetClientRect_8
mov edx, dword [0x40a020]
sub esp, 8
cmp dword [0x40a090], 1
mov dword [esp + 0x28], edx
mov edx, dword [ebp - 0x214]
sbb eax, eax
and eax, 0x100080
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], edx
mov edx, dword [ebp - 0x218]
add eax, 0x50a00144
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.edit
mov dword [esp], 0x200
call sym._CreateWindowExW_48
sub esp, 0x30
mov dword [0x40a02c], eax
mov dword [esp], 0x40a034
call sym._CreateFontIndirectW_4
sub esp, 4
mov dword [0x40a030], eax
mov dword [esp + 8], eax
mov eax, dword [0x40a02c]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x30
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [0x40a02c]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc5
mov dword [esp], eax
call sym._SendMessageW_16
xor edx, edx
sub esp, 0x10
jmp 0x4047ca
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
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dbg.DoOpenFile
xor edx, edx
jmp 0x4047ca
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x220]
lea eax, [edi + eax*2]
mov dword [esp], eax
call sym._StrStrIW_8
sub esp, 8
mov ecx, eax
jmp 0x404b03
lea eax, [ebp - 0x220]
lea ebx, [ebp - 0x224]
mov dword [ebp - 0x220], 0x2c
mov dword [esp + 4], eax
mov eax, dword [0x40a024]
mov dword [esp], eax
call sym._GetWindowPlacement_8
mov eax, dword [ebp - 0x204]
sub esp, 8
mov dword [0x40b1fc], eax
mov eax, dword [ebp - 0x200]
mov dword [esp + 0x14], 4
mov dword [0x40b200], eax
mov eax, dword [ebp - 0x1fc]
mov dword [esp + 0x10], ebx
mov dword [0x40b204], eax
mov eax, dword [ebp - 0x1f8]
mov dword [esp + 0xc], 4
mov dword [0x40b208], eax
mov eax, dword [0x40a090]
mov dword [esp + 8], 0
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 4], str.fWrap
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, dword [0x40b1fc]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosX
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, dword [0x40b200]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosY
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, dword [0x40b204]
sub eax, dword [0x40b1fc]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
sub esp, 0x18
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosDX
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, dword [0x40b208]
sub eax, dword [0x40b200]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
sub esp, 0x18
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosDY
mov dword [esp], eax
call sym._RegSetValueExW_24
movzx eax, byte [0x40a04b]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfCharSet
mov dword [esp], eax
call sym._RegSetValueExW_24
movzx eax, byte [0x40a04d]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfClipPrecision
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, dword [0x40a03c]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfEscapement
mov dword [esp], eax
call sym._RegSetValueExW_24
movzx eax, byte [0x40a048]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfItalic
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, dword [0x40a040]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfOrientation
mov dword [esp], eax
call sym._RegSetValueExW_24
movzx eax, byte [0x40a04c]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfOutPrecision
mov dword [esp], eax
call sym._RegSetValueExW_24
movzx eax, byte [0x40a04f]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfPitchAndFamily
mov dword [esp], eax
call sym._RegSetValueExW_24
movzx eax, byte [0x40a04e]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfQuality
mov dword [esp], eax
call sym._RegSetValueExW_24
movzx eax, byte [0x40a04a]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfStrikeOut
mov dword [esp], eax
call sym._RegSetValueExW_24
movzx eax, byte [0x40a049]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfUnderline
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, dword [0x40a044]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfWeight
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, dword [0x40ad84]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginTop
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, dword [0x40ad88]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginBottom
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, dword [0x40ad8c]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginLeft
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, dword [0x40ad90]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginRight
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
call dbg.get_dpi
mov edx, dword [0x40a034]
mov dword [esp + 4], 0x2d0
mov dword [esp + 8], eax
mov eax, dword [0x40a034]
sar eax, 0x1f
xor edx, eax
sub edx, eax
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_MulDiv]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
sub esp, 0xc
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.iPointSize
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
cmp word [0x40a050], 0
je 0x405906
mov eax, 0x40a050
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x4055f0
sub eax, 0x40a050
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x10], 0x40a050
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfFaceName
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
cmp word [0x40ad94], 0
je 0x405914
mov eax, 0x40ad94
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x405650
sub eax, 0x40ad94
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x10], 0x40ad94
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.szHeader
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
cmp word [0x40af9c], 0
je 0x40590d
mov eax, 0x40af9c
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4056b0
sub eax, 0x40af9c
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x10], 0x40af9c
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.szTrailer
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, dword [ebp - 0x22c]
sub esp, 0x18
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
jmp 0x404dcb
mov eax, dword [ebx + 0xc]
jmp 0x404941
call dbg.DIALOG_SelectFont
xor edx, edx
jmp 0x4047ca
call dbg.DIALOG_HelpAboutNotepad
xor edx, edx
jmp 0x4047ca
call dbg.DIALOG_HelpContents
xor edx, edx
jmp 0x4047ca
call dbg.DIALOG_Replace
xor edx, edx
jmp 0x4047ca
call dbg.DIALOG_SearchNext
xor edx, edx
jmp 0x4047ca
call sym._DIALOG_Search
xor edx, edx
jmp 0x4047ca
call dbg.DIALOG_EditWrap
xor edx, edx
jmp 0x4047ca
call dbg.DIALOG_EditTimeDate
xor edx, edx
jmp 0x4047ca
call dbg.DIALOG_EditSelectAll
xor edx, edx
jmp 0x4047ca
call dbg.DIALOG_EditDelete
xor edx, edx
jmp 0x4047ca
call dbg.DIALOG_FileSaveAs
xor edx, edx
jmp 0x4047ca
call sym._DIALOG_FileSave
xor edx, edx
jmp 0x4047ca
call dbg.DIALOG_FileOpen
xor edx, edx
jmp 0x4047ca
call dbg.DIALOG_FileNew
xor edx, edx
jmp 0x4047ca
call dbg.DIALOG_EditPaste
xor edx, edx
jmp 0x4047ca
call dbg.DIALOG_EditCopy
xor edx, edx
jmp 0x4047ca
call dbg.DIALOG_EditCut
xor edx, edx
jmp 0x4047ca
call dbg.DIALOG_EditUndo
xor edx, edx
jmp 0x4047ca
call dbg.DIALOG_FileExit
xor edx, edx
jmp 0x4047ca
call dbg.DIALOG_FilePrinterSetup
xor edx, edx
jmp 0x4047ca
call dbg.DIALOG_FilePageSetup
xor edx, edx
jmp 0x4047ca
call dbg.DIALOG_FilePrint
xor edx, edx
jmp 0x4047ca
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x224]
sub eax, edx
cmp eax, dword [ebp - 0x23c]
jne 0x404ccf
mov eax, dword [ebp - 0x23c]
mov dword [esp + 8], eax
lea eax, [edi + edx*2]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sym._StrCmpNIW_12
sub esp, 0xc
test eax, eax
jne 0x404ccf
mov eax, dword [ebx + 0x14]
mov dword [esp + 8], 1
mov dword [esp + 4], 0xc2
mov dword [esp + 0xc], eax
mov eax, dword [0x40a02c]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x404ccf
mov dword [ebp - 0x23c], 0
jmp 0x404c13
mov dword [ebp - 0x240], 0
jmp 0x404a13
mov eax, dword [0x40a02c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb1
mov dword [esp], eax
call sym._SendMessageW_16
xor edx, edx
sub esp, 0x10
jmp 0x404947
mov eax, dword [ebp - 0x23c]
mov dword [esp + 8], eax
lea eax, [edi + edx*2]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sym._StrCmpNW_12
sub esp, 0xc
test eax, eax
jne 0x404ccf
jmp 0x405861
xor eax, eax
jmp 0x4055fe
xor eax, eax
jmp 0x4056be
xor eax, eax
jmp 0x40565e