Function at 0x4d0a10
Capabilities:
Check if file exists
Delete file
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x541793
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4d1192
lea ecx, [esp + 0x8c]
call dword [sym.imp.libUtils.module_public:_void___thiscall_xmlElement::constructor_void_]
mov dword [esp + 0xe0], 0
mov ecx, esi
call fcn.0051aef0
mov ecx, dword [esi]
lea eax, [esp + 0x8c]
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 + 0xa4]
mov eax, dword [esp + 0xa8]
cmp edi, eax
jbe 0x4d0ab3
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0xa8]
mov esi, dword [esp + 0x98]
mov ebx, dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CCommand::bind_int__wchar_t_const___int_]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
jmp 0x4d0ad0
mov dword [esp + 0x10], eax
cmp dword [esp + 0xa4], eax
jbe 0x4d0ae3
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test esi, esi
je 0x4d0af0
cmp esi, dword [esp + 0x98]
je 0x4d0af6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, dword [esp + 0x10]
je 0x4d112e
lea ecx, [esp + 0x1c]
call dword [0x55a6c4]
mov byte [esp + 0xe0], 1
lea ecx, [esp + 0x2c]
call dword [0x55a6c4]
mov byte [esp + 0xe0], 2
lea ecx, [esp + 0x28]
call dword [0x55a6c4]
mov byte [esp + 0xe0], 3
push 0x55ae9c
lea ecx, [esp + 0x4c]
call dword [0x55a504]
mov byte [esp + 0xe0], 4
push str.name
lea ecx, [esp + 0x5c]
call dword [0x55a504]
mov byte [esp + 0xe0], 5
test esi, esi
jne 0x4d1068
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4d0b7f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x5c]
push edx
mov ecx, edi
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__]
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov byte [esp + 0xe0], 4
lea ecx, [esp + 0x58]
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 + 0xe0], 3
lea ecx, [esp + 0x48]
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 + 0x58]
call dword [0x55a504]
mov byte [esp + 0xe0], 6
push str.ucid
lea ecx, [esp + 0x50]
call dword [0x55a504]
mov byte [esp + 0xe0], 7
test esi, esi
jne 0x4d106f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4d0c09
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, edi
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__]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov byte [esp + 0xe0], 6
lea ecx, [esp + 0x4c]
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 + 0xe0], 3
lea ecx, [esp + 0x54]
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 + 0x44]
call dword [0x55a504]
mov byte [esp + 0xe0], 8
push str.group
lea ecx, [esp + 0x60]
call dword [0x55a504]
mov byte [esp + 0xe0], 9
test esi, esi
jne 0x4d1076
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4d0c93
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x60]
push eax
mov ecx, edi
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__]
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov byte [esp + 0xe0], 8
lea ecx, [esp + 0x5c]
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 + 0xe0], 3
lea ecx, [esp + 0x40]
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 ecx, dword [0x5c6ed0]
push str.INSERT_OR_REPLACE_INTO_metaNodes_VALUES_____________
push ecx
lea ecx, [esp + 0x80]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::db::CCommand::constructor_class_wtw::db::CConnection___wchar_t_const__]
mov byte [esp + 0xe0], 0xa
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push edx
push 1
lea ecx, [esp + 0x84]
call ebx
mov eax, dword [esp + 0x2c]
push 0xffffffffffffffff
push eax
push 2
lea ecx, [esp + 0x84]
call ebx
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
push ecx
push 3
lea ecx, [esp + 0x84]
call ebx
push 0xffffffffffffffff
push 0x55ae9c
push 4
lea ecx, [esp + 0x84]
call ebx
lea ecx, [esp + 0x78]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CCommand::executeNoRead_void_]
test esi, esi
jne 0x4d107d
mov esi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
call esi
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4d0d60
call esi
mov eax, dword [edi + 0x18]
mov dword [esp + 0x10], eax
cmp eax, dword [edi + 0x1c]
jbe 0x4d0d6e
call esi
mov esi, dword [edi + 0xc]
mov edi, dword [esp + 0x10]
jmp 0x4d0d80
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4d108a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor ecx, ecx
mov eax, dword [esp + 0x18]
cmp eax, dword [ecx + 0x10]
jb 0x4d0da7
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x18], ecx
ja 0x4d0db7
cmp ecx, ecx
jbe 0x4d0dc5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
test esi, esi
je 0x4d0dd0
cmp esi, eax
je 0x4d0dda
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x10]
cmp edi, ecx
je 0x4d10aa
lea ecx, [esp + 0x24]
call dword [0x55a6c4]
mov byte [esp + 0xe0], 0xb
lea ecx, [esp + 0x20]
call dword [0x55a6c4]
mov byte [esp + 0xe0], 0xc
mov edx, dword [0x5c6ed0]
push str.INSERT_OR_REPLACE_INTO_metaComponents_VALUES_____________
push edx
lea ecx, [esp + 0x6c]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::db::CCommand::constructor_class_wtw::db::CConnection___wchar_t_const__]
mov byte [esp + 0xe0], 0xd
push 0x55ae9c
lea ecx, [esp + 0x64]
call dword [0x55a504]
mov byte [esp + 0xe0], 0xe
push str.default
lea ecx, [esp + 0x38]
call dword [0x55a504]
mov byte [esp + 0xe0], 0xf
test esi, esi
jne 0x4d1091
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4d0e6d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
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 eax, dword [eax]
push 0xa
push 0
push eax
call dword [sym.imp.MSVCR90.dll_wcstol]
add esp, 0xc
mov dword [esp + 0x30], eax
mov byte [esp + 0xe0], 0xe
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 + 0xe0], 0xd
lea ecx, [esp + 0x60]
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 + 0x3c]
call dword [0x55a504]
mov byte [esp + 0xe0], 0x10
push 0x5870b4
lea ecx, [esp + 0x54]
call dword [0x55a504]
mov byte [esp + 0xe0], 0x11
test esi, esi
jne 0x4d1098
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4d0f00
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x54]
push eax
mov ecx, edi
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__]
push eax
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov byte [esp + 0xe0], 0x10
lea ecx, [esp + 0x50]
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 + 0xe0], 0xd
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]
push 0x55ae9c
lea ecx, [esp + 0x48]
call dword [0x55a504]
mov byte [esp + 0xe0], 0x12
push 0x55d634
lea ecx, [esp + 0x40]
call dword [0x55a504]
mov byte [esp + 0xe0], 0x13
test esi, esi
jne 0x4d109f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4d0f8a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x40]
push edx
mov ecx, edi
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__]
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov byte [esp + 0xe0], 0x12
lea ecx, [esp + 0x3c]
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 + 0xe0], 0xd
lea ecx, [esp + 0x44]
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, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
push 1
lea ecx, [esp + 0x70]
call ebx
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push ecx
push 2
lea ecx, [esp + 0x70]
call ebx
mov edx, dword [esp + 0x20]
push 0xffffffffffffffff
push edx
push 3
lea ecx, [esp + 0x70]
call ebx
lea eax, [esp + 0x30]
push eax
push 4
lea ecx, [esp + 0x6c]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CCommand::bind_int__int_const__]
lea ecx, [esp + 0x64]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CCommand::executeNoRead_void_]
mov byte [esp + 0xe0], 0xc
lea ecx, [esp + 0x64]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CCommand::destructor_void_]
mov byte [esp + 0xe0], 0xb
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]
mov byte [esp + 0xe0], 0xa
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]
test esi, esi
jne 0x4d10a6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4d1060
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add edi, 0x44
jmp 0x4d0d80
mov eax, dword [esi]
jmp 0x4d0b74
mov eax, dword [esi]
jmp 0x4d0bfe
mov eax, dword [esi]
jmp 0x4d0c88
mov eax, dword [esi]
mov esi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
jmp 0x4d0d59
mov ecx, dword [eax]
jmp 0x4d0d94
mov eax, dword [esi]
jmp 0x4d0e62
mov eax, dword [esi]
jmp 0x4d0ef5
mov eax, dword [esi]
jmp 0x4d0f7f
mov eax, dword [esi]
jmp 0x4d1055
mov byte [esp + 0xe0], 3
lea ecx, [esp + 0x78]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CCommand::destructor_void_]
mov byte [esp + 0xe0], 2
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]
mov byte [esp + 0xe0], 1
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 + 0xe0], 0
lea ecx, [esp + 0x1c]
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, dword [esp + 0x14]
test eax, eax
jne 0x4d112a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x4d1111
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add dword [esp + 0x18], 0x44
mov eax, dword [esp + 0xa8]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
jmp 0x4d0ad0
mov eax, dword [eax]
jmp 0x4d1102
mov ecx, dword [0x5c6ed0]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CConnection::transactionCommit_void_]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
push edi
lea edx, [esp + 0x34]
push edx
mov edi, str..bak
call fcn.0040f2b0
add esp, 8
mov byte [esp + 0xe0], 0x14
mov eax, dword [eax]
push eax
call esi
mov byte [esp + 0xe0], 0
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 dword [esp + 0xe0], 0xffffffff
lea ecx, [esp + 0x8c]
call dword [sym.imp.libUtils.module_public_virtual:_void___thiscall_xmlElement::destructor_void_]
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4