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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d1204
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x29c
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x4b142d
push 0x5ea094
lea ecx, [ebp - 0xd8]
call fcn.0040bdb0
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xb0]
push ecx
lea ecx, [ebp - 0xc0]
call fcn.0040bfb0
push 0x638098
lea edx, [ebp - 0xc0]
push edx
call sub.VCRUNTIME140.dll__CxxThrowException
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd8]
call fcn.0040b3b0
lea ecx, [ebp - 0x2c]
call fcn.00409640
mov byte [ebp - 4], 2
push str._A_OICI_GA___SY_
lea ecx, [ebp - 0x2c]
call fcn.00416420
push str._A_OICI_GA___BA_
lea ecx, [ebp - 0x2c]
call fcn.00416420
push 1
lea eax, [ebp - 0x2c]
push eax
call fcn.00470f50
add esp, 8
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x38], 0
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x48], 0
je 0x4b14b0
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x40], 0
je 0x4b16a7
cmp dword [ebp - 0x40], 0xb7
je 0x4b16a7
cmp dword [ebp - 0x40], 0x50
je 0x4b16a7
call dword [sym.imp.Dbglog.dll_struct_boost::logging::level::holder_no_ts____cdecl_g_l_filter_void_]
mov dword [ebp - 0x50], eax
push 0xfa0
mov ecx, dword [ebp - 0x50]
call fcn.0040a130
mov byte [ebp - 0x39], al
movzx ecx, byte [ebp - 0x39]
test ecx, ecx
jne 0x4b14f7
jmp 0x4b168f
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x15c]
call fcn.00418dd0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 3
call dword [sym.imp.Dbglog.dll_struct_boost::logging::logger_holder_struct_boost::logging::logger_format_write_struct_boost::logging::default___struct_boost::logging::default___struct_boost::logging::writer::threading::ts_write__struct_boost::logging::default___struct_boost::logging::lock_resource_finder::single_thread______cdecl_g_l_void_]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.004048b0
add esp, 4
mov dword [ebp - 0x5c], eax
lea edx, [ebp - 0x204]
push edx
mov ecx, dword [ebp - 0x5c]
call fcn.00402ad0
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x64]
call fcn.00402a30
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
call fcn.00402d20
mov dword [ebp - 0x6c], eax
push 0x5ea158
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00409d00
add esp, 8
mov dword [ebp - 0x70], eax
push 0x5ea154
mov edx, dword [ebp - 0x70]
push edx
call fcn.00409d00
add esp, 8
mov dword [ebp - 0x74], eax
push 0x5ea134
mov eax, dword [ebp - 0x74]
push eax
call fcn.00409d00
add esp, 8
mov dword [ebp - 0x78], eax
push 0x5ea12c
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.00409d00
add esp, 8
mov dword [ebp - 0x7c], eax
push str.Critical_Error____Failed_to_create_folder
mov edx, dword [ebp - 0x7c]
push edx
call fcn.00409d00
add esp, 8
mov dword [ebp - 0x80], eax
push 0x5ea0fc
mov eax, dword [ebp - 0x80]
push eax
call fcn.00409d00
add esp, 8
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x84]
call fcn.00418da0
push eax
mov ecx, dword [ebp - 0x88]
push ecx
call fcn.00409d00
add esp, 8
mov dword [ebp - 0x8c], eax
push 0x5ea0f8
mov edx, dword [ebp - 0x8c]
push edx
call fcn.00409d00
add esp, 8
mov dword [ebp - 0x90], eax
push 0x5ea0f0
mov eax, dword [ebp - 0x90]
push eax
call fcn.00409d00
add esp, 8
mov dword [ebp - 0x94], eax
push 0x416260
mov ecx, dword [ebp - 0x94]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x98]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
mov dword [ebp - 0x9c], eax
push 0x5ea0ec
mov edx, dword [ebp - 0x9c]
push edx
call fcn.00409d00
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x204]
call fcn.00402a50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x15c]
call fcn.00418db0
mov byte [ebp - 0x3a], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0040a7f0
mov al, byte [ebp - 0x3a]
jmp 0x4b17d0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xffffffff
je 0x4b16d1
mov ecx, dword [ebp - 0x44]
or ecx, 6
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0040a7f0
jmp 0x4b17b9
mov dword [ebp - 4], 0xffffffff
jmp 0x4b17ce
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret 4