Function at 0x140124da0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x14058f6b8]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
mov edx, WSAGetLastError
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea r14, [0x1404d345c]
mov eax, dword [rdx + rcx]
cmp dword [0x1405b8ee8], eax
jle 0x140124e65
lea rcx, [0x1405b8ee8]
call fcn.1403981b8
cmp dword [0x1405b8ee8], 0xffffffff
jne 0x140124e65
mov qword [0x1405b8ef0], r15
mov qword [0x1405b8ef8], r15
mov qword [0x1405b8f00], r15
mov dword [0x1405b8f08], r15d
lea r8d, [r15 - 1]
mov rdx, r14
lea rcx, [0x1405b8ef0]
call fcn.140123b70
nop
lea rcx, [0x140439470]
call fcn.1403987b0
nop
lea rcx, [0x1405b8ee8]
call fcn.140398158
cmp dword [0x1405b8ef8], 0
jle 0x140124eb0
lea rcx, [0x1405b8ef0]
call fcn.140124a80
test al, al
je 0x140124eb0
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov dword [rbx + 0x18], r15d
mov r8d, 0xffffffff
mov rdx, qword [0x1405b8ef0]
mov rcx, rbx
call fcn.140123b70
nop
mov dword [rsp + 0x40], 1
jmp 0x1401250b9
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x38], r15d
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.14039b120
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x170]
call fcn.14039b120
mov qword [rsp + 0x48], r15
mov edi, r15d
lea r8, [rsp + 0x48]
mov edx, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140124f44
lea rdx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x140124f44
mov r8d, 0x104
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x140124f44
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r8d, 0xffffffff
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x20]
call fcn.140123b70
mov esi, dword [rsp + 0x28]
test esi, esi
jg 0x140124fdd
inc edi
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
jl 0x140124ef2
test esi, esi
jg 0x140124fdd
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov dword [rbx + 0x18], r15d
mov r8d, 0xffffffff
mov rdx, r14
mov rcx, rbx
call fcn.140123b70
nop
mov dword [rsp + 0x40], 1
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140124fba
call fcn.1403a7ac0
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x28], r15
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140124fd8
call fcn.1403a7ac0
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x38], r15d
jmp 0x1401250b9
lea rdx, [0x14052a338]
lea rcx, [rsp + 0x20]
call fcn.140123c50
lea rdx, str.WeType_
lea rcx, [rsp + 0x20]
call fcn.140123c50
lea rcx, [rsp + 0x20]
call fcn.140124a80
mov esi, dword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
test al, al
je 0x140125036
test rdi, rdi
je 0x140125024
cmp word [rdi], 0
je 0x140125024
mov r14, rdi
mov r8d, esi
mov rdx, r14
lea rcx, [0x1405b8ef0]
call fcn.140123b70
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov dword [rbx + 0x18], r15d
mov qword [rbx], rdi
mov dword [rbx + 8], esi
mov eax, dword [rsp + 0x2c]
mov dword [rbx + 0xc], eax
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x28], r15
mov rcx, qword [rbx + 0x10]
mov rdi, qword [rsp + 0x30]
test rcx, rcx
je 0x140125078
cmp rcx, rdi
je 0x1401250e8
call fcn.1403a7ac0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x10], rdi
mov eax, dword [rsp + 0x38]
mov dword [rbx + 0x18], eax
mov qword [rsp + 0x28], r15
mov rdi, r15
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x28], r15
test rdi, rdi
je 0x1401250b9
mov rcx, rdi
call fcn.1403a7ac0
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x38], r15d
mov rax, rbx
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140398000
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov qword [rsp + 0x28], r15
test rdi, rdi
je 0x140125095
mov rcx, rdi
call fcn.1403a7ac0
jmp 0x140125088