Function at 0x14004c2e0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read .ini file

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14004c301
mov rax, qword [rcx]
add rsp, 0x50
pop rbx
jmp qword [rax + 0x88]
cmp dword [0x1403ff5b8], 0
jne 0x14004c5a9
xor r9d, r9d
lea r8, str.Finished
lea rdx, str.DefLevel
lea rcx, [0x140400ce0]
call fcn.1401076a0
mov dword [0x1403ff5b8], eax
test eax, eax
jne 0x14004c5a9
call fcn.1400562c0
mov rcx, qword [0x1404005e0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14004c380
mov r9d, 1
lea r8, str.Finished
lea rdx, str.DefLevel
lea rcx, [0x140400ce0]
call fcn.140107c34
mov dword [0x1403ff5b8], 1
add rsp, 0x50
pop rbx
ret
mov ecx, 0x20
mov qword [rsp + 0x78], rdi
call fcn.1400f8110
mov qword [rsp + 0x60], rax
mov rdi, rax
test rax, rax
je 0x14004c58c
mov qword [rsp + 0x68], rbp
lea rax, vtable.CDefLevelSetter.0
xor ebp, ebp
mov qword [rdi], rax
mov qword [rdi + 8], rbp
mov qword [rdi + 0x10], rbp
mov dword [rdi + 0x18], ebp
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r15
test rax, rax
jne 0x14004c3ea
lea r8, str.DefLevelSetter.cpp
lea edx, [rbp + 0x33]
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140055180
jmp 0x14004c564
xor r9d, r9d
mov qword [rdi + 8], rax
mov rcx, qword [0x1404005e0]
xor edx, edx
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
lea r8d, [r9 + 1]
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004c547
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x14004c547
mov eax, 2
mov r15, 0xffffffffffffffff
mul rsi
cmovo rax, r15
mov rcx, rax
call fcn.1400f816c
mov r14, rax
test rax, rax
jne 0x14004c471
lea edx, [rax + 0x42]
jmp 0x14004c54c
mov word [rax], bp
lea r8, [0x140345b70]
mov rax, qword [0x1404005e0]
mov r9, r14
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor r9d, r9d
lea r8, str.SetCount
lea rdx, str.DefLevel
lea rcx, [0x140400ce0]
call fcn.1401076a0
mov dword [rdi + 0x10], eax
mov rbx, r14
cmp word [r14], bp
je 0x14004c4e8
mov rdx, rbx
mov rcx, rdi
call fcn.140056420
mov rax, r15
nop
cmp word [rbx + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x14004c4d0
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], bp
jne 0x14004c4c1
cmp dword [rdi + 0x18], ebp
je 0x14004c50e
inc dword [rdi + 0x10]
lea r8, str.SetCount
mov r9d, dword [rdi + 0x10]
lea rdx, str.DefLevel
lea rcx, [0x140400ce0]
call fcn.140107c34
cmp dword [rdi + 0x14], ebp
jne 0x14004c53d
mov r9d, 1
lea r8, str.Finished
lea rdx, str.DefLevel
lea rcx, [0x140400ce0]
call fcn.140107c34
mov dword [0x1403ff5b8], 1
mov rcx, r14
call fcn.1400f8164
jmp 0x14004c55f
mov edx, 0x3e
lea r8, str.DefLevelSetter.cpp
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140055180
mov rsi, qword [rsp + 0x70]
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbx
jmp qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, str.Customized.cpp
mov edx, 0x98a
lea rcx, str._VCpl__RETURN_ON_FALSE:_Line___d__File___s_n
call fcn.140055180
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbx
ret