Function at 0x1800017e0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
lea rdx, [0x180078118]
mov qword [rcx], rax
mov rbx, rcx
mov qword [rcx + 8], rax
mov r8, rcx
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x48], rax
mov qword [rcx + 0x50], rax
mov qword [rcx + 0x60], rax
mov qword [rcx + 0x68], rax
mov qword [rcx + 0x70], rax
mov qword [rcx + 0x78], rax
mov qword [rcx + 0x80], rax
mov qword [rcx + 0x88], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1800018f6
mov qword [rsp + 0x30], rsi
lea rdx, [0x18006a470]
mov ecx, 0xfffe
mov qword [rsp + 0x38], rdi
call fcn.18003ef30
xor edx, edx
mov r8d, 0xfffe
mov rcx, rax
mov rdi, rax
call fcn.180041910
mov esi, 0x7fff
lea rcx, [0x180000000]
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1800018d8
mov edx, 0x5c
mov rcx, rdi
call fcn.180040fdc
test rax, rax
je 0x1800018d8
mov rcx, rax
lea r8, str.log.dll
sub rcx, rdi
sar rcx, 1
sub rsi, rcx
mov rcx, rax
mov rdx, rsi
call fcn.1800459bc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx], rax
mov rcx, rdi
call fcn.18003eec0
mov rcx, qword [rbx]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
test rcx, rcx
je 0x180001a6b
lea rdx, str.LogInit
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000190a
call rax
mov rcx, qword [rbx]
lea rdx, str.LogApplySettings
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.LogSetSettingsFile
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.LogEnable
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.LogSetLevel
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.LogSetPath
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.LogSetType
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.LogSetMode
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.LogSetMaxSize
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.LogSetDepth
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.LogWrite
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.LogIsEnabled
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.LogMonitorSettings
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.LogGetLevel
mov qword [rbx + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.LogUninitDeskMetrics
mov qword [rbx + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.LogTrackEvent
mov qword [rbx + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.LogTrackEventData
mov qword [rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.LogRemoveModule
mov qword [rbx + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [rbx + 0x50], 0
mov qword [rbx + 0x80], rax
jne 0x180001a76
lea rax, [0x180001ad0]
mov qword [rbx + 0x50], rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret