Function at 0x140004248
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x128]
sub rsp, 0x228
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rbp + 0x110], rax
xorps xmm0, xmm0
mov qword [rbp - 0x78], rdx
mov rbx, rcx
mov rsi, rdx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x40], edx
mov rax, r9
mov qword [rbp - 0x80], rax
mov r12, r8
mov qword [rbp - 8], rcx
mov r14d, edx
mov edi, edx
mov r15d, edx
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
test rbx, rbx
je 0x1400049f7
test rsi, rsi
je 0x1400049f7
test r8, r8
je 0x1400049f7
test rax, rax
jne 0x1400042e3
xor r8d, r8d
mov edx, 0x110a
mov rcx, r12
call qword [sym.imp.USER32.dll_SendMessageA]
nop dword [rax + rax]
mov r13, rax
test rax, rax
je 0x1400049f7
xor edx, edx
lea rcx, [0x140025fd0]
lea r8d, [rdx + 0x78]
call sub.msvcrt.dll_memset
mov eax, dword [0x140025f04]
xor ecx, ecx
mov dword [0x140025fd0], 0x78
mov edx, 1
mov qword [0x140025fd8], rsi
mov dword [0x140025ff8], 0x100
mov word [0x140026004], dx
test eax, eax
je 0x14000433e
mov r8d, ecx
mov qword [rsp + 0x48], rcx
jmp 0x140004396
lea rcx, [0x140025fd0]
call qword [sym.imp.COMDLG32.dll_PrintDlgA]
nop dword [rax + rax]
test eax, eax
je 0x1400049f0
mov rcx, qword [0x140025ff0]
test rcx, rcx
je 0x1400049f0
lea rdx, [rbp - 0x38]
mov qword [rsp + 0x48], rcx
call qword [sym.imp.GDI32.dll_GetTextMetricsA]
nop dword [rax + rax]
test eax, eax
je 0x140004971
mov r8, qword [rsp + 0x48]
mov edx, 1
mov eax, dword [0x140025f04]
test eax, eax
je 0x1400043b4
mov dword [rsp + 0x64], edx
mov dword [rsp + 0x60], edx
mov dword [rsp + 0x6c], 0x50
mov dword [rsp + 0x70], 0x42
jmp 0x140004403
mov ecx, dword [rbp - 0x38]
mov edx, 8
add ecx, dword [rbp - 0x28]
mov eax, dword [rbp - 0x24]
mov dword [rsp + 0x64], ecx
mov rcx, r8
mov dword [rsp + 0x60], eax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
xor edx, edx
div dword [rsp + 0x60]
mov edx, 0xa
mov dword [rsp + 0x6c], eax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
nop dword [rax + rax]
xor edx, edx
div dword [rsp + 0x64]
mov dword [rsp + 0x70], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r15, rax
test rax, rax
je 0x140004971
mov r8d, dword [rsp + 0x6c]
mov edx, 1
inc r8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
xor eax, eax
test rdi, rdi
je 0x140004971
xor edx, edx
mov byte [rdi], al
mov rcx, rsi
call qword [sym.imp.USER32.dll_EnableWindow]
nop dword [rax + rax]
xor eax, eax
lea r9, [0x140004110]
mov r8, rsi
mov dword [0x140025f18], eax
mov edx, 0x3e9
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_CreateDialogParamA]
nop dword [rax + rax]
xor esi, esi
mov qword [0x140025f08], rax
test rax, rax
je 0x14000495c
mov eax, dword [rsp + 0x6c]
lea r9, [rbp - 0x70]
xor r8d, r8d
mov dword [rbp - 0x50], eax
mov edx, 0x110c
mov dword [rbp - 0x70], 0x41
mov rcx, r12
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x58], rdi
call qword [sym.imp.USER32.dll_SendMessageA]
nop dword [rax + rax]
mov rcx, qword [0x140025f08]
test eax, eax
je 0x14000454d
mov rdx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextA]
nop dword [rax + rax]
mov rcx, qword [0x140025ff0]
lea rdx, [0x1400041b0]
call qword [sym.imp.GDI32.dll_SetAbortProc]
nop dword [rax + rax]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], sil
jne 0x1400044fe
lea eax, [rbx + 1]
mov edx, 1
mov r8d, eax
mov rcx, r15
mov esi, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x14000495c
mov r8, rdi
mov edx, esi
mov rcx, rax
call qword [sym.imp.msvcrt.dll_strcpy_s]
nop dword [rax + rax]
mov eax, ebx
xor esi, esi
mov byte [rax + r14], sil
jmp 0x1400045bc
lea rdx, str.Unknown
call qword [sym.imp.USER32.dll_SetWindowTextA]
nop dword [rax + rax]
mov rcx, qword [0x140025ff0]
lea rdx, [0x1400041b0]
call qword [sym.imp.GDI32.dll_SetAbortProc]
nop dword [rax + rax]
mov ebx, 8
mov rcx, r15
mov r8d, ebx
lea edx, [rbx - 7]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x14000495c
lea r8, str.Unknown
mov edx, ebx
mov rcx, rax
call qword [sym.imp.msvcrt.dll_strcpy_s]
nop dword [rax + rax]
mov byte [r14 + 7], sil
cmp dword [0x140025f04], esi
xorps xmm0, xmm0
movdqu xmmword [0x140025fb8], xmm0
mov dword [0x140025fa8], 0x28
mov qword [0x140025fb0], r14
mov dword [0x140025fc8], esi
je 0x140004686
lea rcx, [0x140025ad0]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], sil
jne 0x1400045f5
test rax, rax
jne 0x14000464f
lea rax, [rbp]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
nop dword [rax + rax]
test eax, eax
js 0x140004648
lea r8, [0x1400158d0]
mov edx, 0x104
lea rcx, [rbp]
call qword [sym.imp.msvcrt.dll_strcat_s]
nop dword [rax + rax]
lea rcx, [rbp]
jmp 0x14000464f
lea rcx, str.dxview.log
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov qword [0x140025f10], rax
xor ecx, ecx
jmp 0x1400046aa
mov rcx, qword [0x140025ff0]
lea rdx, [0x140025fa8]
call qword [sym.imp.GDI32.dll_StartDocA]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
js 0x14000495c
cmp cx, word [0x140026004]
mov ebx, ecx
mov dword [rsp + 0x40], ecx
jae 0x140004924
mov rsi, qword [rbp - 0x80]
mov rax, r13
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x74], ecx
cmp dword [0x140025f04], ecx
mov qword [rsp + 0x58], rax
jne 0x140004717
cmp dword [rsp + 0x78], ecx
je 0x140004717
cmp dword [0x140025f18], ecx
jne 0x140004949
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.GDI32.dll_StartPage]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
js 0x14000492c
mov rax, qword [rsp + 0x58]
mov dword [rsp + 0x78], ecx
mov dword [rsp + 0x68], ecx
mov qword [rbp - 0x68], rax
lea r9, [rbp - 0x70]
mov eax, dword [rsp + 0x6c]
xor r8d, r8d
mov qword [rbp - 0x40], rcx
mov edx, 0x110c
mov rcx, r12
mov dword [rbp - 0x50], eax
mov dword [rbp - 0x70], 0x45
mov qword [rbp - 0x58], rdi
call qword [sym.imp.USER32.dll_SendMessageA]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
je 0x140004805
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], cl
jne 0x14000475a
test r8d, r8d
je 0x140004805
mov eax, dword [rsp + 0x74]
mov r9d, r8d
imul eax, dword [rsp + 0x60]
mov r8, rdi
mov edx, dword [rsp + 0x68]
imul edx, dword [rsp + 0x64]
lea ecx, [rax + rax*2]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call fcn.140004ad4
xor ecx, ecx
test eax, eax
js 0x14000492c
lea rcx, [rsp + 0x48]
int3
cmp dword [rbp - 0x44], ecx
je 0x140004839
mov r9, qword [rsp + 0x58]
mov edx, 0x110a
mov r8d, 4
mov rcx, r12
call qword [sym.imp.USER32.dll_SendMessageA]
nop dword [rax + rax]
xor ecx, ecx
test rax, rax
je 0x140004839
inc dword [rsp + 0x74]
jmp 0x1400046d0
mov r9, qword [rsp + 0x58]
cmp r9, rsi
jne 0x1400048ba
cmp dword [0x140025f04], ecx
jne 0x14000490e
cmp dword [rsp + 0x78], ecx
jne 0x14000490e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.GDI32.dll_EndPage]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x78]
test eax, eax
mov eax, 1
cmovns ecx, eax
mov dword [rsp + 0x78], ecx
xor ecx, ecx
jmp 0x140004913
mov r9, qword [rsp + 0x58]
mov edx, 0x110a
mov r8d, 3
mov rcx, r12
call qword [sym.imp.USER32.dll_SendMessageA]
nop dword [rax + rax]
xor ecx, ecx
test rax, rax
je 0x1400048e0
cmp rax, rsi
je 0x1400048e0
dec dword [rsp + 0x74]
mov r9, rax
mov qword [rsp + 0x58], rax
mov edx, 0x110a
mov r8d, 1
mov rcx, r12
call qword [sym.imp.USER32.dll_SendMessageA]
nop dword [rax + rax]
xor ecx, ecx
test rax, rax
je 0x140004883
jmp 0x1400046d0
cmp dword [0x140025f04], ecx
jne 0x14000490e
cmp dword [rsp + 0x78], ecx
jne 0x14000490e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.GDI32.dll_EndPage]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
lea eax, [rcx + 1]
js 0x140004913
mov dword [rsp + 0x78], eax
jmp 0x140004913
mov eax, 1
add ebx, eax
movzx eax, word [0x140026004]
cmp ebx, eax
jb 0x1400046c1
mov dword [rsp + 0x40], 1
cmp dword [0x140025f04], ecx
je 0x140004949
mov rcx, qword [0x140025f10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x14000495c
mov rcx, qword [0x140025ff0]
call qword [sym.imp.GDI32.dll_EndDoc]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x78]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
nop dword [rax + rax]
mov rcx, qword [0x140025f08]
xor ebx, ebx
test rcx, rcx
je 0x140004992
call qword [sym.imp.USER32.dll_DestroyWindow]
nop dword [rax + rax]
mov qword [0x140025f08], rbx
test r14, r14
je 0x1400049b2
mov r8, r14
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov qword [0x140025fb0], rbx
test rdi, rdi
je 0x1400049cb
mov r8, rdi
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [0x140025ff0]
test rcx, rcx
je 0x1400049ea
call qword [sym.imp.GDI32.dll_DeleteDC]
nop dword [rax + rax]
mov qword [0x140025ff0], rbx
mov eax, dword [rsp + 0x40]
jmp 0x1400049f9
mov eax, 1
jmp 0x1400049f9
xor eax, eax
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.1400146a0
add rsp, 0x228
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret