Function at 0x18001c710
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x6a0]
sub rsp, 0x7a0
mov rax, qword [0x18002e518]
xor rax, rsp
mov qword [rbp + 0x690], rax
mov r13, rdx
mov qword [rbp - 0x68], rdx
mov esi, ecx
mov dword [rsp + 0x38], ecx
mov r15d, ecx
lea r12d, [rcx + 0x519]
lea r8, [0x180000000]
xor ebx, ebx
lea r9d, [rbx + 0x32]
cmp ecx, r12d
jae 0x18001cb0f
lea esi, [rbx + 0x31]
lea ecx, [rbx + 0x73]
lea edx, [rbx + 0x69]
lea r11d, [rbx + 0x6d]
lea eax, [rbx + 0x62]
lea r14d, [rbx + 0x30]
lea r8d, [rbx + 0x65]
lea r9d, [rbx + 0x79]
lea r10d, [rbx + 0x33]
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x48], rdi
jmp 0x18001c7a6
mov rdi, qword [rsp + 0x48]
cmp r15d, 0x160
ja 0x18001ca18
je 0x18001c9f1
lea eax, [r15 - 0x5b]
cmp eax, 0xc4
ja case.default.0x18001c7e4
lea rcx, [0x180000000]
movzx eax, byte [rcx + rax + 0x1d2c8]
mov ecx, dword [rcx + rax*4 + 0x1d2a8]
lea rax, [0x180000000]
add rcx, rax
jmp rcx
mov edx, 0xe1
mov rcx, r13
call fcn.18000ec80
mov qword [rdi], rax
mov rdx, r13
mov ecx, 0x7a
call fcn.180019a00
test eax, eax
jne 0x18001ca8b
mov edx, 0xe1
mov rcx, r13
call fcn.18000ec80
mov qword [rdi + 8], rax
mov edx, 0x69
lea r8d, [rdx - 4]
lea r9d, [rdx + 0x10]
lea r10d, [rdx - 0x36]
lea r11d, [rdx + 4]
mov ecx, 0x73
mov eax, 0x62
add r15d, 0x57
cmp r15d, r12d
jb 0x18001c7a1
mov esi, dword [rsp + 0x38]
mov r10, qword [rsp + 0x48]
lea r8, [0x180000000]
mov r9d, 0x32
jmp 0x18001cb19
xor r8d, r8d
lea edx, [r8 + 0x2a]
xor ecx, ecx
call fcn.18001f5b0
mov qword [rsp + 0x48], rax
mov rdx, r13
mov ecx, 0x5e
call fcn.180019910
cmp eax, 0x70
je 0x18001c898
mov dword [r13 + 0x14], 1
mov r15d, 0x224
jmp 0x18001c81c
mov r8d, 0x21
mov rdx, r13
xor ecx, ecx
call fcn.1800195e0
cmp eax, 5
je 0x18001c81c
mov dword [r13 + 0x14], 1
mov r15d, 0x224
jmp 0x18001c81c
mov word [rbp + 0x210], r11w
mov dword [rbp + 0x212], 0x760073
mov dword [rbp + 0x216], 0x720063
mov word [rbp + 0x21a], si
jmp case.0x18001c7e4.92
mov rdx, r13
mov ecx, 0x7a
call fcn.180019a00
test eax, eax
jne 0x18001ca8b
mov edx, 0xe1
mov rcx, r13
call fcn.18000ec80
mov qword [rdi + 0x10], rax
mov rdx, r13
mov ecx, 0x7a
call fcn.180019a00
test eax, eax
jne 0x18001ca8b
xor r8d, r8d
mov edx, 0xa0
mov rcx, r13
call fcn.18001e7a0
mov qword [rdi + 0x18], rax
jmp 0x18001c81c
test r13, r13
je case.0x18001c7e4.92
mov r14d, 0x88
nop
mov eax, r14d
sub eax, 0x88
je 0x18001c964
cmp eax, 0x42
jne 0x18001c997
mov rcx, r13
jmp 0x18001c991
mov esi, ebx
cmp dword [r13 + 8], ebx
jle 0x18001c988
mov rdi, rbx
nop
mov rcx, qword [r13]
mov rcx, qword [rcx + rdi]
call qword [r13 + ILRemoveLastID]
inc esi
lea rdi, [rdi + 8]
cmp esi, dword [r13 + 8]
jl 0x18001c970
mov rcx, qword [r13]
test rcx, rcx
je 0x18001c997
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add r14d, 0x42
cmp r14d, 0x10c
jb 0x18001c950
mov edx, 0x69
lea esi, [rdx - 0x38]
lea r8d, [rdx - 4]
lea r9d, [rdx + 0x10]
lea r10d, [rdx - 0x36]
lea r11d, [rdx + 4]
lea r14d, [rdx - 0x39]
jmp case.0x18001c7e4.92
mov eax, 0x32
mov word [rbp + 0x21c], ax
jmp case.0x18001c7e4.92
mov dword [rbp + 0x21e], 0x30
mov eax, 0x57
mov word [rbp + 0x240], ax
jmp case.0x18001c7e4.92
mov word [rbp + 0x242], cx
mov dword [rbp + 0x244], 0x6b0053
mov word [rbp + 0x248], dx
mov dword [rbp + 0x24a], 0x4e0070
jmp 0x18001c83b
cmp r15d, 0x20e
ja 0x18001cac2
je 0x18001caac
mov eax, r15d
sub eax, 0x176
je 0x18001ca7a
sub eax, 0x41
je 0x18001ca57
cmp eax, 0x16
jne case.default.0x18001c7e4
mov rdx, r13
lea ecx, [rax + 0x64]
call fcn.180019a00
test eax, eax
jne 0x18001ca8b
jmp 0x18001c81c
mov dword [rbp + 0x24e], 0x64006f
mov dword [rbp + 0x252], 0x65
mov dword [rbp + 0x228], 0x69006c
jmp case.default.0x18001c7e4
mov rdx, r13
mov ecx, 0x7a
call fcn.180019a00
test eax, eax
je 0x18001ca96
mov r15d, 0x224
jmp 0x18001c81c
mov edx, 0xe1
mov rcx, r13
call fcn.18000ec80
mov qword [rdi + 0x20], rax
jmp 0x18001c81c
mov word [rbp + 0x22c], ax
mov dword [rbp + 0x22e], 0x610065
jmp 0x18001c83b
mov eax, r15d
sub eax, 0x224
je 0x18001cb07
sub eax, 0x41
je 0x18001caf8
cmp eax, 0x57
mov eax, 0x62
jne 0x18001c83b
mov dword [rbp + 0x236], 0x32
mov dword [rbp + 0x258], 0x730073
jmp 0x18001c83b
mov dword [rbp + 0x232], 0x330079
jmp case.default.0x18001c7e4
mov rax, rdi
jmp 0x18001d264
mov r10, qword [rsp + 0x50]
mov qword [rsp + 0x48], r10
lea edi, [rsi - 0x10]
mov dword [rsp + 0x30], edi
cmp esi, edi
jbe case.0x18001cb5f.0
lea edi, [rsi - 0x4e]
mov dword [rsp + 0x40], edi
mov edx, 0x6c
movabs r14, 0x7ffffffffffffffe
mov eax, dword [rsp + 0x30]
cmp edi, 0x23
ja case.default.0x18001cb5f
movzx eax, byte [r8 + rdi + 0x1d3d4]
mov ecx, dword [r8 + rax*4 + 0x1d390]
add rcx, r8
jmp rcx
mov ecx, ebx
movzx eax, byte [rsp + 0x35]
cmp qword [rsp + 0x78], rcx
cmovne ecx, eax
mov byte [rsp + 0x35], cl
jmp case.0x18001cb5f.16
lea rax, [rbp + 0x210]
mov qword [rbp + 0x1e0], rax
jmp case.0x18001cb5f.16
mov byte [rsp + 0x35], 1
movups xmm0, xmmword [rbp + 0x1f8]
movups xmmword [rbp + 0x1e0], xmm0
movsd xmm1, qword [rbp + 0x208]
movsd qword [rbp + 0x1f0], xmm1
mov byte [rsp + 0x34], 1
jmp case.0x18001cb5f.16
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 0x7d]
mov rcx, r10
call fcn.18001c2f0
jmp 0x18001d158
mov ecx, ebx
movzx eax, byte [rsp + 0x36]
cmp qword [rbp - 0x78], rcx
cmovne ecx, eax
mov byte [rsp + 0x36], cl
jmp case.0x18001cb5f.16
mov word [rbp + 0x268], bx
jmp case.0x18001cb5f.16
mov ecx, ebx
movzx eax, byte [rsp + 0x34]
cmp qword [rbp - 0x80], rcx
cmovne ecx, eax
mov byte [rsp + 0x34], cl
jmp case.0x18001cb5f.16
mov word [rbp + 0x25c], dx
mov dword [rbp + 0x25e], 0x610065
mov dword [rbp + 0x262], 0x330079
mov word [rbp + 0x266], r9w
jmp case.0x18001cb5f.16
cmp byte [rsp + 0x34], 0
je 0x18001cc47
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.GDI32.dll_DeleteObject]
cmp byte [rsp + 0x36], 0
je 0x18001cc58
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov byte [rsp + 0x50], 1
jmp 0x18001d158
mov qword [rbp - 0x48], rbx
jmp case.0x18001cb5f.16
xor edx, edx
mov r8d, 0x1a4
lea rcx, [rbp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + 0x228]
mov qword [rbp + 0x1e8], rax
jmp 0x18001d158
mov dword [rsp + 0x44], ebx
lea rsi, [rbp + 0x1e0]
mov qword [rsp + 0x70], rsi
nop
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], bx
mov r12d, 0xa5
mov dword [rsp + 0x3c], r12d
nop dword [rax + rax]
mov eax, r12d
sub eax, 0xa1
je 0x18001d011
sub eax, 1
je 0x18001cfcd
sub eax, 1
je 0x18001ce7e
sub eax, 1
je 0x18001ce75
cmp eax, 1
jne 0x18001d0b9
mov qword [rbp - 0x60], rbx
mov rsi, qword [r13 + 0x10]
mov rdi, r13
cmp qword [r13 + 0x18], 8
jb 0x18001cd08
mov rdi, qword [r13]
cmp rsi, 8
jae 0x18001cd21
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x10], xmm0
mov r14d, 7
mov r13, qword [rbp - 0x10]
jmp 0x18001cd60
mov r14, rsi
or r14, 7
movabs rax, 0x7ffffffffffffffe
cmp r14, rax
cmova r14, rax
lea rdx, [r14 + 1]
lea rcx, [rbp - 0x10]
call fcn.180016c00
mov r13, rax
mov qword [rbp - 0x10], rax
lea r8, [rsi*2 + 2]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 8], r14
mov qword [rbp], rsi
lea r15, [rbp - 0x10]
cmp r14, 8
cmovae r15, r13
cmp rsi, 8
jae 0x18001cd88
movups xmm0, xmmword [r15]
mov qword [rbp + 0x28], 7
jmp 0x18001cdcc
mov rdi, rsi
or rdi, 7
movabs rax, 0x7ffffffffffffffe
cmp rdi, rax
cmova rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp + 0x10]
call fcn.180016c00
mov qword [rbp + 0x10], rax
lea r8, [rsi*2 + 2]
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x28], rdi
movups xmm0, xmmword [rbp + 0x10]
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp + 0x20], rsi
mov rax, qword [rbp - 0x18]
cmp rax, 8
jb 0x18001ce14
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001ce0f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001d1d1
call fcn.180024bbc
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [rbp + 0x20]
movups xmmword [rbp - 0x20], xmm0
cmp r14, 8
jb 0x18001ce5f
lea rdx, [r14*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x18001ce57
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001d1d8
mov rcx, r13
call fcn.180024bbc
mov qword [rbp - 0x10], 0xffffffffffffffff
mov r13, qword [rbp - 0x68]
mov rsi, qword [rsp + 0x70]
jmp 0x18001d0b9
mov qword [rbp - 0x58], rbx
jmp 0x18001d0b9
mov rdx, qword [rsi]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x18001ce90
lea rcx, [rbp - 0x30]
call fcn.180016d00
mov dword [rsp + 0x5c], 0x2000000
mov r15, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x18]
cmp r15, rsi
jae 0x18001cedb
lea rax, [r15 + 1]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmp rsi, 8
cmovae rax, qword [rbp - 0x30]
mov dword [rax + r15*2], 0x2e
jmp 0x18001cfad
mov rax, r14
sub rax, r15
cmp rax, 1
jb 0x18001d2a0
lea r12, [r15 + 1]
mov rdi, r12
or rdi, 7
cmp rdi, r14
jbe 0x18001cf00
mov rdi, r14
jmp 0x18001cf21
mov rcx, rsi
shr rcx, 1
mov rax, r14
sub rax, rcx
cmp rsi, rax
jbe 0x18001cf16
mov rdi, r14
jmp 0x18001cf21
lea rax, [rsi + rcx]
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x30]
call fcn.180016c00
mov r14, rax
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], rdi
add r15, r15
mov r8, r15
mov rcx, rax
cmp rsi, 8
jb 0x18001cf93
mov rdi, qword [rbp - 0x30]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov dword [r14 + r15], 0x2e
lea rdx, [rsi*2 + 2]
cmp rdx, 0x1000
jb 0x18001cf89
add rdx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x18001d1d8
mov rdi, rcx
mov rcx, rdi
call fcn.180024bbc
jmp 0x18001cfa4
lea rdx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov dword [r14 + r15], 0x2e
mov r12d, dword [rsp + 0x3c]
mov qword [rbp - 0x30], r14
mov r8d, 3
lea rdx, [0x180029938]
lea rcx, [rbp - 0x30]
call fcn.180016d00
mov rsi, qword [rsp + 0x70]
jmp 0x18001d0b9
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x1f8], xmm0
mov dword [rbp + 0x208], eax
mov dword [rsp + 0x60], 0x104
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rbp - 0x50], rax
mov dword [rsp + 0x58], 1
jmp 0x18001d0b9
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x1f8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x5c]
mov r8, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_ObjectPrivilegeAuditAlarmW]
mov r8d, dword [rsp + 0x60]
lea rdx, [rbp + 0x270]
mov rcx, qword [rbp - 0x58]
call sub.IMM32.dll_ImmGetDescriptionW
cmp qword [rbp - 0x50], 0
jne 0x18001d0b9
mov edi, 0xa
nop dword [rax + rax]
mov eax, edi
sub eax, 7
je 0x18001d1df
sub eax, 1
je 0x18001d09c
sub eax, 1
je 0x18001d080
cmp eax, 1
jne 0x18001d0b2
mov qword [rbp - 0x38], rbx
jmp 0x18001d0b2
mov byte [rsp + 0x37], 1
mov dword [rsp + 0x68], 0x36
call sub.IMM32.dll_ImmCreateContext
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x40], rbx
jmp 0x18001d0b2
mov dword [rsp + 0x64], ebx
mov ecx, ebx
movzx eax, byte [rsp + 0x37]
cmp qword [rbp - 0x70], rcx
cmovne ecx, eax
mov byte [rsp + 0x37], cl
dec edi
cmp edi, 6
ja 0x18001d060
dec r12d
mov dword [rsp + 0x3c], r12d
cmp r12d, 0xa0
movabs r14, 0x7ffffffffffffffe
ja 0x18001ccc0
mov rax, qword [rbp - 0x18]
cmp rax, 8
jb 0x18001d118
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001d113
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001d294
call fcn.180024bbc
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
add rsi, 8
mov qword [rsp + 0x70], rsi
cmp eax, 3
movabs r14, 0x7ffffffffffffffe
jb 0x18001cca0
cmp byte [rsp + 0x35], 0
je 0x18001d150
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [rsp + 0x38]
mov edi, dword [rsp + 0x40]
mov edx, 0x6c
mov eax, dword [rsp + 0x30]
dec esi
mov dword [rsp + 0x38], esi
dec edi
mov dword [rsp + 0x40], edi
cmp esi, eax
jbe case.0x18001cb5f.0
mov r10, qword [rsp + 0x48]
lea r8, [0x180000000]
mov r9d, 0x32
jmp 0x18001cb42
lea rcx, [rbp + 0x30]
call qword [sym.imp.GDI32.dll_CreateFontIndirectExW]
mov qword [rsp + 0x78], rax
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.GDI32.dll_CreatePatternBrush]
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 0x240]
call qword [sym.imp.GDI32.dll_GetEnhMetaFileW]
mov qword [rbp - 0x78], rax
lea rax, [rbp + 0x258]
mov qword [rbp + 0x1f0], rax
jmp 0x18001d158
mov byte [rsp + 0x36], 1
jmp case.0x18001cb5f.16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp byte [rsp + 0x37], 0
je 0x18001d1ef
mov rcx, qword [rbp - 0x70]
call sub.IMM32.dll_ImmDestroyContext
lea rax, [rbp + 0x480]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9d, dword [rsp + 0x64]
mov r8, qword [rbp - 0x40]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
mov byte [rsp + 0x50], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb case.0x18001cb5f.0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001d25a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001d25a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180024bbc
mov rax, qword [rsp + 0x50]
mov rcx, qword [rbp + 0x690]
xor rcx, rsp
call fcn.1800250d0
lea r11, [rsp + 0x7a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, rbx
jmp 0x18001d264
call fcn.180016b20
nop
nop
invalid