Function at 0x140039970
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x14004f040]
xor rax, rsp
mov qword [rbp + 0x90], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x1400399bc
xor eax, eax
jmp 0x140039c20
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x80]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1400399d0
mov qword [rsp + 0x38], rax
call fcn.14003d068
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.140038630
nop
lea rax, str.Adll
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 4
call fcn.14003d068
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140038630
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140038880
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140039a8c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039a87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039a87
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003c47c
lea rax, str.Bin.dll
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 7
call fcn.14003d068
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140038630
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140038880
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140039b18
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039b13
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039b13
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003c47c
mov ecx, 0x104
call fcn.14003c734
mov rbx, rax
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x38], rcx
call fcn.14003d068
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.14003c120
lea rcx, [rsp + 0x40]
mov r9, qword [rsp + 0x58]
cmp r9, 0xf
seta r10b
mov r8, qword [rsp + 0x40]
cmova rcx, r8
mov rdx, rbx
sub rdx, rcx
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rcx + rdx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140039b90
test r10b, r10b
je 0x140039bd8
lea rdx, [r9 + 1]
mov rax, r8
cmp rdx, 0x1000
jb 0x140039bcf
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039bcf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14003c47c
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x140039c1d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039c18
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039c18
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003c47c
mov rax, rbx
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14003c2e0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x1a0
pop rbp
ret