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

Disassembly:
mov rax, rsp
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
lea rbp, [rax - 0x9f8]
sub rsp, 0xac8
mov rcx, qword [0x2265f97ab68]
xor r12d, r12d
mov rsi, qword [0x2265f979ff8]
test rcx, rcx
je 0x2265f9606e4
lea edx, [r12 + 8]
mov r8d, 0x1b18
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x2265f9606e4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rdi + 0x1660], eax
mov rcx, qword [0x2265f979fe8]
call qword [rcx + 0x160]
add eax, dword [rdi + 0x1660]
lea rdx, [rdi + 0x668]
mov ecx, eax
call fcn.2265f96b878
mov rax, qword [0x2265f979fe8]
lea rbx, [rdi + 0x1664]
mov r8d, 0x105
mov rdx, rbx
xor ecx, ecx
call qword [rax + 0x258]
test eax, eax
je 0x2265f96021b
mov rcx, rbx
call fcn.2265f95cd7c
mov qword [rdi + 0x1878], rax
mov rax, qword [0x2265f979fe8]
call qword [rax + 0x260]
mov rcx, rax
call fcn.2265f9631bc
mov qword [rdi + 0x110], rax
mov rcx, qword [rax]
call fcn.2265f96333c
test eax, eax
je 0x2265f96024f
mov dword [rdi + 0x218], 3
jmp 0x2265f960264
call fcn.2265f963234
test eax, eax
mov ecx, r12d
setg cl
inc ecx
mov dword [rdi + 0x218], ecx
lea rcx, [rdi + 0x230]
call fcn.2265f963eb8
mov qword [rdi + 0x220], rax
call fcn.2265f963e00
mov qword [rdi + 0x228], rax
lea r9, [rbp + 0xa08]
mov qword [rdi + 0x238], rsi
lea rax, [rbp + 0xa00]
mov qword [rsp + 0x30], rax
lea rsi, [rdi + 0x118]
mov dword [rbp + 0xa08], 0x80
lea rax, [rbp + 0xa10]
mov rdx, qword [rdi + 0x110]
mov r8, rsi
mov qword [rsp + 0x28], rax
xor ecx, ecx
lea rax, [rbp - 0x10]
mov dword [rbp + 0xa10], pe_nt_image_headers64
mov qword [rsp + 0x20], rax
mov rax, qword [0x2265f979fe0]
mov rdx, qword [rdx]
call qword [rax + pe_nt_image_headers64]
test eax, eax
jne 0x2265f9602f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [0x2265f97a028]
mov ecx, 0x1000
call qword [rax + 0x78]
mov ecx, r12d
lea rbx, [rdi + 0x240]
test eax, eax
mov r8d, 0x104
mov rdx, rbx
setg cl
mov dword [rdi + 0x1870], ecx
cmp dword [0x2265f979ff0], 2
mov rax, qword [0x2265f979fe8]
jne 0x2265f96034c
xor ecx, ecx
call qword [rax + 0x258]
test eax, eax
je 0x2265f960342
cmp word [rbx], r12w
jne 0x2265f96036b
mov rcx, rbx
call fcn.2265f960088
jmp 0x2265f96036b
mov rcx, qword [rdi + 0x238]
call qword [rax + 0x258]
test eax, eax
je 0x2265f960363
cmp word [rbx], r12w
jne 0x2265f96036b
mov rcx, rbx
call fcn.2265f95ff24
mov eax, dword [0x2265f979ff0]
mov dword [rdi + 0xa0], eax
test rbx, rbx
je 0x2265f96038b
mov rcx, rbx
call fcn.2265f95cd7c
mov qword [rdi + 0x450], rax
mov rcx, rsi
call fcn.2265f962110
lea rsi, [rdi + 0xb0]
mov dword [rdi + 0xac], eax
mov rdx, rsi
mov ecx, eax
call fcn.2265f96203c
lea r14, [rdi + 0xd0]
test rsi, rsi
je 0x2265f9603df
mov dword [rsp + 0x28], 0x20
or r9d, 0xffffffff
mov r8, rsi
mov qword [rsp + 0x20], r14
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x2265f9603df
cdqe
mov word [r14 + rax*2], r12w
movzx edx, word [rbx]
lea r10, [rdi + 0x458]
mov ecx, r12d
mov r8d, r12d
jmp 0x2265f960405
cmp dx, 0x5c
mov eax, r8d
cmovne eax, ecx
inc r8d
mov ecx, eax
movzx edx, word [rbx + r8*2]
test dx, dx
jne 0x2265f9603f1
mov r9d, r12d
test ecx, ecx
je 0x2265f96042e
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 0x2265f96041a
mov eax, r9d
mov edx, r12d
mov word [r10 + rax*2], r12w
test rsi, rsi
je 0x2265f960450
cmp byte [rsi], r12b
je 0x2265f960450
mov rax, rsi
inc rax
inc edx
cmp byte [rax], r12b
jne 0x2265f960446
xor r8d, r8d
lea r14, [rdi + 0x102c]
mov rcx, rsi
call fcn.2265f963f94
mov ecx, eax
mov rdx, r14
call fcn.2265f96224c
mov rax, qword [0x2265f979fe8]
call qword [rax + 0x260]
mov rcx, rax
call fcn.2265f9633c8
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 [0x2265f979fe8]
mov eax, r12d
mov dword [rbp + 0xa10], eax
cmp qword [rbx + 0xe8], r12
je 0x2265f9604dc
call qword [rbx + 0x260]
mov rcx, rax
lea rdx, [rbp + 0xa10]
call qword [rbx + 0xe8]
mov eax, dword [rbp + 0xa10]
mov dword [rdi + 0xa8], eax
test eax, eax
je 0x2265f9604ed
mov eax, 9
jmp 0x2265f9604fd
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [rsp + 0x40]
lea rsi, [rdi + 0x1040]
mov word [rdi + 0x9c], ax
mov rcx, rsi
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, 0x141d
call fcn.2265f95dae8
mov r9, qword [0x2265f979fe8]
lea rdx, [rbp - 0x10]
mov r8d, 0x104
mov qword [rbp + 0xa18], rax
mov rcx, rax
mov rbx, rax
call qword [r9 + 0x1e0]
test eax, eax
jne 0x2265f96055f
mov rax, qword [0x2265f979fe8]
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0x218]
lea rcx, [rbp + 0xa18]
call fcn.2265f95da84
mov rax, qword [0x2265f979fe8]
lea rbx, [rdi + 0x1454]
mov r8d, 0x209
lea rcx, str.USERPROFILE
mov rdx, rbx
call qword [rax + 0x1e0]
test eax, eax
jne 0x2265f9605cd
lea rax, [0x2265f9743d0]
mov r9, rsi
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x105
mov rcx, rbx
call fcn.2265f96095c
mov rax, qword [0x2265f979fe8]
lea rcx, str.USERPROFILE
mov rdx, rbx
call qword [rax + 0x218]
mov rax, qword [0x2265f979fe8]
lea rdx, [rdi + 0x124a]
mov r8d, 0x20a
lea rcx, str.TEMP
call qword [rax + 0x1e0]
test eax, eax
jne 0x2265f960609
mov rax, qword [0x2265f979fe8]
lea rcx, str.TEMP
mov rdx, rbx
call qword [rax + 0x218]
mov rax, qword [0x2265f979fe8]
lea rdx, [rsp + 0x70]
mov r8d, 0x40
lea rcx, str.SystemDrive
call qword [rax + 0x1e0]
test eax, eax
jne 0x2265f960647
mov rax, qword [0x2265f979fe8]
lea rdx, [0x2265f9743f4]
lea rcx, str.SystemDrive
call qword [rax + 0x218]
mov rax, qword [0x2265f979fe8]
lea rcx, [rdi + 0x19c4]
lea rdx, [rbp + 0xa10]
mov dword [rbp + 0xa10], 0x7f
call qword [rax + 0x180]
mov edx, r12d
test r14, r14
je 0x2265f960686
cmp byte [r14], r12b
je 0x2265f960686
mov rax, r14
inc rax
inc edx
cmp byte [rax], r12b
jne 0x2265f96067c
xor r8d, r8d
mov rcx, r14
call fcn.2265f963f94
mov ecx, eax
lea rdx, [rbp - 0x10]
call fcn.2265f96b878
lea rdx, [rdi + 0x1880]
mov r8d, 0x20
lea rcx, [rbp - 0x10]
call fcn.2265f96b830
mov ecx, 1
lea rax, [rbp - 0x10]
lea rdx, [rdi + 0x18a0]
mov qword [rsp + 0x20], rax
lea r9d, [rcx + 0x1d]
lea r8d, [rcx + 0x13]
call fcn.2265f95cdc4
call fcn.2265f95fb2c
mov dword [rdi + 0x18c0], eax
mov rax, rdi
jmp 0x2265f9606e6
xor eax, eax
add rsp, 0xac8
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret