Function at 0x42fa72
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4ddfee
call fcn.004d1d50
sub esp, 0x4c
mov eax, dword [0x52e400]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x38], ecx
push 0x3a
mov ecx, esi
mov dword [ebp - 0x34], eax
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_first_of_wchar_t__unsigned_int_const]
cmp eax, 0xffffffff
jne 0x42fab4
xor eax, eax
jmp 0x42fc28
push ebx
push edi
push dword [esi + 0x14]
inc eax
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
mov ebx, dword [sym.imp.MSVCR71.dll_wcslen]
and dword [ebp - 4], 0
mov edi, str._AgentStreamFile
push edi
call ebx
pop ecx
push eax
push edi
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
mov edi, dword [sym.imp.MSVCR71.dll__wcsnicmp]
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x42fbba
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42fc15
mov ecx, dword [ebp - 0x30]
push str.StreamMediaTask
call dword [0x4eb738]
xor esi, esi
mov dword [ebp - 0x30], esi
push esi
push esi
push 0x80
push 3
push 1
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x30]
call fcn.004015a3
cmp eax, esi
je 0x42fb58
cmp dword [ebp - 0x30], esi
je 0x42fc17
push dword [ebp - 0x30]
jmp 0x42fbb2
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x50], esi
mov edi, dword [ebp - 0x30]
push 4
push 2
push esi
push esi
push esi
push edi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.004015d9
cmp eax, esi
jne 0x42fba5
cmp dword [ebp - 0x58], esi
je 0x42fba5
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push dword [ebp - 0x58]
call fcn.0042f735
lea ecx, [ebp - 0x58]
mov ebx, eax
call fcn.00401686
cmp edi, esi
je 0x42fba1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
jmp 0x42fc17
lea ecx, [ebp - 0x58]
call fcn.00401686
cmp edi, esi
je 0x42fc17
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42fc17
push str._AgentStreamShareMem
call ebx
pop ecx
push eax
push str._AgentStreamShareMem
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x42fc15
mov ecx, dword [ebp - 0x30]
push str.StreamMediaTask
call dword [0x4eb738]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.MSVCR71.dll__wtoi]
mov esi, eax
test esi, esi
pop ecx
je 0x42fc15
mov ecx, dword [ebp - 0x34]
push esi
call dword [0x4eb738]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
xor esi, esi
pop ecx
inc esi
jmp 0x42fc17
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
pop esi
call fcn.004d1da7
leave
ret 0xc