Function at 0x140005810
Capabilities:
Check os version
Create process on windows
Delete file
Get common file path

Disassembly:
push rbp
push rdi
push r12
lea rbp, [rsp - 0x1e60]
mov eax, 0x1f60
call fcn.140068770
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x1f90], rbx
mov qword [rsp + 0x1f98], rsi
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rbp + 0x1e50], rax
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
call fcn.140001678
nop
mov r8d, 0x3e8
lea rdx, [rbp + 0x680]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000589c
mov r8d, 0x104
lea rdx, [rbp + 0x470]
lea rcx, [rbp + 0x680]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea rdx, [rbp + 0x470]
lea rcx, [rbp - 0x38]
call fcn.1400026b0
mov dword [rbp + 0x70], 0x114
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x74]
call fcn.140062200
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rbp + 0x74], 6
jae 0x1400059bd
lea rdx, [rbp + 0xe50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [0x1400887c0]
lea rcx, [0x1400883b0]
call fcn.140007130
mov rdx, rax
lea r9, [rbp + 0xe50]
xor r8d, r8d
lea rcx, [rbp + 0xe50]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rcx, [rbp + 0xe50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0xe50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea rcx, [rbp + 0x18]
call fcn.140006bf0
nop
lea rdx, [rbp + 0xe50]
lea rcx, [rbp + 0x40]
call fcn.14000264c
nop
lea rdx, [0x1400885cc]
lea rcx, [rbp + 0x40]
call fcn.140002680
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x18]
mov rcx, rax
call fcn.14000272c
lea rcx, [rbp + 0x40]
call fcn.1400018c0
mov rbx, rax
lea rcx, [rbp - 0x38]
call fcn.1400018c0
mov rcx, rax
mov rdx, rbx
call fcn.140005720
test al, al
je 0x1400059aa
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x38]
call fcn.1400028b0
nop
lea rcx, [rbp + 0x40]
call fcn.140001624
nop
lea rcx, [rbp + 0x18]
call fcn.140001624
mov dword [rbp + 0x70], 0x114
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x74]
call fcn.140062200
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rbp + 0x74], 6
jae 0x140005a15
call fcn.140005550
test al, al
jne 0x140005a15
lea rdx, [0x1400885d0]
lea rcx, [0x140088620]
call fcn.140007130
mov rdx, rax
mov r9d, 0x30
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov dword [rsp + 0x30], 0x70
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0x34]
call fcn.140062200
lea rdx, str.unas
lea rcx, [0x140088634]
call fcn.140007130
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.14000264c
nop
mov dword [rbp + 0x70], 0x114
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x74]
call fcn.140062200
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor r12d, r12d
cmp dword [rbp + 0x74], 6
jae 0x140005b09
call fcn.140005550
test al, al
je 0x140005b09
lea rdx, [0x140088428]
lea rcx, [0x140088430]
call fcn.140007130
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.14000264c
mov rbx, rax
lea rax, [rbp - 0x60]
cmp rax, rbx
je 0x140005b00
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x60]
call fcn.140001678
cmp qword [rbx + 0x18], 8
jae 0x140005ade
mov r8, qword [rbx + 0x10]
inc r8
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.14000195c
jmp 0x140005ae8
mov rax, qword [rbx]
mov qword [rbp - 0x60], rax
mov qword [rbx], r12
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x50], rax
mov rax, qword [rbx + 0x18]
mov qword [rbp - 0x48], rax
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
lea rcx, [rbp + 0x18]
call fcn.140001624
lea rcx, [rbp - 0x60]
call fcn.1400018c0
mov qword [rsp + 0x40], rax
lea rcx, [rbp - 0x38]
call fcn.1400018c0
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x60], 1
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x10]
call fcn.140001678
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x10]
call fcn.1400028b0
nop
lea rcx, [rdi + 0x28]
call fcn.1400018c0
mov rbx, rax
lea rdx, [0x140088638]
lea rcx, [rbp - 0x10]
call fcn.140002680
mov rcx, rax
lea rdx, str._logPath
call fcn.140002680
mov rcx, rax
lea rdx, [0x140088654]
call fcn.140002680
mov rcx, rax
mov rdx, rbx
call fcn.140002680
mov rcx, rax
lea rdx, [0x14008865c]
call fcn.140002680
lea rcx, [rbp - 0x10]
call fcn.1400018c0
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x34], 0x40
lea rdx, [0x140088660]
lea rcx, [0x140088688]
call fcn.140007130
mov r8, rax
lea rdx, str.INFO
mov rcx, rdi
call fcn.140018920
mov r8, qword [rsp + 0x50]
lea rdx, str.INFO
mov rcx, rdi
call fcn.140018920
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140005cbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x4c7
jne 0x140005c4d
lea rdx, str.ser_did_not_allow_elevation__error_code_d
lea rcx, [0x1400886e8]
call fcn.140007130
mov r8, rax
mov edx, 0x100
mov r9d, ebx
lea rcx, [rbp + 0x270]
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea r8, [rbp + 0x270]
jmp 0x140005c8a
lea rdx, str.rror:__d
lea rcx, [0x140088420]
call fcn.140007130
mov r8, rax
mov r9d, ebx
mov edx, 0x100
lea rcx, [rbp + 0x70]
call fcn.14005c3b4
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x70]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea r8, [rbp + 0x70]
lea rdx, str.WARNING
mov rcx, rdi
call fcn.140018920
nop
lea rcx, [rbp - 0x10]
call fcn.140001624
nop
lea rcx, [rbp - 0x60]
call fcn.140001624
nop
lea rcx, [rbp - 0x38]
call fcn.140001624
xor al, al
jmp 0x140005cda
lea rcx, [rbp - 0x10]
call fcn.140001624
nop
lea rcx, [rbp - 0x60]
call fcn.140001624
nop
lea rcx, [rbp - 0x38]
call fcn.140001624
mov al, 1
mov rcx, qword [rbp + 0x1e50]
xor rcx, rsp
call fcn.14005ba60
lea r11, [rsp + 0x1f60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret