Function at 0x404a30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb5bc
mov eax, dword fs:[0]
push eax
sub esp, 0x2f8
mov eax, dword [0x533014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0x208
push 0
push eax
call fcn.00487ab0
add esi, 0x1c
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x404a84
mov esi, dword [esi]
push esi
push 0x508cd4
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.00406b90
add esp, 0x10
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404c73
lea ecx, [ebp - 0x2e4]
call dword [sym.imp.utilities.dll_public:_void___thiscall_pugi::xml_document::constructor_void_]
push 0
push 0x74
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x300]
push eax
lea ecx, [ebp - 0x2e4]
call dword [sym.imp.utilities.dll_public:_struct_pugi::xml_parse_result___thiscall_pugi::xml_document::load_file_wchar_t_const___unsigned_int__enum_pugi::xml_encoding_]
cmp dword [ebp - 0x300], 0
jne 0x404c4b
mov esi, dword [sym.imp.utilities.dll_public:_class_pugi::xml_node___thiscall_pugi::xml_node::child_wchar_t_const___bool_]
lea eax, [ebp - 0x2ec]
push 0
push str.filesinfo
push eax
push 0
push str.root
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x2e4]
call esi
mov ecx, eax
call esi
mov ebx, dword [sym.imp.utilities.dll_public:_void____cdecl___class_pugi::xml_node_______thiscall_pugi::xml_node::operator_void____cdecl___class_pugi::xml_node_____void_const]
lea ecx, [ebp - 0x2ec]
call ebx
test eax, eax
je 0x404c4b
cmp dword [edi + 0x2c], 8
lea esi, [edi + 0x18]
jb 0x404b42
mov eax, dword [esi]
jmp 0x404b44
mov eax, esi
push 0
push eax
push 0x508cfc
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x2ec]
call dword [sym.imp.utilities.dll_public:_class_pugi::xml_node___thiscall_pugi::xml_node::find_child_by_attribute_wchar_t_const___wchar_t_const___bool_]
lea ecx, [ebp - 0x2f0]
call ebx
test eax, eax
je 0x404b93
cmp dword [edi + 0x14], 8
jb 0x404b73
mov edi, dword [edi]
push edi
push 0
push str.password
lea eax, [ebp - 0x2e8]
push eax
lea ecx, [ebp - 0x2f0]
call dword [sym.imp.utilities.dll_public:_class_pugi::xml_attribute___thiscall_pugi::xml_node::attribute_wchar_t_const___bool_]
jmp 0x404c43
push 2
lea eax, [ebp - 0x2e8]
push eax
lea ecx, [ebp - 0x2ec]
call dword [sym.imp.utilities.dll_public:_class_pugi::xml_node___thiscall_pugi::xml_node::append_child_enum_pugi::xml_node_type_]
lea ecx, [ebp - 0x2e8]
call ebx
test eax, eax
je 0x404c4b
push str.fileinfo
lea ecx, [ebp - 0x2e8]
call dword [sym.imp.utilities.dll_public:_bool___thiscall_pugi::xml_node::set_name_wchar_t_const__]
mov ebx, dword [sym.imp.utilities.dll_public:_class_pugi::xml_attribute___thiscall_pugi::xml_node::append_attribute_wchar_t_const__]
lea eax, [ebp - 0x2f4]
push 0x508cfc
push eax
lea ecx, [ebp - 0x2e8]
call ebx
cmp dword [esi + 0x14], 8
jb 0x404beb
mov esi, dword [esi]
push esi
mov esi, dword [sym.imp.utilities.dll_public:_class_pugi::xml_attribute___thiscall_pugi::xml_node::attribute_wchar_t_const___bool_]
lea eax, [ebp - 0x2f4]
push 0
push 0x508cfc
push eax
lea ecx, [ebp - 0x2e8]
call esi
mov ecx, eax
call dword [sym.imp.utilities.dll_public:_bool___thiscall_pugi::xml_attribute::set_value_wchar_t_const__]
push str.password
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0x2e8]
call ebx
cmp dword [edi + 0x14], 8
jb 0x404c2c
mov edi, dword [edi]
push edi
push 0
push str.password
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0x2e8]
call esi
mov ecx, eax
call dword [sym.imp.utilities.dll_public:_bool___thiscall_pugi::xml_attribute::set_value_wchar_t_const__]
push 1
push 1
push 0x508d8c
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x2e4]
call dword [sym.imp.utilities.dll_public:_bool___thiscall_pugi::xml_document::save_file_wchar_t_const___wchar_t_const___unsigned_int__enum_pugi::xml_encoding_const]
lea ecx, [ebp - 0x2e4]
call dword [sym.imp.utilities.dll_public:_void___thiscall_pugi::xml_document::destructor_void_]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046370d
mov esp, ebp
pop ebp
ret 4