Function at 0x4042f0
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 [0x409200]
mov esi, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
cmp edx, eax
je 0x4044a8
cmp eax, 0x11
ja 0x404340
test eax, eax
je case.0x404337.0
cmp eax, 0x11
ja case.0x404337.0
jmp dword [eax*4 + 0x40a070]
cmp eax, 0x233
je 0x404c80
jbe 0x404370
xor edx, edx
cmp eax, 0x307
jne case.0x404337.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 0x4044e0
cmp eax, 0x117
jne case.0x404337.0
mov eax, dword [0x40800c]
mov edi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc6
mov dword [esp], eax
call edi
mov ebx, dword [sym.imp.user32.dll_EnableMenuItem]
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 ebx
sub esp, 0xc
mov dword [esp], 1
call dword [sym.imp.user32.dll_IsClipboardFormatAvailable]
sub esp, 4
test eax, eax
sete al
mov dword [esp + 4], 0x113
movzx eax, al
mov dword [esp], esi
mov dword [esp + 8], eax
call ebx
mov eax, dword [0x40800c]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb0
mov dword [esp], eax
call edi
mov edx, eax
sub esp, 0x10
shr edx, 0x10
mov dword [esp + 4], 0x111
cmp dx, ax
mov dword [esp], esi
sete al
movzx eax, al
mov edi, eax
mov dword [esp + 8], eax
call ebx
sub esp, 0xc
mov dword [esp + 8], edi
mov dword [esp + 4], 0x112
mov dword [esp], esi
call ebx
sub esp, 0xc
mov dword [esp + 8], edi
mov dword [esp + 4], 0x114
mov dword [esp], esi
call ebx
mov eax, dword [0x40800c]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
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 ebx
xor edx, edx
sub esp, 0xc
jmp 0x40435a
mov eax, dword [ebx + 0xc]
test al, 0x40
je 0x4044b9
mov dword [0x408008], 0
test al, 8
jne 0x4048b0
test al, 0x10
jne 0x404740
test al, 0x20
jne 0x404530
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 eax, si
cmp si, 0x192
ja 0x404bd0
and esi, 0xff00
je case.0x404502.263
sub eax, 0x100
cmp eax, 0x92
ja case.0x404502.263
jmp dword [eax*4 + 0x40a0b8]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.user32.dll_DefWindowProcW]
sub esp, 0x10
mov edx, eax
jmp 0x40435a
mov eax, dword [ebx]
mov dword [0x4091c4], eax
mov eax, dword [ebx + 4]
mov dword [0x4091c8], eax
mov eax, dword [ebx + 8]
mov dword [0x4091cc], eax
mov eax, dword [ebx + 0xc]
mov dword [0x4091d0], eax
mov eax, dword [ebx + 0x10]
mov dword [0x4091d4], eax
mov eax, dword [ebx + 0x14]
mov dword [0x4091d8], eax
mov eax, dword [ebx + 0x18]
mov dword [0x4091dc], eax
mov eax, dword [ebx + 0x1c]
mov dword [0x4091e0], eax
mov eax, dword [ebx + 0x20]
mov dword [0x4091e4], eax
mov eax, dword [ebx + 0x24]
mov dword [0x4091e8], eax
mov edx, dword [ebx + 0x10]
cmp word [edx], 0
je 0x40556f
mov eax, edx
nop
add eax, 2
cmp word [eax], 0
jne 0x404590
sub eax, edx
sar eax, 1
mov dword [ebp - 0x244], eax
mov eax, dword [0x40800c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 4], 0xb1
mov dword [esp], eax
call esi
mov eax, dword fs:[0x18]
mov dword [ebp - 0x240], eax
sub esp, 0x10
mov eax, dword [0x40800c]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
sub esp, 4
lea eax, [ecx + ecx]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x23c], ecx
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 case.0x404502.263
mov ecx, dword [ebp - 0x23c]
mov dword [esp + 4], eax
mov eax, dword [0x40800c]
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowTextW]
lea eax, [ebp - 0x220]
sub esp, 0xc
mov dword [esp + 0xc], eax
mov eax, dword [0x40800c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb0
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0xc]
sub esp, 0x10
and eax, 5
cmp eax, 1
je 0x404cd0
cmp eax, 5
jne case.0x404502.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 dword [sym.imp.shlwapi.dll_StrStrW]
sub eax, edi
sub esp, 8
sar eax, 1
mov dword [ebp - 0x220], eax
add eax, edi
jne 0x4046b7
mov dword [ebp - 0x220], 0xffffffff
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]
mov eax, dword [ebp - 0x220]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x40558d
mov edi, dword [ebp - 0x244]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xb1
lea edx, [edi + eax]
mov eax, dword [0x40800c]
mov dword [esp + 0xc], edx
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x14]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [0x40800c]
mov dword [esp + 8], 1
mov dword [esp + 4], 0xc2
mov dword [esp], eax
call esi
sub esp, 0x10
jmp 0x4045da
mov eax, dword [ebx]
mov dword [0x4091c4], eax
mov eax, dword [ebx + 4]
mov dword [0x4091c8], eax
mov eax, dword [ebx + 8]
mov dword [0x4091cc], eax
mov eax, dword [ebx + 0xc]
mov dword [0x4091d0], eax
mov eax, dword [ebx + 0x10]
mov dword [0x4091d4], eax
mov eax, dword [ebx + 0x14]
mov dword [0x4091d8], eax
mov eax, dword [ebx + 0x18]
mov dword [0x4091dc], eax
mov eax, dword [ebx + 0x1c]
mov dword [0x4091e0], eax
mov eax, dword [ebx + 0x20]
mov dword [0x4091e4], eax
mov eax, dword [ebx + 0x24]
mov dword [0x4091e8], eax
mov edx, dword [ebx + 0x10]
cmp word [edx], 0
je 0x40557e
mov eax, edx
nop
add eax, 2
cmp word [eax], 0
jne 0x4047a0
sub eax, edx
sar eax, 1
mov dword [ebp - 0x23c], eax
mov eax, dword [0x40800c]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
sub esp, 4
lea edx, [edi + edi]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
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 esi, eax
test eax, eax
je 0x4055fb
mov dword [esp + 4], eax
mov eax, dword [0x40800c]
mov dword [esp + 8], edi
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowTextW]
lea eax, [ebp - 0x224]
mov edi, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0xc
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x220]
mov dword [esp + 8], eax
mov eax, dword [0x40800c]
mov dword [esp + 4], 0xb0
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0xc]
sub esp, 0x10
mov ecx, eax
and ecx, 5
cmp ecx, 1
je 0x4053f0
cmp ecx, 5
jne 0x4044c9
mov ecx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x224]
sub eax, ecx
cmp eax, dword [ebp - 0x23c]
je 0x4055b9
mov dword [esp + 8], esi
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 sym._NOTEPAD_DoFind
mov eax, dword [ebx + 0xc]
jmp 0x4044c9
mov eax, dword [ebx]
mov dword [0x4091c4], eax
mov eax, dword [ebx + 4]
mov dword [0x4091c8], eax
mov eax, dword [ebx + 8]
mov dword [0x4091cc], eax
mov eax, dword [ebx + 0xc]
mov dword [0x4091d0], eax
mov eax, dword [ebx + 0x10]
mov dword [0x4091d4], eax
mov eax, dword [ebx + 0x14]
mov dword [0x4091d8], eax
mov eax, dword [ebx + 0x18]
mov dword [0x4091dc], eax
mov eax, dword [ebx + 0x1c]
mov dword [0x4091e0], eax
mov eax, dword [ebx + 0x20]
mov dword [0x4091e4], eax
mov eax, dword [ebx + 0x24]
mov dword [esp], ebx
mov dword [0x4091e8], eax
call sym._NOTEPAD_DoFind
mov eax, dword [ebx + 0xc]
jmp 0x4044c1
mov eax, dword [0x40800c]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetFocus]
xor edx, edx
sub esp, 4
jmp 0x40435a
call sym._DoCloseFile
xor edx, edx
test eax, eax
setne dl
jmp 0x40435a
lea eax, [ebp - 0x220]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.user32.dll_GetClientRect]
mov edx, dword [section..data]
mov ebx, dword [sym.imp.user32.dll_CreateWindowExW]
sub esp, 8
cmp dword [0x40807c], 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 ebx
sub esp, 0x30
mov dword [0x40800c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], sym._EDIT_CallBackProc_24
mov dword [esp], eax
call dword [sym.imp.comctl32.dll_SetWindowSubclass]
sub esp, 0x10
mov dword [esp], 0x408020
call dword [sym.imp.gdi32.dll_CreateFontIndirectW]
mov esi, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 4
mov dword [0x408010], eax
mov dword [esp + 8], eax
mov eax, dword [0x40800c]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x30
mov dword [esp], eax
call esi
mov eax, dword [0x40800c]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc5
mov dword [esp], eax
call esi
mov eax, dword [section..data]
sub esp, 0x10
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
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.msctls_statusbar32
mov dword [esp], 0
call ebx
mov dword [0x408014], eax
mov eax, dword [section..data]
sub esp, 0x30
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x40801c
mov dword [esp + 4], 0x206
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
mov dword [0x409194], 0xffffffff
mov dword [0x409198], 0xffffffff
sub esp, 0x10
call sym._UpdateStatusBar
xor edx, edx
jmp 0x40435a
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 dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
je 0x404cf0
mov dword [esp], 0
call dword [sym.imp.user32.dll_PostQuitMessage]
xor edx, edx
sub esp, 4
jmp 0x40435a
mov eax, ebx
movzx ebx, bx
shr eax, 0x10
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._updateWindowSize
xor edx, edx
jmp 0x40435a
call sym._DoCloseFile
test eax, eax
je case.0x404502.263
mov dword [esp], edi
call dword [sym.imp.user32.dll_DestroyWindow]
xor edx, edx
sub esp, 4
jmp 0x40435a
cmp eax, 0x205
jne case.0x404502.263
mov eax, dword [0x408018]
xor ebx, ebx
test eax, eax
mov eax, dword [0x408004]
sete bl
mov dword [0x408018], ebx
shl ebx, 3
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetMenu]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x205
mov dword [esp], eax
call dword [sym.imp.user32.dll_CheckMenuItem]
lea eax, [ebp - 0x220]
sub esp, 0xc
mov dword [esp + 4], eax
mov eax, dword [0x408004]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetClientRect]
mov eax, dword [0x408018]
mov edx, 5
sub esp, 8
test eax, eax
cmovne eax, edx
mov dword [esp + 4], eax
mov eax, dword [0x408014]
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, dword [ebp - 0x214]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x218]
mov dword [esp], eax
call sym._updateWindowSize
call sym._UpdateStatusBar
xor edx, edx
jmp 0x40435a
lea ebx, [ebp - 0x220]
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.shell32.dll_DragQueryFileW]
sub esp, 0x10
mov dword [esp], esi
call dword [sym.imp.shell32.dll_DragFinish]
sub esp, 4
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call sym._DoOpenFile
xor edx, edx
jmp 0x40435a
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 dword [sym.imp.shlwapi.dll_StrStrIW]
jmp 0x40469c
lea eax, [ebp - 0x220]
lea esi, [ebp - 0x224]
mov dword [ebp - 0x220], 0x2c
mov dword [esp + 4], eax
mov eax, dword [0x408004]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowPlacement]
mov eax, dword [ebp - 0x204]
mov ebx, dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 8
mov dword [0x409444], eax
mov eax, dword [ebp - 0x200]
mov dword [esp + 0x14], 4
mov dword [0x409448], eax
mov eax, dword [ebp - 0x1fc]
mov dword [esp + 0x10], esi
mov dword [0x40944c], eax
mov eax, dword [ebp - 0x1f8]
mov dword [esp + 0xc], 4
mov dword [0x409450], eax
mov eax, dword [0x40807c]
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 ebx
mov eax, dword [0x409444]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosX
mov dword [esp], eax
call ebx
mov eax, dword [0x409448]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosY
mov dword [esp], eax
call ebx
mov eax, dword [0x40944c]
sub eax, dword [0x409444]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
sub esp, 0x18
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosDX
mov dword [esp], eax
call ebx
mov eax, dword [0x409450]
sub eax, dword [0x409448]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
sub esp, 0x18
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosDY
mov dword [esp], eax
call ebx
movzx eax, byte [0x408037]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfCharSet
mov dword [esp], eax
call ebx
movzx eax, byte [0x408039]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfClipPrecision
mov dword [esp], eax
call ebx
mov eax, dword [0x408028]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfEscapement
mov dword [esp], eax
call ebx
movzx eax, byte [0x408034]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfItalic
mov dword [esp], eax
call ebx
mov eax, dword [0x40802c]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfOrientation
mov dword [esp], eax
call ebx
movzx eax, byte [0x408038]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfOutPrecision
mov dword [esp], eax
call ebx
movzx eax, byte [0x40803b]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfPitchAndFamily
mov dword [esp], eax
call ebx
movzx eax, byte [0x40803a]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfQuality
mov dword [esp], eax
call ebx
movzx eax, byte [0x408036]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfStrikeOut
mov dword [esp], eax
call ebx
movzx eax, byte [0x408035]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfUnderline
mov dword [esp], eax
call ebx
mov eax, dword [0x408030]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfWeight
mov dword [esp], eax
call ebx
mov eax, dword [0x408d70]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginTop
mov dword [esp], eax
call ebx
mov eax, dword [0x408d74]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginBottom
mov dword [esp], eax
call ebx
mov eax, dword [0x408d78]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginLeft
mov dword [esp], eax
call ebx
mov eax, dword [0x408d7c]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginRight
mov dword [esp], eax
call ebx
mov eax, dword [0x408018]
sub esp, 0x18
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.bStatusBar
mov dword [esp], eax
call ebx
sub esp, 0x18
call sym._get_dpi
mov dword [esp + 4], 0x2d0
mov dword [esp + 8], eax
mov eax, dword [0x408020]
cdq
xor eax, edx
sub eax, edx
mov dword [esp], eax
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], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.iPointSize
mov dword [esp], eax
call ebx
sub esp, 0x18
cmp word [0x40803c], 0
je 0x4055f4
mov eax, 0x40803c
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4052e0
sub eax, 0x40803c
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x10], 0x40803c
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfFaceName
mov dword [esp], eax
call ebx
sub esp, 0x18
cmp word [0x408d80], 0
je 0x4055ed
mov eax, 0x408d80
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x405338
sub eax, 0x408d80
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x10], 0x408d80
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.szHeader
mov dword [esp], eax
call ebx
sub esp, 0x18
cmp word [0x408f88], 0
je 0x4055e6
mov eax, 0x408f88
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x405390
sub eax, 0x408f88
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x10], 0x408f88
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.szTrailer
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x22c]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x404b74
mov ecx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x224]
sub eax, ecx
cmp eax, dword [ebp - 0x23c]
jne 0x404874
mov eax, dword [ebp - 0x23c]
mov dword [esp + 8], eax
lea eax, [esi + ecx*2]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call dword [sym.imp.shlwapi.dll_StrCmpNIW]
sub esp, 0xc
test eax, eax
jne 0x404874
mov eax, dword [ebx + 0x14]
mov dword [esp + 8], 1
mov dword [esp + 4], 0xc2
mov dword [esp + 0xc], eax
mov eax, dword [0x40800c]
mov dword [esp], eax
call edi
sub esp, 0x10
jmp 0x404874
call sym._DIALOG_EditGoTo
xor edx, edx
jmp 0x40435a
call sym._DIALOG_SelectFont
xor edx, edx
jmp 0x40435a
call sym._DIALOG_HelpAboutNotepad
xor edx, edx
jmp 0x40435a
call sym._DIALOG_HelpContents
xor edx, edx
jmp 0x40435a
call sym._DIALOG_Replace
xor edx, edx
jmp 0x40435a
call sym._DIALOG_SearchNext
xor edx, edx
jmp 0x40435a
call sym._DIALOG_Search
xor edx, edx
jmp 0x40435a
call sym._DIALOG_EditWrap
xor edx, edx
jmp 0x40435a
call sym._DIALOG_EditTimeDate
xor edx, edx
jmp 0x40435a
call sym._DIALOG_EditSelectAll
xor edx, edx
jmp 0x40435a
call sym._DIALOG_EditDelete
xor edx, edx
jmp 0x40435a
call sym._DIALOG_EditPaste
xor edx, edx
jmp 0x40435a
call sym._DIALOG_EditCopy
xor edx, edx
jmp 0x40435a
call sym._DIALOG_EditCut
xor edx, edx
jmp 0x40435a
call sym._DIALOG_EditUndo
xor edx, edx
jmp 0x40435a
call sym._DIALOG_FileExit
xor edx, edx
jmp 0x40435a
call sym._DIALOG_FilePrinterSetup
xor edx, edx
jmp 0x40435a
call sym._DIALOG_FilePageSetup
xor edx, edx
jmp 0x40435a
call sym._DIALOG_FilePrint
xor edx, edx
jmp 0x40435a
call sym._DIALOG_FileSaveAs
xor edx, edx
jmp 0x40435a
call sym._DIALOG_FileSave
xor edx, edx
jmp 0x40435a
call sym._DIALOG_FileOpen
xor edx, edx
jmp 0x40435a
call sym._DIALOG_FileNew
xor edx, edx
jmp 0x40435a
mov dword [ebp - 0x244], 0
jmp 0x4045a3
mov dword [ebp - 0x23c], 0
jmp 0x4047b3
mov eax, dword [0x40800c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb1
mov dword [esp], eax
call esi
xor edx, edx
sub esp, 0x10
jmp 0x4044cf
mov eax, dword [ebp - 0x23c]
mov dword [esp + 8], eax
lea eax, [esi + ecx*2]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call dword [sym.imp.shlwapi.dll_StrCmpNW]
sub esp, 0xc
test eax, eax
jne 0x404874
jmp 0x405432
xor eax, eax
jmp 0x40539e
xor eax, eax
jmp 0x405346
xor eax, eax
jmp 0x4052ee
mov eax, dword [ebx + 0xc]
jmp 0x4044c9