Function at 0x140086c60
Capabilities:
Check mutex on windows
Read .ini file

Disassembly:
push rdi
mov eax, 0x3f80
call fcn.14025e110
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x3f98], rbx
mov rax, qword [0x140499908]
xor rax, rsp
mov qword [rsp + 0x3f70], rax
mov rdi, rcx
lea r8, str.HogwartsLegacyNot2Case
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140086f43
lea rcx, [rsp + 0x30]
call fcn.1400894c0
nop
lea r8, [0x14043faa0]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400821b0
nop
mov rdx, rax
lea rcx, [0x1404ba858]
call fcn.140082310
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140086d09
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140086d25
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [0x1404ba858]
mov r9, qword [0x1404ba8b0]
mov ecx, 1
sub ecx, dword [r9 - 8]
mov eax, dword [r9 - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x140086d61
mov edx, 0x104
lea rcx, [0x1404ba8b0]
call fcn.1400829d0
mov r9, qword [0x1404ba8b0]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x104
lea r8, [0x14043f5c4]
lea rdx, str.language
lea rcx, str.config
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rcx, qword [0x1404ba8b0]
call fcn.14033baec
mov dword [0x1404b32ac], eax
mov rbx, qword [0x1404ba858]
mov r9, qword [0x1404ba8b0]
mov edx, 1
sub edx, dword [r9 - 8]
mov eax, dword [r9 - 0xc]
sub eax, 0x104
or eax, edx
jge 0x140086dd7
mov edx, 0x104
lea rcx, [0x1404ba8b0]
call fcn.1400829d0
mov r9, qword [0x1404ba8b0]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x104
lea r8, [0x14043f5c4]
lea rdx, str.english
lea rcx, str.config
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rcx, qword [0x1404ba8b0]
call fcn.14033baec
mov dword [0x1404b2120], eax
cmp dword [0x1404b32ac], 0
jne 0x140086e20
call qword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov dword [0x1404b32ac], 4
mov ecx, 0x804
call qword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
mov rax, qword [0x1404ba8b0]
xor ebx, ebx
test rax, rax
jne 0x140086e47
mov ecx, ebx
jmp 0x140086e65
movsxd rdx, dword [rax - 0xc]
mov rcx, rax
call fcn.14033a3c4
mov rcx, rax
test eax, eax
js 0x140086f47
mov rax, qword [0x1404ba8b0]
cmp ecx, dword [rax - 0xc]
jg 0x140086f47
mov dword [rax - 0x10], ecx
movsxd rcx, ecx
mov rax, qword [0x1404ba8b0]
mov word [rax + rcx*2], bx
mov dword [rsp + 0x48], 8
mov dword [rsp + 0x4c], 0xff
lea rcx, [rsp + 0x48]
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov rcx, rdi
call fcn.1400bee4c
xor ecx, ecx
call fcn.1400bfef4
mov ecx, 0x18
call fcn.1400a5060
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140086ed5
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov rcx, rax
call fcn.1400c1040
mov rbx, rax
lea rcx, str.CMFCVisualManagerWindows
call fcn.1400cd544
lea rdx, [0x14043faf0]
mov rcx, rdi
call fcn.1400d2520
xor edx, edx
mov r8d, 0x3f18
lea rcx, [rsp + 0x50]
call fcn.140334870
lea rcx, [rsp + 0x50]
call fcn.14008da60
nop
lea rax, [rsp + 0x50]
mov qword [rdi + 0x40], rax
lea rcx, [rsp + 0x50]
call fcn.1400b4ffc
test rbx, rbx
je 0x140086f33
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.1400d3158
nop
lea rcx, [rsp + 0x50]
call fcn.140086f80
xor eax, eax
jmp 0x140086f52
mov ecx, 0x80070057
call fcn.140082d10
int3
mov rcx, qword [rsp + 0x3f70]
xor rcx, rsp
call fcn.14025d560
mov rbx, qword [rsp + 0x3f98]
add rsp, 0x3f80
pop rdi
ret