Function at 0x45bb44
Capabilities:
Create directory
Get common file path
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rax - 0x3d8]
sub rsp, 0x4c0
mov r8d, dword [0x004b8e74]
mov rsi, rdx
mov rdx, qword [0x004b8e68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, qword [0x004b8e68]
xor r14d, r14d
test rcx, rcx
je 0x45bbaa
mov edx, dword [0x004b8e74]
call fcn.004293f8
mov rcx, qword [0x004b8e68]
mov rdi, rax
mov dword [0x004b8e70], eax
jmp 0x45bbb4
mov edi, r14d
mov dword [0x004b8e70], r14d
mov r9, qword [0x004b9088]
test r9, r9
je 0x45bc46
mov eax, dword [0x004b9094]
cmp edi, eax
jb 0x45bbd1
lea edi, [rax - 1]
mov eax, edi
mov rdx, rcx
mov rcx, r9
lea rbx, [rax + rax]
mov r8, rbx
call fcn.00424180
mov rax, qword [0x004b9088]
mov dword [0x004b9090], edi
mov word [rbx + rax], r14w
mov rcx, qword [0x004b9088]
test rcx, rcx
je 0x45bc46
cmp dword [0x004b9090], r14d
jbe 0x45bc46
mov edx, 0x5c
call fcn.00423d84
test rax, rax
je 0x45bc46
mov rcx, qword [0x004b9088]
sub rax, rcx
sar rax, 1
test eax, eax
jle 0x45bc46
test rcx, rcx
je 0x45bc46
cmp eax, dword [0x004b9090]
jae 0x45bc46
mov dword [0x004b9090], eax
mov eax, eax
mov word [rcx + rax*2], r14w
lea rcx, [0x004eeeb0]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov edx, 0x104
mov dword [rbp + 0x1b0], r14d
lea rcx, [0x0048d7e0]
mov dword [rbp + 0x1b4], edx
lea rax, [rbp + 0x1b8]
mov qword [rbp + 0x1a0], rcx
mov qword [rbp + 0x1a8], rax
xor r9d, r9d
lea rax, [rbp - 0x68]
mov dword [rbp - 0x6c], edx
mov qword [rbp - 0x78], rax
xor r8d, r8d
lea rax, [rbp + 0x1b8]
mov qword [rbp - 0x80], rcx
lea edx, [r9 + 0x1a]
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov word [rbp + 0x1b8], r14w
mov dword [rbp - 0x70], r14d
mov word [rbp - 0x68], r14w
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov r8, qword [rbp + 0x1a8]
test r8, r8
je 0x45bce8
mov edx, dword [rbp + 0x1b4]
mov rcx, r8
call fcn.004293f8
mov r8, qword [rbp + 0x1a8]
mov dword [rbp + 0x1b0], eax
jmp 0x45bcef
mov dword [rbp + 0x1b0], r14d
lea rdx, str._sMetaQuotes
lea rcx, [rbp - 0x80]
call fcn.004012e8
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [rbp - 0x78]
or edi, 0xffffffff
mov ebx, 0x80
cmp eax, edi
jne 0x45bd23
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x45bd41
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rbp - 0x78]
call fcn.00413960
test al, al
jne 0x45bd41
mov rcx, qword [rbp - 0x78]
call fcn.00413464
mov r8, qword [rbp + 0x1a8]
lea rdx, str._sMetaQuotesWebInstall
lea rcx, [rbp - 0x80]
call fcn.004012e8
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [rbp - 0x78]
cmp eax, edi
jne 0x45bd74
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x45bd92
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rbp - 0x78]
call fcn.00413960
test al, al
jne 0x45bd92
mov rcx, qword [rbp - 0x78]
call fcn.00413464
mov r8, qword [rbp + 0x1a8]
lea rdx, str._sMetaQuotesCrashes
lea rcx, [rbp - 0x80]
call fcn.004012e8
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [rbp - 0x78]
cmp eax, edi
jne 0x45bdc5
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x45bdcd
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rdx, qword [rbp - 0x78]
call fcn.00412f84
lea r8, str.main
lea rcx, [0x004e1aa0]
call fcn.0040412c
lea rdx, str.core64.exe
lea rcx, [0x004e2350]
call fcn.00403ec4
mov edi, 1
lea r9, [0x00491f10]
lea r8, str.acoaoprbuhxvkfywgweedlovptddahwozl
mov byte [rsp + 0x20], dil
lea rdx, [0x00491f88]
call fcn.0044ce28
call fcn.00456a10
call fcn.004534fc
mov al, byte [0x004ee5e9]
test al, al
jne 0x45beea
mov rcx, qword [0x004eb0e8]
mov ebx, 0x103
test rcx, rcx
je 0x45be80
lea rdx, [rbp + 0x3e0]
mov dword [rbp + 0x3e0], r14d
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rbp + 0x3e0], ebx
je 0x45beea
mov rcx, qword [0x004eb0e8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
mov qword [0x004eb0e8], rcx
mov dword [rbp + 0x3e0], r14d
test rcx, rcx
je 0x45beb5
lea rdx, [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rbp + 0x3e0], ebx
je 0x45beea
mov rcx, qword [0x004eb0e8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x004eb0e8], r14
lea rax, [rbp + 0x3e0]
mov edx, 0x400000
mov qword [rsp + 0x28], rax
lea r9, [0x004e1aa0]
lea r8, [0x004128dc]
mov dword [rsp + 0x20], 0x10000
xor ecx, ecx
call fcn.00437280
mov qword [0x004eb0e8], rax
lea rdx, [0x0045c040]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
lea rcx, [0x0045c070]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
test rsi, rsi
je 0x45bf19
movzx eax, word [rsi]
neg ax
sbb rdx, rdx
and rdx, rsi
jmp 0x45bf1c
mov rdx, r14
call fcn.0045f880
call fcn.0045faf8
mov rdx, rax
call fcn.0045345c
call fcn.00456998
cmp qword [0x004eeea8], r14
jne 0x45bf61
lea r8, [rsp + 0x68]
mov dword [rsp + 0x50], edi
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x58], r14
lea rcx, [0x004eeea8]
mov qword [rsp + 0x60], r14
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_DefWindowProcW]
lea rcx, [rbp + 0x3e8]
mov dword [rbp + 0x3e8], 8
mov dword [rbp + 0x3ec], 4
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
movups xmm0, xmmword [0x00492d08]
mov rbx, qword [0x004b9b40]
mov rax, qword [0x004b9b48]
movdqu xmmword [0x004eee98], xmm0
mov qword [0x004e1a78], r14
jmp 0x45bfdc
mov rcx, qword [rbx]
test rcx, rcx
je 0x45bfd8
mov rax, qword [rcx + 0x38]
mov cl, dil
call rax
mov rax, qword [0x004b9b48]
add rbx, 8
cmp rbx, rax
jb 0x45bfc0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, 0x18
mov qword [0x004e1a88], r14
mov dword [0x004e1a80], eax
call fcn.004228d4
mov qword [rax], r14
mov qword [rax + 8], r14
mov dword [rax + 0x10], r14d
mov qword [0x004e1a88], rax
mov qword [0x004e1a90], r14
call fcn.00412024
lea r11, [rsp + 0x4c0]
mov al, dil
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret