Function at 0x4637f0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5f3008]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x616724]
push esi
push edi
push ebx
mov dword [esp + 0x10], eax
mov word [esp + 0x14], 0xfeff
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4638c7
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4638ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x7d0
mov esi, eax
call fcn.00560858
add esp, 4
mov edi, eax
push esi
push 0x851
push 0x5aabc8
push 0x5aa1dc
push 0x1f4
push edi
call fcn.00406c50
add esp, 0x18
push 0x30
push 0x591508
push edi
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call fcn.00560853
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 4
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebx + 0x4c78], 0
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebx
je 0x4638de
push 0x5b2b0c
jmp 0x4638e3
push 0x5b066c
push str.PageNumber
push str.ScrapPage
call edi
cmp byte [ebx + 0x5489], 0
push ebx
je 0x463900
push 0x5b2b0c
jmp 0x463905
push 0x5b066c
push str.TotalPageNumber
push str.ScrapPage
call edi
movsx esi, word [ebx + 0x4c66]
lea eax, [esp + 0x38]
push esi
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
sar esi, 0x1f
xor edx, edx
and esi, 1
mov ecx, eax
inc esi
add esp, 0x10
sub ecx, esi
cmp eax, esi
cmovl ecx, edx
cmp ecx, eax
jge 0x463963
sub eax, ecx
lea esi, [esp + 0x38]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x463965
xor eax, eax
xor ecx, ecx
push ebx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
push eax
push str.PageNumberPosition
push str.ScrapPage
call edi
push ebx
lea eax, [ebx + 0x4cfa]
push eax
push str.FaceNameRuler
push str.ScrapFont
call edi
movsd xmm3, qword [ebx + 0x4e88]
lea ecx, [esp + 0x18]
push 1
mov edx, 3
call fcn.00407630
add esp, 4
lea eax, [esp + 0x18]
push ebx
push eax
push str.FontSizeRuler
push str.ScrapFont
call edi
push ebx
lea eax, [ebx + 0x4d3a]
push eax
push str.FaceNamePageN
push str.ScrapFont
call edi
movsd xmm3, qword [ebx + 0x4e90]
lea ecx, [esp + 0x18]
push 1
mov edx, 3
call fcn.00407630
add esp, 4
lea eax, [esp + 0x18]
push ebx
push eax
push str.FontSizePageN
push str.ScrapFont
call edi
push ebx
lea eax, [ebx + 0x4dba]
push eax
push str.FaceNamePole
push str.ScrapFont
call edi
movsd xmm3, qword [ebx + 0x4e98]
lea ecx, [esp + 0x18]
push 1
mov edx, 3
call fcn.00407630
add esp, 4
lea eax, [esp + 0x18]
push ebx
push eax
push str.FontSizePole
push str.ScrapFont
call edi
cmp byte [ebx + 0x4ec2], 0
push ebx
je 0x463a52
push 0x5b2b0c
jmp 0x463a57
push 0x5b066c
push str.FacePoleBold
push str.ScrapFont
call edi
cmp byte [ebx + 0x4f16], 0
push ebx
je 0x463a74
push 0x5b2b0c
jmp 0x463a79
push 0x5b066c
push str.RulerTop
push str.ScrapSetting
call edi
cmp byte [ebx + 0x4f17], 0
push ebx
je 0x463a96
push 0x5b2b0c
jmp 0x463a9b
push 0x5b066c
push str.RulerLeft
push str.ScrapSetting
call edi
cmp byte [ebx + 0x4f18], 0
push ebx
je 0x463ab8
push 0x5b2b0c
jmp 0x463abd
push 0x5b066c
push str.Return
push str.ScrapSetting
call edi
cmp byte [ebx + 0x4f19], 0
push ebx
je 0x463ada
push 0x5b2b0c
jmp 0x463adf
push 0x5b066c
push 0x5b0df4
push str.ScrapSetting
call edi
cmp byte [ebx + 0x4f1a], 0
push ebx
je 0x463afc
push 0x5b2b0c
jmp 0x463b01
push 0x5b066c
push str.PageFrame
push str.ScrapSetting
call edi
cmp byte [ebx + 0x4f1b], 0
push ebx
je 0x463b1e
push 0x5b2b0c
jmp 0x463b23
push 0x5b066c
push str.AreaSeparator
push str.ScrapSetting
call edi
cmp byte [ebx + 0x53c2], 0
push ebx
je 0x463b40
push 0x5b2b0c
jmp 0x463b45
push 0x5b066c
push str.MouseWheel
push str.ScrapSetting
call edi
cmp byte [ebx + 0x53a8], 0
push ebx
je 0x463b62
push 0x5b2b0c
jmp 0x463b67
push 0x5b066c
push str.Hashira
push str.ScrapSetting
call edi
movsd xmm3, qword [ebx + 0x53b0]
lea ecx, [esp + 0x18]
push 3
mov edx, 5
call fcn.00407630
add esp, 4
lea eax, [esp + 0x18]
push ebx
push eax
push str.HashiraHoseiX
push str.ScrapSetting
call edi
movsd xmm3, qword [ebx + 0x53b8]
lea ecx, [esp + 0x18]
push 3
mov edx, 5
call fcn.00407630
add esp, 4
lea eax, [esp + 0x18]
push ebx
push eax
push str.HashiraHoseiY
push str.ScrapSetting
call edi
cmp byte [ebx + 0x53c4], 0
push ebx
je 0x463bde
push 0x5b2b0c
jmp 0x463be3
push 0x5b066c
push str.TPageNumber
push str.ScrapSetting
call edi
movzx ecx, byte [ebx + 0x5412]
movzx eax, byte [ebx + 0x5411]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x5410]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x38]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x463c2c
xor ecx, ecx
jmp 0x463c2f
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x463c53
sub eax, ecx
lea esi, [esp + 0x38]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x463c55
xor eax, eax
xor ecx, ecx
push ebx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
push eax
push str.Standard
push str.ScrapColor
call edi
movzx ecx, byte [ebx + 0x5415]
movzx eax, byte [ebx + 0x5414]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x5413]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x38]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x463cab
xor ecx, ecx
jmp 0x463cae
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x463cd2
sub eax, ecx
lea esi, [esp + 0x38]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x463cd4
xor eax, eax
xor ecx, ecx
push ebx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
push eax
push str.Rubi
push str.ScrapColor
call edi
movzx ecx, byte [ebx + 0x5418]
movzx eax, byte [ebx + 0x5417]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x5416]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x38]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x463d2a
xor ecx, ecx
jmp 0x463d2d
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x463d51
sub eax, ecx
lea esi, [esp + 0x38]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x463d53
xor eax, eax
xor ecx, ecx
push ebx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
push eax
push str.Dotmark
push str.ScrapColor
call edi
movzx ecx, byte [ebx + 0x541b]
movzx eax, byte [ebx + 0x541a]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x5419]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x38]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x463da9
xor ecx, ecx
jmp 0x463dac
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x463dd0
sub eax, ecx
lea esi, [esp + 0x38]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x463dd2
xor eax, eax
xor ecx, ecx
push ebx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
push eax
push str.Linemark
push str.ScrapColor
call edi
movzx ecx, byte [ebx + 0x541e]
movzx eax, byte [ebx + 0x541d]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x541c]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x38]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x463e28
xor ecx, ecx
jmp 0x463e2b
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x463e4f
sub eax, ecx
lea esi, [esp + 0x38]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x463e51
xor eax, eax
xor ecx, ecx
push ebx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
push eax
push str.Rule
push str.ScrapColor
call edi
movzx ecx, byte [ebx + 0x5421]
movzx eax, byte [ebx + 0x5420]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x541f]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x38]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x463ea7
xor ecx, ecx
jmp 0x463eaa
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x463ece
sub eax, ecx
lea esi, [esp + 0x38]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x463ed0
xor eax, eax
xor ecx, ecx
push ebx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
push eax
push str.Select
push str.ScrapColor
call edi
movzx ecx, byte [ebx + 0x5424]
movzx eax, byte [ebx + 0x5423]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x5422]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x38]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x463f26
xor ecx, ecx
jmp 0x463f29
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x463f4d
sub eax, ecx
lea esi, [esp + 0x38]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x463f4f
xor eax, eax
xor ecx, ecx
push ebx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
push eax
push str.SelectHighlight
push str.ScrapColor
call edi
movzx ecx, byte [ebx + 0x5427]
movzx eax, byte [ebx + 0x5426]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x5425]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x38]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x463fa5
xor ecx, ecx
jmp 0x463fa8
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x463fcc
sub eax, ecx
lea esi, [esp + 0x38]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x463fce
xor eax, eax
xor ecx, ecx
push ebx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
push eax
push str.Page
push str.ScrapColor
call edi
movzx ecx, byte [ebx + 0x542a]
movzx eax, byte [ebx + 0x5429]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x5428]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x38]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x464024
xor ecx, ecx
jmp 0x464027
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x46404b
sub eax, ecx
lea esi, [esp + 0x38]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x46404d
xor eax, eax
xor ecx, ecx
push ebx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
push eax
push str.Pagenumber
push str.ScrapColor
call edi
movzx ecx, byte [ebx + 0x542d]
movzx eax, byte [ebx + 0x542c]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x542b]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x38]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x4640a3
xor ecx, ecx
jmp 0x4640a6
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x4640ca
sub eax, ecx
lea esi, [esp + 0x38]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4640cc
xor eax, eax
xor ecx, ecx
push ebx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
push eax
push str.Hashira
push str.ScrapColor
call edi
movzx ecx, byte [ebx + 0x5430]
movzx eax, byte [ebx + 0x542f]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x542e]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x38]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x464122
xor ecx, ecx
jmp 0x464125
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x464149
sub eax, ecx
lea esi, [esp + 0x38]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x46414b
xor eax, eax
xor ecx, ecx
push ebx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
push eax
push str.Border
push str.ScrapColor
call edi
movzx ecx, byte [ebx + 0x5433]
movzx eax, byte [ebx + 0x5432]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x5431]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x38]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x4641a1
xor ecx, ecx
jmp 0x4641a4
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x4641c8
sub eax, ecx
lea esi, [esp + 0x38]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4641ca
xor eax, eax
xor ecx, ecx
push ebx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
push eax
push str.Return
push str.ScrapColor
call edi
movzx ecx, byte [ebx + 0x5436]
movzx eax, byte [ebx + 0x5435]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x5434]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x38]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x464220
xor ecx, ecx
jmp 0x464223
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x464247
sub eax, ecx
lea esi, [esp + 0x38]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x464249
xor eax, eax
xor ecx, ecx
push ebx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
push eax
push 0x5b0df4
push str.ScrapColor
call edi
movzx ecx, byte [ebx + 0x5439]
movzx eax, byte [ebx + 0x5438]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x5437]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x38]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x46429f
xor ecx, ecx
jmp 0x4642a2
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x4642c6
sub eax, ecx
lea esi, [esp + 0x38]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4642c8
xor eax, eax
xor ecx, ecx
push ebx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
push eax
push str.AreaSeparator
push str.ScrapColor
call edi
movzx ecx, byte [ebx + 0x543c]
movzx eax, byte [ebx + 0x543b]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x543a]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x38]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x46431e
xor ecx, ecx
jmp 0x464321
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x464345
sub eax, ecx
lea esi, [esp + 0x38]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x464347
xor eax, eax
xor ecx, ecx
push ebx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
push eax
push str.PageFrame
push str.ScrapColor
call edi
movzx ecx, byte [ebx + 0x543f]
movzx eax, byte [ebx + 0x543e]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x543d]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x38]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x46439d
xor ecx, ecx
jmp 0x4643a0
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x4643c4
sub eax, ecx
lea esi, [esp + 0x38]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4643c6
xor eax, eax
xor ecx, ecx
push ebx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
push eax
push str.PageFrameC
push str.ScrapColor
call edi
movzx ecx, byte [ebx + 0x5442]
movzx eax, byte [ebx + 0x5441]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x5440]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x38]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x46441c
xor ecx, ecx
jmp 0x46441f
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x464443
sub eax, ecx
lea esi, [esp + 0x38]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x464445
xor eax, eax
xor ecx, ecx
push ebx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
push eax
push str.Ruler
push str.ScrapColor
call edi
movzx ecx, byte [ebx + 0x5445]
movzx eax, byte [ebx + 0x5444]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x5443]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x38]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x46449b
xor ecx, ecx
jmp 0x46449e
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x4644c2
sub eax, ecx
lea esi, [esp + 0x38]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4644c4
xor eax, eax
xor ecx, ecx
push ebx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
push eax
push str.Hyperlink
push str.ScrapColor
call edi
push ebx
push 0
push 0
push 0
call edi
push 0x40
push 0x591508
push 0x5b2be8
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 4