Function at 0x46d180
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, [0x004a6258]
mov qword [0x004a6280], rax
lea rcx, [0x004a6258]
call sub.kernel32.dll_InitializeCriticalSection_1
call fcn.0046e1a0
lea rcx, [0x0046d140]
or edx, 0xffffffff
call sub.kernel32.dll_SetConsoleCtrlHandler
call fcn.00471170
call fcn.0042c830
call fcn.0046d580
lea rcx, [rbp + 0x70]
call fcn.00429cc0
lea rcx, [rbp + 0x68]
mov rax, qword [0x00488b40]
mov rdx, qword [rax]
call fcn.0040b600
lea rcx, [rbp + 0x78]
mov edx, 3
mov r8, qword [rbp + 0x70]
lea r9, [0x0046d534]
mov rax, qword [rbp + 0x68]
mov qword [rsp + 0x20], rax
call fcn.0040ba20
mov rcx, qword [rbp + 0x78]
call fcn.0040b560
mov rcx, qword [0x00488a40]
mov rdx, rax
call fcn.00429e80
mov rcx, qword [0x00488a40]
call fcn.00429e60
mov rcx, qword [0x00488a40]
mov rdx, qword [0x00488a40]
mov r8d, eax
call fcn.004315c0
lea rcx, [0x004a6000]
xor rdx, rdx
call fcn.0042efb0
call fcn.0046de60
mov rcx, qword [0x00488a40]
call fcn.0046d8e0
mov rbx, rax
cmp word [0x004a6000], 0x5c
jne 0x46d310
cmp word [0x004a6002], 0x5c
jne 0x46d310
cmp byte [0x00487da6], 0
jne 0x46d310
lea rcx, [rbp + 0x60]
mov rdx, qword [0x00488ef0]
call fcn.0040ed70
lea rax, [0x004a6000]
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.0046fef0
lea rcx, [0x004a6000]
mov edx, 0x105
call sub.kernel32.dll_GetWindowsDirectoryW
lea rcx, [0x004a6000]
mov dl, 1
call fcn.0042f4d0
call sub.kernel32.dll_GetConsoleOutputCP_1
mov dword [0x004a6220], eax
mov ecx, dword [0x004a6220]
lea rdx, [0x004a620c]
call sub.kernel32.dll_GetCPInfo
call fcn.0042aaf0
mov ecx, 0x20c
call fcn.00405270
mov qword [0x004a6248], rax
mov ecx, 0x20c
call fcn.00405270
mov qword [0x004a6250], rax
cmp qword [0x004a6248], 0
je 0x46d38f
cmp qword [0x004a6250], 0
je 0x46d38f
mov rcx, qword [0x004a6250]
mov edx, 0x104
call sub.kernel32.dll_GetConsoleTitleW
mov rcx, qword [0x004a6248]
mov rdx, qword [0x004a6250]
call fcn.00429e80
cmp byte [0x00487da5], 0
jne 0x46d3f5
mov ecx, 1
call fcn.0042ef20
test eax, eax
je 0x46d3f5
cmp word [0x00487dc4], 0
je 0x46d3de
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 0x46d3de
movzx rax, word [rbp + 0x92]
mov word [0x00487dc4], ax
cmp word [0x00487dc4], 0
je 0x46d3f5
movzx rcx, word [0x00487dc4]
call fcn.004359c0
test rbx, rbx
jne 0x46d47e
lea rcx, [rbp + 0x48]
mov rdx, qword [0x004886e8]
call fcn.0040ed70
mov rcx, qword [rbp + 0x48]
xor rdx, rdx
lea r8, [rbp + 0x48]
or r9d, 0xffffffff
call fcn.0046fe30
cmp byte [0x00487dbe], 0
je 0x46d451
lea rcx, [rbp + 0x40]
mov rdx, qword [0x00488a58]
call fcn.0040ed70
mov rcx, qword [rbp + 0x40]
xor rdx, rdx
lea r8, [rbp + 0x48]
or r9d, 0xffffffff
call fcn.0046fe30
jmp 0x46d47e
cmp byte [0x00487dbc], 0
je 0x46d47e
lea rcx, [rbp + 0x38]
mov rdx, qword [0x004886f0]
call fcn.0040ed70
mov rcx, qword [rbp + 0x38]
xor rdx, rdx
lea r8, [rbp + 0x48]
or r9d, 0xffffffff
call fcn.0046fe30
lea rcx, [0x0046d53e]
call sub.kernel32.dll_GetModuleHandleW_2
mov rcx, rax
lea rdx, [0x0046d558]
call fcn.00410880
mov rcx, qword [0x00488cd0]
mov qword [rcx], rax
mov qword [rbp + 0x30], rbx
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040a350
lea rcx, [rbp + 0x60]
mov edx, 4
call fcn.0040a350
mov rax, qword [rbp + 0x30]
lea rsp, [rbp + 0xa8]
pop rbx
pop rbp
ret