Function at 0x4ace10
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x542312
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, dword [esp + 0x74]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4acfc8
lea ecx, [esp + 0x18]
call dword [sym.imp.libUtils.module_public:_void___thiscall_xmlElement::constructor_void_]
mov dword [esp + 0x6c], 0
mov ecx, esi
call fcn.0051aef0
mov ecx, dword [esi]
lea eax, [esp + 0x18]
push eax
call fcn.0051e420
mov ecx, dword [0x5c6ed0]
add esp, 4
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CConnection::transactionBegin_void_]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, eax
jbe 0x4ace99
call ebx
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x24]
mov ebp, edi
nop
mov edi, eax
cmp dword [esp + 0x30], eax
jbe 0x4aceaa
call ebx
test esi, esi
je 0x4aceb4
cmp esi, dword [esp + 0x24]
je 0x4aceb6
call ebx
cmp ebp, edi
je 0x4acf6f
test esi, esi
jne 0x4acf58
call ebx
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4aced1
call ebx
push 0x55dfbc
lea edi, [ebp + 0x3c]
push 0x580280
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Replace]
test esi, esi
jne 0x4acf5f
call ebx
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4acef5
call ebx
push 0x55dfc4
push 0x580288
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Replace]
test esi, esi
jne 0x4acf63
call ebx
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4acf16
call ebx
push 0x561da4
push 0x580290
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Replace]
test esi, esi
jne 0x4acf67
call ebx
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4acf37
call ebx
push edi
call fcn.004acc70
test esi, esi
jne 0x4acf6b
call ebx
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4acf4c
call ebx
mov eax, dword [esp + 0x34]
add ebp, 0x44
jmp 0x4acea0
mov eax, dword [esi]
jmp 0x4aceca
mov eax, dword [esi]
jmp 0x4aceee
mov eax, dword [esi]
jmp 0x4acf0f
mov eax, dword [esi]
jmp 0x4acf30
mov eax, dword [esi]
jmp 0x4acf45
mov ecx, dword [0x5c6ed0]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CConnection::transactionCommit_void_]
mov edi, dword [esp + 0x74]
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
push edi
lea ecx, [esp + 0x78]
push ecx
mov edi, str..bak
call fcn.0040f2b0
add esp, 8
mov byte [esp + 0x6c], 1
mov eax, dword [eax]
push eax
call esi
mov byte [esp + 0x6c], 0
lea ecx, [esp + 0x74]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0x6c], 0xffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.libUtils.module_public_virtual:_void___thiscall_xmlElement::destructor_void_]
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 4