Function at 0x14001ab80
Capabilities:
Check os version
Get common file path

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1a0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400cb0f0]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rdi, rcx
call fcn.140037ff0
test al, al
jne 0x14001ae75
lea rdx, str.API_MS_WIN_
mov rcx, rdi
call fcn.140006ff0
test al, al
je 0x14001ac23
mov dword [rsp + 0x70], 0x114
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x74]
call fcn.140065f10
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14001ac23
mov eax, dword [rsp + 0x74]
cmp eax, 6
ja 0x14001ae75
cmp eax, 6
jne 0x14001ac23
cmp dword [rsp + 0x78], 2
jae 0x14001ae75
mov ecx, 0x400
call fcn.140018350
movsxd r14, eax
mov dword [rsp + 0x50], r14d
mov eax, 2
mul r14
mov r12, 0xffffffffffffffff
cmovo rax, r12
mov rcx, rax
call fcn.140063af0
mov rsi, rax
mov word [rax], 0
mov qword [rsp + 0x48], rax
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, r14d
jb 0x14001ac7d
mov rcx, rsi
call fcn.140064550
xor eax, eax
jmp 0x14001aee1
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x38], rbp
mov byte [rsp + 0x40], bpl
mov dword [rsp + 0x20], ebp
mov r9d, r12d
mov r8d, 0xfde9
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400195d0
nop
mov r15, qword [rsp + 0x38]
xor eax, eax
mov rcx, r12
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r13, [rcx - 1]
mov rcx, r12
lea rdi, [0x1400a4f28]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rax, rcx
mov qword [rsp + 0x58], rcx
lea ecx, [rcx + r13 + 1]
cmp ecx, r14d
jle 0x14001ad36
call fcn.140018350
movsxd r14, eax
mov dword [rsp + 0x50], r14d
mov eax, 2
mul r14
cmovo rax, r12
mov rcx, rax
call fcn.140063af0
mov rdi, rax
lea ecx, [r14 - 1]
movsxd r8, ecx
mov rdx, rsi
mov rcx, rax
call fcn.140068ae0
mov word [rdi + r14*2 - 2], bp
mov rcx, rsi
call fcn.140064550
mov rsi, rdi
mov qword [rsp + 0x48], rdi
mov rax, qword [rsp + 0x58]
movsxd rdi, eax
lea r8, [rdi + rdi]
movsxd rbx, r13d
lea rcx, [rsi + rbx*2]
test r8, r8
jle 0x14001ad55
lea rdx, [0x1400a4f28]
call fcn.140065520
lea rax, [rbx + rdi]
mov word [rsi + rax*2], 0
test rsi, rsi
je 0x14001ad78
xor eax, eax
mov rcx, r12
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r13, [rcx - 1]
jmp 0x14001ad7b
mov r13d, ebp
test r15, r15
je 0x14001ad94
xor eax, eax
mov rcx, r12
mov rdi, r15
repne scasw ax, word [rdi]
not rcx
lea rbx, [rcx - 1]
jmp 0x14001ad96
mov ebx, ebp
lea ecx, [rbx + r13 + 1]
test rsi, rsi
je 0x14001ada5
cmp ecx, r14d
jle 0x14001adff
call fcn.140018350
movsxd r14, eax
mov dword [rsp + 0x50], r14d
mov eax, 2
mul r14
cmovo rax, r12
mov rcx, rax
call fcn.140063af0
mov rdi, rax
test rsi, rsi
je 0x14001adf2
lea edx, [r14 - 1]
movsxd r8, edx
mov rdx, rsi
mov rcx, rax
call fcn.140068ae0
mov word [rdi + r14*2 - 2], 0
mov rcx, rsi
call fcn.140064550
jmp 0x14001adf7
mov word [rax], 0
mov rsi, rdi
mov qword [rsp + 0x48], rdi
movsxd rdi, ebx
lea r8, [rdi + rdi]
movsxd rbx, r13d
lea rcx, [rsi + rbx*2]
test r8, r8
jle 0x14001ae1a
mov rdx, r15
call fcn.140065520
lea rax, [rbx + rdi]
mov word [rsi + rax*2], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
cmp byte [rsp + 0x40], 0
je 0x14001ae55
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14001ae5a
movsxd rdx, dword [rsp + 0x30]
add rdx, rdx
call fcn.140019030
mov rcx, qword [rsp + 0x38]
jmp 0x14001ae5a
mov rcx, qword [rsp + 0x38]
call fcn.140064550
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x38], rbp
mov rcx, rsi
call fcn.140064550
mov rax, rdi
jmp 0x14001aee1
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x38], rbp
mov byte [rsp + 0x40], bpl
mov dword [rsp + 0x20], ebp
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400195d0
nop
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
cmp byte [rsp + 0x40], bpl
je 0x14001aed4
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14001aed9
movsxd rdx, dword [rsp + 0x30]
add rdx, rdx
call fcn.140019030
mov rcx, qword [rsp + 0x38]
jmp 0x14001aed9
mov rcx, qword [rsp + 0x38]
call fcn.140064550
mov rax, rdi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140068be0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret