Function at 0x47e3a7
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4b3122
call fcn.0049f0d0
sub esp, 0x44
mov eax, dword [0x4f0dd0]
xor eax, ebp
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 4]
lea ebx, [esi + 0xbc]
mov ecx, ebx
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
jne 0x47e3e6
xor al, al
jmp 0x47e544
push edi
xor edi, edi
cmp dword [esi + 0xd8], edi
je 0x47e40d
mov ecx, ebx
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
push str.already_loaded__file_s
call fcn.0044f0cd
pop ecx
pop ecx
mov al, 1
jmp 0x47e543
lea ecx, [ebp - 0x48]
call fcn.004829e7
mov ecx, ebx
mov dword [ebp - 4], edi
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 - 0x48]
call fcn.0048429c
cmp eax, edi
mov dword [ebp - 0x50], eax
jne 0x47e44c
mov ecx, ebx
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
push str.load_package_storage_failed__file_s
call fcn.0044f0cd
pop ecx
pop ecx
xor bl, bl
jmp 0x47e535
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [ebp - 0x2c]
push eax
push 1
mov ecx, esi
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call fcn.004855ae
push 0xd0
call fcn.0049ecb8
add esp, 0x10
mov dword [ebp - 0x4c], eax
cmp eax, edi
mov byte [ebp - 4], 2
je 0x47e499
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.0048513a
mov edi, eax
mov dword [ebp - 0x4c], edi
push 1
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0045a8d2
push dword [ebp - 0x50]
mov ecx, edi
call fcn.0048550e
test al, al
jne 0x47e4da
mov ecx, ebx
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
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push 0x4c52e8
call fcn.0044f0cd
add esp, 0xc
xor bl, bl
jmp 0x47e51c
and dword [ebp - 0x4c], 0
mov ecx, edi
mov dword [esi + 0xd8], edi
call fcn.004850c2
mov ebx, eax
xor edi, edi
test ebx, ebx
jbe 0x47e51a
mov ecx, dword [esi + 0xd8]
push edi
call fcn.004850cd
test eax, eax
mov dword [ebp - 0x50], eax
je 0x47e515
lea eax, [ebp - 0x50]
push eax
lea ecx, [esi + 0xdc]
call fcn.0046e52b
inc edi
cmp edi, ebx
jb 0x47e4f3
mov bl, 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.0046caef
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call sub.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_
mov al, bl
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f127
leave
ret 4