Function at 0x140002830
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x348
mov r8d, 0x104
xor ecx, ecx
lea rbx, [rsp + 0x120]
lea r13, [rsp + 0xf0]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov rcx, r13
mov rdx, rbx
lea r8, [rbx + rax]
call fcn.1400c9920
lea rax, [rsp + 0x110]
mov rcx, rax
mov qword [rsp + 0x60], rax
call fcn.1400cb540
mov rcx, r13
call fcn.1400c9af0
lea rdi, [rsp + 0x230]
mov rdx, r13
mov rcx, rdi
call fcn.14002f4b0
mov rbx, qword [rsp + 0x238]
test rbx, rbx
jne 0x1400029d8
lea rax, [rsp + 0xa0]
mov byte [rsp + 0xa0], 0
lea r12, [rsp + 0x90]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 0
mov rdx, qword [rsp + 0x250]
test rdx, rdx
je 0x140002902
lea rcx, [rsp + 0x250]
call fcn.140033320
mov rcx, qword [rsp + 0x230]
lea rax, [rsp + 0x240]
cmp rcx, rax
je 0x140002929
mov rax, qword [rsp + 0x240]
lea rdx, [rax + rax + 2]
call fcn.140127f50
mov rdx, rdi
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov rcx, rdi
call sub.msvcrt.dll_strlen
xor r8d, r8d
mov rcx, r12
mov rdx, rdi
mov r9, rax
call fcn.140044f00
mov rcx, qword [rsp + 0x90]
cmp rax, 0xffffffffffffffff
lea rax, [rsp + 0xa0]
setne bl
cmp rcx, rax
je 0x14000297d
mov rax, qword [rsp + 0xa0]
lea rdx, [rax + 1]
call fcn.140127f50
mov rdx, qword [rsp + 0x110]
test rdx, rdx
je 0x140002994
mov rcx, qword [rsp + 0x60]
call fcn.140033320
mov rcx, qword [rsp + 0xf0]
lea rax, [rsp + 0x100]
cmp rcx, rax
je 0x1400029bb
mov rax, qword [rsp + 0x100]
lea rdx, [rax + rax + 2]
call fcn.140127f50
mov eax, ebx
add rsp, 0x348
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsp + 0xb0]
mov rsi, qword [rsp + 0x230]
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x68], rsi
call fcn.140118d20
lea rax, [0x14029b570]
mov byte [rsp + 0xe0], 0
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0xd0], rax
lea rax, [rbx + rbx]
lea rbx, [rsi + rax]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0xc8], 0x10ffff
mov qword [rsp + 0xd8], 0
mov dword [rsp + 0x84], 0
cmp rsi, rbx
je 0x140002c00
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor r14d, r14d
lea rsi, [rsp + 0x90]
lea r15, [rsp + 0x88]
mov qword [rsp + 0x88], rax
call fcn.14003e390
mov r8, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x88]
lea ebp, [rax + 1]
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x84]
movsxd rbp, ebp
mov qword [rsp + 0x58], rax
mov rdx, rbx
sub rdx, rcx
mov rcx, qword [rsp + 0x50]
sar rdx, 1
imul rdx, rbp
add rdx, r8
xor r8d, r8d
call fcn.140109b00
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x38], rsi
mov r12, rsi
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], r15
lea r9, [rax + r14]
add rax, qword [rsp + 0xd8]
mov r8, qword [rsp + 0x88]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x90], r9
mov r9, rbx
call fcn.14003e810
mov r14, qword [rsp + 0x90]
sub r14, qword [rsp + 0xd0]
cmp eax, 1
jne 0x140002be8
mov rcx, qword [rsp + 0x88]
cmp rbx, rcx
je 0x140002b62
mov r8, qword [rsp + 0xd8]
mov rax, r8
sub rax, r14
cmp rax, rbp
jl 0x140002abb
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov rdx, r14
call fcn.140109b00
mov rax, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x68]
sub rax, rsi
cmp qword [rsp + 0x78], rax
jne 0x140002bf1
mov rax, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0x70]
mov rdx, qword [rsp + 0xd8]
cmp rax, rsi
je 0x140002c96
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0x48]
lea rax, [0x14029b570]
mov qword [rsp + 0x98], rdx
mov qword [rsp + 0xb0], rax
call fcn.140100f50
jmp 0x1400028e8
cmp eax, 2
jne 0x140002b62
call fcn.1400cfa40
nop word cs:[rax + rax]
lea r8, [rsp + 0xa0]
xor edx, edx
lea r12, [rsp + 0x90]
mov qword [rsp + 0x90], r8
mov rbx, qword [rsp + 0x70]
lea rax, [rdx + 1]
mov r9, r8
mov rcx, rbx
cmp eax, 8
jae 0x140002c69
xor r8d, r8d
test al, 4
je 0x140002c41
mov r8d, dword [rcx]
mov dword [r9], r8d
mov r8d, 4
test al, 2
je 0x140002c53
movzx r10d, word [rcx + r8]
mov word [r9 + r8], r10w
add r8, 2
test al, 1
je 0x140002bbf
movzx eax, byte [rcx + r8]
mov byte [r9 + r8], al
jmp 0x140002bbf
mov r10d, eax
xor ecx, ecx
and r10d, 0xfffffff8
mov r9d, ecx
add ecx, 8
mov r11, qword [rbx + r9]
mov qword [r8 + r9], r11
cmp ecx, r10d
jb 0x140002c72
mov rsi, qword [rsp + 0x70]
lea r9, [r8 + rcx]
add rsi, rcx
mov rcx, rsi
jmp 0x140002c2e
lea r8, [rsp + 0xa0]
mov qword [rsp + 0x90], r8
jmp 0x140002c1a