Function at 0x140002150
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x930
mov rax, qword [0x140005100]
xor rax, rsp
mov qword [rsp + 0x928], rax
mov dword [rsp + 0x54], 0
mov byte [rsp + 0x910], 0
mov qword [rsp + 0x40], 0x101
lea rax, [rsp + 0x800]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x105
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x940]
call fcn.1400031d0
lea rdx, [0x140001564]
lea rcx, [rsp + 0x800]
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
jne 0x1400021e7
mov byte [rsp + 0x910], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [0x1400059c0], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x1400059c0]
call qword [sym.imp.dbghelp.dll_SymInitialize]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14000221a
xor eax, eax
jmp 0x1400023e5
movzx eax, byte [rsp + 0x910]
test eax, eax
je 0x140002233
mov dword [rsp + 0x920], 0
jmp 0x14000223e
mov dword [rsp + 0x920], 1
mov eax, dword [rsp + 0x920]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0xf4240
lea r9, [rsp + 0x60]
mov r8, qword [rsp + 0x940]
xor edx, edx
mov rcx, qword [0x1400059c0]
call qword [sym.imp.dbghelp.dll_SymLoadModuleEx]
mov qword [rsp + 0x918], rax
cmp qword [rsp + 0x918], 0
jne 0x140002299
xor eax, eax
jmp 0x1400023e5
movzx eax, byte [rsp + 0x910]
test eax, eax
je 0x140002302
lea rax, [rsp + 0x170]
mov rdi, rax
xor eax, eax
mov ecx, 0x690
rep stosb byte [rdi], al
mov dword [rsp + 0x170], 0x690
lea r8, [rsp + 0x170]
mov rdx, qword [rsp + 0x918]
mov rcx, qword [0x1400059c0]
call qword [sym.imp.dbghelp.dll_SymGetModuleInfo64]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140002300
cmp dword [rsp + 0x7f0], 0
je 0x140002300
mov dword [0x14000540c], 0
jmp 0x14000230c
mov dword [0x14000540c], 0
cmp dword [0x140005adc], 0
je 0x140002343
lea r8, [0x140005ae0]
lea rdx, [0x140002020]
mov rcx, qword [0x1400059c0]
call qword [sym.imp.dbghelp.dll_SymRegisterCallback64]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140002343
mov dword [rsp + 0x54], 0x80000000
cmp dword [0x140006698], 0
je 0x140002358
mov eax, dword [rsp + 0x54]
bts eax, 0x16
mov dword [rsp + 0x54], eax
mov ecx, dword [rsp + 0x54]
call qword [sym.imp.dbghelp.dll_SymSetOptions]
mov dword [rsp + 0x50], eax
movsx eax, byte [0x1400066b0]
test eax, eax
jne 0x140002383
lea rdx, [0x1400066b0]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp dword [0x140006698], 0
jne 0x1400023a6
mov eax, dword [rsp + 0x54]
bts eax, 0x16
mov dword [rsp + 0x54], eax
mov ecx, dword [rsp + 0x54]
call qword [sym.imp.dbghelp.dll_SymSetOptions]
mov dword [rsp + 0x50], eax
lea rdx, [0x1400066b0]
mov rcx, qword [0x1400059c0]
call qword [sym.imp.dbghelp.dll_SymSetHomeDirectory]
cmp dword [0x140006698], 0
jne 0x1400023dd
mov eax, dword [rsp + 0x54]
btr eax, 0x16
mov dword [rsp + 0x54], eax
mov ecx, dword [rsp + 0x54]
call qword [sym.imp.dbghelp.dll_SymSetOptions]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x918]
mov rcx, qword [rsp + 0x928]
xor rcx, rsp
call fcn.140003020
add rsp, 0x930
pop rdi
ret