Function at 0x61547ec
Capabilities:
Get common file path
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x9d0]
sub rsp, 0xad0
mov r15d, r8d
mov rsi, rdx
mov r14, rcx
mov edx, 8
mov rcx, qword [0x061843d0]
mov r8d, 0x1b18
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r13d, r13d
mov rdi, rax
test rax, rax
je 0x6154dd7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rdi + 0x1660], eax
mov rax, qword [0x06181700]
call qword [rax + 0x160]
add eax, dword [rdi + 0x1660]
lea rdx, [rdi + 0x668]
mov ecx, eax
call fcn.0616f0a0
mov rax, qword [0x06181700]
lea rbx, [rdi + 0x1664]
mov r8d, 0x105
mov rdx, rbx
xor ecx, ecx
call qword [rax + 0x258]
test eax, eax
je 0x615489c
mov rcx, rbx
call fcn.06151c74
mov qword [rdi + 0x1878], rax
mov rax, qword [0x06181700]
call qword [rax + 0x260]
mov rcx, rax
call fcn.06153c70
mov qword [rdi + 0x110], rax
mov rcx, qword [rax]
call fcn.06153df0
test eax, eax
je 0x61548d0
mov dword [rdi + 0x218], 3
jmp 0x61548e5
call fcn.06153ce8
test eax, eax
mov ecx, r13d
setg cl
inc ecx
mov dword [rdi + 0x218], ecx
lea rcx, [rdi + 0x230]
call fcn.061562e8
mov qword [rdi + 0x220], rax
call fcn.0615629c
mov qword [rdi + 0x228], rax
lea r9, [rsp + 0x40]
mov qword [rdi + 0x238], r14
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea r14, [rdi + 0x118]
mov dword [rsp + 0x40], 0x80
lea rax, [rbp + 0xa18]
mov rdx, qword [rdi + 0x110]
mov r8, r14
mov qword [rsp + 0x28], rax
xor ecx, ecx
lea rax, [rbp]
mov dword [rbp + 0xa18], 0x100
mov qword [rsp + 0x20], rax
mov rax, qword [0x06181720]
mov rdx, qword [rdx]
call qword [rax + 0xd8]
test eax, eax
jne 0x615496e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [0x06181710]
mov ecx, 0x1000
call qword [rax + 0x78]
mov ecx, r13d
lea rbx, [rdi + 0x240]
test eax, eax
setg cl
mov dword [rdi + 0x1870], ecx
test r15b, 2
je 0x61549a8
mov rdx, rsi
mov rcx, rbx
call fcn.0615176c
jmp 0x6154a68
test r15b, 4
je 0x6154a41
mov rdx, rsi
mov rcx, rbx
call fcn.0615176c
mov rdx, qword [rsi + 0x32f]
mov qword [rdi + 0x1b08], rdx
mov eax, dword [rsi + 0x337]
mov dword [rdi + 0x1b10], eax
mov rax, qword [rsi + 0x323]
mov qword [rdi + 0x1af8], rax
mov eax, dword [rsi + 0x32b]
mov dword [rdi + 0x1b00], eax
mov rax, qword [rsi + 0x317]
mov qword [rdi + 0x1ae8], rax
mov eax, dword [rsi + 0x31f]
mov dword [rdi + 0x1af0], eax
mov rax, qword [rsi + 0x30b]
mov qword [rdi + 0x1ad8], rax
mov eax, dword [rsi + 0x313]
mov dword [rdi + 0x1ae0], eax
mov rax, qword [rsi + 0x2ff]
mov qword [rdi + 0x1ac8], rax
mov eax, dword [rsi + 0x307]
mov dword [rdi + 0x1ad0], eax
jmp 0x6154a68
cmp dword [0x061816e8], 2
jne 0x6154a54
mov rcx, rbx
call fcn.06154710
jmp 0x6154a5c
mov rdx, rbx
call fcn.061545a8
mov eax, dword [0x061816e8]
mov dword [rdi + 0xa0], eax
test rbx, rbx
je 0x6154a7c
mov rcx, rbx
call fcn.06151c74
mov qword [rdi + 0x450], rax
mov rcx, r14
call fcn.06155b2c
lea rsi, [rdi + 0xb0]
mov dword [rdi + 0xac], eax
mov rdx, rsi
mov ecx, eax
call fcn.06155a58
lea rdx, [rdi + 0xd0]
mov r8d, 0x20
mov rcx, rsi
call fcn.0615207c
lea r10, [rdi + 0x458]
mov ecx, r13d
mov r8d, r13d
test rbx, rbx
je 0x6154ad8
cmp word [rbx], r13w
je 0x6154ad8
mov rax, rbx
inc r8d
lea rax, [rax + 2]
cmp word [rax], r13w
jne 0x6154acb
mov edx, r13d
test r8d, r8d
je 0x6154af6
cmp word [rbx], 0x5c
mov eax, edx
lea rbx, [rbx + 2]
cmovne eax, ecx
inc edx
mov ecx, eax
cmp edx, r8d
jb 0x6154ae0
mov r9d, r13d
test ecx, ecx
je 0x6154b1a
mov rdx, r10
mov r8d, ecx
mov r9d, ecx
movzx eax, word [rdx - 0x218]
mov word [rdx], ax
lea rdx, [rdx + 2]
sub r8, 1
jne 0x6154b06
mov eax, r9d
mov edx, r13d
mov word [r10 + rax*2], r13w
test rsi, rsi
je 0x6154b3c
cmp byte [rsi], r13b
je 0x6154b3c
mov rax, rsi
inc rax
inc edx
cmp byte [rax], r13b
jne 0x6154b32
xor r8d, r8d
lea r14, [rdi + 0x102c]
mov rcx, rsi
call fcn.06152424
mov ecx, eax
mov rdx, r14
call fcn.06155ce8
mov rax, qword [0x06181700]
call qword [rax + 0x260]
mov rcx, rax
call fcn.06153e7c
movsx ecx, al
mov ebx, 0x9c
mov dword [rdi + 0x103c], ecx
mov r8d, ebx
mov rcx, rdi
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, rdi
mov dword [rdi], ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov rbx, qword [0x06181700]
mov eax, r13d
mov dword [rbp + 0xa18], eax
cmp qword [rbx + 0xe8], r13
je 0x6154bc8
call qword [rbx + 0x260]
mov rcx, rax
lea rdx, [rbp + 0xa18]
call qword [rbx + 0xe8]
mov eax, dword [rbp + 0xa18]
mov dword [rdi + 0xa8], eax
test eax, eax
je 0x6154bd9
mov eax, 9
jmp 0x6154be9
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [rsp + 0x48]
lea rsi, [rdi + 0x1040]
mov word [rdi + 0x9c], ax
mov rcx, rsi
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, 0x858
call fcn.06153664
mov r9, qword [0x06181700]
lea rdx, [rbp]
mov r8d, 0x104
mov qword [rbp + 0xa18], rax
mov rcx, rax
mov rbx, rax
call qword [r9 + 0x1e0]
test eax, eax
jne 0x6154c4c
mov r8, qword [0x06181700]
mov rdx, rsi
mov rcx, rbx
call qword [r8 + 0x218]
lea rax, [0x061843cc]
cmp rbx, rax
je 0x6154c68
or rdx, 0xffffffffffffffff
lea rcx, [rbp + 0xa18]
call fcn.06151300
mov rax, qword [0x06181700]
lea rbx, [rdi + 0x1454]
mov r8d, 0x209
lea rcx, str.USERPROFILE
mov rdx, rbx
call qword [rax + 0x1e0]
test eax, eax
jne 0x6154cca
lea rax, [0x06178670]
mov r9, rsi
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x105
mov rcx, rbx
call fcn.061516b8
mov rax, qword [0x06181700]
lea rcx, str.USERPROFILE
mov rdx, rbx
call qword [rax + 0x218]
mov rax, qword [0x06181700]
lea rdx, [rdi + 0x124a]
mov r8d, 0x20a
lea rcx, str.TEMP
call qword [rax + 0x1e0]
test eax, eax
jne 0x6154d06
mov rax, qword [0x06181700]
lea rcx, str.TEMP
mov rdx, rbx
call qword [rax + 0x218]
mov rax, qword [0x06181700]
lea rdx, [rbp - 0x80]
mov r8d, 0x40
lea rcx, str.SystemDrive
call qword [rax + 0x1e0]
test eax, eax
jne 0x6154d43
mov rax, qword [0x06181700]
lea rdx, [0x061786b0]
lea rcx, str.SystemDrive
call qword [rax + 0x218]
mov rax, qword [0x06181700]
lea rcx, [rdi + 0x19c4]
lea rdx, [rbp + 0xa18]
mov dword [rbp + 0xa18], 0x7f
call qword [rax + 0x180]
mov edx, r13d
test r14, r14
je 0x6154d82
cmp byte [r14], r13b
je 0x6154d82
mov rax, r14
inc rax
inc edx
cmp byte [rax], r13b
jne 0x6154d78
xor r8d, r8d
mov rcx, r14
call fcn.06152424
mov ecx, eax
lea rdx, [rbp]
call fcn.0616f0a0
lea rdx, [rdi + 0x1880]
mov r8d, 0x20
lea rcx, [rbp]
call fcn.0616f058
lea rax, [rbp]
lea rdx, [rdi + 0x18a0]
mov qword [rsp + 0x20], rax
call fcn.06151cbc
test r15b, 1
jne 0x6154dd4
call fcn.06154284
mov dword [rdi + 0x18c0], eax
mov rax, rdi
lea r11, [rsp + 0xad0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret