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

Disassembly:
push 0xffffffffffffffff
push 0x542039
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xb4]
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b1ae3
lea ecx, [esp + 0x58]
call dword [sym.imp.libUtils.module_public:_void___thiscall_xmlElement::constructor_void_]
mov dword [esp + 0xac], 0
mov ecx, ebp
call fcn.0051aef0
mov ecx, dword [ebp]
lea eax, [esp + 0x58]
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 ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
cmp ebx, eax
jbe 0x4b16d5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x64]
mov edi, dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CCommand::bind_int__wchar_t_const___int_]
mov dword [esp + 0x3c], esi
add ebx, 0x18
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x70], eax
jbe 0x4b16fa
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test esi, esi
je 0x4b1704
cmp esi, dword [esp + 0x64]
je 0x4b170a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
lea eax, [ebx - 0x18]
cmp eax, dword [esp + 0x1c]
je 0x4b1a84
push 0x55ae9c
lea ecx, [esp + 0x28]
call dword [0x55a504]
mov byte [esp + 0xac], 1
push str.uuid
lea ecx, [esp + 0x34]
call dword [0x55a504]
mov byte [esp + 0xac], 2
test esi, esi
jne 0x4b1a17
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
lea ecx, [ebx - 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x4b1763
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
lea ecx, [ebx - 0x18]
call dword [sym.imp.libUtils.module_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const____thiscall_xmlElement::GetAttribute_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const___class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__]
mov ebp, eax
mov dword [esp + 0x1c], ebp
mov byte [esp + 0xac], 1
lea ecx, [esp + 0x30]
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 byte [esp + 0xac], 0
lea ecx, [esp + 0x24]
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 eax, ebp
call fcn.004cf9e0
test al, al
je 0x4b1a53
test esi, esi
jne 0x4b1a1e
mov esi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
call esi
xor eax, eax
lea ecx, [ebx - 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x4b17cb
call esi
mov ebp, dword [ebx]
cmp ebp, dword [ebx + 4]
jbe 0x4b17d4
call esi
mov esi, dword [ebx - 0xc]
jmp 0x4b17e0
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x4b1a2b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
lea ecx, [ebx - 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x4b1802
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [ebx + 4]
mov eax, dword [esp + 0x14]
cmp dword [eax], ebx
ja 0x4b1811
cmp ebx, ebx
jbe 0x4b1817
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
test esi, esi
je 0x4b1826
cmp esi, eax
je 0x4b182c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebp, ebx
je 0x4b1a4b
push 0x55ae9c
lea ecx, [esp + 0x2c]
call dword [0x55a504]
mov byte [esp + 0xac], 3
push 0x55d634
lea ecx, [esp + 0x30]
call dword [0x55a504]
mov byte [esp + 0xac], 4
test esi, esi
jne 0x4b1a32
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4b187d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [sym.imp.libUtils.module_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const____thiscall_xmlElement::GetAttribute_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const___class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x30]
push eax
mov ecx, ebp
call ebx
mov dword [esp + 0x18], eax
mov byte [esp + 0xac], 3
lea ecx, [esp + 0x2c]
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 byte [esp + 0xac], 0
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 0x55ae9c
lea ecx, [esp + 0x24]
call dword [0x55a504]
mov byte [esp + 0xac], 5
push str.name
lea ecx, [esp + 0x38]
call dword [0x55a504]
mov byte [esp + 0xac], 6
test esi, esi
jne 0x4b1a39
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4b1902
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
mov ecx, ebp
call ebx
mov ebx, eax
mov byte [esp + 0xac], 5
lea ecx, [esp + 0x34]
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 byte [esp + 0xac], 0
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
test esi, esi
jne 0x4b1a40
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4b1951
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
lea eax, [ebp + 0x3c]
push eax
lea ecx, [esp + 0x3c]
push ecx
call sub.libUtils.module_lutXMLRestorW
add esp, 8
mov byte [esp + 0xac], 7
mov edx, dword [0x5c6ed0]
push str.INSERT_OR_REPLACE_INTO_contactInfos_VALUES_____________
push edx
lea ecx, [esp + 0x4c]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::db::CCommand::constructor_class_wtw::db::CConnection___wchar_t_const__]
mov byte [esp + 0xac], 8
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
push 1
lea ecx, [esp + 0x50]
call edi
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
push 0xffffffffffffffff
push eax
push 2
lea ecx, [esp + 0x50]
call edi
mov eax, dword [ebx]
push 0xffffffffffffffff
push eax
push 3
lea ecx, [esp + 0x50]
call edi
mov edx, dword [esp + 0x38]
push 0xffffffffffffffff
push edx
push 4
lea ecx, [esp + 0x50]
call edi
lea ecx, [esp + 0x44]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CCommand::executeNoRead_void_]
mov byte [esp + 0xac], 7
lea ecx, [esp + 0x44]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CCommand::destructor_void_]
mov byte [esp + 0xac], 0
lea ecx, [esp + 0x38]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
test esi, esi
jne 0x4b1a47
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4b1a0b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x14]
add ebp, 0x44
jmp 0x4b17e0
mov eax, dword [esi]
jmp 0x4b1755
mov eax, dword [esi]
mov esi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
jmp 0x4b17c1
mov eax, dword [eax]
jmp 0x4b17f4
mov eax, dword [esi]
jmp 0x4b1872
mov eax, dword [esi]
jmp 0x4b18f7
mov eax, dword [esi]
jmp 0x4b1946
mov eax, dword [esi]
jmp 0x4b1a00
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x3c]
test esi, esi
jne 0x4b1a80
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
lea ecx, [ebx - 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x4b1a6d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x74]
mov ebp, dword [esp + 0xb4]
add ebx, 0x44
jmp 0x4b16e6
mov eax, dword [esi]
jmp 0x4b1a5f
mov ecx, dword [0x5c6ed0]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CConnection::transactionCommit_void_]
mov eax, dword [ebp]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
lea eax, [esp + 0x18]
push ebp
push eax
mov edi, str..bak
call fcn.0040f2b0
add esp, 8
mov byte [esp + 0xac], 9
mov eax, dword [eax]
push eax
call esi
mov byte [esp + 0xac], 0
lea ecx, [esp + 0x18]
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 + 0xac], 0xffffffff
lea ecx, [esp + 0x58]
call dword [sym.imp.libUtils.module_public_virtual:_void___thiscall_xmlElement::destructor_void_]
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 4