Function at 0x1400e2280
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x38], 0
mov edi, 0x200
mov eax, 2
mov qword [rsp + 0x60], rax
xor ebx, ebx
xor r13d, r13d
xor r14d, r14d
cmp rdi, 0x201
jae 0x1400e2300
jmp 0x1400e22ef
jae 0x1400e23ae
cmp rdi, 0x201
jae 0x1400e2300
mov esi, 0x200
lea r15, [rsp + 0x68]
mov r12, rdi
jmp 0x1400e2330
sub rdi, r14
sub r13, r14
cmp r13, rdi
jb 0x1400e238a
mov eax, 0xffffffff
cmp rbx, rax
mov r14d, 0xffffffff
cmovb r14, rbx
mov qword [rsp + 0x38], r14
mov r13, rbx
mov rsi, r14
mov r15, qword [rsp + 0x60]
mov r12, r14
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, r15
mov edx, r12d
call sub.KERNEL32.dll_GetSystemDirectoryW
mov ebp, eax
test eax, eax
jne 0x1400e2355
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1400e23d6
mov edi, ebp
cmp r12, rdi
jne 0x1400e22e0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400e23d4
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov rdi, r12
cmp rdi, 0x201
jb 0x1400e22ef
jmp 0x1400e2300
lea rcx, [rsp + 0x28]
mov rdx, r14
mov r8, rdi
call fcn.1400fe050
mov rbx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
jmp 0x1400e230b
cmp rsi, rdi
jb 0x1400e23d4
test ebp, ebp
je 0x1400e241b
lea rbx, [rdi + rdi]
movzx eax, byte [0x141936118]
xor ecx, ecx
mov rdx, rbx
call fcn.1400dee70
mov r14, rax
test rax, rax
jne 0x1400e2423
ud2
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
cmp qword [rsp + 0x28], 0
je 0x1400e2400
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x141936088]
xor edx, edx
call fcn.140102ef8
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 8], rdi
movabs rax, 0x8000000000000000
mov qword [rcx], rax
jmp 0x1400e262f
mov r14d, 2
xor ebx, ebx
mov rcx, r14
mov rdx, r15
mov r8, rbx
call sub.msvcrt.dll_memcpy
cmp qword [rsp + 0x28], 0
je 0x1400e244c
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x141936088]
xor edx, edx
call fcn.140102ef8
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], rdi
lea rsi, [0x14192a977]
xor r12d, r12d
lea r13, [0x14192a97f]
xor ebp, ebp
mov r15, rsi
jmp 0x1400e249d
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.1400fe050
mov r14, qword [rsp + 0x48]
nop word cs:[rax + rax]
mov word [r14 + rdi*2], bx
inc rdi
mov qword [rsp + 0x50], rdi
test r15, r15
je 0x1400e2530
test bp, bp
je 0x1400e24c0
xor ecx, ecx
mov ebx, ebp
cmp rdi, qword [rsp + 0x40]
je 0x1400e256a
mov ebp, ecx
jmp 0x1400e2490
cmp r15, r13
je 0x1400e2530
movzx ebx, byte [r15]
test bl, bl
js 0x1400e24d4
inc r15
xor ecx, ecx
jmp 0x1400e24af
mov eax, ebx
and eax, 0x1f
movzx edx, byte [r15 + 1]
and edx, 0x3f
cmp bl, 0xdf
jbe 0x1400e25be
movzx ecx, byte [r15 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp bl, 0xf0
jb 0x1400e25d0
movzx ebx, byte [r15 + 3]
and eax, 7
shl eax, 0x12
shl ecx, 6
and ebx, 0x3f
or ebx, ecx
or ebx, eax
cmp ebx, 0x110000
jne 0x1400e2606
nop word cs:[rax + rax]
cmp r12, 1
je 0x1400e2619
mov r12d, 1
xor r15d, r15d
mov ebx, 0
mov eax, 0
cmp rdi, qword [rsp + 0x40]
jne 0x1400e2490
mov r8, 0xffffffffffffffff
inc rax
je 0x1400e2473
jmp 0x1400e25b6
mov rax, rsi
sub rax, r15
add rax, 0xa
movabs rdx, 0xaaaaaaaaaaaaaaab
mul rdx
shr rdx, 1
cmp cx, 1
sbb rdx, 0xffffffffffffffff
mov r8d, 1
sub r8, r12
mov rax, 0xffffffffffffffff
add r8, rdx
jb 0x1400e25a4
mov rax, r8
mov ebp, ecx
mov r8, 0xffffffffffffffff
inc rax
je 0x1400e2473
mov r8, rax
jmp 0x1400e2473
add r15, 2
shl eax, 6
or eax, edx
mov ebx, eax
xor ecx, ecx
jmp 0x1400e24af
add r15, 3
shl eax, 0xc
or ecx, eax
mov ebx, ecx
cmp ebx, 0xffff
jbe 0x1400e2612
lea eax, [rbx + 0xff0000]
shr eax, 0xa
or eax, 0xd800
and ebx, 0x3ff
or ebx, 0xdc00
mov ecx, ebx
mov ebx, eax
jmp 0x1400e24af
add r15, 4
cmp ebx, 0xffff
ja 0x1400e25e3
xor ecx, ecx
jmp 0x1400e24af
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret