Function at 0x4668d0
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 0x46699d
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 0x466983
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x7d0
mov esi, eax
call fcn.00560858
add esp, 4
mov edi, eax
push esi
push 0x857
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]
mov esi, dword [ebx + 0x365cc]
lea eax, [ebp - 0x18]
push esi
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
sar esi, 0x1f
xor edx, edx
and esi, 1
mov ecx, eax
add esi, 9
add esp, 0x10
sub ecx, esi
cmp eax, esi
cmovl ecx, edx
cmp ecx, eax
jge 0x4669e7
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 0x4669e9
xor eax, eax
mov edi, 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.AdjustFolderColumn10
push str.Setting
call edi
mov esi, dword [ebx + 0x365d0]
lea eax, [ebp - 0x18]
push esi
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
sar esi, 0x1f
xor edx, edx
and esi, 1
mov ecx, eax
add esi, 9
add esp, 0x10
sub ecx, esi
cmp eax, esi
cmovl ecx, edx
cmp ecx, eax
jge 0x466a57
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 edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x466a59
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.AdjustFolderColumn11
push str.Setting
call edi
mov esi, dword [ebx + 0x365d4]
lea eax, [ebp - 0x18]
push esi
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
sar esi, 0x1f
xor edx, edx
and esi, 1
mov ecx, eax
add esi, 9
add esp, 0x10
sub ecx, esi
cmp eax, esi
cmovl ecx, edx
cmp ecx, eax
jge 0x466ac1
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 edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x466ac3
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.AdjustFolderColumn12
push str.Setting
call edi
mov esi, dword [ebx + 0x365d8]
lea eax, [ebp - 0x18]
push esi
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
sar esi, 0x1f
xor edx, edx
and esi, 1
mov ecx, eax
add esi, 9
add esp, 0x10
sub ecx, esi
cmp eax, esi
cmovl ecx, edx
cmp ecx, eax
jge 0x466b2b
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 edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x466b2d
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.AdjustFolderColumn13
push str.Setting
call edi
mov esi, dword [ebx + 0x365dc]
lea eax, [ebp - 0x18]
push esi
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
sar esi, 0x1f
xor edx, edx
and esi, 1
mov ecx, eax
add esi, 9
add esp, 0x10
sub ecx, esi
cmp eax, esi
cmovl ecx, edx
cmp ecx, eax
jge 0x466b95
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 edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x466b97
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.AdjustFolderColumn20
push str.Setting
call edi
mov esi, dword [ebx + 0x365e0]
lea eax, [ebp - 0x18]
push esi
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
sar esi, 0x1f
xor edx, edx
and esi, 1
mov ecx, eax
add esi, 9
add esp, 0x10
sub ecx, esi
cmp eax, esi
cmovl ecx, edx
cmp ecx, eax
jge 0x466bff
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 edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x466c01
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.AdjustFolderColumn21
push str.Setting
call edi
mov esi, dword [ebx + 0x365e4]
lea eax, [ebp - 0x18]
push esi
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
sar esi, 0x1f
xor edx, edx
and esi, 1
mov ecx, eax
add esi, 9
add esp, 0x10
sub ecx, esi
cmp eax, esi
cmovl ecx, edx
cmp ecx, eax
jge 0x466c69
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 edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x466c6b
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.AdjustFolderColumn22
push str.Setting
call edi
mov esi, dword [ebx + 0x365e8]
lea eax, [ebp - 0x18]
push esi
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
sar esi, 0x1f
xor edx, edx
and esi, 1
mov ecx, eax
add esi, 9
add esp, 0x10
sub ecx, esi
cmp eax, esi
cmovl ecx, edx
cmp ecx, eax
jge 0x466cd3
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 edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x466cd5
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.AdjustFolderColumn23
push str.Setting
call edi
mov esi, dword [ebx + 0x365ec]
lea eax, [ebp - 0x18]
push esi
push 0x5a9ffc
push 0xa
push eax
call fcn.00406c50
sar esi, 0x1f
xor edx, edx
and esi, 1
mov ecx, eax
add esi, 9
add esp, 0x10
sub ecx, esi
cmp eax, esi
cmovl ecx, edx
cmp ecx, eax
jge 0x466d3d
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 edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x466d3f
xor eax, eax
xor ecx, ecx
push ebx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
push str.AdjustFolderColumn24
push str.Setting
call edi
push ebx
push 0
push 0
push 0
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056060a
mov esp, ebp
pop ebp
ret 4