Function at 0x140136640
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x300], rbx
mov rax, qword [0x14047b0a0]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rbp - 0x58], rcx
xor esi, esi
mov dword [rsp + 0x38], esi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
mov dword [rsp + 0x38], 1
xor edx, edx
mov r8d, VarUI4FromDisp
lea rcx, [rbp - 0x4c]
call fcn.1402dd440
mov dword [rbp - 0x50], VarUI4FromDisp
lea rcx, [rbp - 0x50]
call fcn.140135c30
test al, al
je 0x14013681a
cmp dword [rbp - 0x40], 2
jne 0x14013681a
cmp dword [rbp - 0x4c], 6
jb 0x14013681a
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x14040b2a8]
xor edx, edx
lea r8d, [rsi + 0x17]
lea rcx, [0x14040b2e8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140136801
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea edx, [rsi + 0x20]
call qword [rax + 0x48]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x40], rsi
lea r8, [rsp + 0x40]
lea edx, [rsi + 8]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x140136768
lea r9, [rsp + 0x58]
mov r8, qword [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateShellItem]
test eax, eax
js 0x14013675d
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x58]
call qword [rax + 0x60]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + ILCombine]
mov qword [rsp + 0x50], rsi
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + SHCreateDirectory]
test eax, eax
js 0x1401367df
mov qword [rsp + 0x48], rsi
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea r8, [rsp + 0x48]
mov edx, 0x80058000
call qword [rax + Ordinal_41]
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1401367df
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1401367c0
mov rcx, rbx
call fcn.14007ece0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1401367f0
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140136801
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1401368a8
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
jmp 0x1401368a8
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.1402dd440
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x7c], rsi
mov qword [rbp - 0x74], rsi
mov qword [rbp - 0x6c], rsi
mov dword [rbp - 0x64], esi
mov qword [rsp + 0x60], rdi
lea rax, [rbp - 0x50]
mov qword [rsp + 0x70], rax
mov dword [rbp - 0x80], 3
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov rdi, rax
test rax, rax
je 0x140136886
lea rdx, [rbp - 0x50]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x140136886
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rax, [rbp - 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140136891
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.14007ece0
mov rax, rbx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1401aed20
mov rbx, qword [rsp + 0x300]
add rsp, 0x2d0
pop rdi
pop rsi
pop rbp
ret