Function at 0x46dbd0
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
sub rsp, 0xa8
mov rbp, rsp
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x68], 0
nop
lea rax, [0x004a8258]
mov qword [0x004a8280], rax
lea rcx, [0x004a8258]
call sub.kernel32.dll_InitializeCriticalSection_1
call fcn.0046ebf0
lea rcx, [0x0046db90]
or edx, 0xffffffff
call sub.kernel32.dll_SetConsoleCtrlHandler
call fcn.00471bc0
call fcn.0042d280
call fcn.0046dfd0
lea rcx, [rbp + 0x70]
call fcn.0042a710
lea rcx, [rbp + 0x68]
mov rax, qword [0x0048a060]
mov rdx, qword [rax]
call fcn.0040be70
lea rcx, [rbp + 0x78]
mov edx, 3
mov r8, qword [rbp + 0x70]
lea r9, [0x0046df84]
mov rax, qword [rbp + 0x68]
mov qword [rsp + 0x20], rax
call fcn.0040c290
mov rcx, qword [rbp + 0x78]
call fcn.0040bdd0
mov rcx, qword [0x00489f58]
mov rdx, rax
call fcn.0042a8d0
mov rcx, qword [0x00489f58]
call fcn.0042a8b0
mov rcx, qword [0x00489f58]
mov rdx, qword [0x00489f58]
mov r8d, eax
call fcn.00432010
lea rcx, [0x004a8000]
xor rdx, rdx
call fcn.0042fa00
call fcn.0046e8b0
mov rcx, qword [0x00489f58]
call fcn.0046e330
mov rbx, rax
cmp word [0x004a8000], 0x5c
jne 0x46dd60
cmp word [0x004a8002], 0x5c
jne 0x46dd60
cmp byte [0x00488e86], 0
jne 0x46dd60
lea rcx, [rbp + 0x60]
mov rdx, qword [0x0048a410]
call fcn.0040f7b0
lea rax, [0x004a8000]
mov qword [rbp + 0x50], rax
mov byte [rbp + 0x58], 0xa
mov rcx, qword [rbp + 0x60]
mov edx, 1
lea r8, [rbp + 0x50]
xor r9, r9
call fcn.00470940
lea rcx, [0x004a8000]
mov edx, 0x105
call sub.kernel32.dll_GetWindowsDirectoryW
lea rcx, [0x004a8000]
mov dl, 1
call fcn.0042ff20
call sub.kernel32.dll_GetConsoleOutputCP_1
mov dword [0x004a8220], eax
mov ecx, dword [0x004a8220]
lea rdx, [0x004a820c]
call sub.kernel32.dll_GetCPInfo
call fcn.0042b540
mov ecx, 0x20c
call fcn.00405270
mov qword [0x004a8248], rax
mov ecx, 0x20c
call fcn.00405270
mov qword [0x004a8250], rax
cmp qword [0x004a8248], 0
je 0x46dddf
cmp qword [0x004a8250], 0
je 0x46dddf
mov rcx, qword [0x004a8250]
mov edx, 0x104
call sub.kernel32.dll_GetConsoleTitleW
mov rcx, qword [0x004a8248]
mov rdx, qword [0x004a8250]
call fcn.0042a8d0
cmp byte [0x00488e85], 0
jne 0x46de45
mov ecx, 1
call fcn.0042f970
test eax, eax
je 0x46de45
cmp word [0x00488ea4], 0
je 0x46de2e
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [rbp + 0x8a]
call sub.kernel32.dll_GetConsoleScreenBufferInfo
test eax, eax
je 0x46de2e
movzx rax, word [rbp + 0x92]
mov word [0x00488ea4], ax
cmp word [0x00488ea4], 0
je 0x46de45
movzx rcx, word [0x00488ea4]
call fcn.00436410
test rbx, rbx
jne 0x46dece
lea rcx, [rbp + 0x48]
mov rdx, qword [0x00489c00]
call fcn.0040f7b0
mov rcx, qword [rbp + 0x48]
xor rdx, rdx
lea r8, [rbp + 0x48]
or r9d, 0xffffffff
call fcn.00470880
cmp byte [0x00488e9e], 0
je 0x46dea1
lea rcx, [rbp + 0x40]
mov rdx, qword [0x00489f70]
call fcn.0040f7b0
mov rcx, qword [rbp + 0x40]
xor rdx, rdx
lea r8, [rbp + 0x48]
or r9d, 0xffffffff
call fcn.00470880
jmp 0x46dece
cmp byte [0x00488e9c], 0
je 0x46dece
lea rcx, [rbp + 0x38]
mov rdx, qword [0x00489c08]
call fcn.0040f7b0
mov rcx, qword [rbp + 0x38]
xor rdx, rdx
lea r8, [rbp + 0x48]
or r9d, 0xffffffff
call fcn.00470880
lea rcx, [0x0046df8e]
call sub.kernel32.dll_GetModuleHandleW_2
mov rcx, rax
lea rdx, [0x0046dfa8]
call fcn.004112d0
mov rcx, qword [0x0048a1f0]
mov qword [rcx], rax
mov qword [rbp + 0x30], rbx
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040abc0
lea rcx, [rbp + 0x60]
mov edx, 4
call fcn.0040abc0
mov rax, qword [rbp + 0x30]
lea rsp, [rbp + 0xa8]
pop rbx
pop rbp
ret