Function at 0x140043340
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x140058040]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov qword [rsp + 0x48], rsi
lea r9, [rsp + 0x48]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400478e0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x14004373d
mov rdx, qword [rsp + 0x48]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], si
jne 0x1400433a0
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], rsi
lea rcx, [rsp + 0x70]
call fcn.140040230
nop
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 7
jbe 0x1400433db
mov rdi, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140040230
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.140040bd0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140043451
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004344b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004344b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140043fac
nop
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
jbe 0x14004345f
mov rbx, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140040230
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140040df0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x1400434d9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400434d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400434d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140043fac
movdqa xmm0, xmmword [0x14004e750]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], si
lea rcx, [rsp + 0x50]
call fcn.1400417f0
test al, al
je 0x140043679
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rcx, qword [rsp + 0x50]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rsp + 0x90]
call fcn.140044e78
mov edx, eax
test eax, eax
jne 0x140043567
mov ecx, dword [rsp + 0xa0]
bt ecx, 0xa
jae 0x14004355c
mov eax, dword [rsp + 0xa4]
cmp eax, 0xa000000c
jne 0x14004354e
lea ecx, [rdx + 4]
jmp 0x140043582
cmp eax, 0xa0000003
jne 0x14004355c
mov ecx, 0xa
jmp 0x140043582
and ecx, 0x10
or ecx, 0x20
shr ecx, 4
jmp 0x140043582
sub eax, 2
je 0x14004357d
sub eax, 1
je 0x14004357d
sub eax, 0x32
je 0x14004357d
cmp eax, 0x46
mov ecx, esi
jne 0x140043582
mov ecx, 1
test edx, edx
je 0x140043594
lea eax, [rcx - 1]
test eax, 0xfffffff7
jne 0x140043764
cmp ecx, 2
jne 0x140043679
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rcx, qword [rsp + 0x50]
call fcn.1400451f8
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x140043775
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140043604
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400435ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400436b2
call fcn.140043fac
movdqa xmm0, xmmword [0x14004e750]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], si
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x14004365c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043657
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004370d
call fcn.140043fac
movdqa xmm0, xmmword [0x14004e750]
movdqu xmmword [rsp + 0x80], xmm0
mov word [rsp + 0x70], si
mov al, 1
jmp 0x14004373f
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1400436be
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400436b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400436b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140043fac
movdqa xmm0, xmmword [0x14004e750]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], si
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x140043719
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043714
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043714
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140043fac
movdqa xmm0, xmmword [0x14004e750]
movdqu xmmword [rsp + 0x80], xmm0
mov word [rsp + 0x70], si
xor al, al
jmp 0x14004373f
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140043e10
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea r8, [rsp + 0x50]
lea rcx, str.status
call fcn.140041090
shr rdx, 0x20
lea r8, [rsp + 0x50]
lea rcx, str.remove
call fcn.140041090
int3