Function at 0x4073c1
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ad19
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd8
mov dword [ebp - 0xa8], ecx
mov eax, dword [ebp - 0xa8]
cmp dword [eax + 0x168], 1
jne 0x407b75
mov ecx, dword [ebp - 0xa8]
mov ecx, dword [ecx + 0x154]
call fcn.0041230e
fstp dword [ebp - 0x10]
mov edx, dword [ebp - 0xa8]
cmp dword [edx + 0x15c], 0
je 0x407430
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xa8]
mov ecx, dword [ecx + 0x15c]
call fcn.0040bb0a
mov ecx, dword [ebp - 0xa8]
call fcn.00407cfa
mov edx, dword [ebp - 0xa8]
mov ecx, dword [edx + 0x154]
call fcn.0041225b
test eax, eax
je 0x407b75
fld dword [ebp - 0x10]
fcomp qword [0x43fd38]
fnstsw ax
test ah, 0x41
jne 0x407b07
lea ecx, [ebp - 0x38]
call fcn.00408fe0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0xa8]
mov ecx, dword [ecx + 0x154]
call fcn.00412337
push 0x4495e4
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
and eax, 0xff
test eax, eax
je 0x4074d0
push ecx
mov eax, esp
mov dword [ebp - 0x78], esp
push eax
mov ecx, dword [ebp - 0xa8]
add ecx, 0x16c
call fcn.00409f98
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xa8]
call fcn.004061e5
mov ecx, dword [ebp - 0xa8]
add ecx, 0xc8
call fcn.00412d90
test eax, eax
jle 0x407a94
mov ecx, dword [ebp - 0xa8]
xor edx, edx
mov dl, byte [ecx + 0x1bc]
test edx, edx
jne 0x407a92
push 0
mov ecx, dword [ebp - 0xa8]
add ecx, 0xc8
call fcn.004086b0
mov ecx, eax
call fcn.0040cdc0
push eax
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x158]
call fcn.004177f8
and eax, 0xff
test eax, eax
jne 0x407548
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00409010
jmp 0x407b75
mov ecx, dword [ebp - 0xa8]
cmp dword [ecx + 0x15c], 0
je 0x4075ae
push 0
mov ecx, dword [ebp - 0xa8]
add ecx, 0xc8
call fcn.004086b0
push eax
mov edx, dword [ebp - 0xa8]
mov ecx, dword [edx + 0x15c]
add ecx, 0x6d8
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x158]
call fcn.00408bd0
add eax, 0x1c
push eax
mov ecx, dword [ebp - 0xa8]
mov ecx, dword [ecx + 0x15c]
add ecx, 0x6dc
call sub.MFC42.DLL_CString::operator
push 1
push 0
mov ecx, dword [ebp - 0xa8]
add ecx, 0xc8
call sub.MFC42.DLL_CStringArray::RemoveAt
mov edx, dword [ebp - 0xa8]
mov ecx, dword [edx + 0x158]
call fcn.00408bd0
add eax, 0x24
push eax
lea ecx, [ebp - 0x40]
call fcn.00431d2a
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x40]
call fcn.00402c80
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
sub eax, 1
mov dword [ebp - 0x50], eax
jmp 0x40760a
mov ecx, dword [ebp - 0x50]
sub ecx, 1
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x50], 0
jl 0x40762c
mov edx, dword [ebp - 0x50]
push edx
lea ecx, [ebp - 0x40]
call fcn.00408520
mov byte [ebp - 0x5c], al
movsx eax, byte [ebp - 0x5c]
cmp eax, 0x2e
jne 0x40762a
jmp 0x40762c
jmp 0x407601
mov ecx, dword [ebp - 0x54]
sub ecx, dword [ebp - 0x50]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::Right
mov byte [ebp - 4], 2
push 0x449610
lea ecx, [ebp - 0x58]
call fcn.0040cdc0
push eax
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::Replace
push 0x449618
lea eax, [ebp - 0x44]
push eax
call fcn.004085c0
mov ecx, eax
call fcn.00413c35
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
push ecx
push 0x449620
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x7c]
push eax
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xb4]
push edx
lea eax, [ebp - 0x3c]
push eax
call sub.MFC42.DLL_operator
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x7c]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0040cdc0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40786d
lea ecx, [ebp - 0x60]
call fcn.0040dba0
mov byte [ebp - 4], 8
push 7
push 0
push 0x449728
lea ecx, [ebp - 0x60]
call fcn.00409110
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jl 0x40785c
lea ecx, [ebp - 0x3c]
call fcn.0040cdc0
push eax
lea ecx, [ebp - 0x90]
call fcn.00408710
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0xbc]
push edx
lea ecx, [ebp - 0x8c]
call fcn.00408920
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x60]
call fcn.004090e0
mov ecx, eax
call fcn.00408b30
mov word [ebp - 0x68], ax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x8c]
call fcn.004089b0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x90]
call fcn.004087a0
movsx ecx, word [ebp - 0x68]
cmp ecx, 0xffffffff
jne 0x40785c
push ecx
mov ecx, esp
mov dword [ebp - 0x94], esp
push 0x449628
call fcn.00408710
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], edx
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x60]
call fcn.004090e0
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.004089f0
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 0xc
push 0x449648
lea ecx, [ebp - 0x6c]
call fcn.004090e0
mov ecx, eax
call fcn.00408af0
sub eax, 1
push ecx
mov ecx, esp
mov dword [ebp - 0x98], esp
push eax
push ecx
lea ecx, [ebp - 0x6c]
call fcn.004090e0
mov ecx, eax
call fcn.00408a90
mov dword [ebp - 0xcc], eax
lea edx, [ebp - 0x9c]
push edx
call fcn.00415d19
add esp, 0xc
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0xd4]
push ecx
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x9c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x6c]
call fcn.004090c0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x60]
call fcn.004090c0
jmp 0x4079d9
mov edx, dword [ebp - 0xa8]
mov ecx, dword [edx + 0x158]
call fcn.00408bd0
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0xa8]
mov ecx, dword [ecx + 0x158]
call fcn.00408bd0
add eax, 0x28
push eax
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::operator
cmp dword [ebp - 0x4c], 0
je 0x4078fc
lea ecx, [ebp - 0x48]
call fcn.0040cdc0
push eax
lea edx, [ebp - 0xa0]
push edx
call fcn.004085c0
mov ecx, eax
call fcn.00413c35
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xdc], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0xdc]
push ecx
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xa0]
call sub.MFC42.DLL_CString::CString
jmp 0x4079d9
lea edx, [ebp - 0x70]
push edx
push 0x20019
push 0
push 0x449650
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x40797e
push 0
push 0
push 0x449670
call sub.MFC42.DLL_AfxMessageBox
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00409010
jmp 0x407b75
mov eax, dword [ebp - 0x48]
push eax
push 0x449690
lea ecx, [ebp - 0xa4]
push ecx
call fcn.004085c0
mov ecx, eax
call fcn.00413c35
mov dword [ebp - 0xe0], eax
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], edx
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax]
push ecx
push 0x449698
lea edx, [ebp - 0x48]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xa4]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x48]
call fcn.0040cdc0
push eax
call fcn.004085c0
mov ecx, eax
call fcn.00413d47
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x158]
call fcn.00412b8d
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ecx + 0x164]
push edx
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x158]
push ecx
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0xa8]
mov ecx, dword [ecx + 0x154]
call fcn.00412157
mov edx, dword [ebp - 0xa8]
cmp dword [edx + 0x15c], 0
je 0x407a56
push 0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x15c]
call fcn.00408fc0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::CString
jmp 0x407af8
mov ecx, dword [ebp - 0xa8]
cmp dword [ecx + 0x15c], 0
je 0x407add
mov edx, dword [ebp - 0xa8]
mov ecx, dword [edx + 0x15c]
call fcn.0040b039
push 0x3f800000
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x15c]
call fcn.0040bb0a
push 3
mov ecx, dword [ebp - 0xa8]
mov ecx, dword [ecx + 0x15c]
call fcn.0040bc48
mov edx, dword [ebp - 0xa8]
mov dword [edx + 0x168], 3
mov ecx, dword [ebp - 0xa8]
call fcn.00406a1b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00409010
lea ecx, [ebp - 0x24]
call fcn.00408fe0
mov dword [ebp - 4], 0x10
mov eax, dword [ebp - 0xa8]
cmp dword [eax + 0x154], 0
je 0x407b3a
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0xa8]
mov ecx, dword [edx + 0x154]
call fcn.00412337
mov eax, dword [ebp - 0xa8]
cmp dword [eax + 0x15c], 0
je 0x407b66
push 0
lea ecx, [ebp - 0x24]
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 ecx, dword [ebp - 0xa8]
mov ecx, dword [ecx + 0x15c]
call fcn.0040bc69
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00409010
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret