Function at 0x4020f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410039
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d4
push ebx
push esi
push edi
mov ecx, dword [ebp + 8]
call fcn.00402510
test eax, eax
je 0x40212e
mov ecx, dword [ebp + 0xc]
call fcn.00402510
test eax, eax
je 0x40212e
jmp 0x4024f5
lea ecx, [ebp - 0x18]
call fcn.0040bc10
mov dword [ebp - 4], 0
lea eax, [ebp - 0x220]
push eax
call fcn.00401b90
add esp, 4
test eax, eax
jne 0x402164
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040bc90
jmp 0x4024f5
push str.PPLiveNetworkproduct.ini
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40219b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040bc90
jmp 0x4024f5
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040bd10
push 0
push str.count
push str.product
lea ecx, [ebp - 0x18]
call fcn.0040be40
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], 1
jmp 0x4021df
mov ecx, dword [ebp - 0x228]
add ecx, 1
mov dword [ebp - 0x228], ecx
mov edx, dword [ebp - 0x228]
cmp edx, dword [ebp - 0x224]
ja 0x4024e6
lea ecx, [ebp - 0x22c]
call sub.MFC42u.DLL_CString::CString_2
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x228]
push eax
push str.product_d
lea ecx, [ebp - 0x22c]
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
push 0x411628
push str.name
lea ecx, [ebp - 0x22c]
call fcn.00401910
push eax
lea edx, [ebp - 0x250]
push edx
lea ecx, [ebp - 0x18]
call fcn.0040bee0
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x288], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x288]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
lea ecx, [ebp - 0x230]
call sub.MFC42u.DLL_CString::CString_1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x250]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
push 0x411628
push str.fullname
lea ecx, [ebp - 0x22c]
call fcn.00401910
push eax
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040bee0
mov dword [ebp - 0x28c], eax
mov edx, dword [ebp - 0x28c]
mov dword [ebp - 0x290], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x290]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
lea ecx, [ebp - 0x234]
call sub.MFC42u.DLL_CString::CString_1
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x260]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
push 0
push str.state
lea ecx, [ebp - 0x22c]
call fcn.00401910
push eax
lea ecx, [ebp - 0x18]
call fcn.0040be40
mov dword [ebp - 0x238], eax
push str.PPLite
lea ecx, [ebp - 0x230]
call fcn.00401f10
test eax, eax
jne 0x4024b4
cmp dword [ebp - 0x238], 1
jne 0x4024b4
push 0x411628
push str.sourcetype
lea ecx, [ebp - 0x22c]
call fcn.00401910
push eax
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040bee0
mov dword [ebp - 0x294], eax
mov ecx, dword [ebp - 0x294]
mov dword [ebp - 0x298], ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x298]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
lea ecx, [ebp - 0x23c]
call sub.MFC42u.DLL_CString::CString_1
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x270]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea ecx, [ebp - 0x23c]
call fcn.00402510
test eax, eax
je 0x4023c7
mov ecx, dword [ebp + 8]
call fcn.00402510
test eax, eax
jne 0x4023c7
mov ecx, dword [ebp + 8]
call fcn.00401910
push eax
push str.sourcetype
lea ecx, [ebp - 0x22c]
call fcn.00401910
push eax
lea ecx, [ebp - 0x18]
call fcn.0040fcd0
push 0x411628
push str.videotype
lea ecx, [ebp - 0x22c]
call fcn.00401910
push eax
lea edx, [ebp - 0x280]
push edx
lea ecx, [ebp - 0x18]
call fcn.0040bee0
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp - 0x29c]
mov dword [ebp - 0x2a0], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x2a0]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
lea ecx, [ebp - 0x240]
call sub.MFC42u.DLL_CString::CString_1
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x280]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea ecx, [ebp - 0x240]
call fcn.00402510
test eax, eax
je 0x402467
mov ecx, dword [ebp + 0xc]
call fcn.00402510
test eax, eax
jne 0x402467
mov ecx, dword [ebp + 0xc]
call fcn.00401910
push eax
push str.videotype
lea ecx, [ebp - 0x22c]
call fcn.00401910
push eax
lea ecx, [ebp - 0x18]
call fcn.0040fcd0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x240]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x23c]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x234]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call sub.MFC42u.DLL_CString::CString
jmp 0x4024e6
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x234]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call sub.MFC42u.DLL_CString::CString
jmp 0x4021d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040bc90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret