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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x5f3008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x616724]
push esi
push edi
push ebx
mov dword [ebp - 0x44], eax
mov word [ebp - 0x3c], 0xfeff
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46301d
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 0x463003
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 [ebp - 0x44]
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call fcn.00560853
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 4
push 0
lea eax, [ebp - 0x40]
push eax
push 2
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ecx, byte [ebx + 0x5448]
movzx eax, byte [ebx + 0x5447]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x5446]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x18]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x463059
xor ecx, ecx
jmp 0x46305c
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x463078
sub eax, ecx
lea esi, [ebp - 0x18]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
jmp 0x46307a
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.Palette00
push str.NormalColor
call esi
movzx ecx, byte [ebx + 0x544b]
movzx eax, byte [ebx + 0x544a]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x5449]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x18]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x4630d4
xor ecx, ecx
jmp 0x4630d7
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x4630f9
sub eax, ecx
lea esi, [ebp - 0x18]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4630fb
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.Palette01
push str.NormalColor
call esi
movzx ecx, byte [ebx + 0x544e]
movzx eax, byte [ebx + 0x544d]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x544c]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x18]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x46314f
xor ecx, ecx
jmp 0x463152
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x463174
sub eax, ecx
lea esi, [ebp - 0x18]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x463176
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.Palette02
push str.NormalColor
call esi
movzx ecx, byte [ebx + 0x5451]
movzx eax, byte [ebx + 0x5450]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x544f]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x18]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x4631ca
xor ecx, ecx
jmp 0x4631cd
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x4631ef
sub eax, ecx
lea esi, [ebp - 0x18]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4631f1
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.Palette03
push str.NormalColor
call esi
movzx ecx, byte [ebx + 0x5454]
movzx eax, byte [ebx + 0x5453]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x5452]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x18]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x463245
xor ecx, ecx
jmp 0x463248
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x46326a
sub eax, ecx
lea esi, [ebp - 0x18]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x46326c
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.Palette04
push str.NormalColor
call esi
movzx ecx, byte [ebx + 0x5457]
movzx eax, byte [ebx + 0x5456]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x5455]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x18]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x4632c0
xor ecx, ecx
jmp 0x4632c3
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x4632e5
sub eax, ecx
lea esi, [ebp - 0x18]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4632e7
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.Palette05
push str.NormalColor
call esi
movzx ecx, byte [ebx + 0x545a]
movzx eax, byte [ebx + 0x5459]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x5458]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x18]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x46333b
xor ecx, ecx
jmp 0x46333e
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x463360
sub eax, ecx
lea esi, [ebp - 0x18]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x463362
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.Palette06
push str.NormalColor
call esi
movzx ecx, byte [ebx + 0x545d]
movzx eax, byte [ebx + 0x545c]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x545b]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x18]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x4633b6
xor ecx, ecx
jmp 0x4633b9
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x4633db
sub eax, ecx
lea esi, [ebp - 0x18]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4633dd
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.Palette07
push str.NormalColor
call esi
movzx ecx, byte [ebx + 0x5460]
movzx eax, byte [ebx + 0x545f]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x545e]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x18]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x463431
xor ecx, ecx
jmp 0x463434
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x463456
sub eax, ecx
lea esi, [ebp - 0x18]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x463458
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.Palette08
push str.NormalColor
call esi
movzx ecx, byte [ebx + 0x5463]
movzx eax, byte [ebx + 0x5462]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x5461]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x18]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x4634ac
xor ecx, ecx
jmp 0x4634af
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x4634d1
sub eax, ecx
lea esi, [ebp - 0x18]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4634d3
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.Palette09
push str.NormalColor
call esi
movzx ecx, byte [ebx + 0x5466]
movzx eax, byte [ebx + 0x5465]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x5464]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x18]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x463527
xor ecx, ecx
jmp 0x46352a
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x46354c
sub eax, ecx
lea esi, [ebp - 0x18]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x46354e
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.Palette10
push str.NormalColor
call esi
movzx ecx, byte [ebx + 0x5469]
movzx eax, byte [ebx + 0x5468]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x5467]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x18]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x4635a2
xor ecx, ecx
jmp 0x4635a5
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x4635c7
sub eax, ecx
lea esi, [ebp - 0x18]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4635c9
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.Palette11
push str.NormalColor
call esi
movzx ecx, byte [ebx + 0x546c]
movzx eax, byte [ebx + 0x546b]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x546a]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x18]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x46361d
xor ecx, ecx
jmp 0x463620
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x463642
sub eax, ecx
lea esi, [ebp - 0x18]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x463644
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.Palette12
push str.NormalColor
call esi
movzx ecx, byte [ebx + 0x546f]
movzx eax, byte [ebx + 0x546e]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x546d]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x18]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x463698
xor ecx, ecx
jmp 0x46369b
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x4636bd
sub eax, ecx
lea esi, [ebp - 0x18]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4636bf
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.Palette13
push str.NormalColor
call esi
movzx ecx, byte [ebx + 0x5472]
movzx eax, byte [ebx + 0x5471]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x5470]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x18]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x463713
xor ecx, ecx
jmp 0x463716
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x463738
sub eax, ecx
lea esi, [ebp - 0x18]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x46373a
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.Palette14
push str.NormalColor
call esi
movzx ecx, byte [ebx + 0x5475]
movzx eax, byte [ebx + 0x5474]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x5473]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x18]
push ecx
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
add esp, 0x10
cmp eax, 0xf
jge 0x46378e
xor ecx, ecx
jmp 0x463791
lea ecx, [eax - 0xf]
cmp ecx, eax
jge 0x4637b3
sub eax, ecx
lea esi, [ebp - 0x18]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4637b5
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.Palette15
push str.NormalColor
call esi
push ebx
push 0
push 0
push 0
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056060a
mov esp, ebp
pop ebp
ret 4