Function at 0x140007a24
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
lea rdx, [rsp + 0x68]
mov rdi, rcx
call fcn.140008a94
mov rbx, qword [rsp + 0x68]
lea r14, [rdi + 0x98]
xor r13d, r13d
cmp dword [rbx - 0x10], r13d
je 0x140007b91
lea r15, str.LoggingSettings
mov r9, rbx
mov rcx, r15
lea r8d, [r13 + 1]
lea rdx, str.EnableLogging
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r9, rbx
lea r8d, [r13 + 1]
test eax, eax
lea rdx, str.ShowTime
mov rcx, r15
setne al
mov byte [rdi + 0x90], al
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r9, rbx
lea rdx, str.LogToFile
test eax, eax
mov rcx, r15
setne al
xor r8d, r8d
mov byte [rdi + 0x92], al
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r9, rbx
lea rdx, str.LogToOutputDebug
test eax, eax
mov rcx, r15
setne al
xor r8d, r8d
mov byte [rdi + 0x93], al
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r9, rbx
lea r8d, [r13 + 1]
test eax, eax
lea rdx, str.AppendToFile
mov rcx, r15
setne al
mov byte [rdi + 0xa0], al
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [r13 + 1]
mov ebp, 0x104
test eax, eax
setne al
mov byte [rdi + 0xa1], al
mov r9, qword [r14]
mov eax, dword [r9 - 0xc]
sub ecx, dword [r9 - 8]
sub eax, ebp
or ecx, eax
jge 0x140007b37
mov edx, ebp
mov rcx, r14
call fcn.140001b30
mov r9, qword [r14]
mov qword [rsp + 0x28], rbx
lea r8, str.CocCocUpdate.log
lea rdx, str.LogFilePath
mov dword [rsp + 0x20], ebp
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rcx, qword [r14]
test rcx, rcx
jne 0x140007b64
mov eax, r13d
jmp 0x140007b75
movsxd rdx, dword [rcx - 0xc]
call fcn.14002be98
test eax, eax
js 0x140007cb8
mov rcx, qword [r14]
cmp eax, dword [rcx - 0xc]
jg 0x140007cb8
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [r14]
mov word [rax + rcx*2], r13w
jmp 0x140007bc8
lea rcx, str.CocCocUpdate.log
mov byte [rdi + 0x90], 1
mov word [rdi + 0x92], 1
mov word [rdi + 0xa0], pe_nt_image_headers64
call fcn.14002bd6c
mov r8d, eax
lea rdx, str.CocCocUpdate.log
mov rcx, r14
call fcn.140001a24
cmp byte [rdi + 0x91], r13b
je 0x140007bd8
mov byte [rdi + 0x92], 1
mov byte [rdi], 1
lea rax, str.LC_UTIL
mov dword [rdi + 4], 7
mov r14, r13
mov r15, qword [r14 + rax]
test r15, r15
je 0x140007c64
movsxd r12, dword [r14 + rax + 8]
cmp r12d, 9
ja 0x140007c64
lea rdx, [rsp + 0x70]
mov rcx, rdi
mov ebp, 1
call fcn.140008a94
mov rbx, qword [rsp + 0x70]
cmp dword [rbx - 0x10], r13d
je 0x140007c35
mov r9, rbx
lea rcx, str.LoggingLevel
mov r8d, ebp
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebp, eax
test ebp, ebp
mov dword [rdi + r12*8 + 4], ebp
lea rdx, [rbx - 0x18]
setne cl
or eax, 0xffffffff
mov byte [rdi + r12*8], cl
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140007c5d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rax, str.LC_UTIL
add r14, 0x10
cmp r14, 0x90
jb 0x140007bec
call fcn.140007524
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov qword [rdi + 0xa8], rax
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140007ca0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, 0x80070057
call fcn.140001880
int3