Function at 0x4e32cc
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x40
mov eax, 0x596f7e
call fcn.00584f68
mov edi, ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
call fcn.004588a0
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x24]
push str..FS_AddFileSystem
push eax
call sym.txupd.exe_class_CTXStringW___cdecl_operator_wchar_t_const___class_CTXStringW_const__
add esp, 0x14
push 0x5a3f7c
mov ecx, eax
mov byte [ebp - 4], 1
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push str.CTXFileSystemMgr::AddFileSystem
xor ebx, ebx
inc ebx
push ebx
push 0xb9
lea eax, [ebp - 0x4c]
push str.....SourceCommonFileSystemFileSystemMgr.cpp
push eax
call fcn.004b1d3b
add esp, 0x1c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea esi, [edi + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x1c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
mov ecx, edi
call fcn.004dfd46
lea ecx, [ebp - 0x1c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, dword [edi + 4]
push edi
push eax
lea ecx, [ebp - 0x30]
call fcn.004decdd
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x38]
call fcn.004de1d6
test al, al
push esi
jne 0x4e33ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004b1dba
mov eax, esi
call fcn.00585040
ret 0x18
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 7
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
mov ecx, edi
call fcn.004de73f
test eax, eax
je 0x4e34e1
lea ecx, [ebp - 0x18]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
mov ecx, edi
call fcn.004e0286
mov esi, eax
test esi, esi
je 0x4e34e1
cmp dword [esi + 4], ebx
jne 0x4e3494
lea eax, [ebp - 0x18]
push 0x5b8b10
push eax
call sym.txupd.exe_bool___cdecl_operator_class_CTXStringW_const___wchar_t_const__
test al, al
pop ecx
pop ecx
je 0x4e3440
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.0049f0c7
jmp 0x4e348c
push 0x5d13ac
add esi, 8
lea eax, [ebp + 0xc]
push esi
push eax
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 8
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___class_CTXStringW_const__
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call fcn.0049f0c7
lea ecx, [ebp + 8]
mov byte [ebp - 4], 8
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 7
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov dword [ebp + 8], ebx
jmp 0x4e3641
push dword [ebp + 0x18]
lea ecx, [ebp - 0x14]
push dword [ebp + 0x14]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
mov ecx, edi
call fcn.004e3106
mov esi, eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
jmp 0x4e3396
cmp dword [ebp + 8], 0
jne 0x4e35d6
lea ecx, [ebp - 0x1c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
push str..rdb
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 0xa
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.0049f0c7
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xa
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x1c]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
cmp eax, 0xffffffff
je 0x4e3550
mov dword [ebp + 8], 6
lea ecx, [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.0049f0c7
jmp 0x4e35ca
push 0x5b9538
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xc
call fcn.0049f0c7
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xa
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x1c]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call esi
cmp eax, 0xffffffff
lea ecx, [ebp - 0x10]
je 0x4e359a
mov dword [ebp + 8], 2
jmp 0x4e3545
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4e35be
push 0
lea ecx, [ebp - 0x10]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4e35c3
test bl, 0x10
je 0x4e35f6
mov dword [ebp + 8], 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
cmp dword [ebp + 8], 2
je 0x4e35e2
cmp dword [ebp + 8], 4
jne 0x4e3641
mov ecx, dword [0x611610]
test ecx, ecx
je 0x4e3641
cmp dword [ebp + 0x14], 0
je 0x4e3630
push 0
jmp 0x4e3633
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov esi, 0x80004005
jmp 0x4e3396
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004ddf38
mov dword [ebp + 8], eax
and dword [ebp - 0x20], 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x30]
lea esi, [edi + 0x24]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.004dfdb2
mov eax, dword [esi + 4]
push esi
push eax
lea ecx, [ebp - 0x38]
call fcn.004ded26
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
call fcn.004de222
test al, al
jne 0x4e36cc
lea ecx, [ebp - 0x30]
call fcn.004de354
cmp dword [eax + 4], 0
je 0x4e36cc
lea ecx, [ebp - 0x30]
call fcn.004de354
mov ebx, dword [eax + 4]
mov esi, dword [ebx]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x18]
lea ecx, [ebp - 0x10]
push dword [ebp + 0x14]
add esi, 0x1c
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push ebx
call dword [esi]
mov esi, eax
test esi, esi
jge 0x4e36cc
mov eax, dword [ebp - 0x20]
test eax, eax
mov byte [ebp - 4], 7
je 0x4e34b8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4e34b8
xor esi, esi
cmp dword [ebp - 0x20], esi
je 0x4e3602
push 0x10
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, esi
mov byte [ebp - 4], 0xe
je 0x4e36f3
mov ecx, eax
call fcn.004df142
mov esi, eax
push dword [ebp + 0x10]
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.0049f071
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 8]
call fcn.0049f0c7
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0xc]
call fcn.004dec57
lea ebx, [edi + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov ecx, edi
call fcn.004e2f20
push ebx
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x20]
test eax, eax
mov byte [ebp - 4], 7
je 0x4e374b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
xor esi, esi
jmp 0x4e3396