Function at 0x47b8f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x220
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]
xor ebx, ebx
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x22c], ebx
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov ecx, esi
mov dword [ebp - 4], ebx
call dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
test al, al
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
jne 0x47ba91
push 0x20a
lea eax, [ebp - 0x21a]
push ebx
push eax
mov word [ebp - 0x21c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x220]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t__]
push 0x5c
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::ReverseFind_wchar_t_const]
cmp eax, 0xffffffff
mov ebx, dword [reloc.Common.dll___4CTXStringW__QAEAAV0_ABV0__Z]
je 0x47b9dd
add eax, 1
push eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x220]
call dword [sym.imp.Common.dll_public:_class_CTXStringW___thiscall_CTXStringW::Left_int_]
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call ebx
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 1
call edi
lea ecx, [ebp - 0x220]
call dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
test al, al
jne 0x47ba85
lea ecx, [ebp - 0x220]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::GetLength_void_const]
test eax, eax
jle 0x47ba31
lea ecx, [ebp - 0x220]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::GetLength_void_const]
sub eax, 1
push eax
lea ecx, [ebp - 0x220]
call dword [sym.imp.Common.dll_public:_wchar_t___thiscall_CTXStringW::operator___int_const]
cmp ax, 0x5c
je 0x47ba31
push 0x5c
lea ecx, [ebp - 0x220]
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_]
push esi
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___class_CTXStringW_const__]
add esp, 0xc
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
call ebx
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 1
call edi
lea ecx, [ebp - 0x224]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47ba85
lea ecx, [ebp - 0x224]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::Empty_void_]
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0
call edi
lea ecx, [ebp - 0x224]
call dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
test al, al
jne 0x47baba
lea ecx, [ebp - 0x224]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
call edi
mov eax, dword [ebp - 0x22c]
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