Function at 0x406630
Capabilities:
Accept command line arguments
Hide graphical window
Query or enumerate registry value
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x2a0
mov esi, dword [ecx]
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x278], eax
call dword [sym.imp.comctl32.dll_InitCommonControls]
mov dword [esp], 0x40a43c
call dword [sym.imp.user32.dll_RegisterWindowMessageW]
mov edx, 0x40c020
mov ecx, 0x47d
mov word [0x40d228], ax
mov edi, edx
xor eax, eax
sub esp, 4
rep stosd dword es:[edi], eax
mov dword [0x40c020], esi
mov esi, dword [sym.imp.user32.dll_GetSystemMetrics]
mov dword [esp], 0
mov dword [ebp - 0x26c], esi
call esi
sub esp, 4
mov ebx, eax
mov dword [esp], 1
call esi
sub esp, 4
cmp ebx, eax
jle 0x406910
mov dword [esp], 1
call esi
sub esp, 4
mov dword [0x40d218], 0
pxor xmm0, xmm0
mov dword [0x40d21c], 0
cvtsi2sd xmm0, eax
mulsd xmm0, qword [str.ffffff]
mov dword [0x40c09c], 1
mov dword [0x40c038], 1
mov dword [0x40c050], 0x190
cvttsd2si edi, xmm0
movdqu xmm0, xmmword [0x40a780]
movups xmmword [0x40cd90], xmm0
movdqu xmm0, xmmword [0x40a790]
lea edx, [edi + edi*2]
mov dword [ebp - 0x27c], edi
test edx, edx
lea eax, [edx + 3]
mov dword [0x40d220], edi
cmovns eax, edx
mov edx, 0x1000000
movups xmmword [0x40c040], xmm0
mov dword [0x40c058], edx
sar eax, 2
mov dword [ebp - 0x280], eax
mov dword [0x40d224], eax
mov eax, 0x1000000
mov dword [0x40c054], eax
xor eax, eax
lea esi, [esi]
movzx edx, word [eax + str.System]
add eax, 2
mov word [eax + 0x40c05a], dx
test dx, dx
jne 0x406768
mov ebx, dword [sym.imp.user32.dll_LoadStringW]
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], 0x40cda0
mov dword [esp + 4], 0x160
mov eax, dword [0x40c020]
mov dword [esp], eax
mov dword [ebp - 0x270], ebx
call ebx
sub esp, 0x10
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], 0x40cfa8
mov dword [esp + 4], 0x161
mov eax, dword [0x40c020]
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x264]
lea ebx, [ebp - 0x218]
sub esp, 0x10
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareMicrosoftNotepad
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
je 0x406ce0
mov eax, dword [0x40c020]
pxor xmm0, xmm0
mov dword [ebp - 0x218], 0x30
movups xmmword [ebp - 0x204], xmm0
movups xmmword [ebp - 0x214], xmm0
movups xmmword [ebp - 0x1f8], xmm0
mov dword [ebp - 0x210], sym._NOTEPAD_WndProc_16
mov dword [ebp - 0x204], eax
mov dword [esp + 4], 0x300
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadIconW]
sub esp, 8
mov dword [ebp - 0x200], eax
mov dword [esp], 0x32
mov edi, dword [ebp - 0x26c]
call edi
sub esp, 4
mov esi, eax
mov dword [esp], 0x31
call edi
sub esp, 4
mov dword [esp + 0x14], 0x8000
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x300
mov eax, dword [0x40c020]
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadImageW]
sub esp, 0x18
mov dword [ebp - 0x1ec], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadCursorW]
mov dword [ebp - 0x1f8], 6
sub esp, 8
mov dword [ebp - 0x1fc], eax
mov dword [ebp - 0x1f4], 0x201
mov dword [ebp - 0x1f0], str.Notepad
mov dword [esp], ebx
call dword [sym.imp.user32.dll_RegisterClassExW]
mov edx, eax
sub esp, 4
xor eax, eax
test dx, dx
jne 0x406930
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp], 0
mov eax, dword [ebp - 0x26c]
call eax
sub esp, 4
jmp 0x4066c4
mov dword [esp + 4], 1
mov dword [esp], 0x40d218
call dword [sym.imp.user32.dll_MonitorFromRect]
lea edx, [ebp - 0x240]
mov dword [ebp - 0x240], 0x28
sub esp, 8
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetMonitorInfoW]
mov ecx, dword [0x40d218]
mov ebx, dword [0x40d21c]
mov eax, dword [0x40d220]
mov edx, dword [0x40d224]
sub esp, 8
cmp dword [ebp - 0x224], ecx
jle 0x406993
cmp dword [ebp - 0x220], ebx
jg 0x407600
mov dword [ebp - 0x268], 0x80000000
mov edi, 0x80000000
mov dword [esp + 0x2c], 0
sub eax, ecx
sub edx, ebx
mov esi, dword [0x40c020]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
mov eax, dword [ebp - 0x268]
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x40a4a0
mov dword [esp + 4], str.Notepad
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [0x40c024], eax
sub esp, 0x30
test eax, eax
je 0x407690
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], 0x40c8c4
mov dword [esp + 4], 0x176
mov eax, dword [0x40c020]
mov dword [esp], eax
mov eax, dword [ebp - 0x270]
call eax
sub esp, 0x10
cmp word [0x40c8c4], 0
je 0x407643
mov eax, 0x40c8c4
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x406a58
sub eax, 0x40c8c2
add eax, 0x40c8c4
xor edx, edx
lea esi, [esi]
movzx ecx, word [edx + str..txt]
mov word [eax + edx], cx
add edx, 2
test cx, cx
jne 0x406a70
cmp word [eax], 0
je 0x407639
mov edx, eax
nop
add edx, 2
cmp word [edx], 0
jne 0x406a90
sub edx, eax
add edx, 2
lea ebx, [eax + edx]
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x175
mov eax, dword [0x40c020]
mov dword [esp], eax
mov eax, dword [ebp - 0x270]
call eax
sub esp, 0x10
cmp word [ebx], 0
je 0x40762f
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x406ad8
sub eax, ebx
add eax, 2
add eax, ebx
xor edx, edx
lea esi, [esi]
movzx ecx, word [edx + 0x40a470]
mov word [eax + edx], cx
add edx, 2
test cx, cx
jne 0x406af0
cmp word [eax], 0
je 0x407625
mov edx, eax
nop
add edx, 2
cmp word [edx], 0
jne 0x406b10
sub edx, eax
add edx, 2
xor ecx, ecx
xor ebx, ebx
mov edi, dword [sym.imp.user32.dll_GetMenu]
mov word [eax + edx], cx
mov esi, dword [0x40c09c]
mov eax, dword [0x40c024]
mov dword [0x40d20c], 0
mov dword [0x40d210], 0
test esi, esi
setne bl
mov dword [esp], eax
call edi
shl ebx, 3
mov esi, dword [sym.imp.user32.dll_CheckMenuItem]
sub esp, 4
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], 0x119
mov dword [esp], eax
call esi
mov eax, dword [0x40c038]
sub esp, 0xc
test eax, eax
mov eax, dword [0x40c024]
setne bl
mov dword [esp], eax
shl ebx, 3
call edi
lea edi, [ebp - 0x25c]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x205
mov dword [esp], eax
call esi
mov eax, dword [0x40c038]
mov ebx, dword [sym.imp.user32.dll_ShowWindow]
sub esp, 0xc
neg eax
sbb eax, eax
and eax, 5
mov dword [esp + 4], eax
mov eax, dword [0x40c034]
mov dword [esp], eax
call ebx
sub esp, 8
call sym._DIALOG_FileNew
mov eax, dword [ebp - 0x278]
mov dword [esp + 4], eax
mov eax, dword [0x40c024]
mov dword [esp], eax
call ebx
mov eax, dword [0x40c024]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.user32.dll_UpdateWindow]
sub esp, 4
mov dword [esp + 4], 1
mov eax, dword [0x40c024]
mov dword [esp], eax
call dword [sym.imp.shell32.dll_DragAcceptFiles]
sub esp, 8
call dword [sym.imp.kernel32.dll_GetCommandLineW]
call sym._HandleCommandLine
mov dword [esp + 4], 0x203
mov eax, dword [ebp - 0x274]
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadAcceleratorsW]
mov ebx, dword [sym.imp.user32.dll_GetMessageW]
mov esi, dword [sym.imp.user32.dll_IsDialogMessageW]
mov dword [ebp - 0x268], eax
sub esp, 8
jmp 0x406c65
mov dword [esp + 4], edi
mov eax, dword [0x40c028]
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
je 0x406ca0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call ebx
sub esp, 0x10
test eax, eax
jne 0x406c50
mov eax, dword [ebp - 0x254]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 8], edi
mov eax, dword [ebp - 0x268]
mov dword [esp + 4], eax
mov eax, dword [0x40c024]
mov dword [esp], eax
call dword [sym.imp.user32.dll_TranslateAcceleratorW]
sub esp, 0xc
test eax, eax
jne 0x406c65
mov dword [esp], edi
call dword [sym.imp.user32.dll_TranslateMessage]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.user32.dll_DispatchMessageW]
sub esp, 4
jmp 0x406c65
lea esi, [ebp - 0x240]
lea edi, [ebp - 0x25c]
mov dword [ebp - 0x218], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.fWrap
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [ebp - 0x268], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x406d48
cmp dword [ebp - 0x25c], 4
jne 0x406d48
mov eax, dword [ebp - 0x240]
mov dword [0x40c09c], eax
lea esi, cs:[esi]
mov dword [ebp - 0x218], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosX
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x406da0
cmp dword [ebp - 0x25c], 4
jne 0x406da0
mov eax, dword [ebp - 0x240]
mov dword [0x40d218], eax
lea esi, [esi]
mov dword [ebp - 0x218], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosY
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x406df8
cmp dword [ebp - 0x25c], 4
jne 0x406df8
mov eax, dword [ebp - 0x240]
mov dword [0x40d21c], eax
lea esi, [esi]
mov dword [ebp - 0x218], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosDX
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x406e50
cmp dword [ebp - 0x25c], 4
jne 0x406e50
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x27c], eax
lea esi, cs:[esi]
mov dword [ebp - 0x218], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosDY
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x406ea8
cmp dword [ebp - 0x25c], 4
jne 0x406ea8
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x280], eax
lea esi, cs:[esi]
mov dword [ebp - 0x218], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfCharSet
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x406f00
cmp dword [ebp - 0x25c], 4
jne 0x406f00
mov eax, dword [ebp - 0x240]
mov byte [0x40c057], al
lea esi, [esi]
mov dword [ebp - 0x218], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfClipPrecision
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x406f58
cmp dword [ebp - 0x25c], 4
jne 0x406f58
mov eax, dword [ebp - 0x240]
mov byte [0x40c059], al
lea esi, [esi]
mov dword [ebp - 0x218], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfEscapement
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x406fb0
cmp dword [ebp - 0x25c], 4
jne 0x406fb0
mov eax, dword [ebp - 0x240]
mov dword [0x40c048], eax
lea esi, [esi]
mov dword [ebp - 0x218], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfItalic
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x407008
cmp dword [ebp - 0x25c], 4
jne 0x407008
mov eax, dword [ebp - 0x240]
mov byte [0x40c054], al
lea esi, [esi]
mov dword [ebp - 0x218], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfOrientation
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x407060
cmp dword [ebp - 0x25c], 4
jne 0x407060
mov eax, dword [ebp - 0x240]
mov dword [0x40c04c], eax
lea esi, [esi]
mov dword [ebp - 0x218], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfOutPrecision
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x4070b8
cmp dword [ebp - 0x25c], 4
jne 0x4070b8
mov eax, dword [ebp - 0x240]
mov byte [0x40c058], al
lea esi, [esi]
mov dword [ebp - 0x218], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfPitchAndFamily
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x407110
cmp dword [ebp - 0x25c], 4
jne 0x407110
mov eax, dword [ebp - 0x240]
mov byte [0x40c05b], al
lea esi, [esi]
mov dword [ebp - 0x218], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfQuality
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x407168
cmp dword [ebp - 0x25c], 4
jne 0x407168
mov eax, dword [ebp - 0x240]
mov byte [0x40c05a], al
lea esi, [esi]
mov dword [ebp - 0x218], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfStrikeOut
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x4071c0
cmp dword [ebp - 0x25c], 4
jne 0x4071c0
mov eax, dword [ebp - 0x240]
mov byte [0x40c056], al
lea esi, [esi]
mov dword [ebp - 0x218], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfUnderline
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x407218
cmp dword [ebp - 0x25c], 4
jne 0x407218
mov eax, dword [ebp - 0x240]
mov byte [0x40c055], al
lea esi, [esi]
mov dword [ebp - 0x218], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfWeight
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x407270
cmp dword [ebp - 0x25c], 4
jne 0x407270
mov eax, dword [ebp - 0x240]
mov dword [0x40c050], eax
lea esi, [esi]
mov dword [ebp - 0x218], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginTop
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x4072c8
cmp dword [ebp - 0x25c], 4
jne 0x4072c8
mov eax, dword [ebp - 0x240]
mov dword [0x40cd90], eax
lea esi, [esi]
mov dword [ebp - 0x218], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginBottom
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x407320
cmp dword [ebp - 0x25c], 4
jne 0x407320
mov eax, dword [ebp - 0x240]
mov dword [0x40cd94], eax
lea esi, [esi]
mov dword [ebp - 0x218], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginLeft
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x407378
cmp dword [ebp - 0x25c], 4
jne 0x407378
mov eax, dword [ebp - 0x240]
mov dword [0x40cd98], eax
lea esi, [esi]
mov dword [ebp - 0x218], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginRight
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x4073d0
cmp dword [ebp - 0x25c], 4
jne 0x4073d0
mov eax, dword [ebp - 0x240]
mov dword [0x40cd9c], eax
lea esi, [esi]
mov dword [ebp - 0x218], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.bStatusBar
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x407428
cmp dword [ebp - 0x25c], 4
jne 0x407428
mov eax, dword [ebp - 0x240]
mov dword [0x40c038], eax
lea esi, [esi]
mov dword [ebp - 0x25c], 4
mov eax, dword [ebp - 0x27c]
add eax, dword [0x40d218]
mov dword [0x40d220], eax
mov eax, dword [ebp - 0x280]
add eax, dword [0x40d21c]
mov dword [0x40d224], eax
mov dword [esp + 0x10], esi
lea esi, [ebp - 0x260]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iPointSize
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x4074a8
cmp dword [ebp - 0x260], 4
jne 0x4074a8
mov eax, dword [ebp - 0x240]
test eax, eax
jne 0x40764d
lea esi, [esi]
mov dword [ebp - 0x25c], 0x40
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfFaceName
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x407510
cmp dword [ebp - 0x260], 1
jne 0x407510
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
add eax, 2
mov word [eax + 0x40c05a], dx
test dx, dx
jne 0x4074f8
lea esi, cs:[esi]
mov dword [ebp - 0x25c], 0x208
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.szHeader
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x407578
cmp dword [ebp - 0x260], 1
jne 0x407578
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
add eax, 2
mov word [eax + 0x40cd9e], dx
test dx, dx
jne 0x407560
lea esi, cs:[esi]
mov dword [ebp - 0x25c], 0x208
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.szTrailer
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
sub esp, 0x18
test eax, eax
jne 0x4075e0
cmp dword [ebp - 0x260], 1
jne 0x4075e0
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
add eax, 2
mov word [eax + 0x40cfa6], dx
test dx, dx
jne 0x4075c8
lea esi, cs:[esi]
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x406804
cmp dword [ebp - 0x22c], eax
jg 0x406993
cmp dword [ebp - 0x228], edx
jg 0x406993
mov dword [ebp - 0x268], ecx
mov edi, ebx
jmp 0x4069a2
mov edx, 2
jmp 0x406b1e
mov eax, 2
jmp 0x406ae6
mov edx, 2
jmp 0x406a9e
mov eax, 2
jmp 0x406a66
call dword [sym.imp.user32.dll_GetDesktopWindow]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDpiForWindow]
sub esp, 4
mov dword [esp + 4], eax
mov dword [esp + 8], 0x2d0
mov edx, dword [ebp - 0x240]
mov eax, edx
neg eax
cmovs eax, edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_MulDiv]
neg eax
sub esp, 0xc
mov dword [0x40c040], eax
jmp 0x4074a8
call sym._ShowLastError
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]