Function at 0x140042f40
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, 0x93332b73e1586671
movabs r12, 0xe3ca873a85eb500e
xorps xmm1, xmm1
mov r15, 0xffffffffffffffff
mov r8, r15
test eax, eax
js 0x140042ff3
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 0x140042fe0
lea rdx, [rbp + 0xd0]
jmp 0x140043070
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 0x140043061
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.14001f1c0
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.1400259e0
mov dword [rsp + 0x30], 0x601
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x140043102
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400430fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400430fd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14014cd04
movdqa xmm0, xmmword [0x140176540]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
movabs rax, 0x93332b73923f091d
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 0x140043190
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.1400259e0
mov dword [rsp + 0x30], 0xe01
movabs rax, 0x9333531c8d3a0923
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 0x140043240
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.1400259e0
mov ebx, 0x1e01
mov dword [rsp + 0x30], ebx
lea r8, [rbp - 0x30]
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x30]
call fcn.140041ad0
nop
lea r8, [rbp - 0x50]
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.140041ad0
nop
lea rcx, [rbp + 0x30]
call fcn.1400249a0
nop
lea rcx, [rbp - 0x30]
call fcn.1400249a0
nop
lea rcx, [rbp - 0x50]
call fcn.1400249a0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140045360
test eax, eax
jne 0x140043736
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x1400432e9
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 0x140043316
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 0x140043369
mov eax, r15d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140043360
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 0x140043360
mov rdi, qword [rsp + 0x58]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x140043365
mov rdi, qword [rsp + 0x58]
mov ebx, dword [rsp + 0x30]
cmp qword [rsp + 0x50], 0
je 0x14004368d
mov rdi, qword [rsp + 0x60]
movabs rsi, 0x93332b7386370a5f
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.1400422d0
mov rax, qword [rbp - 0x10]
mov edx, dword [rbp - 8]
test edx, edx
je 0x1400433aa
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x140043749
cmp eax, 2
jne 0x1400435e0
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 0x140043420
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.1400259e0
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.140041990
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.140041770
test eax, eax
jne 0x1400435e0
lea rcx, [rdi + 0x20]
cmp qword [rdi + 0x38], 7
jbe 0x1400434b7
mov rcx, qword [rdi + 0x20]
mov rax, qword [rdi + 0x30]
lea rsi, [rcx + rax*2]
mov rdi, rsi
mov rdx, rsi
call fcn.1400412d0
cmp rax, rsi
je 0x14004350b
nop
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x1400434df
cmp cx, 0x2f
jne 0x1400434e8
add rax, 2
cmp rax, rsi
jne 0x1400434d0
cmp rax, rsi
je 0x14004350b
nop dword [rax]
lea rdx, [rdi - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x14004350b
cmp cx, 0x2f
je 0x14004350b
mov rdi, rdx
cmp rax, rdx
jne 0x1400434f0
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.140045ce0
or ebx, 0x1c0
or ebx, 8
mov dword [rsp + 0x30], ebx
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x50]
call fcn.140041670
mov r8, rax
or ebx, 0x10
mov dword [rsp + 0x30], ebx
movabs rax, 0x9333591698390a21
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.140024340
mov rdi, qword [rsp + 0x60]
mov ebx, dword [rsp + 0x30]
cmp rax, 0xffffffffffffffff
je 0x1400435e0
mov sil, 1
jmp 0x1400435e3
xor sil, sil
test bl, 0x10
je 0x1400435fc
and ebx, 0xffffffef
mov dword [rsp + 0x30], ebx
lea rcx, [rbp + 0x90]
call fcn.14001f100
nop
test bl, 8
je 0x140043612
and ebx, 0xfffffff7
mov dword [rsp + 0x30], ebx
lea rcx, [rbp - 0x50]
call fcn.1400249a0
nop
test bl, 4
je 0x14004362b
and ebx, 0xfffffffb
mov dword [rsp + 0x30], ebx
lea rcx, [rbp + 0xb0]
call fcn.1400249a0
nop
test bl, 2
je 0x140043640
and ebx, 0xfffffffd
mov dword [rsp + 0x30], ebx
lea rcx, [rbp - 0x30]
call fcn.1400249a0
test sil, sil
je 0x140043670
lea r8, [rdi + 0x20]
mov rax, qword [r14 + 8]
cmp rax, qword [r14 + 0x10]
je 0x140043665
mov rdx, r8
mov rcx, rax
call fcn.140024210
add qword [r14 + 8], 0x20
jmp 0x140043670
mov rdx, rax
mov rcx, r14
call fcn.140046730
lea rcx, [rsp + 0x60]
call fcn.140042990
mov rdi, qword [rsp + 0x60]
test rdi, rdi
jne 0x14004337a
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400436ce
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400436c9
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 0x1400436c9
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 0x140043705
mov eax, r15d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140043705
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 0x140043705
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rbp + 0x50]
call fcn.1400249a0
nop
lea rcx, [rbp + 0x70]
call fcn.1400249a0
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.140042250
nop
lea r8, [rdi + 0x20]
lea rcx, str.directory_entry::status
call fcn.140042250
int3