Function at 0x180058e40
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5c8]
sub rsp, 0x6c0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x18032a080]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov rbx, rdx
mov qword [rsp + 0x30], rdx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rdx + 0x10], rsi
mov qword [rdx + 0x18], 7
mov word [rdx], si
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x38], rsi
lea rax, [0x180332f60]
mov qword [rsp + 0x38], rax
mov rcx, qword [0x180332f60]
test rcx, rcx
je 0x180058ec1
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov r8, qword [0x18032a868]
test r8, r8
je 0x180058ef2
lea rdx, [0x18032a858]
cmp rbx, rdx
je 0x180058fba
cmp qword [0x18032a870], 8
cmovae rdx, qword [0x18032a858]
jmp 0x180058fb1
xor edx, edx
mov r8d, 0x20c
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x80]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x180058fba
mov word [rbp + 0x18a], si
xor edx, edx
mov r8d, 0x412
lea rcx, [rbp + 0x190]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x208
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea ecx, [rax - 1]
cmp ecx, 0x207
ja 0x180058f97
mov eax, eax
add rax, rax
cmp rax, 0x412
jae 0x180059256
mov word [rbp + rax + 0x190], si
lea rax, [rbp + 0x190]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x180058f83
lea rdx, [rbp + 0x190]
jmp 0x180058fb1
lea rax, [rbp - 0x80]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x180058fa2
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.180007110
nop
mov rcx, qword [0x180332f60]
test rcx, rcx
je 0x180058fcc
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x38], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x180291a20]
movdqu xmmword [rsp + 0x50], xmm1
mov word [rsp + 0x40], si
mov r8d, InitCommonControls
lea rdx, [0x180266ae0]
lea rcx, [rsp + 0x40]
call fcn.180007110
nop
lea r8, [rsp + 0x40]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.1800f8180
mov rdi, rax
cmp rbx, rax
je 0x180059044
mov rcx, rbx
call fcn.180007090
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov word [rdi], si
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x180059089
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180059084
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180059084
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18022acec
movdqa xmm0, xmmword [0x180291a20]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], si
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1800590e1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800590dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800590dc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18022acec
movdqa xmm0, xmmword [0x180291a20]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], si
mov rcx, rbx
call fcn.1800f3e40
test al, al
jne 0x180059108
mov rcx, rbx
call fcn.1800f5040
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x180291a20]
movdqu xmmword [rsp + 0x50], xmm1
mov word [rsp + 0x40], si
mov r8d, 0x2c
lea rdx, str.ofd_0E8D2DE1_270E_4D94_AF0A_A37AF17178C0.pdf
lea rcx, [rsp + 0x40]
call fcn.180007110
nop
lea r8, [rsp + 0x40]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.1800f8180
mov rdi, rax
cmp rbx, rax
je 0x18005917b
mov rcx, rbx
call fcn.180007090
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov word [rdi], si
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x1800591c0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800591bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800591bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18022acec
movdqa xmm0, xmmword [0x180291a20]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], si
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x180059218
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180059213
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180059213
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18022acec
movdqa xmm0, xmmword [0x180291a20]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], si
mov rax, rbx
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.18022a7d0
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.18022ae28
int3