Function at 0x180036c60
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2d8
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1800881a0]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov dword [rsp + 0x20], 0
mov eax, dword [0x1800d3960]
and eax, 1
test eax, eax
jne 0x180036cda
mov eax, dword [0x1800d3960]
or eax, 1
mov dword [0x1800d3960], eax
mov edx, 1
lea rcx, [0x1800d3948]
call fcn.180019030
lea rcx, [0x1800d3948]
call fcn.18001bf00
lea rcx, [0x18005f160]
call fcn.18004c63c
nop
lea rcx, [0x1800d3948]
call fcn.180019300
movzx eax, al
test eax, eax
jne 0x180036d19
lea rdx, [0x1800d3948]
mov rcx, qword [rsp + 0x2e0]
call fcn.18001bd80
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x2e0]
jmp 0x180037189
lea rdx, [rsp + 0xb0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jbe 0x180036e07
mov eax, dword [rsp + 0x24]
cmp rax, 0x105
jae 0x180036e07
mov eax, dword [rsp + 0x24]
dec eax
mov eax, eax
movzx eax, word [rsp + rax*2 + 0xb0]
cmp eax, 0x5c
jne 0x180036d91
mov eax, dword [rsp + 0x24]
dec eax
mov eax, eax
shl rax, 1
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0x20a
jae 0x180036d7d
jmp 0x180036d82
call fcn.18004e464
xor eax, eax
mov rcx, qword [rsp + 0x40]
mov word [rsp + rcx + 0xb0], ax
mov r8, 0xffffffffffffffff
lea rdx, [rsp + 0xb0]
lea rcx, [0x1800d3948]
call fcn.1800215b0
mov dword [rsp + 0x2c], 1
mov eax, dword [rsp + 0x2c]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x180036ddb
xor r9d, r9d
lea r8, [0x180089ffc]
lea rdx, [0x18008a004]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rdx, [0x1800d3948]
mov rcx, qword [rsp + 0x2e0]
call fcn.18001bd80
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x2e0]
jmp 0x180037189
mov edx, 1
lea rcx, [rsp + 0x90]
call fcn.180019030
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov r8, 0xffffffffffffffff
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.18001be50
mov qword [rsp + 0x50], rax
mov r8, qword [rsp + 0x50]
mov dl, 1
lea rcx, [rsp + 0x90]
call fcn.180033030
nop
lea rcx, [rsp + 0x90]
call fcn.180019300
movzx eax, al
test eax, eax
jne 0x180036f9d
mov r8, 0xffffffffffffffff
lea rdx, [0x18008c828]
lea rcx, [rsp + 0x60]
call fcn.18001be50
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x90]
call fcn.180023550
nop
lea rcx, [rsp + 0x60]
call fcn.180011730
lea rcx, [rsp + 0x90]
call fcn.1800324c0
xor edx, edx
mov rcx, rax
call fcn.1800273c0
movzx eax, al
test eax, eax
jne 0x180036ee1
lea rcx, [rsp + 0x90]
call fcn.1800324c0
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.180026500
movzx eax, al
test eax, eax
jne 0x180036f9d
lea rdx, [rsp + 0x90]
lea rcx, [0x1800d3948]
call fcn.18001c490
lea rdx, [0x1800d3948]
mov rcx, qword [rsp + 0x2e0]
call fcn.18001bd80
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x90]
call fcn.180011730
mov rax, qword [rsp + 0x2e0]
jmp 0x180037189
cmp qword [0x1800d22c0], 0
je 0x180036fc8
mov r8d, 0x105
lea rdx, [rsp + 0xb0]
lea rcx, [0x18008c838]
call qword [0x1800d22c0]
mov dword [rsp + 0x28], eax
jmp 0x180036fd0
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jbe 0x18003710b
mov eax, dword [rsp + 0x24]
cmp rax, 0x105
jae 0x18003710b
mov r8, 0xffffffffffffffff
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x90]
call fcn.1800215b0
lea rcx, [rsp + 0x90]
call fcn.1800324c0
xor edx, edx
mov rcx, rax
call fcn.1800273c0
movzx eax, al
test eax, eax
jne 0x180037052
lea rcx, [rsp + 0x90]
call fcn.1800324c0
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.180026500
movzx eax, al
test eax, eax
jne 0x18003710b
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087dc0]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, SafeArrayGetElement
div rcx
mov rax, rdx
mov dword [rsp + 0x30], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087dc0]
movsxd rdx, dword [rsp + 0x30]
lea r8, [0x180087dc0]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087dc0]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180087dc0]
mov dword [rdx + rcx], eax
lea rdx, [rsp + 0x90]
lea rcx, [0x1800d3948]
call fcn.18001c490
lea rdx, [0x1800d3948]
mov rcx, qword [rsp + 0x2e0]
call fcn.18001bd80
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x90]
call fcn.180011730
mov rax, qword [rsp + 0x2e0]
jmp 0x180037189
mov r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0x2e8]
lea rcx, [0x1800d3948]
call fcn.1800215b0
mov dword [rsp + 0x38], 1
mov eax, dword [rsp + 0x38]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x180037155
xor r9d, r9d
lea r8, [0x180089ffc]
lea rdx, [0x18008a004]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rdx, [0x1800d3948]
mov rcx, qword [rsp + 0x2e0]
call fcn.18001bd80
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x90]
call fcn.180011730
mov rax, qword [rsp + 0x2e0]
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.18004d370
add rsp, 0x2d8
ret