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

Disassembly:
push 0x3c
mov eax, 0x407db2
call fcn.00406d1a
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
xor esi, esi
cmp eax, esi
jne 0x4045bd
push str.Exception_TTLOG
push str.TencentTraveler
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.00406dbf
ret
mov dword [ebp - 4], esi
mov ebx, 0x409434
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00401d24
mov byte [ebp - 4], 1
push 4
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
cmp eax, esi
je 0x4045e2
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 0x404611
push str.Util::Module::GetCallstackInfoFileName
push str.TencentTraveler
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.00401848
jmp 0x4045b7
push dword [esi]
lea ecx, [ebp - 0x2c]
call fcn.00401ccb
push 1
mov ecx, esi
call fcn.0040282b
push 0x409f80
mov edi, str.TencentTraveler
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 0x409f7c
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 0x40492d
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.00403e7d
mov byte [ebp - 4], 2
push 0xff
push 0x409f78
lea eax, [ebp - 0x34]
push eax
call fcn.00403dfe
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 0x409f78
lea eax, [ebp - 0x34]
push eax
call fcn.00403dfe
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.00401848
push ebx
lea ecx, [ebp - 0x24]
call fcn.00401d24
mov byte [ebp - 4], 3
lea eax, [ebp - 0x24]
push eax
call fcn.00403e31
mov dword [esp], str.szINIFilePath
push edi
push 1
call esi
push dword [ebp - 0x24]
push edi
push 1
call esi
push 0x409f7c
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.00401d24
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.00401cf1
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 0x409f14
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 0x404819
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00401848
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00401848
jmp 0x404603
mov eax, dword [eax]
test eax, eax
je 0x404824
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.00401d24
mov byte [ebp - 4], 5
push dword [ebp - 0x48]
push 0x409edc
lea eax, [ebp - 0x28]
push eax
call fcn.00401cf1
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.0040355a
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x28]
call fcn.00403c81
mov byte [ebp - 4], 5
lea ecx, [ebp + 8]
call fcn.00401848
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.0040150d
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.00401ccb
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.00401848
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00401848
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00401848
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401848
or dword [ebp - 4], 0xffffffff
jmp 0x4045b7
push str.CreateFile
push edi
push 1
call esi
jmp 0x404600