Function at 0x1401ae9f0
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x480
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x490], rbx
mov rax, qword [0x14028b7c8]
xor rax, rsp
mov qword [rsp + 0x470], rax
lea rdi, [0x1402a0b60]
mov qword [rsp + 0x50], rdi
xor edx, edx
mov rcx, rdi
call fcn.140150a40
nop
lea rax, vtable.CcpuzApp.0
mov qword [0x1402a0b60], rax
xor ebx, ebx
mov qword [0x1402a1558], rbx
lea rax, vtable.CFont.0
mov qword [0x1402a1550], rax
mov qword [0x1402a1568], rbx
mov qword [0x1402a1560], rax
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x1401aea94
lea rdx, str.SetSearchPathMode
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401aea94
mov ecx, 0x8001
call rax
mov ecx, 0x880
call fcn.14013f12c
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1401aeab2
mov rcx, rax
call fcn.1401a0f80
jmp 0x1401aeab5
mov rax, rbx
mov qword [0x1402a0cc0], rax
mov word [0x1402a0cc8], bx
mov r8d, 0x200
lea rdx, [0x1402a0cc8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1401aeaed
lea rcx, [0x1402a0cc8]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x1401aeaff
lea rdx, [0x1402a0cc8]
mov ecx, 0x200
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov qword [0x1402a0ca8], rbx
mov qword [0x1402a0ca0], rbx
mov qword [0x1402a0cb0], rbx
mov qword [0x1402a0cb8], rbx
mov dword [0x1402a14d0], ebx
mov ecx, 0xa70
call fcn.14013f12c
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1401aeb3f
mov rcx, rax
call fcn.14017a5f0
jmp 0x1401aeb42
mov rax, rbx
mov qword [0x1402a14e0], rax
mov qword [0x1402a14e8], rbx
lea r8, [0x140223cf8]
mov edx, 0x10
lea rcx, [0x1402a14f0]
call fcn.1400444d0
lea r8, [0x140223d00]
mov edx, 0x10
lea rcx, [0x1402a1510]
call fcn.1400444d0
mov ecx, 0x210
call fcn.14013f12c
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1401aeb9e
mov rcx, rax
call fcn.140042028
jmp 0x1401aeba1
mov rax, rbx
mov qword [0x1402a14e8], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x200
lea rax, [rsp + 0x270]
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
lea r8, [rsp + 0x60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r8, qword [0x1402a14e8]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1401ac850
mov r11, qword [0x1402a14e8]
cmp dword [r11], 0xffffffff
je 0x1401aec7c
mov eax, dword [r11 + 8]
mov dword [rsp + 0x28], eax
mov eax, dword [r11 + 4]
mov dword [rsp + 0x20], eax
mov r9d, dword [r11]
lea r8, str._d._d_d
mov edx, 0x10
lea rcx, [0x1402a14f0]
call fcn.1400444d0
mov r11, qword [0x1402a14e8]
mov eax, dword [r11 + 0xc]
mov dword [rsp + 0x30], eax
mov eax, dword [r11 + 8]
mov dword [rsp + 0x28], eax
mov eax, dword [r11 + 4]
mov dword [rsp + 0x20], eax
mov r9d, dword [r11]
lea r8, str._d._d_d._d
mov edx, 0x10
lea rcx, [0x1402a1510]
call fcn.1400444d0
mov dword [0x1402a1538], 0xffffffff
mov dword [0x1402a153c], 0xffffffff
mov dword [0x1402a1540], 0xffffffff
mov dword [0x1402a1544], 0xffffffff
mov dword [0x1402a1548], ebx
mov dword [0x1402a14d8], ebx
mov dword [0x1402a14dc], 0xffffffff
mov word [0x1402a10c8], bx
mov qword [0x1402a14c8], rbx
lea r8, [0x140223d30]
mov edx, 0x100
lea rcx, [0x1402a1570]
call fcn.1400444d0
lea r8, str.Tahoma
mov edx, 0x100
lea rcx, [0x1402a1770]
call fcn.1400444d0
mov dword [0x1402a1978], 0xa00000
mov dword [0x1402a197c], 0x323232
mov dword [0x1402a1984], 1
mov dword [0x1402a1988], 1
mov dword [0x1402a1980], 1
mov dword [0x1402a198c], 1
mov dword [0x1402a1990], 1
mov dword [0x1402a1994], 1
mov dword [0x1402a1998], 1
mov dword [0x1402a199c], 1
mov dword [0x1402a19a0], 1
mov dword [0x1402a19a4], 1
mov dword [0x1402a19a8], ebx
mov dword [0x1402a19ac], 1
mov dword [0x1402a1970], ebx
mov dword [0x1402a1974], ebx
mov dword [0x1402a19c0], 1
mov dword [0x1402a19c8], 0x100
mov dword [0x1402a19cc], 1
mov dword [0x1402a19b0], 1
mov dword [0x1402a19c4], 1
mov dword [0x1402a19b4], 1
mov dword [0x1402a19b8], ebx
mov dword [0x1402a19bc], ebx
mov qword [0x1402a19d0], rbx
mov qword [0x1402a19e0], rbx
mov qword [0x1402a19e8], rbx
mov rax, rdi
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140156fd0
mov rbx, qword [rsp + 0x490]
add rsp, 0x480
pop rdi
ret