Function at 0x409249
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43aed3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
mov dword [ebp - 0x98], ecx
mov eax, dword [ebp - 0x98]
cmp dword [eax + 0x168], 1
jne 0x409935
mov ecx, dword [ebp - 0x98]
mov ecx, dword [ecx + 0x154]
call fcn.0041230e
fst dword [ebp - 0x14]
fmul dword [0x43fd4c]
call sub.MSVCRT.dll__ftol
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x1c0]
call fcn.00410979
mov ecx, dword [ebp - 0x98]
mov ecx, dword [ecx + 0x154]
call fcn.0041225b
test eax, eax
je 0x409935
fld dword [ebp - 0x14]
fcomp qword [0x43fd38]
fnstsw ax
test ah, 0x41
jne 0x4098cb
push ecx
mov edx, esp
mov dword [ebp - 0x68], esp
push edx
mov ecx, dword [ebp - 0x98]
add ecx, 0x16c
call fcn.00409f98
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x98]
call fcn.004061e5
mov ecx, dword [ebp - 0x98]
add ecx, 0xc8
call fcn.00412d90
test eax, eax
jle 0x40985d
mov eax, dword [ebp - 0x98]
xor ecx, ecx
mov cl, byte [eax + 0x1bc]
test ecx, ecx
jne 0x40985b
push 0
mov ecx, dword [ebp - 0x98]
add ecx, 0xc8
call fcn.004086b0
mov ecx, eax
call fcn.0040cdc0
push eax
mov edx, dword [ebp - 0x98]
mov ecx, dword [edx + 0x158]
call fcn.004177f8
and eax, 0xff
test eax, eax
jne 0x409392
push 0
push 0
push 0x12
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x1c0]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x409935
push 1
push 0
mov ecx, dword [ebp - 0x98]
add ecx, 0xc8
call sub.MFC42.DLL_CStringArray::RemoveAt
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x158]
call fcn.00408bd0
add eax, 0x24
push eax
lea ecx, [ebp - 0x30]
call fcn.00431d2a
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x30]
call fcn.00402c80
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
sub ecx, 1
mov dword [ebp - 0x40], ecx
jmp 0x4093f1
mov edx, dword [ebp - 0x40]
sub edx, 1
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x40], 0
jl 0x409413
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
call fcn.00408520
mov byte [ebp - 0x4c], al
movsx ecx, byte [ebp - 0x4c]
cmp ecx, 0x2e
jne 0x409411
jmp 0x409413
jmp 0x4093e8
mov edx, dword [ebp - 0x44]
sub edx, dword [ebp - 0x40]
push edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::Right
mov byte [ebp - 4], 1
push 0x449798
lea ecx, [ebp - 0x48]
call fcn.0040cdc0
push eax
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::Replace
push 0x4497a0
lea ecx, [ebp - 0x34]
push ecx
call fcn.004085c0
mov ecx, eax
call fcn.00413c35
mov byte [ebp - 4], 2
lea edx, [ebp - 0x30]
push edx
push str.Setup_
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x6c]
push ecx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call sub.MFC42.DLL_operator
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.0040cdc0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x409645
lea ecx, [ebp - 0x50]
call fcn.0040dba0
mov byte [ebp - 4], 7
push 7
push 0
push 0x449728
lea ecx, [ebp - 0x50]
call fcn.00409110
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jl 0x409634
lea ecx, [ebp - 0x2c]
call fcn.0040cdc0
push eax
lea ecx, [ebp - 0x80]
call fcn.00408710
mov dword [ebp - 0xa8], eax
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xac], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0xac]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00408920
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x50]
call fcn.004090e0
mov ecx, eax
call fcn.00408b30
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x7c]
call fcn.004089b0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x80]
call fcn.004087a0
movsx edx, word [ebp - 0x58]
cmp edx, 0xffffffff
jne 0x409634
push ecx
mov ecx, esp
mov dword [ebp - 0x84], esp
push str._Glsetup2_Directorys_Directory
call fcn.00408710
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x50]
call fcn.004090e0
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.004089f0
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 0xb
push 0x4497d0
lea ecx, [ebp - 0x5c]
call fcn.004090e0
mov ecx, eax
call fcn.00408af0
sub eax, 1
push ecx
mov edx, esp
mov dword [ebp - 0x88], esp
push eax
push edx
lea ecx, [ebp - 0x5c]
call fcn.004090e0
mov ecx, eax
call fcn.00408a90
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00415d19
add esp, 0xc
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], ecx
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0xc4]
push edx
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x8c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x5c]
call fcn.004090c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x50]
call fcn.004090c0
jmp 0x4097c1
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x158]
call fcn.00408bd0
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x98]
mov ecx, dword [edx + 0x158]
call fcn.00408bd0
add eax, 0x28
push eax
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::operator
cmp dword [ebp - 0x3c], 0
je 0x4096d4
lea ecx, [ebp - 0x38]
call fcn.0040cdc0
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004085c0
mov ecx, eax
call fcn.00413c35
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0xcc]
push edx
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x90]
call sub.MFC42.DLL_CString::CString
jmp 0x4097c1
lea eax, [ebp - 0x60]
push eax
push 0x20019
push 0
push 0x4497d8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x409766
push 0
push 0
push 0x4497f8
call sub.MFC42.DLL_AfxMessageBox
push 0
push 0
push 0x12
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx + 0x1c0]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString
jmp 0x409935
mov ecx, dword [ebp - 0x38]
push ecx
push 0x449818
lea edx, [ebp - 0x94]
push edx
call fcn.004085c0
mov ecx, eax
call fcn.00413c35
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ecx]
push edx
push str._sGame_s
lea eax, [ebp - 0x38]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x94]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x38]
call fcn.0040cdc0
push eax
call fcn.004085c0
mov ecx, eax
call fcn.00413d47
mov ecx, dword [ebp - 0x98]
mov ecx, dword [ecx + 0x158]
call fcn.00412b8d
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x164]
push eax
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx + 0x158]
push edx
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp - 0x98]
mov ecx, dword [edx + 0x154]
call fcn.00412157
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString
jmp 0x4098cb
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x1c0]
call fcn.0041079a
push 0
mov ecx, dword [ebp - 0x98]
mov ecx, dword [ecx + 0x1c0]
call fcn.00410809
mov edx, dword [ebp - 0x98]
mov dword [edx + 0x168], 3
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x1c0]
call fcn.00410169
mov ecx, dword [ebp - 0x98]
call fcn.00406a1b
push 0
push 0
push 0x12
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx + 0x1c0]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x409935
lea ecx, [ebp - 0x28]
call fcn.00408fe0
mov dword [ebp - 4], 0xf
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x98]
mov ecx, dword [edx + 0x154]
call fcn.00412337
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x1c0]
call fcn.0041087e
push 0
push 0
push 0x12
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx + 0x1c0]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00409010
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret