Function at 0x1004a820
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b588
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x20], edi
mov ebx, dword [ebp + 8]
push 1
push dword [ebx + 0xc]
push str.Start._wStrFilePath_s__bUseHelper_d
push str.CXmlDocument::LoadFromFile
push 7
call fcn.10041ef0
add esp, 0x14
cmp dword [edi + 4], 0
jne 0x1004a89c
push str.return_FALSE___m_pXmlDocNULL
push str.CXmlDocument::LoadFromFile
push 3
call fcn.10041ef0
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 4], 0
mov esi, 1
mov dword [ebp - 0x24], vtable.CFileHandler.0
mov byte [ebp - 4], 1
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x1004a9b8
cmp dword [ebx + 4], 0
je 0x1004a9b8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004a9b8
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jns 0x1004a8f8
mov ecx, eax
call fcn.10026450
push dword [ebp - 0x1c]
mov eax, 8
mov word [ebp - 0x34], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x1004a930
cmp dword [ebp - 0x1c], eax
je 0x1004a930
mov eax, 0xa
mov ecx, 0x8007000e
mov word [ebp - 0x34], ax
mov dword [ebp - 0x2c], 0x8007000e
call fcn.10026450
mov byte [ebp - 4], 2
mov eax, dword [edi + 4]
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x110]
mov eax, dword [edi + 4]
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x118]
mov ecx, dword [edi + 4]
movq xmm0, qword [ebp - 0x34]
mov edx, dword [ecx]
lea eax, [ebp - 0x18]
push eax
sub esp, 0x10
mov eax, esp
push ecx
movq qword [eax], xmm0
movq xmm0, qword [ebp - 0x2c]
movq qword [eax + 8], xmm0
call dword [edx + 0xe8]
xor ecx, ecx
cmp word [ebp - 0x18], 0xffff
cmovne esi, ecx
test eax, eax
je 0x1004a99d
push eax
push str._m_pXmlDoc__load___return_HRESULT_0x_X
push str.CXmlDocument::LoadFromFile
push 3
call fcn.10041ef0
add esp, 0x10
xor esi, esi
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x1004aa86
jmp 0x1004a9fe
push str.return_FALSE___file_doesnt_exist
jmp 0x1004a877
mov dword [ebp + 8], vtable.CFileHandler.0
mov dword [ebp - 4], 5
mov dword [ebp - 0x34], vtable.CStringBufferW.0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
push ecx
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 6
push dword [ebx + 0xc]
call fcn.10049b30
test eax, eax
je 0x1004aa63
lea eax, [ebp - 0x24]
push eax
push ecx
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
call fcn.1004aac0
mov esi, eax
test esi, esi
je 0x1004aa77
cmp dword [ebp + 0x10], 0
je 0x1004aa77
push ebx
mov ecx, edi
call fcn.1004b110
jmp 0x1004aa77
push str.failed_to_read_file
push str.CXmlDocument::LoadFromFile
push 3
call fcn.10041ef0
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.10022960
mov dword [ebp - 4], 0xffffffff
xor eax, eax
test esi, esi
setne al
push esi
push str.return__d
push str.CXmlDocument::LoadFromFile
lea eax, [eax*4 + 3]
push eax
call fcn.10041ef0
add esp, 0x10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc