Function at 0x140045600
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 - 0x2f0]
sub rsp, 0x3f0
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 + 0x1e0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
movabs r13, 0x829fdc5625e393
movabs r12, 0x300c41e901ed8c68
xorps xmm1, xmm1
mov r15, 0xffffffffffffffff
mov r8, r15
test eax, eax
js 0x1400456b3
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
lea rax, [rbp + 0x1e0]
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400456a0
lea rdx, [rbp + 0x1e0]
jmp 0x140045732
mov qword [rbp + 0x338], r13
mov rax, qword [rbp + 0x338]
mov qword [rbp - 0x80], rax
mov qword [rbp + 0x338], r12
mov rax, qword [rbp + 0x338]
mov qword [rbp - 0x78], rax
mov qword [rbp + 0x338], r13
mov rax, qword [rbp + 0x338]
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x338], r12
mov rax, qword [rbp + 0x338]
mov qword [rbp + 0x98], rax
movdqa xmm0, xmmword [rbp - 0x80]
xorps xmm0, xmmword [rbp + 0x90]
movdqa xmmword [rbp - 0x80], xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
lea rax, [rbp - 0x80]
inc r8
cmp byte [rax + r8], 0
jne 0x140045724
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140020e30
mov dword [rsp + 0x30], 0x201
mov rax, qword [rsp + 0x60]
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmovbe rax, rdx
mov qword [rbp + 0xa0], rax
mov rax, qword [rsp + 0x70]
mov qword [rbp + 0xa8], rax
xor r8d, r8d
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x180]
call fcn.140027800
mov dword [rsp + 0x30], 0x601
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x1400457c9
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400457c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400457c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401549f0
movdqa xmm0, xmmword [0x14017d550]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
movabs rax, 0x829fdc25428cff
mov qword [rbp + 0x338], rax
mov rax, qword [rbp + 0x338]
mov qword [rbp - 0x70], rax
mov qword [rbp + 0x338], r12
mov rax, qword [rbp + 0x338]
mov qword [rbp - 0x68], rax
mov qword [rbp + 0x338], r13
mov rax, qword [rbp + 0x338]
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0x338], r12
mov rax, qword [rbp + 0x338]
mov qword [rbp + 0xb8], rax
movdqa xmm0, xmmword [rbp - 0x70]
xorps xmm0, xmmword [rbp + 0xb0]
movdqa xmmword [rbp - 0x70], xmm0
lea rax, [rbp - 0x70]
mov qword [rbp + 0x20], rax
lea rcx, [rbp - 0x70]
mov rax, r15
inc rax
cmp byte [rcx + rax], 0
jne 0x140045854
mov qword [rbp + 0x28], rax
xor r8d, r8d
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x140]
call fcn.140027800
mov dword [rsp + 0x30], 0xe01
movabs rax, 0x82e7b33a478cc1
mov qword [rbp + 0x338], rax
mov rax, qword [rbp + 0x338]
mov qword [rbp - 0x60], rax
mov qword [rbp + 0x338], r12
mov rax, qword [rbp + 0x338]
mov qword [rbp - 0x58], rax
mov qword [rbp + 0x338], r13
mov rax, qword [rbp + 0x338]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x338], r12
mov rax, qword [rbp + 0x338]
mov qword [rbp + 0x38], rax
movdqa xmm0, xmmword [rbp - 0x60]
xorps xmm0, xmmword [rbp + 0x30]
movdqa xmmword [rbp - 0x60], xmm0
lea rax, [rbp - 0x60]
mov qword [rbp + 0x40], rax
lea rcx, [rbp - 0x60]
mov rax, r15
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400458f0
mov qword [rbp + 0x48], rax
xor r8d, r8d
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x120]
call fcn.140027800
mov ebx, 0x1e01
mov dword [rsp + 0x30], ebx
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x100]
call fcn.140026000
mov dword [rsp + 0x30], 0x3e01
lea rdx, [rbp + 0x120]
lea rcx, [rbp + 0x100]
call fcn.140043d50
lea r8, [rbp + 0x140]
lea rdx, [rbp + 0x100]
lea rcx, [rbp + 0x160]
call fcn.140044440
nop
mov dword [rsp + 0x30], ebx
lea rcx, [rbp + 0x100]
call fcn.1400267c0
nop
lea rcx, [rbp + 0x120]
call fcn.1400267c0
nop
lea rcx, [rbp + 0x140]
call fcn.1400267c0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rbp + 0x160]
lea rcx, [rsp + 0x40]
call fcn.140047930
test eax, eax
jne 0x140045e1d
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x1400459c5
lock inc dword [rdi + 8]
mov rdi, qword [rsp + 0x48]
mov ebx, dword [rsp + 0x30]
movdqa xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm1
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xd0], xmm0
test rdi, rdi
je 0x1400459f4
lock inc dword [rdi + 8]
mov rdi, qword [rsp + 0x48]
movdqa xmm1, xmmword [rsp + 0x40]
mov ebx, dword [rsp + 0x30]
movdqa xmmword [rbp + 0xe0], xmm1
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xf0], xmm1
test rdi, rdi
je 0x140045a4c
mov eax, r15d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140045a43
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140045a43
mov rdi, qword [rsp + 0x48]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x140045a48
mov rdi, qword [rsp + 0x48]
mov ebx, dword [rsp + 0x30]
cmp qword [rsp + 0x40], 0
je 0x140045d6e
mov rdi, qword [rsp + 0x50]
movabs rsi, 0x829fdc314a8fbd
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.140044b00
mov rax, qword [rbp - 0x30]
mov edx, dword [rbp - 0x28]
test edx, edx
je 0x140045a8d
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x140045e33
cmp eax, 2
jne 0x140045cc1
mov qword [rbp + 0x338], rsi
mov rax, qword [rbp + 0x338]
mov qword [rbp - 0x50], rax
mov qword [rbp + 0x338], r12
mov rax, qword [rbp + 0x338]
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x338], r13
mov rax, qword [rbp + 0x338]
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x338], r12
mov rax, qword [rbp + 0x338]
mov qword [rbp + 0x58], rax
movdqa xmm0, xmmword [rbp - 0x50]
xorps xmm0, xmmword [rbp + 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea rax, [rbp - 0x50]
mov qword [rbp + 0x60], rax
lea rcx, [rbp - 0x50]
mov rax, r15
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140045b00
mov qword [rbp + 0x68], rax
xor r8d, r8d
lea rdx, [rbp + 0x60]
lea rcx, [rbp]
call fcn.140027800
mov ebx, dword [rsp + 0x30]
or ebx, 0x20
or ebx, 2
mov dword [rsp + 0x30], ebx
mov rdi, qword [rsp + 0x50]
lea rdx, [rbp + 0x1c0]
lea rcx, [rdi + 0x20]
call fcn.140044300
nop
or ebx, 4
mov dword [rsp + 0x30], ebx
lea rcx, [rbp]
cmp qword [rbp + 0x18], 7
cmova rcx, qword [rbp]
mov qword [rbp + 0x70], rcx
mov rcx, qword [rbp + 0x10]
mov qword [rbp + 0x78], rcx
movaps xmm0, xmmword [rbp + 0x70]
movdqa xmmword [rbp + 0xc0], xmm0
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.140044100
test eax, eax
jne 0x140045cc1
lea rcx, [rdi + 0x20]
cmp qword [rdi + 0x38], 7
jbe 0x140045b94
mov rcx, qword [rdi + 0x20]
mov rax, qword [rdi + 0x30]
lea rsi, [rcx + rax*2]
mov rdi, rsi
mov rdx, rsi
call fcn.140043c10
cmp rax, rsi
je 0x140045beb
nop dword [rax]
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140045bbf
cmp cx, 0x2f
jne 0x140045bc8
add rax, 2
cmp rax, rsi
jne 0x140045bb0
cmp rax, rsi
je 0x140045beb
nop dword [rax]
lea rdx, [rdi - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x140045beb
cmp cx, 0x2f
je 0x140045beb
mov rdi, rdx
cmp rax, rdx
jne 0x140045bd0
sub rsi, rdi
sar rsi, 1
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.140048250
or ebx, 0x1c0
or ebx, 8
mov dword [rsp + 0x30], ebx
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp - 0x20]
call fcn.140044000
mov r8, rax
or ebx, 0x10
mov dword [rsp + 0x30], ebx
movabs rax, 0x82edb92f448fc3
mov qword [rbp + 0x338], rax
mov rcx, qword [rbp + 0x338]
mov qword [rbp - 0x40], rcx
mov qword [rbp + 0x338], r12
mov rcx, qword [rbp + 0x338]
mov qword [rbp - 0x38], rcx
mov qword [rbp + 0x338], r13
mov rcx, qword [rbp + 0x338]
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x338], r12
mov rax, qword [rbp + 0x338]
mov qword [rbp + 0x88], rax
movdqa xmm0, xmmword [rbp - 0x40]
xorps xmm0, xmmword [rbp + 0x80]
movdqa xmmword [rbp - 0x40], xmm0
lea rdx, [rbp - 0x40]
mov rcx, r8
call fcn.140026130
mov rdi, qword [rsp + 0x50]
mov ebx, dword [rsp + 0x30]
cmp rax, 0xffffffffffffffff
je 0x140045cc1
mov sil, 1
jmp 0x140045cc4
xor sil, sil
test bl, 0x10
je 0x140045cdd
and ebx, 0xffffffef
mov dword [rsp + 0x30], ebx
lea rcx, [rbp + 0x1a0]
call fcn.140020d70
nop
test bl, 8
je 0x140045cf3
and ebx, 0xfffffff7
mov dword [rsp + 0x30], ebx
lea rcx, [rbp - 0x20]
call fcn.1400267c0
nop
test bl, 4
je 0x140045d0c
and ebx, 0xfffffffb
mov dword [rsp + 0x30], ebx
lea rcx, [rbp + 0x1c0]
call fcn.1400267c0
nop
test bl, 2
je 0x140045d21
and ebx, 0xfffffffd
mov dword [rsp + 0x30], ebx
lea rcx, [rbp]
call fcn.1400267c0
test sil, sil
je 0x140045d51
lea r8, [rdi + 0x20]
mov rax, qword [r14 + 8]
cmp rax, qword [r14 + 0x10]
je 0x140045d46
mov rdx, r8
mov rcx, rax
call fcn.140026000
add qword [r14 + 8], 0x20
jmp 0x140045d51
mov rdx, rax
mov rcx, r14
call fcn.140048af0
lea rcx, [rsp + 0x50]
call fcn.140045130
mov rdi, qword [rsp + 0x50]
test rdi, rdi
jne 0x140045a5d
mov rdi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140045daf
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140045daa
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 0x140045daa
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x140045de6
mov eax, r15d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140045de6
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r15d
cmp r15d, 1
jne 0x140045de6
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rbp + 0x160]
call fcn.1400267c0
nop
lea rcx, [rbp + 0x180]
call fcn.1400267c0
mov rax, r14
mov rbx, qword [rsp + 0x440]
add rsp, 0x3f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [rbp + 0x160]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.140044a80
nop
lea r8, [rdi + 0x20]
lea rcx, str.directory_entry::status
call fcn.140044a80
int3