Function at 0x4053ae
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x40cd44
call fcn.0040b3d0
sub esp, 0x38
push ebx
push esi
push edi
mov esi, str..xml
xor edi, edi
push esi
push str..exe
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::Replace
push esi
push str..gls
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Replace
lea eax, [ebp - 0x1c]
mov ebx, 0x411920
push str._GLDIR_
push eax
mov ecx, ebx
call fcn.00407f2e
lea eax, [ebp - 0x1c]
push 0x411320
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call sub.MFC42.DLL_operator
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_2
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x405590
mov dword [ebp - 0x14], edi
push 7
push edi
push 0x411288
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00406274
cmp eax, edi
jge 0x40546f
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp eax, edi
jmp 0x405588
push dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
call fcn.00404c1b
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
call fcn.004055d1
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 8
cmp eax, edi
jne 0x40549f
push 0x80004003
call fcn.0040b64a
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0xe]
lea esi, [ebp - 0x44]
push edx
mov ecx, dword [eax]
sub esp, 0x10
mov dword [ebp - 0x34], eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0xe8]
test eax, eax
jge 0x4054cd
push 0x411310
push dword [ebp - 0x34]
push eax
call fcn.0040b658
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 7
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x4054e5
push eax
call fcn.0040b64a
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x4054f9
call fcn.004048f9
and dword [ebp - 0x24], 0
cmp word [ebp - 0xe], 0xffff
jne 0x40557f
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x4112f0
call fcn.00404c1b
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 6
call fcn.0040623f
mov ecx, eax
call fcn.00405611
push str.Name
push ecx
mov eax, esp
mov dword [ebp - 0x34], esp
push 6
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call fcn.0040623f
mov ecx, eax
call fcn.00404e29
lea eax, [ebp - 0x28]
push eax
call fcn.004067de
add esp, 0xc
push dword [ebp - 0x28]
mov ecx, ebx
mov byte [ebp - 4], 0xb
call fcn.00407fa9
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 6
test eax, eax
je 0x40557f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
test eax, eax
je 0x405590
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4