Function at 0x140031600
Capabilities:
Get common file path

Disassembly:
push rbx
push r14
sub rsp, 0x158
mov rax, qword [0x140077008]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor r14d, r14d
mov rbx, rcx
cmp dword [rcx + 0x9c], r14d
jne 0x14003163d
mov eax, dword [rcx + 0x40cc]
add eax, dword [rcx + 0xc8]
mov eax, r14d
je 0x140031642
mov eax, 1
mov qword [rsp + 0x178], rbp
mov qword [rsp + 0x180], rsi
mov qword [rsp + 0x188], rdi
mov qword [rsp + 0x150], r12
mov qword [rsp + 0x148], r13
mov qword [rsp + 0x140], r15
mov dword [rcx + 0x85c0], eax
call fcn.140014390
test eax, eax
jne 0x140031827
mov rdi, qword [rbx + 0x8648]
mov rsi, qword [rbx + 0xb8]
mov rcx, rsi
lea rdx, [rdi + 0x28]
call qword [rsi + 0x50]
lea rax, [rdi - 0x2000]
mov qword [rdi + 4], r14
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov dword [rdi + 0xc], 0xffffdfff
mov qword [rdi + 0x20], rsi
mov rcx, qword [rbx + 0x86a0]
test rcx, rcx
je 0x14003192a
lea rcx, [rcx*8]
call fcn.140048ad4
mov qword [rbx + 0x8b48], rax
test rax, rax
je 0x140031827
mov r8, qword [rbx + 0x86a0]
xor edx, edx
shl r8, 3
mov rcx, rax
call fcn.140042260
mov rax, qword [rbx + 0x86e8]
imul rax, qword [rbx + 0xa0]
imul rax, qword [rbx + 0x86e0]
cmp rax, 0x4000000
jb 0x140031751
mov rcx, qword [rbx + 0x86a0]
shl rcx, 3
call fcn.140048ad4
mov qword [rbx + 0x8b50], rax
test rax, rax
je 0x140031827
mov r8, qword [rbx + 0x86a0]
xor edx, edx
shl r8, 3
mov rcx, rax
call fcn.140042260
mov rbp, r14
cmp qword [rbx + 0x86a0], r14
jbe 0x14003192a
lea r15, [0x140014010]
lea r12, [0x140014070]
lea r13, [0x140014150]
lea rsi, [0x140014270]
nop dword [rax]
mov rax, qword [rbx + 0x86e8]
imul rax, qword [rbx + 0x86e0]
imul rax, qword [rbx + 0xa0]
cmp rax, 0x4000000
jb 0x140031877
mov ecx, 0x104
call fcn.140048ad4
mov rcx, qword [rbx + 0x8b50]
mov qword [rcx + rbp*8], rax
mov rax, qword [rbx + 0x8b50]
mov rdi, qword [rax + rbp*8]
test rdi, rdi
je 0x140031827
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
dec eax
cmp eax, 0x102
ja 0x140031827
mov r9, qword [rbx + 0x8b50]
lea rdx, [0x14006ee30]
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov r9, qword [r9 + rbp*8]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x140031827
mov rax, qword [rbx + 0x8b48]
lea r8, [0x14006ee34]
mov rdx, rdi
lea rcx, [rax + rbp*8]
call fcn.140013c50
test eax, eax
je 0x1400318d5
mov eax, 0xffffffff
mov r15, qword [rsp + 0x140]
mov r13, qword [rsp + 0x148]
mov r12, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x188]
mov rsi, qword [rsp + 0x180]
mov rbp, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140040dd0
add rsp, 0x158
pop r14
pop rbx
ret
mov rax, qword [rbx + 0x8b48]
mov edx, 0x1060
mov ecx, 1
lea rdi, [rax + rbp*8]
call fcn.1400485f8
mov qword [rdi], rax
test rax, rax
je 0x140031827
lea rcx, [rax + 0x60]
xor edx, edx
mov qword [rax], rcx
mov qword [rcx - 8], rdx
lea rcx, [0x1400142c0]
mov qword [rax + 0x50], rcx
mov qword [rax + 8], 0x1000
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
mov qword [rax + 0x28], r15
mov qword [rax + 0x30], r14
mov qword [rax + 0x38], r12
mov qword [rax + 0x40], r13
mov qword [rax + 0x48], rsi
mov rax, qword [rbx + 0x8b48]
mov rsi, qword [rax + rbp*8]
mov rax, qword [rbx + 0x8698]
mov rcx, rsi
mov rdi, qword [rax + rbp*8]
lea rdx, [rdi + 0x28]
call qword [rsi + 0x50]
lea rax, [rdi - 0x2000]
mov qword [rdi + 0x20], rsi
inc rbp
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
lea rsi, [0x140014270]
mov qword [rdi + 4], r14
mov dword [rdi + 0xc], 0xffffdfff
cmp rbp, qword [rbx + 0x86a0]
jb 0x140031780
xor eax, eax
jmp 0x14003182c