Function at 0x4049e0
Capabilities:
Check if file exists
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41808b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x192c
call fcn.00409ba0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], 0x80043298
mov dword [ebp - 0xd24], 0x4193d4
mov ecx, dword [esi + 8]
xor edi, edi
cmp ecx, edi
mov dword [ebp - 4], edi
je 0x404a49
push 1
call fcn.00403a90
mov ecx, dword [esi + 8]
push str._t_CProfileConverter::ConvertLastAppliedProfile___started_
call fcn.004037f0
mov ecx, dword [esi + 8]
push 1
call fcn.00403a90
mov eax, dword [ebp + 8]
push 0x104
lea ecx, [ebp - 0x120]
push eax
push ecx
call fcn.00409255
mov edx, dword [str.LastProfile.txt]
add esp, 0xc
lea eax, [ebp - 0x120]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x404a9e
mov eax, 0x8004329e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push 0x8000080
push 3
push edi
push edi
lea edx, [ebp - 0x120]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp + 8], ebx
jne 0x404adc
mov eax, 0x80043298
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x18], edi
mov ecx, 0x80
xor eax, eax
lea edi, [ebp - 0x320]
rep stosd dword es:[edi], eax
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x320]
push 0x1ff
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404bed
mov eax, dword [ebp - 0x18]
test eax, eax
jbe 0x404bed
mov edx, dword [ebp + 0xc]
mov ecx, esi
push edx
call fcn.00404cb0
mov ebx, eax
test ebx, ebx
mov dword [ebp + 0xc], ebx
jne 0x404b4f
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80043298
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, 0x306
xor eax, eax
lea edi, [ebp - 0x193c]
push 0x40
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x320]
lea edx, [ebp - 0x1938]
push ecx
push edx
mov byte [ebp - 4], 1
call fcn.00409255
add esp, 0xc
lea eax, [ebp - 0x193c]
mov ecx, esi
push eax
push ebx
call fcn.00404da0
cmp eax, 0x43297
mov dword [ebp - 0x14], eax
jne 0x404bd9
mov eax, dword [esi + 8]
test eax, eax
je 0x404bd9
lea ecx, [ebp - 0x1938]
lea edx, [ebp - 0xb20]
push ecx
push str._tSuccessfully_saved_the_last_applied_profile__s
push edx
call fcn.00409203
mov ecx, dword [esi + 8]
add esp, 0xc
lea eax, [ebp - 0xb20]
push eax
call fcn.004037f0
jmp 0x404bd9
push ebx
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00404d00
mov ebx, dword [ebp + 8]
jmp 0x404c26
mov eax, dword [esi + 8]
test eax, eax
je 0x404c26
lea ecx, [ebp - 0x120]
lea edx, [ebp - 0xb20]
push ecx
push str._t_FAILED__Failed_to_read_the_last_applied_profile_from_file_named__s
push edx
call fcn.00409203
mov ecx, dword [esi + 8]
add esp, 0xc
lea eax, [ebp - 0xb20]
push eax
call fcn.004037f0
mov ecx, dword [esi + 8]
call fcn.004039d0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x14]
cmp edi, 0x43297
jne 0x404c76
mov eax, dword [esi + 8]
test eax, eax
je 0x404c69
lea ecx, [ebp - 0x120]
lea edx, [ebp - 0xb20]
push ecx
push str._tDeleting_the_last_applied_profile_file_named__s
push edx
call fcn.00409203
mov ecx, dword [esi + 8]
add esp, 0xc
lea eax, [ebp - 0xb20]
push eax
call fcn.004037f0
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x404c9b
push 1
call fcn.00403a90
mov ecx, dword [esi + 8]
push str._t_CProfileConverter::ConvertLastAppliedProfile___completed_
call fcn.004037f0
mov ecx, dword [esi + 8]
push 1
call fcn.00403a90
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8