Function at 0x404dcc
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x42160c
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x38
push ebx
mov ebx, ecx
push esi
push edi
cmp byte [ebx + 0x224], 0
jne 0x40529b
cmp dword [ebx + 0x1d4], 1
jne 0x40529b
mov ecx, dword [ebx + 0x1c8]
call fcn.00408059
fst dword [ebp - 0x24]
push ecx
mov ecx, dword [ebx + 0xf0]
fstp dword [esp]
call fcn.00406733
mov ecx, ebx
call fcn.00405329
mov ecx, dword [ebx + 0x1c8]
call fcn.00408013
test eax, eax
je 0x40529b
fld dword [ebp - 0x24]
fcomp qword [0x424f30]
fnstsw ax
sahf
jbe 0x40523e
push ecx
lea ecx, [ebx + 0x1d8]
mov eax, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.0040575f
mov ecx, ebx
call fcn.00404672
xor edi, edi
cmp dword [ebx + 0xd0], edi
jle 0x405211
cmp byte [ebx + 0x224], 0
jne 0x40529b
mov eax, dword [ebx + 0xcc]
mov ecx, dword [ebx + 0x1cc]
lea esi, [ebx + 0xcc]
push dword [eax]
call fcn.0040af47
test al, al
je 0x40529b
mov ecx, dword [ebx + 0xf0]
push dword [esi]
add ecx, 0x778
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebx + 0x1cc]
mov ecx, dword [ebx + 0xf0]
add ecx, 0x77c
mov eax, dword [eax + 0x34]
add eax, 0x1c
push eax
call sub.MFC42.DLL_CString::operator
push 1
push edi
lea ecx, [ebx + 0xc8]
call sub.MFC42.DLL_CStringArray::RemoveAt
mov eax, dword [ebx + 0x1cc]
lea ecx, [ebp - 0x20]
mov eax, dword [eax + 0x34]
add eax, 0x20
push eax
call fcn.0041817c
push 0x42d168
push str..exe
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::Replace
mov edi, 0x42d240
lea eax, [ebp - 0x24]
mov esi, 0x431388
push edi
push eax
mov ecx, esi
call fcn.004091d9
lea eax, [ebp - 0x24]
push str.Setup_
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 1
call sub.MFC42.DLL_operator_1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_operator
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
push dword [ebp - 0x1c]
mov byte [ebp - 4], 5
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4050c4
and dword [ebp - 0x18], 0
push 7
push 0
push 0x42d230
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.004054e7
test eax, eax
jl 0x4050aa
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
call fcn.004043e7
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.004044ce
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 8
test eax, eax
jne 0x404fb7
push 0x80004003
call fcn.004187b0
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0xe]
lea esi, [ebp - 0x40]
push edx
mov ecx, dword [eax]
sub esp, 0x10
mov dword [ebp - 0x2c], 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 0x404fe5
push 0x42d220
push dword [ebp - 0x2c]
push eax
call fcn.004187be
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 7
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x404ffd
push eax
call fcn.004187b0
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x40500d
call fcn.00404481
cmp word [ebp - 0xe], 0xffff
jne 0x4050a5
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str._Glsetup2_Directorys_Directory
call fcn.004043e7
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
mov byte [ebp - 4], 6
call fcn.0040abfd
mov ecx, eax
call fcn.00404520
push str.Name
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.0040abfd
mov ecx, eax
call fcn.004045bc
push ecx
dec eax
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040abfd
mov ecx, eax
call fcn.00404587
lea eax, [ebp - 0x30]
push eax
call fcn.0040a021
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 6
test eax, eax
je 0x4050a5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, 0x431388
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 5
test eax, eax
je 0x4051a0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4051a0
mov eax, dword [ebx + 0x1cc]
mov eax, dword [eax + 0x34]
mov ecx, dword [eax + 0x28]
add eax, 0x24
mov dword [ebp - 0x30], ecx
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
cmp dword [ebp - 0x30], 0
je 0x40510c
push dword [ebp - 0x14]
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.004091d9
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
jmp 0x40519b
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push 0
push str.SoftwareGloballinkGameShare
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40516e
push 0
push 0
push 0x42d320
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
jmp 0x40529b
lea eax, [ebp - 0x30]
push edi
push eax
mov ecx, esi
call fcn.004091d9
push dword [ebp - 0x14]
mov byte [ebp - 4], 0xd
push dword [eax]
lea eax, [ebp - 0x14]
push str._sGame_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00409266
mov ecx, dword [ebx + 0x1cc]
call fcn.00408586
push dword [ebx + 0x1d0]
mov ecx, dword [ebx + 0x1c8]
push dword [ebx + 0x1cc]
call fcn.00407f6b
mov eax, dword [ebx + 0xf0]
push 0
push 0
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
jmp 0x40523e
fld1
push ecx
mov ecx, dword [ebx + 0xf0]
fstp dword [esp]
call fcn.00406733
mov ecx, dword [ebx + 0xf0]
push 3
pop esi
push esi
call fcn.004067d3
mov ecx, ebx
mov dword [ebx + 0x1d4], esi
call fcn.00404cab
cmp byte [ebx + 0x224], 0
jne 0x40529b
mov al, byte [ebp - 0xd]
push 0
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x44], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
and byte [ebp - 0x34], 0
mov ecx, dword [ebx + 0x1c8]
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 4], 0xe
call fcn.0040807f
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x40527e
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [ebx + 0xf0]
push 0
push eax
call fcn.004067e5
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret