Function at 0x140006bb0
Capabilities:
Accept command line arguments
Check mutex on windows
Delete directory
Write file on windows

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x1400654e8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov ebx, r9d
mov rdi, rcx
call sub.MAGNIFICATION.dll_MagInitialize
test eax, eax
je 0x1400071c6
mov qword [rsp + 0xe0], rsi
mov qword [rsp + 0xb8], r14
mov qword [rsp + 0xb0], r15
call fcn.140003e70
mov qword [rax], rdi
call fcn.140003e70
mov dword [rax + 8], ebx
call fcn.140003e70
mov rcx, rax
call fcn.14000d4f0
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor r14d, r14d
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r14
mov r8, 0xffffffffffffffff
mov qword [rbp + 7], r14
inc r8
cmp byte [rax + r8], r14b
jne 0x140006c35
mov qword [rsp + 0xe8], r12
lea rcx, [rbp - 0x11]
mov rdx, rax
mov qword [rsp + 0xf0], r13
call fcn.140001fb0
mov r15, qword [rbp + 7]
lea rdi, [rbp - 0x11]
mov rsi, qword [rbp - 0x11]
cmp r15, 0x10
mov rax, qword [rbp - 1]
cmovae rdi, rsi
cmp rax, 0x10
jb 0x140006ce1
lea r14, [rax + rdi]
mov edx, 0x64
lea r8, [r14 - 0xf]
mov rcx, rdi
sub r8, rdi
call fcn.14001f5c0
mov rbx, rax
test rax, rax
je 0x140006cde
movabs r12, 0x6f636574656c6564
movabs r13, 0x656c69666769666e
nop dword [rax]
cmp qword [rbx], r12
jne 0x140006cbf
cmp qword [rbx + 8], r13
je 0x140006dc6
inc rbx
lea r8, [r14 - 0xf]
sub r8, rbx
mov rcx, rbx
mov edx, 0x64
call fcn.14001f5c0
mov rbx, rax
test rax, rax
jne 0x140006cb0
xor r14d, r14d
mov rbx, 0xffffffffffffffff
cmp r15, 0x10
jb 0x140006d1f
lea rdx, [r15 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140006d17
mov rsi, qword [rsi - 8]
add rdx, 0x27
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400071ef
mov rcx, rsi
call fcn.14001d504
cmp rbx, 0xffffffffffffffff
je 0x140007032
lea rdx, str.APPDATA
lea rcx, [rbp - 0x11]
call fcn.14001a780
mov r14, qword [rbp - 1]
movabs r13, 0x7fffffffffffffff
mov rax, r13
sub rax, r14
cmp rax, 0x1a
jb 0x1400071f5
cmp qword [rbp + 7], 0x10
lea r12, [rbp - 0x11]
mov ebx, 0xf
lea r15, [r14 + 0x1a]
cmovae r12, qword [rbp - 0x11]
lea rsi, [rbp - 0x31]
xorps xmm0, xmm0
xorps xmm1, xmm1
mov edi, ebx
movabs rax, 0x8000000000000000
lea ecx, [rbx + 7]
movups xmmword [rbp - 0x31], xmm0
movdqu xmmword [rbp - 0x21], xmm1
cmp r15, rbx
jbe 0x140006e09
mov rdi, r15
or rdi, rbx
cmp rdi, r13
jbe 0x140006dd1
mov rdi, r13
add rax, 0x27
mov rcx, rax
call fcn.14001d4c8
test rax, rax
je 0x1400071fb
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140006e05
sub rbx, rdi
xor r14d, r14d
jmp 0x140006ce8
cmp rdi, rcx
cmovb rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x140006df4
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400071e3
jmp 0x140006da7
test rcx, rcx
je 0x140006e03
call fcn.14001d4c8
mov rsi, rax
jmp 0x140006e05
xor esi, esi
mov qword [rbp - 0x31], rsi
mov r8, r14
mov qword [rbp - 0x21], r15
mov rdx, r12
mov qword [rbp - 0x19], rdi
mov rcx, rsi
call fcn.14001f760
movups xmm0, xmmword [str.DarkModeAnyAppCONFIG.ini]
lea rcx, [rbp - 0x31]
movups xmmword [rsi + r14], xmm0
movsd xmm1, qword [0x14004b140]
movsd qword [rsi + r14 + 0x10], xmm1
movzx eax, word [0x14004b148]
mov word [rsi + r14 + 0x18], ax
mov byte [rsi + r15], 0
cmp qword [rbp - 0x19], 0x10
cmovae rcx, qword [rbp - 0x31]
call fcn.140024674
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x140006e9a
mov rcx, qword [rbp - 0x31]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006e95
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400071fb
call fcn.14001d504
mov rsi, qword [rbp - 1]
mov rax, r13
sub rax, rsi
cmp rax, rbx
jb 0x140007201
cmp qword [rbp + 7], 0x10
lea r15, [rbp - 0x11]
lea r14, [rsi + 0xf]
xorps xmm0, xmm0
cmovae r15, qword [rbp - 0x11]
lea rdi, [rbp - 0x31]
xorps xmm1, xmm1
movups xmmword [rbp - 0x31], xmm0
movdqu xmmword [rbp - 0x21], xmm1
cmp r14, rbx
jbe 0x140006f51
mov rbx, r14
or rbx, 0xf
cmp rbx, r13
jbe 0x140006f13
movabs rax, 0x8000000000000000
mov rbx, r13
add rax, 0x27
mov rcx, rax
call fcn.14001d4c8
test rax, rax
je 0x140007207
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140006f4d
cmp rbx, 0x16
mov eax, 0x16
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140006f3c
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400071e9
jmp 0x140006ef4
test rcx, rcx
je 0x140006f4b
call fcn.14001d4c8
mov rdi, rax
jmp 0x140006f4d
xor edi, edi
mov qword [rbp - 0x31], rdi
mov r8, rsi
mov qword [rbp - 0x21], r14
mov rdx, r15
mov qword [rbp - 0x19], rbx
mov rcx, rdi
call fcn.14001f760
movsd xmm0, qword [str.DarkModeAnyApp]
lea rcx, [rbp - 0x31]
movsd qword [rdi + rsi], xmm0
mov eax, dword [0x14004b158]
mov dword [rdi + rsi + 8], eax
movzx eax, word [0x14004b15c]
mov word [rdi + rsi + 0xc], ax
movzx eax, byte [0x14004b15e]
mov byte [rdi + rsi + 0xe], al
mov byte [rdi + r14], 0
cmp qword [rbp - 0x19], 0x10
cmovae rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x140006fe9
mov rcx, qword [rbp - 0x31]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006fe4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007207
call fcn.14001d504
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x14000714a
mov rcx, qword [rbp - 0x11]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007023
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400071dd
call fcn.14001d504
mov eax, 1
jmp 0x14000719e
movzx eax, word [0x14004b178]
lea r8, [rbp + 0xf]
movups xmm0, xmmword [str.com_topiary_darkmodeanyapp]
mov edx, 1
mov word [rbp + 0x27], ax
movsd xmm1, qword [0x14004b170]
xor ecx, ecx
movzx eax, byte [0x14004b17a]
mov byte [rbp + 0x29], al
movups xmmword [rbp + 0xf], xmm0
movsd qword [rbp + 0x1f], xmm1
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140007181
mov qword [rsp + 0x30], r14
lea rcx, str..pipeDarkModeAnyAppPipe
mov dword [rsp + 0x28], r14d
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140007151
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error_opening_named_pipe:
mov ebx, eax
lea rcx, [0x140068330]
call fcn.140001d00
mov rcx, rax
mov edx, ebx
call fcn.140003970
mov rdi, rax
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov rcx, qword [rdx + rax + 0x40]
mov rbx, qword [rcx + 8]
mov rcx, rbx
mov qword [rbp - 0x29], rbx
mov rdx, qword [rbx]
call qword [rdx + 8]
lea rcx, [rbp - 0x31]
call fcn.1400027a0
mov dl, 0xa
mov rcx, rax
mov r8, qword [rax]
call qword [r8 + 0x40]
movzx esi, al
test rbx, rbx
je 0x140007136
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x10]
test rax, rax
je 0x140007136
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
movzx edx, sil
mov rcx, rdi
call fcn.1400069f0
mov rcx, rdi
call fcn.1400067d0
mov eax, 1
jmp 0x14000719e
lea r9, [rbp - 0x39]
mov qword [rsp + 0x20], r14
mov r8d, 0xb
lea rdx, str.ShowConfig
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000714a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000719e
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call fcn.140003e70
mov dword [rax + 0x48], ebx
call fcn.140003e70
mov rcx, rax
call fcn.14000f4c0
mov r13, qword [rsp + 0xf0]
mov r12, qword [rsp + 0xe8]
mov r14, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xe0]
mov r15, qword [rsp + 0xb0]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14001dad0
add rsp, 0xc0
pop rdi
pop rbx
pop rbp
ret
call fcn.140023f54
int3
call fcn.1400054e0
int3
call fcn.1400054e0
int3
call fcn.140023f54
int3
call fcn.140005520
int3
call fcn.140023f54
int3
call fcn.140005520
int3
call fcn.140023f54
int3