Function at 0x140041ae0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov r14, rcx
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov dword [rsp + 0x30], 1
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, Ordinal_32
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
movabs r13, 0xf7f6b0561f3291ff
movabs r12, 0xf048bb4fb82e5f4c
xorps xmm1, xmm1
mov r15, 0xffffffffffffffff
mov r8, r15
test eax, eax
js 0x140041b93
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
movdqu xmmword [rbp - 0x70], xmm1
lea rax, [rbp + 0xd0]
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140041b80
lea rdx, [rbp + 0xd0]
jmp 0x140041c10
mov qword [rbp + 0x228], r13
mov rax, qword [rbp + 0x228]
mov qword [rsp + 0x60], rax
mov qword [rbp + 0x228], r12
mov rax, qword [rbp + 0x228]
mov qword [rsp + 0x68], rax
mov qword [rbp + 0x228], r13
mov rax, qword [rbp + 0x228]
mov qword [rsp + 0x40], rax
mov qword [rbp + 0x228], r12
mov rax, qword [rbp + 0x228]
mov qword [rsp + 0x48], rax
movdqa xmm0, xmmword [rsp + 0x60]
xorps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x60], xmm0
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
movdqu xmmword [rbp - 0x70], xmm1
lea rax, [rsp + 0x60]
inc r8
cmp byte [rax + r8], 0
jne 0x140041c01
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.14001eec0
mov dword [rsp + 0x30], 0x201
mov rax, qword [rbp - 0x80]
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmovbe rax, rdx
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x70]
call fcn.140025720
mov dword [rsp + 0x30], 0x601
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x140041ca2
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041c9d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041c9d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140150144
movdqa xmm0, xmmword [0x140179580]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
movabs rax, 0xf7f6b0566c55fe93
mov qword [rbp + 0x228], rax
mov rax, qword [rbp + 0x228]
mov qword [rsp + 0x60], rax
mov qword [rbp + 0x228], r12
mov rax, qword [rbp + 0x228]
mov qword [rsp + 0x68], rax
mov qword [rbp + 0x228], r13
mov rax, qword [rbp + 0x228]
mov qword [rsp + 0x40], rax
mov qword [rbp + 0x228], r12
mov rax, qword [rbp + 0x228]
mov qword [rsp + 0x48], rax
movdqa xmm0, xmmword [rsp + 0x60]
xorps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x60], xmm0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x60]
mov rax, r15
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140041d30
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x50]
call fcn.140025720
mov dword [rsp + 0x30], 0xe01
movabs rax, 0xf7f6c8397350fead
mov qword [rbp + 0x228], rax
mov rax, qword [rbp + 0x228]
mov qword [rsp + 0x50], rax
mov qword [rbp + 0x228], r12
mov rax, qword [rbp + 0x228]
mov qword [rsp + 0x58], rax
mov qword [rbp + 0x228], r13
mov rax, qword [rbp + 0x228]
mov qword [rsp + 0x40], rax
mov qword [rbp + 0x228], r12
mov rax, qword [rbp + 0x228]
mov qword [rsp + 0x48], rax
movdqa xmm0, xmmword [rsp + 0x50]
xorps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
mov rax, r15
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140041de0
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x30]
call fcn.140025720
mov ebx, 0x1e01
mov dword [rsp + 0x30], ebx
lea r8, [rbp - 0x30]
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x30]
call fcn.140040670
nop
lea r8, [rbp - 0x50]
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.140040670
nop
lea rcx, [rbp + 0x30]
call fcn.1400247a0
nop
lea rcx, [rbp - 0x30]
call fcn.1400247a0
nop
lea rcx, [rbp - 0x50]
call fcn.1400247a0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140043dc0
test eax, eax
jne 0x1400422d6
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x140041e89
lock inc dword [rdi + 8]
mov rdi, qword [rsp + 0x58]
mov ebx, dword [rsp + 0x30]
movdqa xmm1, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x60], xmm1
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
test rdi, rdi
je 0x140041eb6
lock inc dword [rdi + 8]
mov rdi, qword [rsp + 0x58]
movdqa xmm1, xmmword [rsp + 0x50]
mov ebx, dword [rsp + 0x30]
movdqa xmmword [rsp + 0x70], xmm1
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x30], xmm1
test rdi, rdi
je 0x140041f09
mov eax, r15d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140041f00
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140041f00
mov rdi, qword [rsp + 0x58]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x140041f05
mov rdi, qword [rsp + 0x58]
mov ebx, dword [rsp + 0x30]
cmp qword [rsp + 0x50], 0
je 0x14004222d
mov rdi, qword [rsp + 0x60]
movabs rsi, 0xf7f6b056785dfdd1
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.140040e70
mov rax, qword [rbp - 0x10]
mov edx, dword [rbp - 8]
test edx, edx
je 0x140041f4a
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x1400422e9
cmp eax, 2
jne 0x140042180
mov qword [rbp + 0x228], rsi
mov rax, qword [rbp + 0x228]
mov qword [rbp - 0x60], rax
mov qword [rbp + 0x228], r12
mov rax, qword [rbp + 0x228]
mov qword [rbp - 0x58], rax
mov qword [rbp + 0x228], r13
mov rax, qword [rbp + 0x228]
mov qword [rbp], rax
mov qword [rbp + 0x228], r12
mov rax, qword [rbp + 0x228]
mov qword [rbp + 8], rax
movdqa xmm0, xmmword [rbp - 0x60]
xorps xmm0, xmmword [rbp]
movdqa xmmword [rbp - 0x60], xmm0
lea rax, [rbp - 0x60]
mov qword [rbp + 0x10], rax
lea rcx, [rbp - 0x60]
mov rax, r15
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140041fc0
mov qword [rbp + 0x18], rax
movaps xmm0, xmmword [rbp + 0x10]
movdqa xmmword [rbp - 0x80], xmm0
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x30]
call fcn.140025720
mov ebx, dword [rsp + 0x30]
or ebx, 0x20
or ebx, 2
mov dword [rsp + 0x30], ebx
mov rdi, qword [rsp + 0x60]
lea rdx, [rbp + 0xb0]
lea rcx, [rdi + 0x20]
call fcn.140040530
nop
or ebx, 4
mov dword [rsp + 0x30], ebx
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rcx, qword [rbp - 0x30]
mov qword [rbp + 0x20], rcx
mov rcx, qword [rbp - 0x20]
mov qword [rbp + 0x28], rcx
movaps xmm0, xmmword [rbp + 0x20]
movdqa xmmword [rbp - 0x80], xmm0
lea rdx, [rbp - 0x80]
mov rcx, rax
call fcn.140040310
test eax, eax
jne 0x140042180
lea rcx, [rdi + 0x20]
cmp qword [rdi + 0x38], 7
jbe 0x140042057
mov rcx, qword [rdi + 0x20]
mov rax, qword [rdi + 0x30]
lea rsi, [rcx + rax*2]
mov rdi, rsi
mov rdx, rsi
call fcn.14003fe70
cmp rax, rsi
je 0x1400420ab
nop
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14004207f
cmp cx, 0x2f
jne 0x140042088
add rax, 2
cmp rax, rsi
jne 0x140042070
cmp rax, rsi
je 0x1400420ab
nop dword [rax]
lea rdx, [rdi - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x1400420ab
cmp cx, 0x2f
je 0x1400420ab
mov rdi, rdx
cmp rax, rdx
jne 0x140042090
sub rsi, rdi
sar rsi, 1
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.140044700
or ebx, 0x1c0
or ebx, 8
mov dword [rsp + 0x30], ebx
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x50]
call fcn.140040210
mov r8, rax
or ebx, 0x10
mov dword [rsp + 0x30], ebx
movabs rax, 0xf7f6c2336653fdaf
mov qword [rbp + 0x228], rax
mov rcx, qword [rbp + 0x228]
mov qword [rsp + 0x40], rcx
mov qword [rbp + 0x228], r12
mov rcx, qword [rbp + 0x228]
mov qword [rsp + 0x48], rcx
mov qword [rbp + 0x228], r13
mov rcx, qword [rbp + 0x228]
mov qword [rsp + 0x70], rcx
mov qword [rbp + 0x228], r12
mov rax, qword [rbp + 0x228]
mov qword [rsp + 0x78], rax
movdqa xmm0, xmmword [rsp + 0x40]
xorps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
mov rcx, r8
call fcn.140024180
mov rdi, qword [rsp + 0x60]
mov ebx, dword [rsp + 0x30]
cmp rax, 0xffffffffffffffff
je 0x140042180
mov sil, 1
jmp 0x140042183
xor sil, sil
test bl, 0x10
je 0x14004219c
and ebx, 0xffffffef
mov dword [rsp + 0x30], ebx
lea rcx, [rbp + 0x90]
call fcn.14001ee00
nop
test bl, 8
je 0x1400421b2
and ebx, 0xfffffff7
mov dword [rsp + 0x30], ebx
lea rcx, [rbp - 0x50]
call fcn.1400247a0
nop
test bl, 4
je 0x1400421cb
and ebx, 0xfffffffb
mov dword [rsp + 0x30], ebx
lea rcx, [rbp + 0xb0]
call fcn.1400247a0
nop
test bl, 2
je 0x1400421e0
and ebx, 0xfffffffd
mov dword [rsp + 0x30], ebx
lea rcx, [rbp - 0x30]
call fcn.1400247a0
test sil, sil
je 0x140042210
lea r8, [rdi + 0x20]
mov rax, qword [r14 + 8]
cmp rax, qword [r14 + 0x10]
je 0x140042205
mov rdx, r8
mov rcx, rax
call fcn.140024050
add qword [r14 + 8], 0x20
jmp 0x140042210
mov rdx, rax
mov rcx, r14
call fcn.140045150
lea rcx, [rsp + 0x60]
call fcn.140041530
mov rdi, qword [rsp + 0x60]
test rdi, rdi
jne 0x140041f1a
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14004226e
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140042269
mov rbx, qword [rsp + 0x68]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140042269
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x1400422a5
mov eax, r15d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400422a5
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r15d
cmp r15d, 1
jne 0x1400422a5
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rbp + 0x50]
call fcn.1400247a0
nop
lea rcx, [rbp + 0x70]
call fcn.1400247a0
mov rax, r14
mov rbx, qword [rsp + 0x330]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [rbp + 0x50]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.140040df0
nop
lea r8, [rdi + 0x20]
lea rcx, str.directory_entry::status
call fcn.140040df0
int3