Function at 0x40643a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437105
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 0x406b8a
mov ecx, dword [ebp - 0xa8]
mov ecx, dword [ecx + 0x154]
call fcn.0040ef3b
fstp dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x15c]
call fcn.0040a62b
mov ecx, dword [ebp - 0xa8]
call fcn.00406ca7
mov ecx, dword [ebp - 0xa8]
mov ecx, dword [ecx + 0x154]
call fcn.0040ee88
test eax, eax
je 0x406b8a
fld dword [ebp - 0x10]
fcomp qword [0x43bc78]
fnstsw ax
test ah, 0x41
jne 0x406b3a
lea ecx, [ebp - 0x38]
call fcn.00407e30
mov dword [ebp - 4], 0
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x154]
call fcn.0040ef64
push 0x444350
lea ecx, [ebp - 0x38]
push ecx
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 0x40653a
push ecx
mov edx, esp
mov dword [ebp - 0x78], esp
push edx
mov ecx, dword [ebp - 0xa8]
add ecx, 0x16c
call fcn.00408e28
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xa8]
call fcn.004057ed
mov ecx, dword [ebp - 0xa8]
add ecx, 0xc8
call fcn.0040b540
test eax, eax
jle 0x406ad6
mov eax, dword [ebp - 0xa8]
xor ecx, ecx
mov cl, byte [eax + 0x1bc]
test ecx, ecx
jne 0x406ad4
push 0
mov ecx, dword [ebp - 0xa8]
add ecx, 0xc8
call fcn.004074f0
mov ecx, eax
call fcn.004077f0
push eax
mov edx, dword [ebp - 0xa8]
mov ecx, dword [edx + 0x158]
call fcn.0041449c
and eax, 0xff
test eax, eax
jne 0x4065b2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00407e60
jmp 0x406b8a
push 0
mov ecx, dword [ebp - 0xa8]
add ecx, 0xc8
call fcn.004074f0
push eax
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x15c]
add ecx, 0x6d8
call fcn.0042e336
mov ecx, dword [ebp - 0xa8]
mov ecx, dword [ecx + 0x158]
call fcn.00407a20
add eax, 0x1c
push eax
mov edx, dword [ebp - 0xa8]
mov ecx, dword [edx + 0x15c]
add ecx, 0x6dc
call fcn.0042e336
push 1
push 0
mov ecx, dword [ebp - 0xa8]
add ecx, 0xc8
call sub.MFC42.DLL_CStringArray::RemoveAt
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x158]
call fcn.00407a20
add eax, 0x20
push eax
lea ecx, [ebp - 0x40]
call fcn.0042e32a
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x40]
call fcn.00402c90
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
sub ecx, 1
mov dword [ebp - 0x50], ecx
jmp 0x406665
mov edx, dword [ebp - 0x50]
sub edx, 1
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x50], 0
jl 0x406687
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x40]
call fcn.00412a30
mov byte [ebp - 0x5c], al
movsx ecx, byte [ebp - 0x5c]
cmp ecx, 0x2e
jne 0x406685
jmp 0x406687
jmp 0x40665c
mov edx, dword [ebp - 0x54]
sub edx, dword [ebp - 0x50]
push edx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::Right
mov byte [ebp - 4], 2
push 0x44437c
lea ecx, [ebp - 0x58]
call fcn.004077f0
push eax
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::Replace
push 0x444384
lea ecx, [ebp - 0x44]
push ecx
call fcn.004074e0
mov ecx, eax
call fcn.00410aa5
mov byte [ebp - 4], 3
lea edx, [ebp - 0x40]
push edx
push 0x44438c
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x7c]
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call sub.MFC42.DLL_operator_1
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.004077f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4068c8
lea ecx, [ebp - 0x60]
call fcn.00423b70
mov byte [ebp - 4], 8
push 7
push 0
push 0x444490
lea ecx, [ebp - 0x60]
call fcn.00407f60
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jl 0x4068b7
lea ecx, [ebp - 0x3c]
call fcn.004077f0
push eax
lea ecx, [ebp - 0x90]
call fcn.00407550
mov dword [ebp - 0xb8], eax
mov edx, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00407760
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x60]
call fcn.00416140
mov ecx, eax
call fcn.00407980
mov word [ebp - 0x68], ax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x8c]
call fcn.00407800
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x90]
call fcn.004075e0
movsx edx, word [ebp - 0x68]
cmp edx, 0xffffffff
jne 0x4068b7
push ecx
mov ecx, esp
mov dword [ebp - 0x94], esp
push 0x444394
call fcn.00407550
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x60]
call fcn.00416140
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00407840
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 0xc
push 0x4443b4
lea ecx, [ebp - 0x6c]
call fcn.00416140
mov ecx, eax
call fcn.00407940
sub eax, 1
push ecx
mov edx, esp
mov dword [ebp - 0x98], esp
push eax
push edx
lea ecx, [ebp - 0x6c]
call fcn.00416140
mov ecx, eax
call fcn.004078e0
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00412b49
add esp, 0xc
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], ecx
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0xd4]
push edx
lea ecx, [ebp - 0x48]
call fcn.0042e336
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.00407f40
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x60]
call fcn.00407f40
jmp 0x406a34
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x158]
call fcn.00407a20
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0xa8]
mov ecx, dword [edx + 0x158]
call fcn.00407a20
add eax, 0x24
push eax
lea ecx, [ebp - 0x48]
call fcn.0042e336
cmp dword [ebp - 0x4c], 0
je 0x406957
lea ecx, [ebp - 0x48]
call fcn.004077f0
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.004074e0
mov ecx, eax
call fcn.00410aa5
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xdc], ecx
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0xdc]
push edx
lea ecx, [ebp - 0x48]
call fcn.0042e336
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xa0]
call sub.MFC42.DLL_CString::CString
jmp 0x406a34
lea eax, [ebp - 0x70]
push eax
push 0x20019
push 0
push 0x4443bc
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x4069d9
push 0
push 0
push 0x4443dc
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.00407e60
jmp 0x406b8a
mov ecx, dword [ebp - 0x48]
push ecx
push 0x4443fc
lea edx, [ebp - 0xa4]
push edx
call fcn.004074e0
mov ecx, eax
call fcn.00410aa5
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx]
push edx
push 0x444404
lea eax, [ebp - 0x48]
push eax
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.004077f0
push eax
call fcn.004074e0
mov ecx, eax
call fcn.00410b9b
mov ecx, dword [ebp - 0xa8]
mov ecx, dword [ecx + 0x158]
call fcn.0040f7a9
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 0x164]
push eax
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ecx + 0x158]
push edx
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x154]
call fcn.0040ed8d
push 0
mov ecx, dword [ebp - 0xa8]
mov ecx, dword [ecx + 0x15c]
call fcn.00407e10
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 0x406b2b
mov edx, dword [ebp - 0xa8]
mov ecx, dword [edx + 0x15c]
call fcn.00409eb7
push 0x3f800000
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x15c]
call fcn.0040a62b
push 3
mov ecx, dword [ebp - 0xa8]
mov ecx, dword [ecx + 0x15c]
call fcn.0040a769
mov edx, dword [ebp - 0xa8]
mov dword [edx + 0x168], 3
mov ecx, dword [ebp - 0xa8]
call fcn.00406023
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00407e60
lea ecx, [ebp - 0x24]
call fcn.00407e30
mov dword [ebp - 4], 0x10
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0xa8]
mov ecx, dword [ecx + 0x154]
call fcn.0040ef64
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 edx, dword [ebp - 0xa8]
mov ecx, dword [edx + 0x15c]
call fcn.0040a78a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00407e60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret