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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x24], esi
lea ebx, [esi + 8]
push ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.005487bd
lea ecx, [ebp - 0x14]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, dword [ebp - 0x18]
push ebx
cmp eax, dword [esi]
je 0x545c8d
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
inc eax
jmp 0x545ede
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__
lea ecx, [ebp - 0xc]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
lea ecx, [ebp - 8]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ecx
lea eax, [ebp - 4]
mov ecx, esp
push eax
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
mov ecx, esi
call fcn.00547260
xor edi, edi
test eax, eax
je 0x545de3
lea ecx, [ebp - 0xc]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
mov ecx, esi
call fcn.00547410
mov dword [ebp + 0xc], eax
test eax, eax
je 0x545de3
xor ebx, ebx
inc ebx
cmp dword [eax + 4], ebx
jne 0x545dba
lea eax, [ebp - 0xc]
push 0x7122ec
push eax
call sym.txupd.exe_bool___cdecl_operator_class_CTXStringW_const___wchar_t_const__
pop ecx
test al, al
lea eax, [ebp - 8]
pop ecx
push eax
je 0x545d1c
lea ecx, [ebp - 4]
call fcn.0051b603
jmp 0x545d5a
mov eax, dword [ebp + 0xc]
add eax, 8
push 0x6fdc28
push eax
lea eax, [ebp + 0xc]
push eax
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__
add esp, 0xc
push eax
lea eax, [ebp + 8]
push eax
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___class_CTXStringW_const__
add esp, 0xc
lea ecx, [ebp - 4]
push eax
call fcn.0051b603
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp + 0xc]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov dword [ebp + 8], ebx
lea eax, [ebp + 8]
mov dword [ebp - 0x10], edi
push eax
lea ecx, [esi + 0x20]
call fcn.0054567d
cmp eax, dword [esi + 0x20]
je 0x545d76
cmp ebx, dword [eax + 0x10]
jge 0x545d79
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x20]
je 0x545eb7
mov eax, dword [eax + 0x14]
mov dword [ebp + 8], eax
test eax, eax
je 0x545eb7
mov esi, dword [eax]
lea ecx, [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x18]
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 + 8]
call dword [esi + 0x1c]
test eax, eax
jns 0x545e47
mov edi, eax
jmp 0x545ebc
push dword [ebp + 0x18]
lea ecx, [ebp - 8]
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 - 0xc]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
mov ecx, esi
call fcn.00545ee7
mov edi, eax
jmp 0x545ec4
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x545d5d
lea ecx, [ebp + 0xc]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
lea ecx, [ebp - 4]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x545e20
push edi
lea ecx, [ebp - 4]
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 0x545e25
test bl, 0x10
je 0x545e38
xor ebx, ebx
lea ecx, [ebp + 0xc]
inc ebx
mov dword [ebp + 8], ebx
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
jmp 0x545d5d
lea ecx, [ebp + 0xc]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov edi, 0x80004005
jmp 0x545ec4
cmp dword [ebp - 0x10], edi
je 0x545eb7
push 0x10
call fcn.00682bd5
pop ecx
test eax, eax
je 0x545e63
mov ecx, eax
call fcn.0054597d
mov esi, eax
jmp 0x545e65
mov esi, edi
push dword [ebp + 0x10]
mov ecx, esi
call fcn.0051b674
lea eax, [ebp - 4]
mov dword [esi + 4], ebx
push eax
lea ecx, [esi + 8]
call fcn.0051b603
mov eax, dword [ebp - 0x10]
lea ecx, [esi + 0xc]
cmp dword [ecx], eax
je 0x545e91
push eax
push ecx
call fcn.004e58b6
pop ecx
pop ecx
mov ebx, dword [ebp - 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.005456f0
mov eax, dword [ebp - 0x20]
push ebx
mov dword [eax + 0x14], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x545ebc
mov edi, 0x80004005
lea ecx, [ebp - 0x10]
call fcn.005459a8
lea ecx, [ebp - 8]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0xc]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 4]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18