Function at 0x140158be0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x110
mov r13, r8
mov r15, rcx
mov rcx, r8
call fcn.1400d04e0
xor esi, esi
test eax, eax
je 0x140158ef1
mov qword [rsp + 0x50], rsi
lea rcx, [r15 + 8]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x158]
call fcn.140158a04
test eax, eax
je 0x140158c3f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
call fcn.140083d6c
mov rcx, rax
test rax, rax
je 0x140158f13
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [str.pD__]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x168], rbx
mov r12d, 1
mov ecx, r12d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
mov r14d, 0x104
sub eax, r14d
or eax, ecx
jge 0x140158c9d
mov edx, r14d
lea rcx, [rsp + 0x168]
call fcn.140002b08
mov rbx, qword [rsp + 0x168]
mov rdx, rbx
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test rbx, rbx
jne 0x140158cb2
mov eax, esi
jmp 0x140158cc6
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.14022f980
test eax, eax
js 0x140158f08
cmp eax, dword [rbx - 0xc]
jg 0x140158f08
mov dword [rbx - 0x10], eax
mov eax, eax
mov word [rbx + rax*2], si
call fcn.140083d6c
mov rcx, rax
test rax, rax
je 0x140158f1e
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [str.pD__]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x40], rdi
mov ecx, r12d
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, r14d
or eax, ecx
jge 0x140158d21
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.140002b08
mov rdi, qword [rsp + 0x40]
mov r9, r14
mov r8, rdi
lea rdx, [0x14028cb00]
mov rcx, rbx
call fcn.1401ee5ac
test rdi, rdi
jne 0x140158d3f
mov eax, esi
jmp 0x140158d53
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call fcn.14022f980
test eax, eax
js 0x140158f29
cmp eax, dword [rdi - 0xc]
jg 0x140158f29
mov dword [rdi - 0x10], eax
mov eax, eax
mov word [rdi + rax*2], si
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x4000100
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
mov qword [rsp + 0x48], rax
or rbx, 0xffffffffffffffff
cmp rax, rbx
jne 0x140158dbd
mov eax, ebx
lock xadd dword [rdi - 8], eax
add eax, ebx
test eax, eax
jg 0x140158ec8
mov rcx, qword [rdi - 0x18]
lea rdx, [rdi - 0x18]
jmp 0x140158eba
mov rdx, r12
lea rcx, [rsp + 0x70]
call fcn.14014233c
nop
mov qword [rsp + 0x20], rsi
mov r9d, 0x1000
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0xa0]
call fcn.1400ad368
nop
mov dword [r15 + 0x40], 1
mov rax, qword [r13]
lea rdx, [rsp + 0xa0]
mov rcx, r13
mov rax, qword [rax + 0x10]
call qword [str.pD__]
lea rcx, [rsp + 0xa0]
call fcn.1400addb0
mov dword [r15 + 0x40], esi
lea rcx, [rsp + 0xa0]
call fcn.1400ad51c
nop
lea rcx, [rsp + 0x70]
call fcn.1401424a0
nop
lea rcx, [r15 + 8]
lea rdx, [rsp + 0x158]
call fcn.140158764
mov qword [rax], r12
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140158e6d
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.pD__]
nop
mov rdx, qword [rsp + 0x168]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140158e96
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.pD__]
mov eax, 1
jmp 0x140158ef3
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.pD__]
nop
mov rdx, qword [rsp + 0x168]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140158ef1
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.pD__]
xor eax, eax
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070057
call fcn.140002e3c
nop
mov ecx, 0x80004005
call fcn.140002e3c
nop
mov ecx, 0x80004005
call fcn.140002e3c
nop
mov ecx, 0x80070057
call fcn.140002e3c
int3