Function at 0x47df70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f849b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x564610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x34], ebx
call fcn.0041b800
mov ecx, eax
call fcn.0041b850
cmp dword [ebp + 0x10], 0
mov edi, eax
jne 0x47e05e
lea ecx, [ebp - 0x30]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov ecx, esi
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCP80.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 ebx, dword [sym.imp.Common.dll_public:_void___cdecl_CTXStringW::Format_wchar_t_const__]
push eax
lea eax, [ebp - 0x30]
push 0x528bcc
push eax
call ebx
add esp, 0xc
mov ecx, esi
call dword [sym.imp.MSVCP80.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
mov ecx, edi
call fcn.00416050
test eax, eax
mov ecx, esi
je 0x47e010
call dword [sym.imp.MSVCP80.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
push 0x528be8
lea ecx, [ebp - 0x30]
push ecx
jmp 0x47e020
call dword [sym.imp.MSVCP80.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
push 0x528c10
lea edx, [ebp - 0x30]
push edx
call ebx
mov eax, dword [ebp - 0x34]
mov esi, dword [eax - 0x10]
add esp, 0xc
push 0
push 0x40
push 0x528c34
lea ecx, [ebp - 0x30]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
push 0
push esi
call fcn.00460ab0
add esp, 0x18
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
jmp 0x47e11e
mov ecx, dword [ebp + 0xc]
shr ecx, 1
and ecx, 1
je 0x47e11e
call fcn.0041b800
mov ecx, eax
call fcn.0041b850
mov edi, eax
test edi, edi
je 0x47e11e
mov ecx, esi
call dword [sym.imp.MSVCP80.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
mov ecx, edi
call fcn.00417c30
mov esi, eax
test esi, esi
je 0x47e11e
mov edi, dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXStringW::GetBuffer_void_]
lea ecx, [esi + 4]
call edi
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call dword [sym.imp.MSVCP80.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
jne 0x47e0d9
add ebx, 8
push ebx
lea ecx, [ebp - 0x2c]
call dword [0x5096b8]
sub esp, 0x1c
lea edx, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x34], esp
push edx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, esi
mov byte [ebp - 4], 2
call edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [ebp - 4], 1
call fcn.00486030
add esp, 0x38
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f019a
mov esp, ebp
pop ebp
ret 0xc