Function at 0x14004a0e0
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 0x14004a101
mov rax, qword [rcx]
add rsp, 0x50
pop rbx
jmp qword [rax + 0x88]
cmp dword [0x1403dba48], 0
jne 0x14004a3a9
xor r9d, r9d
lea r8, str.Finished
lea rdx, str.DefLevel
lea rcx, [0x1403dd120]
call fcn.140102880
mov dword [0x1403dba48], eax
test eax, eax
jne 0x14004a3a9
call fcn.1400541b0
mov rcx, qword [0x1403dca20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14004a180
mov r9d, 1
lea r8, str.Finished
lea rdx, str.DefLevel
lea rcx, [0x1403dd120]
call fcn.140102e14
mov dword [0x1403dba48], 1
add rsp, 0x50
pop rbx
ret
mov ecx, 0x20
mov qword [rsp + 0x78], rdi
call fcn.1400f48fc
mov qword [rsp + 0x60], rax
mov rdi, rax
test rax, rax
je 0x14004a38c
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 0x14004a1ea
lea r8, str.c:userschunyung_source_repos_rtkngui_rtknguideflevelsetter.cpp
lea edx, [rbp + 0x33]
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140052e90
jmp 0x14004a364
xor r9d, r9d
mov qword [rdi + 8], rax
mov rcx, qword [0x1403dca20]
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 0x14004a347
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 0x14004a347
mov eax, 2
mov r15, 0xffffffffffffffff
mul rsi
cmovo rax, r15
mov rcx, rax
call fcn.1400f494c
mov r14, rax
test rax, rax
jne 0x14004a271
lea edx, [rax + 0x42]
jmp 0x14004a34c
mov word [rax], bp
lea r8, [0x140328530]
mov rax, qword [0x1403dca20]
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, [0x1403dd120]
call fcn.140102880
mov dword [rdi + 0x10], eax
mov rbx, r14
cmp word [r14], bp
je 0x14004a2e8
mov rdx, rbx
mov rcx, rdi
call fcn.140054310
mov rax, r15
nop
cmp word [rbx + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x14004a2d0
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], bp
jne 0x14004a2c1
cmp dword [rdi + 0x18], ebp
je 0x14004a30e
inc dword [rdi + 0x10]
lea r8, str.SetCount
mov r9d, dword [rdi + 0x10]
lea rdx, str.DefLevel
lea rcx, [0x1403dd120]
call fcn.140102e14
cmp dword [rdi + 0x14], ebp
jne 0x14004a33d
mov r9d, 1
lea r8, str.Finished
lea rdx, str.DefLevel
lea rcx, [0x1403dd120]
call fcn.140102e14
mov dword [0x1403dba48], 1
mov rcx, r14
call fcn.1400f4944
jmp 0x14004a35f
mov edx, 0x3e
lea r8, str.c:userschunyung_source_repos_rtkngui_rtknguideflevelsetter.cpp
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140052e90
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.c:userschunyung_source_repos_rtkngui_rtknguicustomized.cpp
mov edx, 0x98a
lea rcx, str._VCpl__RETURN_ON_FALSE:_Line___d__File___s_n
call fcn.140052e90
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbx
ret