Function at 0x180016800
Capabilities:
Check if file exists
Create process on windows
Get system information on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0xa18]
sub rsp, 0xb00
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1800548e0]
xor rax, rsp
mov qword [rbp + 0x9f0], rax
mov rbx, rcx
xor ecx, ecx
call fcn.1800242c4
mov rsi, rax
mov byte [rbx + 0xf0], 0
lea rcx, [rbp + 0xb8]
call fcn.180016130
nop
mov byte [rbp + 0xe0], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0xe1]
call fcn.180028cc0
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
jne 0x1800168eb
mov rcx, qword [0x180059d20]
test rcx, rcx
je 0x1800168e6
mov r8d, 0x104
lea rdx, [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, 0x5c
lea rcx, [rbp + 0xe0]
call fcn.180024970
mov byte [rax], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0xe0]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0xe0]
lea rcx, [rbp + 0xb8]
call fcn.180003360
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
jne 0x1800168eb
jmp 0x180016bce
xor r12d, r12d
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], r12
mov qword [rbp], r12
mov qword [rbp + 8], r12
mov qword [rbp - 0x38], r12
lea rax, [rsp + 0x50]
test rax, rax
je 0x180016969
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetNativeSystemInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x50]
test rax, rax
je 0x180016963
call rax
jmp 0x180016969
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [rsp + 0x50]
cmp ax, 9
je 0x180016981
cmp ax, 6
lea rax, [0x180047ef0]
jne 0x180016988
lea rax, [0x180047eec]
mov qword [rbp - 0x70], rax
lea rcx, [rbp - 0x80]
call fcn.180007630
nop
mov qword [rbp + 0xa8], recv
mov qword [rbp + 0xa0], r12
mov byte [rbp + 0x90], 0
xor r8d, r8d
lea rdx, [0x180045347]
lea rcx, [rbp + 0x90]
call fcn.180003360
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0xb8]
lea rcx, [rbp + 0x90]
call fcn.180006750
mov r8d, 1
lea rdx, [0x1800477a0]
lea rcx, [rbp + 0x90]
call fcn.180006870
mov edx, dword [0x180059dd4]
test dl, 1
jne 0x180016a1f
or edx, 1
mov dword [0x180059dd4], edx
call fcn.18001ff10
lea rcx, [0x1800400e0]
call fcn.180022e9c
nop
lea rdx, str.QWallpaperB
mov rax, qword [0x180059da8]
test rax, rax
cmovne rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp + 0x90]
call fcn.180006870
mov r8d, 4
lea rdx, str..exe
lea rcx, [rbp + 0x90]
call fcn.180006870
lea rcx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0x10
cmovae rcx, qword [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x180016b95
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
xor edx, edx
lea r8d, [rax + 0x68]
lea rcx, [rbp + 0x20]
call fcn.180028cc0
mov dword [rbp + 0x20], 0x68
mov rax, qword [str.deskactive]
mov qword [rbp + 0x1f0], rax
movzx eax, word [0x180048820]
mov word [rbp + 0x1f8], ax
movzx eax, byte [0x180048822]
mov byte [rbp + 0x1fa], al
xor edx, edx
mov r8d, 0x7f5
lea rcx, [rbp + 0x1fb]
call fcn.180028cc0
cmp byte [rbx + 0xf0], 1
je 0x180016b22
nop
xor ecx, ecx
call fcn.1800242c4
sub eax, esi
cmp eax, 0x1e
jg 0x180016b22
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0xf0], 1
jne 0x180016b00
mov byte [rbx + 0xf0], 0
lea rcx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0x10
cmovae rcx, qword [rbp + 0x90]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x180016b95
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp + 0xa8], 0x10
jb 0x180016bab
mov rcx, qword [rbp + 0x90]
call fcn.18002228c
mov qword [rbp + 0xa8], recv
mov qword [rbp + 0xa0], r12
mov byte [rbp + 0x90], 0
lea rcx, [rbp - 0x80]
call fcn.180007f40
nop
cmp qword [rbp + 0xd0], 0x10
jb 0x180016be4
mov rcx, qword [rbp + 0xb8]
call fcn.18002228c
mov rcx, qword [rbp + 0x9f0]
xor rcx, rsp
call fcn.1800221a0
lea r11, [rsp + 0xb00]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret