Function at 0x180046090
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2d0], rbx
mov rax, qword [0x1801b0238]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r14, rdx
mov r13, rcx
mov qword [rsp + 0x38], rdx
mov rbx, qword [rdx + 0x18]
cmp rbx, 0x10
jb 0x1800460e7
mov rcx, qword [rdx]
jmp 0x1800460ea
mov rcx, r14
xor r12d, r12d
cmp qword [rdx + 0x10], 7
jne 0x18004612a
lea r8d, [r12 + 7]
lea rdx, str.DESKTOP
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18004612a
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
jmp 0x180046240
cmp rbx, 0x10
jb 0x180046135
mov rcx, qword [r14]
jmp 0x180046138
mov rcx, r14
cmp qword [r14 + 0x10], 0xa
jne 0x180046178
mov r8d, 0xa
lea rdx, str.MYDOCUMENT
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x180046178
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 5]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
jmp 0x180046240
cmp rbx, 0x10
jb 0x180046183
mov rcx, qword [r14]
jmp 0x180046186
mov rcx, r14
cmp qword [r14 + 0x10], 9
jne 0x1800461c3
mov r8d, 9
lea rdx, str.MYPICTURE
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1800461c3
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x27]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
jmp 0x180046240
mov edi, r12d
cmp rbx, 0x10
jb 0x1800461d1
mov rcx, qword [r14]
jmp 0x1800461d4
mov rcx, r14
mov rax, qword [r14 + 0x10]
add rax, rcx
cmp rbx, 0x10
jb 0x1800461e6
mov rcx, qword [r14]
jmp 0x1800461e9
mov rcx, r14
lea rdx, [rsp + 0x60]
mov r8, rax
sub r8, rcx
cmp rcx, rax
cmova r8, r12
test r8, r8
je 0x180046227
mov r9, rcx
neg r9
nop word [rax + rax]
movsx eax, byte [rcx]
mov word [rdx], ax
lea rdx, [rdx + 2]
lea rcx, [rcx + 1]
lea rax, [r9 + rcx]
cmp rax, r8
jne 0x180046210
mov rax, qword [r14 + 0x10]
add rax, rax
cmp rax, 0x208
jae 0x180046a60
mov word [rsp + rax + 0x60], r12w
lea rbx, [r13 + 0x3b0]
xor r8d, r8d
lea rdx, [0x18018a1bc]
mov rcx, rbx
call fcn.1800193f0
test edi, edi
je 0x180046274
mov r8d, 2
lea rdx, [0x18018a1c0]
mov rcx, rbx
call fcn.1800193f0
jmp 0x1800462f3
mov r15d, r12d
lea rsi, [rsp + 0x60]
nop dword [rax]
movzx edi, word [rsi]
test di, di
je 0x1800462f3
mov rdx, qword [rbx + 0x10]
cmp rdx, qword [rbx + 0x18]
jne 0x1800462bf
add rdx, 1
jne 0x1800462b1
mov qword [rbx + 0x10], r12
cmp qword [rbx + 0x18], 8
jb 0x1800462a8
mov rax, qword [rbx]
jmp 0x1800462ab
mov rax, rbx
mov word [rax], r12w
jmp 0x1800462bf
cmp qword [rbx + 0x18], rdx
jae 0x1800462bf
mov rcx, rbx
call fcn.180019300
cmp qword [rbx + 0x18], 8
jb 0x1800462cb
mov rcx, qword [rbx]
jmp 0x1800462ce
mov rcx, rbx
mov rax, qword [rbx + 0x10]
mov word [rcx + rax*2], di
inc qword [rbx + 0x10]
mov rax, qword [rbx + 0x10]
mov word [rcx + rax*2], r12w
inc r15d
add rsi, 2
cmp r15d, 0x104
jl 0x180046280
lea r8, str.hkBitBlt_provided.bmp
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180046d70
mov rsi, rax
lea rdi, [r13 + 0x3d0]
cmp rdi, rax
je 0x180046359
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x18004632b
inc r8
mov rdx, qword [rdi]
call fcn.180019510
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x180046371
inc r8
mov rdx, qword [rsp + 0x40]
call fcn.180019510
lea r8, str.hkBitBlt_spoofed.bmp
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180046d70
mov rsi, rax
lea rdi, [r13 + 0x3f0]
cmp rdi, rax
je 0x1800463d7
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x1800463a9
inc r8
mov rdx, qword [rdi]
call fcn.180019510
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x1800463ef
inc r8
mov rdx, qword [rsp + 0x40]
call fcn.180019510
lea r8, str.hkBitBlt_backup.bmp
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180046d70
mov rsi, rax
lea rdi, [r13 + 0x410]
cmp rdi, rax
je 0x180046455
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x180046427
inc r8
mov rdx, qword [rdi]
call fcn.180019510
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x18004646d
inc r8
mov rdx, qword [rsp + 0x40]
call fcn.180019510
lea r8, str.hkBitBlt_actual.bmp
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180046d70
mov rsi, rax
lea rdi, [r13 + 0x430]
cmp rdi, rax
je 0x1800464d3
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x1800464a5
inc r8
mov rdx, qword [rdi]
call fcn.180019510
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x1800464eb
inc r8
mov rdx, qword [rsp + 0x40]
call fcn.180019510
lea r8, str.hkBitBlt_provided2.bmp
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180046d70
mov rsi, rax
lea rdi, [r13 + 0x450]
cmp rdi, rax
je 0x180046551
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x180046523
inc r8
mov rdx, qword [rdi]
call fcn.180019510
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x180046569
inc r8
mov rdx, qword [rsp + 0x40]
call fcn.180019510
lea r8, str.hkBitBlt_spoofed2.bmp
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180046d70
mov rsi, rax
lea rdi, [r13 + 0x470]
cmp rdi, rax
je 0x1800465cf
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x1800465a1
inc r8
mov rdx, qword [rdi]
call fcn.180019510
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x1800465e7
inc r8
mov rdx, qword [rsp + 0x40]
call fcn.180019510
lea r8, str.hkBitBlt_actual2.bmp
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180046d70
mov rsi, rax
lea rdi, [r13 + 0x490]
cmp rdi, rax
je 0x18004664d
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x18004661f
inc r8
mov rdx, qword [rdi]
call fcn.180019510
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x180046665
inc r8
mov rdx, qword [rsp + 0x40]
call fcn.180019510
lea r8, str.Test_provided1.bmp
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180046d70
mov rsi, rax
lea rdi, [r13 + 0x570]
cmp rdi, rax
je 0x1800466cb
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x18004669d
inc r8
mov rdx, qword [rdi]
call fcn.180019510
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x1800466e3
inc r8
mov rdx, qword [rsp + 0x40]
call fcn.180019510
lea r8, str.Test_provided2.bmp
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180046d70
mov rsi, rax
lea rdi, [r13 + 0x590]
cmp rdi, rax
je 0x180046749
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x18004671b
inc r8
mov rdx, qword [rdi]
call fcn.180019510
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x180046761
inc r8
mov rdx, qword [rsp + 0x40]
call fcn.180019510
lea r8, str.hkCopyResource_provided.bmp
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180046d70
mov rsi, rax
lea rdi, [r13 + 0x4b0]
cmp rdi, rax
je 0x1800467c7
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x180046799
inc r8
mov rdx, qword [rdi]
call fcn.180019510
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x1800467df
inc r8
mov rdx, qword [rsp + 0x40]
call fcn.180019510
lea r8, str.hkCopyResource_spoofed.bmp
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180046d70
mov rsi, rax
lea rdi, [r13 + 0x4d0]
cmp rdi, rax
je 0x180046845
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x180046817
inc r8
mov rdx, qword [rdi]
call fcn.180019510
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x18004685d
inc r8
mov rdx, qword [rsp + 0x40]
call fcn.180019510
lea r8, str.hkCopyResource_actual.bmp
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180046d70
mov rsi, rax
lea rdi, [r13 + 0x4f0]
cmp rdi, rax
je 0x1800468c3
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x180046895
inc r8
mov rdx, qword [rdi]
call fcn.180019510
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x1800468db
inc r8
mov rdx, qword [rsp + 0x40]
call fcn.180019510
lea r8, str.hkCopySubresourceRegion_provided.bmp
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180046d70
mov rsi, rax
lea rdi, [r13 + 0x510]
cmp rdi, rax
je 0x180046941
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x180046913
inc r8
mov rdx, qword [rdi]
call fcn.180019510
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x180046959
inc r8
mov rdx, qword [rsp + 0x40]
call fcn.180019510
lea r8, str.hkCopySubresourceRegion_spoofed.bmp
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180046d70
mov rsi, rax
lea rdi, [r13 + 0x530]
cmp rdi, rax
je 0x1800469bf
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x180046991
inc r8
mov rdx, qword [rdi]
call fcn.180019510
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x1800469d7
inc r8
mov rdx, qword [rsp + 0x40]
call fcn.180019510
lea r8, str.hkCopySubresourceRegion_actual.bmp
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180046d70
mov rdi, rax
lea rbx, [r13 + 0x550]
cmp rbx, rax
je 0x180046a3d
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x180046a0f
inc r8
mov rdx, qword [rbx]
call fcn.180019510
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x180046a56
inc r8
mov rdx, qword [rsp + 0x40]
call fcn.180019510
nop
mov rcx, r14
call fcn.18000ec30
jmp 0x180046a66
call fcn.1800e6800
nop
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1800e5f40
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret