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

Disassembly:
push 0xffffffffffffffff
push 0x540851
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [0x5c7000]
add eax, 0x30
push eax
lea eax, [esp + 0x18]
push eax
mov edi, str..db_statusMap.xml
call fcn.0040f2b0
add esp, 8
mov dword [esp + 0x88], 0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4f250f
lea ecx, [esp + 0x34]
call dword [sym.imp.libUtils.module_public:_void___thiscall_xmlElement::constructor_void_]
mov byte [esp + 0x88], 1
lea ecx, [esp + 0x14]
call fcn.0051aef0
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.libUtils.module_lutXMLStandardParseF]
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0xc
push ecx
call esi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x34]
push eax
mov edi, str..bak
call fcn.0040f2b0
add esp, 8
mov byte [esp + 0x88], 2
mov eax, dword [eax]
push eax
call esi
mov byte [esp + 0x88], 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]
cmp byte [esp + 0x74], 0
je 0x4f24fd
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov edi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebp, eax
jbe 0x4f22ca
call edi
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x40]
mov edi, edi
mov esi, eax
cmp dword [esp + 0x4c], eax
jbe 0x4f22da
call edi
test ebx, ebx
je 0x4f22e4
cmp ebx, dword [esp + 0x40]
je 0x4f22e6
call edi
cmp ebp, esi
je 0x4f24fd
push 0x55ae9c
lea ecx, [esp + 0x20]
call dword [0x55a504]
mov byte [esp + 0x88], 3
push 0x5870b4
lea ecx, [esp + 0x1c]
call dword [0x55a504]
mov byte [esp + 0x88], 4
test ebx, ebx
jne 0x4f24e4
call edi
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4f232f
call edi
mov esi, 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 ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, ebp
call esi
mov dword [esp + 0x30], eax
mov byte [esp + 0x88], 3
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 byte [esp + 0x88], 1
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]
push 0x55ae9c
lea ecx, [esp + 0x28]
call dword [0x55a504]
mov byte [esp + 0x88], 5
push 0x58ad00
lea ecx, [esp + 0x24]
call dword [0x55a504]
mov byte [esp + 0x88], 6
test ebx, ebx
jne 0x4f24eb
call edi
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4f23ac
call edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebp
call esi
mov edi, eax
mov byte [esp + 0x88], 5
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 + 0x88], 1
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]
push 0x55ae9c
lea ecx, [esp + 0x30]
call dword [0x55a504]
mov byte [esp + 0x88], 7
push 0x58ad08
lea ecx, [esp + 0x2c]
call dword [0x55a504]
mov byte [esp + 0x88], 8
test ebx, ebx
jne 0x4f24f2
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4f2429
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
mov ecx, ebp
call esi
mov esi, eax
mov byte [esp + 0x88], 7
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 + 0x88], 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 ecx, dword [esp + 0x30]
mov edx, dword [ecx]
cmp dword [edx - 0xc], 0
je 0x4f24bb
mov eax, dword [edi]
push 0xa
push 0
push eax
call dword [sym.imp.MSVCR90.dll_wcstol]
add esp, 0xc
test eax, eax
je 0x4f24bb
mov eax, dword [esi]
push 0xa
push 0
push eax
call dword [sym.imp.MSVCR90.dll_wcstol]
add esp, 0xc
test eax, eax
je 0x4f24bb
mov esi, dword [esi]
mov edi, dword [edi]
push 0xa
push 0
push esi
mov esi, dword [sym.imp.MSVCR90.dll_wcstol]
call esi
add esp, 0xc
push eax
push 0xa
push 0
push edi
call esi
add esp, 0xc
push eax
mov eax, dword [esp + 0x38]
push eax
call fcn.004f1eb0
test ebx, ebx
jne 0x4f24f9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4f24d2
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x50]
mov edi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add ebp, 0x44
jmp 0x4f22d0
mov eax, dword [ebx]
jmp 0x4f2328
mov eax, dword [ebx]
jmp 0x4f23a5
mov eax, dword [ebx]
jmp 0x4f241e
mov eax, dword [ebx]
jmp 0x4f24c7
mov byte [esp + 0x88], 0
lea ecx, [esp + 0x34]
call dword [sym.imp.libUtils.module_public_virtual:_void___thiscall_xmlElement::destructor_void_]
mov dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x14]
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 [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret