Function at 0x238b76b0160
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 [0x238b76cab68]
xor r12d, r12d
mov rsi, qword [0x238b76c9ff8]
test rcx, rcx
je 0x238b76b06e4
lea edx, [r12 + 8]
mov r8d, 0x1b18
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x238b76b06e4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rdi + 0x1660], eax
mov rcx, qword [str.p_t1c]
call qword [rcx + 0x160]
add eax, dword [rdi + 0x1660]
lea rdx, [rdi + 0x668]
mov ecx, eax
call fcn.238b76bb878
mov rax, qword [str.p_t1c]
lea rbx, [rdi + 0x1664]
mov r8d, 0x105
mov rdx, rbx
xor ecx, ecx
call qword [rax + 0x258]
test eax, eax
je 0x238b76b021b
mov rcx, rbx
call fcn.238b76acd7c
mov qword [rdi + 0x1878], rax
mov rax, qword [str.p_t1c]
call qword [rax + 0x260]
mov rcx, rax
call fcn.238b76b31bc
mov qword [rdi + 0x110], rax
mov rcx, qword [rax]
call fcn.238b76b333c
test eax, eax
je 0x238b76b024f
mov dword [rdi + 0x218], 3
jmp 0x238b76b0264
call fcn.238b76b3234
test eax, eax
mov ecx, r12d
setg cl
inc ecx
mov dword [rdi + 0x218], ecx
lea rcx, [rdi + 0x230]
call fcn.238b76b3eb8
mov qword [rdi + 0x220], rax
call fcn.238b76b3e00
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 [0x238b76c9fe0]
mov rdx, qword [rdx]
call qword [rax + pe_nt_image_headers64]
test eax, eax
jne 0x238b76b02f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [0x238b76ca028]
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 [0x238b76c9ff0], 2
mov rax, qword [str.p_t1c]
jne 0x238b76b034c
xor ecx, ecx
call qword [rax + 0x258]
test eax, eax
je 0x238b76b0342
cmp word [rbx], r12w
jne 0x238b76b036b
mov rcx, rbx
call fcn.238b76b0088
jmp 0x238b76b036b
mov rcx, qword [rdi + 0x238]
call qword [rax + 0x258]
test eax, eax
je 0x238b76b0363
cmp word [rbx], r12w
jne 0x238b76b036b
mov rcx, rbx
call fcn.238b76aff24
mov eax, dword [0x238b76c9ff0]
mov dword [rdi + 0xa0], eax
test rbx, rbx
je 0x238b76b038b
mov rcx, rbx
call fcn.238b76acd7c
mov qword [rdi + 0x450], rax
mov rcx, rsi
call fcn.238b76b2110
lea rsi, [rdi + 0xb0]
mov dword [rdi + 0xac], eax
mov rdx, rsi
mov ecx, eax
call fcn.238b76b203c
lea r14, [rdi + 0xd0]
test rsi, rsi
je 0x238b76b03df
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 0x238b76b03df
cdqe
mov word [r14 + rax*2], r12w
movzx edx, word [rbx]
lea r10, [rdi + 0x458]
mov ecx, r12d
mov r8d, r12d
jmp 0x238b76b0405
cmp dx, 0x5c
mov eax, r8d
cmovne eax, ecx
inc r8d
mov ecx, eax
movzx edx, word [rbx + r8*2]
test dx, dx
jne 0x238b76b03f1
mov r9d, r12d
test ecx, ecx
je 0x238b76b042e
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 0x238b76b041a
mov eax, r9d
mov edx, r12d
mov word [r10 + rax*2], r12w
test rsi, rsi
je 0x238b76b0450
cmp byte [rsi], r12b
je 0x238b76b0450
mov rax, rsi
inc rax
inc edx
cmp byte [rax], r12b
jne 0x238b76b0446
xor r8d, r8d
lea r14, [rdi + 0x102c]
mov rcx, rsi
call fcn.238b76b3f94
mov ecx, eax
mov rdx, r14
call fcn.238b76b224c
mov rax, qword [str.p_t1c]
call qword [rax + 0x260]
mov rcx, rax
call fcn.238b76b33c8
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 [str.p_t1c]
mov eax, r12d
mov dword [rbp + 0xa10], eax
cmp qword [rbx + 0xe8], r12
je 0x238b76b04dc
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 0x238b76b04ed
mov eax, 9
jmp 0x238b76b04fd
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.238b76adae8
mov r9, qword [str.p_t1c]
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 0x238b76b055f
mov rax, qword [str.p_t1c]
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0x218]
lea rcx, [rbp + 0xa18]
call fcn.238b76ada84
mov rax, qword [str.p_t1c]
lea rbx, [rdi + 0x1454]
mov r8d, 0x209
lea rcx, str.USERPROFILE
mov rdx, rbx
call qword [rax + 0x1e0]
test eax, eax
jne 0x238b76b05cd
lea rax, [0x238b76c43d0]
mov r9, rsi
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x105
mov rcx, rbx
call fcn.238b76b095c
mov rax, qword [str.p_t1c]
lea rcx, str.USERPROFILE
mov rdx, rbx
call qword [rax + 0x218]
mov rax, qword [str.p_t1c]
lea rdx, [rdi + 0x124a]
mov r8d, 0x20a
lea rcx, str.TEMP
call qword [rax + 0x1e0]
test eax, eax
jne 0x238b76b0609
mov rax, qword [str.p_t1c]
lea rcx, str.TEMP
mov rdx, rbx
call qword [rax + 0x218]
mov rax, qword [str.p_t1c]
lea rdx, [rsp + 0x70]
mov r8d, 0x40
lea rcx, str.SystemDrive
call qword [rax + 0x1e0]
test eax, eax
jne 0x238b76b0647
mov rax, qword [str.p_t1c]
lea rdx, [0x238b76c43f4]
lea rcx, str.SystemDrive
call qword [rax + 0x218]
mov rax, qword [str.p_t1c]
lea rcx, [rdi + 0x19c4]
lea rdx, [rbp + 0xa10]
mov dword [rbp + 0xa10], 0x7f
call qword [rax + 0x180]
mov edx, r12d
test r14, r14
je 0x238b76b0686
cmp byte [r14], r12b
je 0x238b76b0686
mov rax, r14
inc rax
inc edx
cmp byte [rax], r12b
jne 0x238b76b067c
xor r8d, r8d
mov rcx, r14
call fcn.238b76b3f94
mov ecx, eax
lea rdx, [rbp - 0x10]
call fcn.238b76bb878
lea rdx, [rdi + 0x1880]
mov r8d, 0x20
lea rcx, [rbp - 0x10]
call fcn.238b76bb830
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.238b76acdc4
call fcn.238b76afb2c
mov dword [rdi + 0x18c0], eax
mov rax, rdi
jmp 0x238b76b06e6
xor eax, eax
add rsp, 0xac8
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret