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

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, 0x2b8
mov esi, dword [ecx]
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x28c], esi
mov dword [ebp - 0x290], eax
call dword [sym.imp.comctl32.dll_InitCommonControls]
mov dword [esp], 0x40947c
call dword [sym.imp.user32.dll_RegisterWindowMessageW]
mov edx, 0x40b020
mov ecx, 0x47d
mov edi, edx
mov word [0x40c224], ax
xor eax, eax
sub esp, 4
rep stosd dword es:[edi], eax
mov dword [0x40b020], esi
mov esi, dword [sym.imp.user32.dll_GetSystemMetrics]
mov dword [esp], 0
mov dword [ebp - 0x284], esi
call esi
sub esp, 4
mov ebx, eax
mov dword [esp], 1
call esi
sub esp, 4
cmp ebx, eax
jle 0x406380
mov dword [esp], 1
call esi
mov dword [ebp - 0x280], eax
sub esp, 4
fnstcw word [ebp - 0x27a]
fild dword [ebp - 0x280]
fmul qword [str.ffffff]
mov dword [0x40c214], 0
mov dword [0x40c218], 0
movzx eax, word [ebp - 0x27a]
mov dword [0x40b09c], 1
mov dword [0x40bd90], 0x9c4
mov dword [0x40bd94], 0x9c4
or ah, 0xc
mov word [ebp - 0x27c], ax
fldcw word [ebp - 0x27c]
fistp dword [ebp - 0x280]
fldcw word [ebp - 0x27a]
mov dword [0x40bd98], 0x7d0
mov dword [0x40bd9c], 0x7d0
mov ebx, dword [ebp - 0x280]
mov dword [0x40b038], 1
mov dword [0x40b040], 0xfffffff4
lea edx, [ebx + ebx*2]
mov dword [ebp - 0x294], ebx
test edx, edx
lea eax, [edx + 3]
mov dword [0x40c21c], ebx
mov dword [0x40b044], 0
cmovns eax, edx
mov edx, 0x53
mov dword [0x40b048], 0
mov dword [0x40b04c], 0
sar eax, 2
mov dword [ebp - 0x298], eax
mov dword [0x40c220], eax
xor eax, eax
mov dword [0x40b050], 0x190
mov dword [0x40b054], 0x1000000
mov dword [0x40b058], 0x1000000
jmp 0x4061e7
movzx edx, word [eax + str.System]
mov word [eax + 0x40b05c], dx
add eax, 2
test dx, dx
jne 0x4061e0
mov edi, dword [sym.imp.user32.dll_LoadStringW]
mov eax, dword [0x40b020]
mov dword [esp + 0xc], 0x104
lea ebx, [ebp - 0x220]
mov dword [esp + 8], 0x40bda0
mov dword [esp + 4], 0x160
mov dword [esp], eax
mov dword [ebp - 0x288], edi
call edi
mov eax, dword [0x40b020]
sub esp, 0x10
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], 0x40bfa8
mov dword [esp + 4], 0x161
mov dword [esp], eax
call edi
lea eax, [ebp - 0x26c]
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 0x406770
lea edx, [ebp - 0x21c]
xor eax, eax
mov ecx, 0xb
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [0x40b020]
mov dword [esp + 4], 0x300
mov dword [ebp - 0x220], 0x30
mov dword [ebp - 0x218], dbg.NOTEPAD_WndProc
mov dword [ebp - 0x20c], eax
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadIconW]
mov edi, dword [ebp - 0x284]
sub esp, 8
mov dword [ebp - 0x208], 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 [0x40b020]
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 - 0x1f4], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadCursorW]
mov dword [ebp - 0x200], 6
sub esp, 8
mov dword [ebp - 0x204], eax
mov dword [ebp - 0x1fc], 0x201
mov dword [ebp - 0x1f8], global_className
mov dword [esp], ebx
call dword [sym.imp.user32.dll_RegisterClassExW]
mov edx, eax
sub esp, 4
xor eax, eax
test dx, dx
jne 0x4063a0
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 - 0x284]
call eax
mov dword [ebp - 0x280], eax
sub esp, 4
jmp 0x4060da
mov dword [esp + 4], 1
mov dword [esp], 0x40c214
call dword [sym.imp.user32.dll_MonitorFromRect]
lea edx, [ebp - 0x248]
mov dword [ebp - 0x248], 0x28
sub esp, 8
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetMonitorInfoW]
mov ecx, dword [0x40c214]
mov ebx, dword [0x40c218]
mov eax, dword [0x40c21c]
mov edx, dword [0x40c220]
sub esp, 8
cmp dword [ebp - 0x22c], ecx
jle 0x406403
cmp dword [ebp - 0x228], ebx
jg 0x407080
mov dword [ebp - 0x280], 0x80000000
mov edi, 0x80000000
sub eax, ecx
mov esi, dword [0x40b020]
sub edx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x280]
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], global_winName
mov dword [esp + 4], global_className
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [0x40b024], eax
sub esp, 0x30
test eax, eax
je 0x407103
mov eax, dword [0x40b020]
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], 0x40b8c4
mov dword [esp], eax
mov eax, dword [ebp - 0x288]
mov dword [esp + 4], 0x176
call eax
sub esp, 0x10
cmp word [0x40b8c4], 0
je 0x4070c3
mov eax, 0x40b8c4
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4064c8
sub eax, 0x40b8c2
add eax, 0x40b8c4
xor edx, edx
mov ecx, 0x2a
jmp 0x4064ef
movzx ecx, word [edx + str..txt]
mov word [eax + edx], cx
add edx, 2
test cx, cx
jne 0x4064e8
cmp word [eax], 0
je 0x4070b9
mov edx, eax
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x406510
sub edx, eax
add edx, 2
lea ebx, [eax + edx]
mov eax, dword [0x40b020]
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], ebx
mov dword [esp], eax
mov eax, dword [ebp - 0x288]
mov dword [esp + 4], 0x175
call eax
sub esp, 0x10
cmp word [ebx], 0
je 0x4070af
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x406558
sub eax, ebx
add eax, 2
add eax, ebx
xor edx, edx
mov ecx, 0x2a
jmp 0x40657f
movzx ecx, word [edx + 0x4094b0]
mov word [eax + edx], cx
add edx, 2
test cx, cx
jne 0x406578
cmp word [eax], 0
je 0x4070a5
mov edx, eax
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x4065a0
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 [0x40b09c]
mov eax, dword [0x40b024]
mov dword [0x40c20c], 0
mov dword [0x40c210], 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 [0x40b038]
sub esp, 0xc
test eax, eax
mov eax, dword [0x40b024]
setne bl
mov dword [esp], eax
shl ebx, 3
call edi
lea edi, [ebp - 0x264]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x205
mov dword [esp], eax
call esi
mov eax, dword [0x40b038]
mov edx, 5
mov ebx, dword [sym.imp.user32.dll_ShowWindow]
sub esp, 0xc
test eax, eax
cmovne eax, edx
mov dword [esp + 4], eax
mov eax, dword [0x40b034]
mov dword [esp], eax
call ebx
sub esp, 8
call dbg.DIALOG_FileNew
mov eax, dword [ebp - 0x290]
mov dword [esp + 4], eax
mov eax, dword [0x40b024]
mov dword [esp], eax
call ebx
mov eax, dword [0x40b024]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.user32.dll_UpdateWindow]
mov eax, dword [0x40b024]
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 dbg.HandleCommandLine
mov eax, dword [ebp - 0x28c]
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 - 0x280], eax
sub esp, 8
jmp 0x4066f5
mov eax, dword [0x40b028]
mov dword [esp + 4], edi
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
je 0x406730
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 0x4066e0
mov eax, dword [ebp - 0x25c]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [ebp - 0x280]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [0x40b024]
mov dword [esp], eax
call dword [sym.imp.user32.dll_TranslateAcceleratorW]
sub esp, 0xc
test eax, eax
jne 0x4066f5
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 0x4066f5
mov eax, dword [ebp - 0x26c]
lea esi, [ebp - 0x248]
lea edi, [ebp - 0x264]
mov dword [ebp - 0x220], 4
mov dword [esp + 0x14], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.fWrap
mov dword [ebp - 0x280], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x4067d8
cmp dword [ebp - 0x264], 4
jne 0x4067d8
mov eax, dword [ebp - 0x248]
mov dword [0x40b09c], eax
lea esi, [esi]
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], ebx
mov dword [ebp - 0x220], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosX
call eax
sub esp, 0x18
test eax, eax
jne 0x406830
cmp dword [ebp - 0x264], 4
jne 0x406830
mov eax, dword [ebp - 0x248]
mov dword [0x40c214], eax
lea esi, [esi]
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], ebx
mov dword [ebp - 0x220], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosY
call eax
sub esp, 0x18
test eax, eax
jne 0x406888
cmp dword [ebp - 0x264], 4
jne 0x406888
mov eax, dword [ebp - 0x248]
mov dword [0x40c218], eax
lea esi, [esi]
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], ebx
mov dword [ebp - 0x220], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosDX
call eax
sub esp, 0x18
test eax, eax
jne 0x4068e0
cmp dword [ebp - 0x264], 4
jne 0x4068e0
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x294], eax
lea esi, [esi]
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], ebx
mov dword [ebp - 0x220], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosDY
call eax
sub esp, 0x18
test eax, eax
jne 0x406938
cmp dword [ebp - 0x264], 4
jne 0x406938
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x298], eax
lea esi, [esi]
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], ebx
mov dword [ebp - 0x220], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfCharSet
call eax
sub esp, 0x18
test eax, eax
jne 0x406990
cmp dword [ebp - 0x264], 4
jne 0x406990
mov eax, dword [ebp - 0x248]
mov byte [0x40b057], al
lea esi, [esi]
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], ebx
mov dword [ebp - 0x220], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfClipPrecision
call eax
sub esp, 0x18
test eax, eax
jne 0x4069e8
cmp dword [ebp - 0x264], 4
jne 0x4069e8
mov eax, dword [ebp - 0x248]
mov byte [0x40b059], al
lea esi, [esi]
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], ebx
mov dword [ebp - 0x220], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfEscapement
call eax
sub esp, 0x18
test eax, eax
jne 0x406a40
cmp dword [ebp - 0x264], 4
jne 0x406a40
mov eax, dword [ebp - 0x248]
mov dword [0x40b048], eax
lea esi, [esi]
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], ebx
mov dword [ebp - 0x220], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfItalic
call eax
sub esp, 0x18
test eax, eax
jne 0x406a98
cmp dword [ebp - 0x264], 4
jne 0x406a98
mov eax, dword [ebp - 0x248]
mov byte [0x40b054], al
lea esi, [esi]
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], ebx
mov dword [ebp - 0x220], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfOrientation
call eax
sub esp, 0x18
test eax, eax
jne 0x406af0
cmp dword [ebp - 0x264], 4
jne 0x406af0
mov eax, dword [ebp - 0x248]
mov dword [0x40b04c], eax
lea esi, [esi]
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], ebx
mov dword [ebp - 0x220], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfOutPrecision
call eax
sub esp, 0x18
test eax, eax
jne 0x406b48
cmp dword [ebp - 0x264], 4
jne 0x406b48
mov eax, dword [ebp - 0x248]
mov byte [0x40b058], al
lea esi, [esi]
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], ebx
mov dword [ebp - 0x220], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfPitchAndFamily
call eax
sub esp, 0x18
test eax, eax
jne 0x406ba0
cmp dword [ebp - 0x264], 4
jne 0x406ba0
mov eax, dword [ebp - 0x248]
mov byte [0x40b05b], al
lea esi, [esi]
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], ebx
mov dword [ebp - 0x220], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfQuality
call eax
sub esp, 0x18
test eax, eax
jne 0x406bf8
cmp dword [ebp - 0x264], 4
jne 0x406bf8
mov eax, dword [ebp - 0x248]
mov byte [0x40b05a], al
lea esi, [esi]
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], ebx
mov dword [ebp - 0x220], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfStrikeOut
call eax
sub esp, 0x18
test eax, eax
jne 0x406c50
cmp dword [ebp - 0x264], 4
jne 0x406c50
mov eax, dword [ebp - 0x248]
mov byte [0x40b056], al
lea esi, [esi]
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], ebx
mov dword [ebp - 0x220], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfUnderline
call eax
sub esp, 0x18
test eax, eax
jne 0x406ca8
cmp dword [ebp - 0x264], 4
jne 0x406ca8
mov eax, dword [ebp - 0x248]
mov byte [0x40b055], al
lea esi, [esi]
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], ebx
mov dword [ebp - 0x220], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfWeight
call eax
sub esp, 0x18
test eax, eax
jne 0x406d00
cmp dword [ebp - 0x264], 4
jne 0x406d00
mov eax, dword [ebp - 0x248]
mov dword [0x40b050], eax
lea esi, [esi]
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], ebx
mov dword [ebp - 0x220], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginTop
call eax
sub esp, 0x18
test eax, eax
jne 0x406d58
cmp dword [ebp - 0x264], 4
jne 0x406d58
mov eax, dword [ebp - 0x248]
mov dword [0x40bd90], eax
lea esi, [esi]
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], ebx
mov dword [ebp - 0x220], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginBottom
call eax
sub esp, 0x18
test eax, eax
jne 0x406db0
cmp dword [ebp - 0x264], 4
jne 0x406db0
mov eax, dword [ebp - 0x248]
mov dword [0x40bd94], eax
lea esi, [esi]
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], ebx
mov dword [ebp - 0x220], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginLeft
call eax
sub esp, 0x18
test eax, eax
jne 0x406e08
cmp dword [ebp - 0x264], 4
jne 0x406e08
mov eax, dword [ebp - 0x248]
mov dword [0x40bd98], eax
lea esi, [esi]
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], ebx
mov dword [ebp - 0x220], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginRight
call eax
sub esp, 0x18
test eax, eax
jne 0x406e60
cmp dword [ebp - 0x264], 4
jne 0x406e60
mov eax, dword [ebp - 0x248]
mov dword [0x40bd9c], eax
lea esi, [esi]
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], ebx
mov dword [ebp - 0x220], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.bStatusBar
call eax
sub esp, 0x18
test eax, eax
jne 0x406eb8
cmp dword [ebp - 0x264], 4
jne 0x406eb8
mov eax, dword [ebp - 0x248]
mov dword [0x40b038], eax
lea esi, [esi]
mov eax, dword [ebp - 0x294]
add eax, dword [0x40c214]
mov dword [esp + 0x10], esi
lea esi, [ebp - 0x268]
mov dword [0x40c21c], eax
mov eax, dword [ebp - 0x298]
add eax, dword [0x40c218]
mov dword [esp + 0x14], edi
mov dword [0x40c220], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x264], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iPointSize
call eax
sub esp, 0x18
test eax, eax
jne 0x406f2b
cmp dword [ebp - 0x268], 4
je 0x4070cd
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], edi
mov dword [ebp - 0x264], 0x40
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfFaceName
call eax
sub esp, 0x18
test eax, eax
jne 0x406f90
cmp dword [ebp - 0x268], 1
jne 0x406f90
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
add eax, 2
mov word [eax + 0x40b05a], dx
test dx, dx
jne 0x406f78
lea esi, [esi]
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], edi
mov dword [ebp - 0x264], 0x208
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.szHeader
call eax
sub esp, 0x18
test eax, eax
jne 0x406ff8
cmp dword [ebp - 0x268], 1
jne 0x406ff8
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
add eax, 2
mov word [eax + 0x40bd9e], dx
test dx, dx
jne 0x406fe0
lea esi, [esi]
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], edi
mov dword [ebp - 0x264], 0x208
mov dword [esp], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.szTrailer
call eax
sub esp, 0x18
test eax, eax
jne 0x407060
cmp dword [ebp - 0x268], 1
jne 0x407060
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
add eax, 2
mov word [eax + 0x40bfa6], dx
test dx, dx
jne 0x407048
lea esi, [esi]
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x40627c
cmp dword [ebp - 0x234], eax
jg 0x406403
cmp dword [ebp - 0x230], edx
jg 0x406403
mov dword [ebp - 0x280], ecx
mov edi, ebx
jmp 0x406412
mov edx, 2
jmp 0x4065ae
mov eax, 2
jmp 0x406566
mov edx, 2
jmp 0x40651e
mov eax, 2
jmp 0x4064d6
call dbg.get_dpi
mov edx, dword [ebp - 0x248]
mov dword [esp + 8], 0x2d0
mov dword [esp + 4], eax
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 [0x40b040], eax
jmp 0x406f2b
call dbg.ShowLastError
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]