Function at 0x464d30
Capabilities:
Check if file exists
Create directory
Get file attributes
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8a16
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0x514fc0
mov dword [ebp - 0x10], 0x514fc0
call fcn.00499b50
mov dword [ebp - 4], 0
mov dword [0x515098], 0x514fc0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x1c]
push 0x12
push eax
call fcn.0048bb10
mov edi, eax
mov byte [ebp - 4], 3
mov edx, 0x23
lea ecx, [ebp - 0x10]
call fcn.00494df0
push 0xd
push str.ASR8Settings
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 1
call fcn.00461400
push dword [ebp - 0x10]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x464de2
push 0
push dword [ebp - 0x10]
call ebx
mov ecx, dword [ebp - 0x10]
call fcn.00471f00
push 3
push 0x4ee0bc
lea ecx, [ebp - 0x10]
call fcn.00461400
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x464e08
push eax
push dword [ebp - 0x10]
call ebx
mov ecx, dword [ebp - 0x10]
call fcn.00471f00
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004698b0
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, 1
mov dword [ebp - 0x14], eax
and eax, 0xfffffffe
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
or ebx, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x464e4c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x464e6a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x18]
push 0x4edf58
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlNtStatusToDosError
push eax
mov dword [0x514eb0], eax
call esi
push str.ZwQueryInformationFile
push dword [0x514eb0]
mov dword [0x514c98], eax
call esi
push str.ZwCreateFile
push dword [0x514eb0]
mov dword [0x514c94], eax
call esi
push str.RtlInitUnicodeString
push dword [0x514eb0]
mov dword [0x514ca4], eax
call esi
push str.ZwSetInformationFile
push dword [0x514eb0]
mov dword [0x514ca0], eax
call esi
push ecx
push edi
push ecx
mov edx, 0x104
mov dword [0x514c9c], eax
mov ecx, 0x514ca8
call fcn.0048c510
test eax, eax
jns 0x464ef8
xor eax, eax
mov word [0x514ca8], ax
jmp 0x464f1f
push 0x514ca8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x464f1f
push 0
push 0x514ca8
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x464f1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x464f3b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, 0x514fc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret