Function at 0x140006b90
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, 0xe0
mov rax, qword [0x14005f508]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov ebx, r9d
mov rdi, rcx
call sub.MAGNIFICATION.dll_MagInitialize
test eax, eax
je 0x1400071a6
mov qword [rsp + 0x100], rsi
mov qword [rsp + 0xd8], r14
mov qword [rsp + 0xd0], r15
call fcn.140003e60
mov qword [rax], rdi
call fcn.140003e60
mov dword [rax + 8], ebx
call fcn.140003e60
mov rcx, rax
call fcn.14000d530
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 0x140006c15
mov qword [rsp + 0x108], r12
lea rcx, [rbp - 0x11]
mov rdx, rax
mov qword [rsp + 0x110], r13
call fcn.140001fa0
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 0x140006cc1
lea r14, [rax + rdi]
mov edx, 0x64
lea r8, [r14 - 0xf]
mov rcx, rdi
sub r8, rdi
call fcn.14001f4c0
mov rbx, rax
test rax, rax
je 0x140006cbe
movabs r12, 0x6f636574656c6564
movabs r13, 0x656c69666769666e
nop dword [rax]
cmp qword [rbx], r12
jne 0x140006c9f
cmp qword [rbx + 8], r13
je 0x140006da6
inc rbx
lea r8, [r14 - 0xf]
sub r8, rbx
mov rcx, rbx
mov edx, 0x64
call fcn.14001f4c0
mov rbx, rax
test rax, rax
jne 0x140006c90
xor r14d, r14d
mov rbx, 0xffffffffffffffff
cmp r15, 0x10
jb 0x140006cff
lea rdx, [r15 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140006cf7
mov rsi, qword [rsi - 8]
add rdx, 0x27
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400071cf
mov rcx, rsi
call fcn.14001d55c
cmp rbx, 0xffffffffffffffff
je 0x140007012
lea rdx, str.APPDATA
lea rcx, [rbp - 0x31]
call fcn.14001a930
mov r14, qword [rbp - 0x21]
movabs r13, 0x7fffffffffffffff
mov rax, r13
sub rax, r14
cmp rax, 0x1a
jb 0x1400071d5
cmp qword [rbp - 0x19], 0x10
lea r12, [rbp - 0x31]
mov ebx, 0xf
lea r15, [r14 + 0x1a]
cmovae r12, qword [rbp - 0x31]
lea rsi, [rbp - 0x51]
xorps xmm0, xmm0
xorps xmm1, xmm1
mov edi, ebx
movabs rax, 0x8000000000000000
lea ecx, [rbx + 7]
movups xmmword [rbp - 0x51], xmm0
movdqu xmmword [rbp - 0x41], xmm1
cmp r15, rbx
jbe 0x140006de9
mov rdi, r15
or rdi, rbx
cmp rdi, r13
jbe 0x140006db1
mov rdi, r13
add rax, 0x27
mov rcx, rax
call fcn.14001d520
test rax, rax
je 0x1400071db
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140006de5
sub rbx, rdi
xor r14d, r14d
jmp 0x140006cc8
cmp rdi, rcx
cmovb rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x140006dd4
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400071c3
jmp 0x140006d87
test rcx, rcx
je 0x140006de3
call fcn.14001d520
mov rsi, rax
jmp 0x140006de5
xor esi, esi
mov qword [rbp - 0x51], rsi
mov r8, r14
mov qword [rbp - 0x41], r15
mov rdx, r12
mov qword [rbp - 0x39], rdi
mov rcx, rsi
call fcn.14001f660
movups xmm0, xmmword [str.DarkModeAnyAppCONFIG.ini]
lea rcx, [rbp - 0x51]
movups xmmword [rsi + r14], xmm0
movsd xmm0, qword [0x1400480e0]
movsd qword [rsi + r14 + 0x10], xmm0
movzx eax, word [0x1400480e8]
mov word [rsi + r14 + 0x18], ax
mov byte [rsi + r15], 0
cmp qword [rbp - 0x39], 0x10
cmovae rcx, qword [rbp - 0x51]
call fcn.140024544
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x140006e7a
mov rcx, qword [rbp - 0x51]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006e75
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400071db
call fcn.14001d55c
mov rsi, qword [rbp - 0x21]
mov rax, r13
sub rax, rsi
cmp rax, rbx
jb 0x1400071e1
cmp qword [rbp - 0x19], 0x10
lea r15, [rbp - 0x31]
lea r14, [rsi + 0xf]
xorps xmm0, xmm0
cmovae r15, qword [rbp - 0x31]
lea rdi, [rbp - 0x51]
xorps xmm1, xmm1
movups xmmword [rbp - 0x51], xmm0
movdqu xmmword [rbp - 0x41], xmm1
cmp r14, rbx
jbe 0x140006f31
mov rbx, r14
or rbx, 0xf
cmp rbx, r13
jbe 0x140006ef3
movabs rax, 0x8000000000000000
mov rbx, r13
add rax, 0x27
mov rcx, rax
call fcn.14001d520
test rax, rax
je 0x1400071e7
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140006f2d
cmp rbx, 0x16
mov eax, 0x16
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140006f1c
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400071c9
jmp 0x140006ed4
test rcx, rcx
je 0x140006f2b
call fcn.14001d520
mov rdi, rax
jmp 0x140006f2d
xor edi, edi
mov qword [rbp - 0x51], rdi
mov r8, rsi
mov qword [rbp - 0x41], r14
mov rdx, r15
mov qword [rbp - 0x39], rbx
mov rcx, rdi
call fcn.14001f660
movsd xmm0, qword [str.DarkModeAnyApp]
lea rcx, [rbp - 0x51]
movsd qword [rdi + rsi], xmm0
mov eax, dword [0x1400480f8]
mov dword [rdi + rsi + 8], eax
movzx eax, word [0x1400480fc]
mov word [rdi + rsi + 0xc], ax
movzx eax, byte [0x1400480fe]
mov byte [rdi + rsi + 0xe], al
mov byte [rdi + r14], 0
cmp qword [rbp - 0x39], 0x10
cmovae rcx, qword [rbp - 0x51]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x140006fc9
mov rcx, qword [rbp - 0x51]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006fc4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400071e7
call fcn.14001d55c
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x14000712a
mov rcx, qword [rbp - 0x31]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007003
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400071bd
call fcn.14001d55c
mov eax, 1
jmp 0x14000717e
movups xmm0, xmmword [str.com_topiary_darkmodeanyapp]
movzx eax, word [0x140048118]
lea r8, [rbp + 0xf]
mov word [rbp + 0x27], ax
mov edx, 1
movzx eax, byte [0x14004811a]
xor ecx, ecx
movups xmmword [rbp + 0xf], xmm0
mov byte [rbp + 0x29], al
movsd xmm0, qword [0x140048110]
movsd qword [rbp + 0x1f], xmm0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140007161
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 0x140007131
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error_opening_named_pipe:
mov ebx, eax
lea rcx, [0x140062350]
call fcn.140001cf0
mov rcx, rax
mov edx, ebx
call fcn.140003960
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 - 0x49], rbx
mov rdx, qword [rbx]
call qword [rdx + 8]
lea rcx, [rbp - 0x51]
call fcn.140002790
mov dl, 0xa
mov rcx, rax
mov r8, qword [rax]
call qword [r8 + 0x40]
movzx esi, al
test rbx, rbx
je 0x140007116
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x10]
test rax, rax
je 0x140007116
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
movzx edx, sil
mov rcx, rdi
call fcn.1400069c0
mov rcx, rdi
call fcn.1400067a0
mov eax, 1
jmp 0x14000717e
lea r9, [rbp - 0x59]
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 0x14000712a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000717e
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call fcn.140003e60
mov dword [rax + 0x48], ebx
call fcn.140003e60
mov rcx, rax
call fcn.14000f4b0
mov r13, qword [rsp + 0x110]
mov r12, qword [rsp + 0x108]
mov r14, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0x100]
mov r15, qword [rsp + 0xd0]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14001d9b0
add rsp, 0xe0
pop rdi
pop rbx
pop rbp
ret
call fcn.140023e24
int3
call fcn.1400054e0
int3
call fcn.1400054e0
int3
call fcn.140023e24
int3
call fcn.140005520
int3
call fcn.140023e24
int3
call fcn.140005520
int3
call fcn.140023e24
int3