Function at 0x404579
Capabilities:
Check if file exists

Disassembly:
push 0x40c
mov eax, 0x40a361
call fcn.0040a1bb
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x3b0], esi
cmp dword [esi + 0x58], eax
jne 0x40459e
xor eax, eax
jmp 0x404932
push eax
push eax
lea ebx, [ebp - 0x3ac]
mov dword [ebp - 0x3ac], eax
call fcn.00404938
test eax, eax
je 0x404597
mov eax, dword [ebp - 0x3ac]
inc eax
push eax
call fcn.004097d1
mov edi, eax
pop ecx
mov dword [ebp - 0x3d0], edi
test edi, edi
je 0x404597
mov eax, dword [ebp - 0x3ac]
inc eax
push eax
push 0
push edi
call dword [sym.imp.MSVCR100.dll_memset]
add esp, 0xc
push dword [ebp - 0x3ac]
push edi
call fcn.00404938
test eax, eax
je 0x4048fd
push dword [ebp - 0x3ac]
mov ecx, esi
push edi
call fcn.00404aa3
test eax, eax
je 0x4048fd
lea ecx, [ebp - 0x418]
call dword [sym.imp.tinyxml.dll_public:_void___thiscall_TiXmlDocument::constructor_void_]
push 1
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [ebp - 0x3ac]
lea ecx, [ebp - 0x418]
push edi
call dword [sym.imp.tinyxml.dll_public:_bool___thiscall_TiXmlDocument::LoadXML_char___int__enum_TiXmlEncoding_]
lea ecx, [ebp - 0x418]
test al, al
je 0x4048f3
call dword [sym.imp.tinyxml.dll_public:_class_TiXmlElement____thiscall_TiXmlDocument::RootElement_void_]
mov edi, eax
cmp edi, ebx
je 0x4048ed
lea eax, [ebp - 0x3c8]
push eax
push str.Version
mov ecx, edi
mov dword [ebp - 0x3c8], ebx
call dword [sym.imp.tinyxml.dll_public:_char_const____thiscall_TiXmlElement::Attribute_char_const___int__const]
test eax, eax
je 0x4048ed
mov eax, dword [ebp - 0x3c8]
push str.ServiceProvider
mov ecx, edi
mov dword [esi + 0x54], eax
call dword [sym.imp.tinyxml.dll_public:_class_TiXmlElement____thiscall_TiXmlNode::FirstChildElement_char_const__]
jmp 0x4048df
mov edi, dword [ebp - 0x3b4]
lea eax, [ebp - 0x3bc]
push eax
mov ecx, edi
mov dword [ebp - 0x3bc], ebx
call fcn.00404e06
test eax, eax
je 0x4048cc
cmp dword [ebp - 0x3bc], ebx
je 0x4048cc
mov eax, dword [esi + 0x58]
mov ecx, eax
and ecx, dword [ebp - 0x3bc]
cmp eax, ecx
jne 0x4048cc
cmp edi, ebx
je 0x4048cc
lea eax, [ebp - 0x3cc]
push eax
push str.Type
mov ecx, edi
mov dword [ebp - 0x3cc], ebx
call dword [sym.imp.tinyxml.dll_public:_char_const____thiscall_TiXmlElement::Attribute_char_const___int__const]
mov ebx, dword [ebp - 0x3cc]
cmp ebx, 1
je 0x404705
cmp ebx, 2
jne 0x4048cc
and dword [ebp - 0x3b8], 0
lea eax, [ebp - 0x3b8]
push eax
mov ecx, edi
call fcn.00404d62
test eax, eax
je 0x4048cc
test byte [ebp - 0x3b8], 1
mov esi, 0x40b2ec
lea edi, [ebp - 0x258]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x40475a
mov ecx, dword [ebp - 0x3b4]
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x3b0]
call fcn.00404be8
test eax, eax
je 0x4048c6
mov ecx, dword [ebp - 0x3b4]
lea eax, [ebp - 0x3c0]
xor edi, edi
push eax
mov dword [ebp - 0x3c0], edi
call fcn.00404db4
test eax, eax
je 0x4048c6
mov esi, 0x103
push esi
lea eax, [ebp - 0x13f]
push edi
push eax
mov byte [ebp - 0x140], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x3c4], edi
mov byte [ebp - 0x34], 0
lea edi, [ebp - 0x33]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x3b4]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x3c4]
push eax
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x3b8]
call fcn.00404e54
test eax, eax
je 0x4048c6
push esi
lea eax, [ebp - 0x247]
push 0
push eax
mov byte [ebp - 0x248], 0
call sub.MSVCR100.dll_memset
lea eax, [ebp - 0x140]
add esp, 0xc
test eax, eax
je 0x404808
lea edi, [ebp - 0x248]
mov ecx, eax
call fcn.0040567f
mov eax, dword [ebp - 0x3bc]
mov dword [ebp - 0x3a8], eax
mov ax, word [ebp - 0x3b8]
mov word [ebp - 0x3a2], ax
mov ax, word [ebp - 0x3c0]
mov word [ebp - 0x3a0], ax
mov word [ebp - 0x3a4], bx
lea esi, [ebp - 0x258]
lea edi, [ebp - 0x39c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x140]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38c]
push 0x104
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.MSVCR100.dll_strcpy_s]
mov eax, dword [ebp - 0x3c4]
mov dword [ebp - 0x288], eax
push 0x21
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x284]
push 0x21
push eax
call dword [sym.imp.MSVCR100.dll_memcpy_s]
add esp, 0x1c
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [ebp - 0x260], eax
xor eax, eax
inc eax
cmp ax, bx
jne 0x4048aa
mov ebx, dword [ebp - 0x3b0]
add ebx, 4
jmp 0x4048bb
push 2
pop eax
cmp ax, bx
jne 0x4048c6
mov ebx, dword [ebp - 0x3b0]
add ebx, 0x14
lea eax, [ebp - 0x3a8]
call fcn.00405843
mov esi, dword [ebp - 0x3b0]
mov ecx, dword [ebp - 0x3b4]
push str.ServiceProvider
call dword [sym.imp.tinyxml.dll_public:_class_TiXmlElement____thiscall_TiXmlNode::NextSiblingElement_char_const__]
xor ebx, ebx
mov dword [ebp - 0x3b4], eax
cmp eax, ebx
jne 0x40468e
lea ecx, [ebp - 0x418]
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.tinyxml.dll_public_virtual:_void___thiscall_TiXmlDocument::destructor_void_]
push dword [ebp - 0x3d0]
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov eax, dword [esi + 8]
sub eax, dword [esi + 4]
pop ecx
mov ecx, 0x14c
cdq
mov edi, ecx
idiv edi
test eax, eax
jne 0x40492f
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x14]
cdq
idiv ecx
test eax, eax
je 0x404597
xor eax, eax
inc eax
call fcn.0040a205
ret