Function at 0x405920
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 - 0x284], esi
mov dword [ebp - 0x288], eax
call sym._InitCommonControls_0
mov dword [esp], 0x4082cc
call sym._RegisterWindowMessageW_4
mov edx, 0x40a020
mov ecx, 0x477
mov edi, edx
mov word [0x40b20c], ax
xor eax, eax
sub esp, 4
rep stosd dword es:[edi], eax
mov dword [esp], 0
mov dword [0x40a020], esi
call sym._GetSystemMetrics_4
sub esp, 4
mov ebx, eax
mov dword [esp], 1
call sym._GetSystemMetrics_4
sub esp, 4
cmp ebx, eax
jle 0x405c40
mov dword [esp], 1
call sym._GetSystemMetrics_4
mov dword [ebp - 0x280], eax
sub esp, 4
fnstcw word [ebp - 0x27a]
fild dword [ebp - 0x280]
fmul qword [str.ffffff]
mov dword [0x40b1fc], 0
mov dword [0x40b200], 0
movzx eax, word [ebp - 0x27a]
mov dword [0x40a090], 1
mov dword [0x40ad84], 0x9c4
mov dword [0x40ad88], 0x9c4
or ah, 0xc
mov word [ebp - 0x27c], ax
fldcw word [ebp - 0x27c]
fistp dword [ebp - 0x280]
fldcw word [ebp - 0x27a]
mov dword [0x40ad8c], 0x7d0
mov dword [0x40ad90], 0x7d0
mov edi, dword [ebp - 0x280]
mov dword [0x40a034], 0xfffffff4
mov dword [0x40a038], 0
lea edx, [edi + edi*2]
mov dword [0x40b204], edi
mov dword [0x40a03c], 0
test edx, edx
lea eax, [edx + 3]
mov dword [0x40a040], 0
cmovns eax, edx
mov edx, 0x53
mov dword [0x40a044], 0x190
mov dword [0x40a048], 0x1000000
sar eax, 2
mov dword [ebp - 0x28c], eax
mov dword [0x40b208], eax
xor eax, eax
mov dword [0x40a04c], 0x1000000
jmp 0x405aaf
movzx edx, word [eax + str.System]
mov word [eax + 0x40a050], dx
add eax, 2
test dx, dx
jne 0x405aa8
mov eax, dword [0x40a020]
mov dword [esp + 0xc], 0x104
lea esi, [ebp - 0x220]
mov dword [esp + 8], 0x40ad94
mov dword [esp + 4], 0x160
mov dword [esp], eax
call sym._LoadStringW_16
mov eax, dword [0x40a020]
sub esp, 0x10
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], 0x40af9c
mov dword [esp + 4], 0x161
mov dword [esp], eax
call sym._LoadStringW_16
lea eax, [ebp - 0x26c]
sub esp, 0x10
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareMicrosoftNotepad
mov dword [esp], 0x80000001
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
je 0x405fa8
lea edx, [ebp - 0x21c]
xor eax, eax
mov ecx, 0xb
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [0x40a020]
mov dword [esp + 4], 0x300
mov dword [ebp - 0x220], 0x30
mov dword [esp], eax
mov dword [ebp - 0x218], dbg.NOTEPAD_WndProc
mov dword [ebp - 0x20c], eax
call sym._LoadIconW_8
sub esp, 8
mov dword [ebp - 0x208], eax
mov dword [esp], 0x32
call sym._GetSystemMetrics_4
sub esp, 4
mov ebx, eax
mov dword [esp], 0x31
call sym._GetSystemMetrics_4
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [0x40a020]
mov dword [esp + 0x14], 0x8000
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x300
mov dword [esp], eax
call sym._LoadImageW_24
sub esp, 0x18
mov dword [ebp - 0x1f4], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call sym._LoadCursorW_8
mov dword [ebp - 0x200], 6
sub esp, 8
mov dword [ebp - 0x204], eax
mov dword [esp], esi
mov dword [ebp - 0x1fc], 0x201
mov dword [ebp - 0x1f8], str.Notepad
call sym._RegisterClassExW_4
mov edx, eax
sub esp, 4
xor eax, eax
test dx, dx
jne 0x405c60
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp], 0
call sym._GetSystemMetrics_4
mov dword [ebp - 0x280], eax
sub esp, 4
jmp 0x4059b5
mov dword [esp + 4], 1
mov dword [esp], 0x40b1fc
call sym._MonitorFromRect_8
lea edx, [ebp - 0x248]
mov dword [ebp - 0x248], 0x28
sub esp, 8
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._GetMonitorInfoW_8
mov ecx, dword [0x40b1fc]
mov ebx, dword [0x40b200]
mov eax, dword [0x40b204]
mov edx, dword [0x40b208]
sub esp, 8
cmp dword [ebp - 0x22c], ecx
jle 0x405cc1
cmp dword [ebp - 0x228], ebx
jg 0x4067b0
mov dword [ebp - 0x280], 0x80000000
mov edi, 0x80000000
sub eax, ecx
mov esi, dword [0x40a020]
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], 0x408330
mov dword [esp + 4], str.Notepad
mov dword [esp], 0
call sym._CreateWindowExW_48
mov dword [0x40a024], eax
sub esp, 0x30
test eax, eax
je 0x406839
mov eax, dword [0x40a020]
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], 0x40a8b8
mov dword [esp + 4], 0x176
mov dword [esp], eax
call sym._LoadStringW_16
sub esp, 0x10
cmp word [0x40a8b8], 0
je 0x4067f3
mov eax, 0x40a8b8
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x405d80
sub eax, 0x40a8b6
add eax, 0x40a8b8
xor edx, edx
mov ecx, 0x2a
jmp 0x405da7
movzx ecx, word [edx + str..txt]
mov word [eax + edx], cx
add edx, 2
test cx, cx
jne 0x405da0
cmp word [eax], 0
je 0x4067e9
mov ebx, eax
nop
add ebx, 2
cmp word [ebx], 0
jne 0x405dc0
sub ebx, eax
add ebx, 2
add ebx, eax
mov eax, dword [0x40a020]
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x175
mov dword [esp], eax
call sym._LoadStringW_16
sub esp, 0x10
cmp word [ebx], 0
je 0x4067df
mov eax, ebx
add eax, 2
cmp word [eax], 0
jne 0x405e00
sub eax, ebx
add eax, 2
add eax, ebx
xor edx, edx
mov ecx, 0x2a
jmp 0x405e27
movzx ecx, word [edx + 0x408300]
mov word [eax + edx], cx
add edx, 2
test cx, cx
jne 0x405e20
cmp word [eax], 0
je 0x4067d5
mov edx, eax
nop
add edx, 2
cmp word [edx], 0
jne 0x405e40
sub edx, eax
add edx, 2
xor ecx, ecx
xor ebx, ebx
mov word [eax + edx], cx
mov eax, dword [0x40a024]
mov esi, dword [0x40a090]
mov dword [0x40b1f4], 0
mov dword [esp], eax
mov dword [0x40b1f8], 0
test esi, esi
setne bl
call sym._GetMenu_4
shl ebx, 3
sub esp, 4
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x264]
mov dword [esp + 4], 0x119
mov dword [esp], eax
call sym._CheckMenuItem_12
sub esp, 0xc
call dbg.DIALOG_FileNew
mov eax, dword [ebp - 0x288]
mov dword [esp + 4], eax
mov eax, dword [0x40a024]
mov dword [esp], eax
call sym._ShowWindow_8
mov eax, dword [0x40a024]
sub esp, 8
mov dword [esp], eax
call sym._UpdateWindow_4
mov eax, dword [0x40a024]
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], 1
call sym._DragAcceptFiles_8
sub esp, 8
call dword [sym.imp.kernel32.dll_GetCommandLineW]
call dbg.HandleCommandLine
mov eax, dword [ebp - 0x284]
mov dword [esp + 4], 0x203
mov dword [esp], eax
call sym._LoadAcceleratorsW_8
sub esp, 8
mov esi, eax
jmp 0x405f30
mov eax, dword [0x40a028]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._IsDialogMessageW_8
sub esp, 8
test eax, eax
je 0x405f70
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym._GetMessageW_16
sub esp, 0x10
test eax, eax
jne 0x405f18
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 [0x40a024]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._TranslateAcceleratorW_12
sub esp, 0xc
test eax, eax
jne 0x405f30
mov dword [esp], ebx
call sym._TranslateMessage_4
sub esp, 4
mov dword [esp], ebx
call sym._DispatchMessageW_4
sub esp, 4
jmp 0x405f30
mov eax, dword [ebp - 0x26c]
lea edi, [ebp - 0x248]
mov dword [esp + 0x14], esi
lea ebx, [ebp - 0x264]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.fWrap
mov dword [esp], eax
mov dword [ebp - 0x220], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x406008
cmp dword [ebp - 0x264], 4
jne 0x406008
mov eax, dword [ebp - 0x248]
mov dword [0x40a090], eax
lea esi, [esi]
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosX
mov dword [esp], eax
mov dword [ebp - 0x220], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x406060
cmp dword [ebp - 0x264], 4
jne 0x406060
mov eax, dword [ebp - 0x248]
mov dword [0x40b1fc], eax
lea esi, [esi]
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosY
mov dword [esp], eax
mov dword [ebp - 0x220], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x4060b0
cmp dword [ebp - 0x264], 4
jne 0x4060b0
mov eax, dword [ebp - 0x248]
mov dword [0x40b200], eax
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosDX
mov dword [esp], eax
mov dword [ebp - 0x220], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x406100
cmp dword [ebp - 0x264], 4
jne 0x406100
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x280], eax
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.iWindowPosDY
mov dword [esp], eax
mov dword [ebp - 0x220], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x406150
cmp dword [ebp - 0x264], 4
jne 0x406150
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfCharSet
mov dword [esp], eax
mov dword [ebp - 0x220], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x4061a0
cmp dword [ebp - 0x264], 4
jne 0x4061a0
mov eax, dword [ebp - 0x248]
mov byte [0x40a04b], al
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfClipPrecision
mov dword [esp], eax
mov dword [ebp - 0x220], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x4061f0
cmp dword [ebp - 0x264], 4
jne 0x4061f0
mov eax, dword [ebp - 0x248]
mov byte [0x40a04d], al
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfEscapement
mov dword [esp], eax
mov dword [ebp - 0x220], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x406240
cmp dword [ebp - 0x264], 4
jne 0x406240
mov eax, dword [ebp - 0x248]
mov dword [0x40a03c], eax
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfItalic
mov dword [esp], eax
mov dword [ebp - 0x220], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x406290
cmp dword [ebp - 0x264], 4
jne 0x406290
mov eax, dword [ebp - 0x248]
mov byte [0x40a048], al
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfOrientation
mov dword [esp], eax
mov dword [ebp - 0x220], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x4062e0
cmp dword [ebp - 0x264], 4
jne 0x4062e0
mov eax, dword [ebp - 0x248]
mov dword [0x40a040], eax
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfOutPrecision
mov dword [esp], eax
mov dword [ebp - 0x220], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x406330
cmp dword [ebp - 0x264], 4
jne 0x406330
mov eax, dword [ebp - 0x248]
mov byte [0x40a04c], al
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfPitchAndFamily
mov dword [esp], eax
mov dword [ebp - 0x220], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x406380
cmp dword [ebp - 0x264], 4
jne 0x406380
mov eax, dword [ebp - 0x248]
mov byte [0x40a04f], al
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfQuality
mov dword [esp], eax
mov dword [ebp - 0x220], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x4063d0
cmp dword [ebp - 0x264], 4
jne 0x4063d0
mov eax, dword [ebp - 0x248]
mov byte [0x40a04e], al
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfStrikeOut
mov dword [esp], eax
mov dword [ebp - 0x220], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x406420
cmp dword [ebp - 0x264], 4
jne 0x406420
mov eax, dword [ebp - 0x248]
mov byte [0x40a04a], al
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfUnderline
mov dword [esp], eax
mov dword [ebp - 0x220], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x406470
cmp dword [ebp - 0x264], 4
jne 0x406470
mov eax, dword [ebp - 0x248]
mov byte [0x40a049], al
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.lfWeight
mov dword [esp], eax
mov dword [ebp - 0x220], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x4064c0
cmp dword [ebp - 0x264], 4
jne 0x4064c0
mov eax, dword [ebp - 0x248]
mov dword [0x40a044], eax
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginTop
mov dword [esp], eax
mov dword [ebp - 0x220], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x406510
cmp dword [ebp - 0x264], 4
jne 0x406510
mov eax, dword [ebp - 0x248]
mov dword [0x40ad84], eax
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginBottom
mov dword [esp], eax
mov dword [ebp - 0x220], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x406560
cmp dword [ebp - 0x264], 4
jne 0x406560
mov eax, dword [ebp - 0x248]
mov dword [0x40ad88], eax
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginLeft
mov dword [esp], eax
mov dword [ebp - 0x220], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x4065b0
cmp dword [ebp - 0x264], 4
jne 0x4065b0
mov eax, dword [ebp - 0x248]
mov dword [0x40ad8c], eax
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.iMarginRight
mov dword [esp], eax
mov dword [ebp - 0x220], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x406600
cmp dword [ebp - 0x264], 4
jne 0x406600
mov eax, dword [ebp - 0x248]
mov dword [0x40ad90], eax
nop
mov eax, dword [ebp - 0x280]
add eax, dword [0x40b1fc]
mov dword [esp + 0x10], edi
lea edi, [ebp - 0x268]
mov dword [0x40b204], eax
mov eax, dword [ebp - 0x28c]
add eax, dword [0x40b200]
mov dword [esp + 0x14], ebx
mov dword [0x40b208], eax
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.iPointSize
mov dword [esp], eax
mov dword [ebp - 0x264], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x406670
cmp dword [ebp - 0x268], 4
je 0x4067fd
mov eax, dword [ebp - 0x26c]
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.lfFaceName
mov dword [esp], eax
mov dword [ebp - 0x264], 0x40
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x4066d8
cmp dword [ebp - 0x268], 1
jne 0x4066d8
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [esi + eax]
add eax, 2
mov word [eax + 0x40a04e], dx
test dx, dx
jne 0x4066c0
lea esi, [esi]
nop
mov eax, dword [ebp - 0x26c]
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.szHeader
mov dword [esp], eax
mov dword [ebp - 0x264], 0x208
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x406738
cmp dword [ebp - 0x268], 1
jne 0x406738
xor eax, eax
nop
movzx edx, word [esi + eax]
add eax, 2
mov word [eax + 0x40ad92], dx
test dx, dx
jne 0x406720
lea esi, [esi]
nop
mov eax, dword [ebp - 0x26c]
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.szTrailer
mov dword [esp], eax
mov dword [ebp - 0x264], 0x208
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x406798
cmp dword [ebp - 0x268], 1
jne 0x406798
xor eax, eax
nop
movzx edx, word [esi + eax]
add eax, 2
mov word [eax + 0x40af9a], dx
test dx, dx
jne 0x406780
lea esi, [esi]
nop
mov eax, dword [ebp - 0x26c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
jmp 0x405b3d
cmp dword [ebp - 0x234], eax
jg 0x405cc1
cmp dword [ebp - 0x230], edx
jg 0x405cc1
mov dword [ebp - 0x280], ecx
mov edi, ebx
jmp 0x405cd0
mov edx, 2
jmp 0x405e4e
mov eax, 2
jmp 0x405e0e
mov ebx, 2
jmp 0x405dce
mov eax, 2
jmp 0x405d8e
call dbg.get_dpi
mov edx, dword [ebp - 0x248]
mov dword [esp + 8], 0x2d0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x248]
sar eax, 0x1f
xor edx, eax
sub edx, eax
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_MulDiv]
neg eax
sub esp, 0xc
mov dword [0x40a034], eax
jmp 0x406670
call dbg.ShowLastError
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]