Function at 0x405d80
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 ebx, dword [ecx]
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x274], eax
call dword [sym.imp.comctl32.dll_InitCommonControls]
mov dword [esp], 0x40a304
call dword [sym.imp.user32.dll_RegisterWindowMessageW]
mov edx, section..data
mov ecx, 0x47d
mov esi, dword [sym.imp.user32.dll_GetSystemMetrics]
mov edi, edx
mov word [0x409200], ax
xor eax, eax
sub esp, 4
rep stosd dword es:[edi], eax
mov dword [ebp - 0x268], esi
mov dword [section..data], ebx
mov dword [esp], 0
call esi
sub esp, 4
mov ebx, eax
mov dword [esp], 1
call esi
sub esp, 4
cmp ebx, eax
jle 0x406090
mov dword [esp], 1
call esi
sub esp, 4
mov dword [0x409444], 0
pxor xmm0, xmm0
mov dword [0x409448], 0
cvtsi2sd xmm0, eax
mulsd xmm0, qword [str.ffffff]
mov dword [0x40807c], 1
mov dword [0x408d70], 0x9c4
mov dword [0x408d74], 0x9c4
mov dword [0x408d78], 0x7d0
mov dword [0x408d7c], 0x7d0
cvttsd2si edi, xmm0
mov dword [0x408018], 1
mov dword [0x408020], 0xfffffff4
mov dword [0x408024], 0
lea edx, [edi + edi*2]
mov dword [ebp - 0x278], edi
test edx, edx
lea eax, [edx + 3]
mov dword [0x40944c], edi
mov dword [0x408028], 0
cmovns eax, edx
mov edx, 0x53
mov dword [0x40802c], 0
mov dword [0x408030], 0x190
sar eax, 2
mov dword [ebp - 0x27c], eax
mov dword [0x409450], eax
xor eax, eax
mov dword [0x408034], 0x1000000
mov dword [0x408038], 0x1000000
jmp 0x405ef7
movzx edx, word [eax + 0x40a4e4]
mov word [eax + 0x40803c], dx
add eax, 2
test dx, dx
jne 0x405ef0
mov esi, dword [sym.imp.user32.dll_LoadStringW]
mov eax, dword [section..data]
mov dword [esp + 0xc], 0x104
lea ebx, [ebp - 0x218]
mov dword [esp + 8], 0x408d80
mov dword [esp + 4], 0x160
mov dword [esp], eax
mov dword [ebp - 0x26c], esi
call esi
mov eax, dword [section..data]
sub esp, 0x10
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], 0x408f88
mov dword [esp + 4], 0x161
mov dword [esp], eax
call esi
lea eax, [ebp - 0x264]
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 0x406480
lea edx, [ebp - 0x214]
xor eax, eax
mov ecx, 0xb
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [section..data]
mov dword [esp + 4], 0x300
mov dword [ebp - 0x218], 0x30
mov dword [ebp - 0x210], sym._NOTEPAD_WndProc_16
mov dword [ebp - 0x204], eax
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadIconW]
mov edi, dword [ebp - 0x268]
sub esp, 8
mov dword [ebp - 0x200], eax
mov dword [esp], 0x32
call edi
sub esp, 4
mov esi, eax
mov dword [esp], 0x31
call edi
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [section..data]
mov dword [esp + 0x14], 0x8000
mov dword [esp + 0x10], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x300
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], 0x40a344
mov dword [esp], ebx
call dword [sym.imp.user32.dll_RegisterClassExW]
mov edx, eax
sub esp, 4
xor eax, eax
test dx, dx
jne 0x4060b0
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 - 0x268]
call eax
sub esp, 4
jmp 0x405e14
mov dword [esp + 4], 1
mov dword [esp], 0x409444
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 [0x409444]
mov ebx, dword [0x409448]
mov eax, dword [0x40944c]
mov edx, dword [0x409450]
sub esp, 8
cmp dword [ebp - 0x224], ecx
jle 0x406113
cmp dword [ebp - 0x220], ebx
jg 0x406d90
mov dword [ebp - 0x268], 0x80000000
mov edi, 0x80000000
sub eax, ecx
mov esi, dword [section..data]
sub edx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x268]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 8], str.Notepad
mov dword [esp + 4], 0x40a344
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [0x408004], eax
sub esp, 0x30
test eax, eax
je 0x406e1e
mov eax, dword [section..data]
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], 0x4088a4
mov dword [esp], eax
mov eax, dword [ebp - 0x26c]
mov dword [esp + 4], 0x176
call eax
sub esp, 0x10
cmp word [0x4088a4], 0
je 0x406dd3
mov eax, 0x4088a4
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4061d8
sub eax, 0x4088a2
add eax, 0x4088a4
xor edx, edx
mov ecx, 0x2a
jmp 0x4061ff
movzx ecx, word [edx + str..txt]
mov word [eax + edx], cx
add edx, 2
test cx, cx
jne 0x4061f8
cmp word [eax], 0
je 0x406dc9
mov ebx, eax
lea esi, [esi]
nop
add ebx, 2
cmp word [ebx], 0
jne 0x406220
sub ebx, eax
add ebx, 2
add ebx, eax
mov eax, dword [section..data]
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], ebx
mov dword [esp], eax
mov eax, dword [ebp - 0x26c]
mov dword [esp + 4], 0x175
call eax
sub esp, 0x10
cmp word [ebx], 0
je 0x406dbf
mov eax, ebx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x406268
sub eax, ebx
add eax, 2
add eax, ebx
xor edx, edx
mov ecx, 0x2a
jmp 0x40628f
movzx ecx, word [edx + 0x40a338]
mov word [eax + edx], cx
add edx, 2
test cx, cx
jne 0x406288
cmp word [eax], 0
je 0x406db5
mov edx, eax
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x4062b0
sub edx, eax
add edx, 2
xor ecx, ecx
xor ebx, ebx
mov word [eax + edx], cx
mov esi, dword [0x40807c]
mov eax, dword [0x408004]
mov dword [0x4091ec], 0
mov dword [0x4091f0], 0
test esi, esi
mov esi, dword [sym.imp.user32.dll_GetMenu]
setne bl
mov dword [esp], eax
call esi
shl ebx, 3
mov edi, 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 edi
mov eax, dword [0x408018]
sub esp, 0xc
test eax, eax
mov eax, dword [0x408004]
setne bl
mov dword [esp], eax
shl ebx, 3
call esi
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x205
mov dword [esp], eax
call edi
mov eax, dword [0x408018]
mov edx, 5
mov ebx, dword [sym.imp.user32.dll_ShowWindow]
sub esp, 0xc
lea edi, [ebp - 0x25c]
test eax, eax
cmovne eax, edx
mov dword [esp + 4], eax
mov eax, dword [0x408014]
mov dword [esp], eax
call ebx
sub esp, 8
call sym._DIALOG_FileNew
mov eax, dword [ebp - 0x274]
mov dword [esp + 4], eax
mov eax, dword [0x408004]
mov dword [esp], eax
call ebx
mov eax, dword [0x408004]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.user32.dll_UpdateWindow]
mov eax, dword [0x408004]
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], 1
call dword [sym.imp.shell32.dll_DragAcceptFiles]
sub esp, 8
call dword [sym.imp.kernel32.dll_GetCommandLineW]
call sym._HandleCommandLine
mov eax, dword [ebp - 0x270]
mov dword [esp + 4], 0x203
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 0x406405
mov eax, dword [0x408008]
mov dword [esp + 4], edi
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
je 0x406440
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 0x4063f0
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 eax, dword [ebp - 0x268]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [0x408004]
mov dword [esp], eax
call dword [sym.imp.user32.dll_TranslateAcceleratorW]
sub esp, 0xc
test eax, eax
jne 0x406405
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 0x406405
lea eax, [ebp - 0x240]
lea edi, [ebp - 0x25c]
mov dword [esp + 0x14], ebx
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x218], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.fWrap
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x4064e0
cmp dword [ebp - 0x25c], 4
jne 0x4064e0
mov eax, dword [ebp - 0x240]
mov dword [0x40807c], eax
nop
lea eax, [ebp - 0x240]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x218], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosX
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x406538
cmp dword [ebp - 0x25c], 4
jne 0x406538
mov eax, dword [ebp - 0x240]
mov dword [0x409444], eax
lea esi, [esi]
lea eax, [ebp - 0x240]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x218], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosY
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x406590
cmp dword [ebp - 0x25c], 4
jne 0x406590
mov eax, dword [ebp - 0x240]
mov dword [0x409448], eax
lea esi, [esi]
lea eax, [ebp - 0x240]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x218], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosDX
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x4065e8
cmp dword [ebp - 0x25c], 4
jne 0x4065e8
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x278], eax
lea esi, [esi]
nop
lea eax, [ebp - 0x240]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x218], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosDY
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x406640
cmp dword [ebp - 0x25c], 4
jne 0x406640
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x27c], eax
lea esi, [esi]
nop
lea eax, [ebp - 0x240]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x218], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfCharSet
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x406698
cmp dword [ebp - 0x25c], 4
jne 0x406698
mov eax, dword [ebp - 0x240]
mov byte [0x408037], al
lea esi, [esi]
lea eax, [ebp - 0x240]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x218], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfClipPrecision
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x4066f0
cmp dword [ebp - 0x25c], 4
jne 0x4066f0
mov eax, dword [ebp - 0x240]
mov byte [0x408039], al
lea esi, [esi]
lea eax, [ebp - 0x240]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x218], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfEscapement
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x406748
cmp dword [ebp - 0x25c], 4
jne 0x406748
mov eax, dword [ebp - 0x240]
mov dword [0x408028], eax
lea esi, [esi]
lea eax, [ebp - 0x240]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x218], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfItalic
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x4067a0
cmp dword [ebp - 0x25c], 4
jne 0x4067a0
mov eax, dword [ebp - 0x240]
mov byte [0x408034], al
lea esi, [esi]
lea eax, [ebp - 0x240]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x218], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfOrientation
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x4067f8
cmp dword [ebp - 0x25c], 4
jne 0x4067f8
mov eax, dword [ebp - 0x240]
mov dword [0x40802c], eax
lea esi, [esi]
lea eax, [ebp - 0x240]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x218], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfOutPrecision
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x406850
cmp dword [ebp - 0x25c], 4
jne 0x406850
mov eax, dword [ebp - 0x240]
mov byte [0x408038], al
lea esi, [esi]
lea eax, [ebp - 0x240]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x218], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfPitchAndFamily
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x4068a8
cmp dword [ebp - 0x25c], 4
jne 0x4068a8
mov eax, dword [ebp - 0x240]
mov byte [0x40803b], al
lea esi, [esi]
lea eax, [ebp - 0x240]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x218], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfQuality
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x406900
cmp dword [ebp - 0x25c], 4
jne 0x406900
mov eax, dword [ebp - 0x240]
mov byte [0x40803a], al
lea esi, [esi]
lea eax, [ebp - 0x240]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x218], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfStrikeOut
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x406958
cmp dword [ebp - 0x25c], 4
jne 0x406958
mov eax, dword [ebp - 0x240]
mov byte [0x408036], al
lea esi, [esi]
lea eax, [ebp - 0x240]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x218], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfUnderline
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x4069b0
cmp dword [ebp - 0x25c], 4
jne 0x4069b0
mov eax, dword [ebp - 0x240]
mov byte [0x408035], al
lea esi, [esi]
lea eax, [ebp - 0x240]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x218], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfWeight
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x406a08
cmp dword [ebp - 0x25c], 4
jne 0x406a08
mov eax, dword [ebp - 0x240]
mov dword [0x408030], eax
lea esi, [esi]
lea eax, [ebp - 0x240]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x218], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginTop
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x406a60
cmp dword [ebp - 0x25c], 4
jne 0x406a60
mov eax, dword [ebp - 0x240]
mov dword [0x408d70], eax
lea esi, [esi]
lea eax, [ebp - 0x240]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x218], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginBottom
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x406ab8
cmp dword [ebp - 0x25c], 4
jne 0x406ab8
mov eax, dword [ebp - 0x240]
mov dword [0x408d74], eax
lea esi, [esi]
lea eax, [ebp - 0x240]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x218], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginLeft
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x406b10
cmp dword [ebp - 0x25c], 4
jne 0x406b10
mov eax, dword [ebp - 0x240]
mov dword [0x408d78], eax
lea esi, [esi]
lea eax, [ebp - 0x240]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x218], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginRight
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x406b68
cmp dword [ebp - 0x25c], 4
jne 0x406b68
mov eax, dword [ebp - 0x240]
mov dword [0x408d7c], eax
lea esi, [esi]
lea eax, [ebp - 0x240]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x218], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.bStatusBar
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x406bc0
cmp dword [ebp - 0x25c], 4
jne 0x406bc0
mov eax, dword [ebp - 0x240]
mov dword [0x408018], eax
lea esi, [esi]
mov eax, dword [ebp - 0x278]
add eax, dword [0x409444]
mov dword [ebp - 0x25c], 4
mov dword [0x40944c], eax
mov eax, dword [ebp - 0x27c]
add eax, dword [0x409448]
mov dword [esp + 0x14], edi
mov dword [0x409450], eax
lea eax, [ebp - 0x240]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x260]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x264]
mov dword [esp + 8], 0
mov dword [esp + 4], str.iPointSize
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x406c40
cmp dword [ebp - 0x260], 4
jne 0x406c40
mov eax, dword [ebp - 0x240]
test eax, eax
jne 0x406ddd
lea esi, [esi]
lea eax, [ebp - 0x260]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x25c], 0x40
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfFaceName
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x406ca8
cmp dword [ebp - 0x260], 1
jne 0x406ca8
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
add eax, 2
mov word [eax + 0x40803a], dx
test dx, dx
jne 0x406c90
lea esi, [esi]
nop
lea eax, [ebp - 0x260]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x25c], 0x208
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.szHeader
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x406d10
cmp dword [ebp - 0x260], 1
jne 0x406d10
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
add eax, 2
mov word [eax + 0x408d7e], dx
test dx, dx
jne 0x406cf8
lea esi, [esi]
nop
lea eax, [ebp - 0x260]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x25c], 0x208
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.szTrailer
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x406d78
cmp dword [ebp - 0x260], 1
jne 0x406d78
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
add eax, 2
mov word [eax + 0x408f86], dx
test dx, dx
jne 0x406d60
lea esi, [esi]
nop
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x405f8c
cmp dword [ebp - 0x22c], eax
jg 0x406113
cmp dword [ebp - 0x228], edx
jg 0x406113
mov dword [ebp - 0x268], ecx
mov edi, ebx
jmp 0x406122
mov edx, 2
jmp 0x4062be
mov eax, 2
jmp 0x406276
mov ebx, 2
jmp 0x40622e
mov eax, 2
jmp 0x4061e6
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 eax, dword [ebp - 0x240]
mov dword [esp + 8], 0x2d0
cdq
xor eax, edx
sub eax, edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_MulDiv]
neg eax
sub esp, 0xc
mov dword [0x408020], eax
jmp 0x406c40
call sym._ShowLastError
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]