Function at 0x4048b1
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0x3c
mov eax, 0x408638
call fcn.00407452
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
xor esi, esi
cmp eax, esi
jne 0x4048e6
push str.Exception_TTLOG
push 0x409638
push 1
call dword [sym.imp.TTUtilWidget.dll_public:_static_void___cdecl_TTLogDef::TT_Log_enum_ENUM_LOG_SERVERITY__wchar_t_const___wchar_t_const__]
add esp, 0xc
call fcn.004074f7
ret
mov dword [ebp - 4], esi
mov ebx, 0x409454
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00401ce9
mov byte [ebp - 4], 1
push 4
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
cmp eax, esi
je 0x40490b
mov dword [eax], esi
mov esi, eax
push esi
call dword [sym.imp.TTUtilWidget.dll_int___cdecl_Util::Module::GetCallstackInfoFileName_class_ATL::CComBSTR__]
pop ecx
test eax, eax
jne 0x40493a
push str.Util::Module::GetCallstackInfoFileName
push 0x409638
push 1
call dword [sym.imp.TTUtilWidget.dll_public:_static_void___cdecl_TTLogDef::TT_Log_enum_ENUM_LOG_SERVERITY__wchar_t_const___wchar_t_const__]
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00403496
jmp 0x4048e0
push dword [esi]
lea ecx, [ebp - 0x2c]
call fcn.00401c90
push 1
mov ecx, esi
call fcn.004028c4
push 0x409fdc
mov edi, 0x409638
push edi
push 1
mov esi, dword [sym.imp.TTUtilWidget.dll_public:_static_void___cdecl_TTLogDef::TT_Log_enum_ENUM_LOG_SERVERITY__wchar_t_const___wchar_t_const__]
call esi
push dword [ebp - 0x2c]
push edi
push 1
call esi
push 0x409fd8
push edi
push 1
call esi
add esp, 0x24
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x404c56
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
add eax, eax
mov dword [ebp - 0x44], eax
push 2
push 0
push 0
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea ecx, [ebp - 0x34]
call fcn.00404070
mov byte [ebp - 4], 2
push 0xff
push 0x409fd4
lea eax, [ebp - 0x34]
push eax
call fcn.00403ff1
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x3c], eax
push 0
lea ecx, [ebp - 0x3c]
push ecx
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0xfe
push 0x409fd4
lea eax, [ebp - 0x34]
push eax
call fcn.00403ff1
add esp, 0xc
push 0
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0x44]
push ecx
push dword [ebp - 0x44]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00403496
push ebx
lea ecx, [ebp - 0x24]
call fcn.00401ce9
mov byte [ebp - 4], 3
lea eax, [ebp - 0x24]
push eax
call fcn.00404024
mov dword [esp], str.szINIFilePath
push edi
push 1
call esi
push dword [ebp - 0x24]
push edi
push 1
call esi
push 0x409fd8
push edi
push 1
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.TTUtilWidget.dll_int___cdecl_Util::Module::GetCompileVerInfo_unsigned_short_int___unsigned_short_int___unsigned_short_int___unsigned_short_int__]
add esp, 0x34
push ebx
lea ecx, [ebp - 0x38]
call fcn.00401ce9
mov byte [ebp - 4], 4
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x18]
push eax
push str._d_d
lea eax, [ebp - 0x38]
push eax
call fcn.00401cb6
add esp, 0x10
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
push str.Detail1Path
push str.Info
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
call esi
push dword [ebp - 0x24]
push dword [ebp - 0x38]
push str.Build
push str.Info
call esi
push dword [ebp - 0x24]
push 0x409f70
push str.AppName
push str.Info
call esi
push dword [ebp - 0x24]
push edi
push str.AppCallName
push str.Info
call esi
and dword [ebp - 0x48], 0
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x404b42
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00403496
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00403496
jmp 0x40492c
mov eax, dword [eax]
test eax, eax
je 0x404b4d
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.00401ce9
mov byte [ebp - 4], 5
push dword [ebp - 0x48]
push 0x409f38
lea eax, [ebp - 0x28]
push eax
call fcn.00401cb6
add esp, 0xc
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push str.ExceptionType
mov edi, str.ExceptionInfo
push edi
call esi
push 8
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403767
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x28]
call fcn.00403e74
mov byte [ebp - 4], 5
lea ecx, [ebp + 8]
call fcn.00403496
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push str.ExceptionAddress
push edi
call esi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push dword [ebp - 0x24]
push eax
push str.CallStackAddresses
push edi
call esi
push dword [ebp - 0x24]
push ebx
push str.CallStackClasses
push edi
call esi
push dword [ebp - 0x24]
push ebx
push str.CallStackModules
push edi
call esi
push ebx
lea ecx, [ebp - 0x40]
call fcn.00401462
mov byte [ebp - 4], 7
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.TTUtilWidget.dll_void___cdecl_Util::Module::OutputCrashURLs_class_ATL::CComBSTR__]
pop ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00401c90
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push str.UrlReportPath
push edi
call esi
mov byte [ebp - 4], 5
push dword [ebp - 0x40]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00403496
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00403496
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00403496
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00403496
or dword [ebp - 4], 0xffffffff
jmp 0x4048e0
push str.CreateFile
push edi
push 1
call esi
jmp 0x404929