Function at 0x14001df20
Capabilities:
Parse pe header
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x5a8
movaps xmmword [rsp + 0x590], xmm6
mov dword [rsp + 0x4c], ecx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x588], rax
cmp qword [0x140062a90], 0
jne 0x14001e835
cmp byte [0x140062a98], 0
je 0x14001e6f2
lea r8, [0x140062aa0]
lea rcx, [rsp + 0x2a0]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
test eax, eax
jne 0x14001e81f
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
lea r15, [rsp + 0x190]
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x28], 0x104
lea r8, [rsp + 0x2a0]
mov ecx, 0xfde9
xor edx, edx
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, r15
call qword [sym.imp.mozglue.dll_strdup]
test rax, rax
je 0x14001e81f
mov r12, rax
mov rcx, rax
mov edx, 0x5c
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x14001e809
mov rsi, rax
sub rsi, r12
lea rdi, [rsi + 1]
lea rcx, [rsi + 9]
call qword [sym.imp.mozglue.dll_malloc]
mov r14, rax
mov rcx, rax
mov rdx, r12
mov r8, rdi
call sub.ntdll.dll_memcpy
movabs rax, 0x6c6c642e6c7578
mov qword [r14 + rsi + 1], rax
mov al, byte [r14]
test al, al
lea rdi, [rsp + 0x2a0]
mov qword [rsp + 0x50], r12
je 0x14001e798
xor esi, esi
mov rcx, r14
cmp al, 0x2f
cmove rsi, rcx
cmp al, 0x5c
cmove rsi, rcx
mov al, byte [rcx + 1]
inc rcx
test al, al
jne 0x14001e042
test rsi, rsi
je 0x14001e798
sub rsi, r14
cmp rsi, 0xf0
ja 0x14001e7fb
lea rcx, [rsp + 0x190]
mov rdx, r14
mov r8, rsi
call sub.ntdll.dll_memcpy
movups xmm0, xmmword [str.dependentlibs.list]
lea r15, [rsp + rsi]
add r15, 0x191
movups xmmword [r15 - 1], xmm0
mov dword [r15 + 0xf], 0x747369
lea rcx, str.MOZ_RUN_GTEST
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14001e83c
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 0x104
lea rsi, [rsp + 0x190]
mov ecx, 0xfde9
xor edx, edx
mov r8, rsi
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdx, [0x140057ce4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
test rax, rax
je 0x14001e7fb
mov r13, rax
mov byte [r15], 0
mov rax, r15
sub rax, rsi
mov qword [rsp + 0x60], rax
lea rbp, [rsp + 0x80]
xorps xmm6, xmm6
mov rbx, qword [sym.imp.mozglue.dll_public:_static_bool___cdecl_mozilla::baseprofiler::detail::RacyFeatures::IsActiveAndUnpaused_void_]
mov rcx, rbp
mov edx, 0x104
mov r8, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x14001e637
mov rcx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
test eax, eax
je 0x14001e121
cmp byte [rsp + 0x80], 0x23
je 0x14001e121
shl rax, 0x20
movabs rcx, 0xffffffff00000000
add rcx, rax
sar rcx, 0x20
cmp byte [rsp + rcx + 0x80], 0xa
jne 0x14001e178
mov byte [rsp + rcx + 0x80], 0
sar rax, 0x20
add rax, qword [rsp + 0x60]
cmp rax, 0x104
ja 0x14001e7f2
mov rcx, r15
mov r12, rbp
mov rdx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 0x104
mov ecx, 0xfde9
xor edx, edx
mov rbp, rsi
mov r8, rsi
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [rsp + 0x4c], 1
je 0x14001e216
mov rcx, rdi
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x14001e7b7
mov rsi, rax
mov ecx, 0x10
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rcx, qword [0x140062cb8]
mov qword [rax + 8], rcx
mov qword [rax], rsi
mov qword [0x140062cb8], rax
call qword [sym.imp.mozglue.dll_void___cdecl_mozilla::PollPreXULSkeletonUIEvents_void_]
mov rsi, rbp
mov rbp, r12
jmp 0x14001e121
xor eax, eax
mov qword [rsp + 0x4d8], rax
mov qword [rsp + 0x4e8], rax
mov qword [rsp + 0x4f0], 0xf
mov byte [rsp + 0x4d8], 0
movups xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
mov ecx, 0xfde9
xor edx, edx
mov r8, rdi
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x14001e2d7
mov esi, eax
movsxd rdi, eax
cmp eax, 0xf
jbe 0x14001e883
lea rbx, [rsp + 0x4d8]
mov rcx, rbx
mov rdx, rdi
mov r8, rdi
call fcn.14001eac0
cmp qword [rsp + 0x4f0], 0x10
lea r8, [rsp + 0x2a0]
jb 0x14001e2a7
mov rbx, qword [rsp + 0x4d8]
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
mov ecx, 0xfde9
xor edx, edx
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, esi
mov rbx, qword [sym.imp.mozglue.dll_public:_static_bool___cdecl_mozilla::baseprofiler::detail::RacyFeatures::IsActiveAndUnpaused_void_]
jne 0x14001e8ae
movups xmmword [rsp + 0x4c8], xmm6
movups xmmword [rsp + 0x4b4], xmm6
lea rax, str.ReadAheadLib
mov qword [rsp + 0x4f8], rax
mov dword [rsp + 0x500], 1
xor ecx, ecx
mov dword [rsp + 0x508], ecx
mov eax, dword [rsp + 0x4d4]
lea rdx, [rsp + 0x500]
mov dword [rdx + 0x1c], eax
movups xmm0, xmmword [rsp + 0x4c4]
movups xmmword [rdx + 0xc], xmm0
mov r8w, 0x101
mov word [rsp + 0x520], r8w
mov rax, qword [rsp + 0x4bc]
mov qword [rdx + 0x30], rax
movups xmm0, xmmword [rsp + 0x4ae]
movups xmmword [rdx + 0x22], xmm0
mov word [rsp + 0x538], r8w
mov byte [rsp + 0x540], 0
mov dword [rsp + 0x548], ecx
movups xmmword [rdx + 0x50], xmm6
mov rdi, qword [rsp + 0x4e8]
cmp qword [rsp + 0x4f0], 0x10
lea rsi, [rsp + 0x4d8]
jb 0x14001e38d
mov rsi, qword [rsp + 0x4d8]
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x500]
movups xmmword [rax + 0x78], xmm6
movups xmmword [rax + 0x60], xmm6
cmp rdi, 0xf
jbe 0x14001e8ca
mov r14, rdi
or r14, 0xf
movabs rax, 0x7fffffffffffffff
cmp r14, rax
cmovae r14, rax
cmp r14, 0xfff
jae 0x14001e8e3
lea rcx, [r14 + 1]
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov qword [rsp + 0x568], rax
lea r8, [rdi + 1]
mov rcx, rax
mov rdx, rsi
call sub.ntdll.dll_memcpy
mov qword [rsp + 0x578], rdi
mov qword [rsp + 0x580], r14
call rbx
test al, al
jne 0x14001e901
mov rax, qword [rsp + 0x4f0]
cmp rax, 0x10
mov r14, qword [rsp + 0x40]
lea rsi, [rsp + 0x2a0]
jb 0x14001e447
mov rcx, qword [rsp + 0x4d8]
add rax, 0xfffffffffffff001
cmp rax, 0xffffffffffffefff
jbe 0x14001e95d
call qword [sym.imp.mozglue.dll_free]
cmp byte [0x140062cb0], 1
jne 0x14001e71b
mov rax, qword [0x140062ca8]
test rax, rax
je 0x14001e97f
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 3
mov rcx, rsi
mov edx, 0xa0000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rcx, [rax + 1]
cmp rcx, 2
jb 0x14001e5aa
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x58], rax
mov rcx, rax
xor edx, edx
mov r8d, 0x1000020
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
inc rax
cmp rax, 2
jb 0x14001e59f
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov edx, 0x1000024
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x14001e58a
mov rsi, rax
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x14001e581
movsxd rax, dword [rsi + 0x3c]
cmp dword [rsi + rax], 0x4550
jne 0x14001e581
movzx ecx, word [rsi + rax + 0x18]
cmp ecx, 0x20b
jne 0x14001e581
mov ebx, dword [rsi + rax + 0x50]
cmp rbx, 0x148
jb 0x14001e581
cmp byte [0x140062cb0], 0
je 0x14001e758
mov r14, qword [0x140062ca8]
test r14, r14
je 0x14001e581
mov qword [rsp + 0x4d8], rsi
mov qword [rsp + 0x4e0], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 1
mov rcx, rax
lea r8, [rsp + 0x4d8]
xor r9d, r9d
mov rax, r14
call qword [0x140068010]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x40]
mov rbx, qword [sym.imp.mozglue.dll_public:_static_bool___cdecl_mozilla::baseprofiler::detail::RacyFeatures::IsActiveAndUnpaused_void_]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
test al, al
lea rdi, [rsp + 0x2a0]
jne 0x14001e991
mov rax, qword [rsp + 0x580]
cmp rax, 0x10
jb 0x14001e5ea
mov rcx, qword [rsp + 0x568]
add rax, 0xfffffffffffff001
cmp rax, 0xffffffffffffefff
jbe 0x14001ea4d
call qword [sym.imp.mozglue.dll_free]
xor eax, eax
mov qword [rsp + 0x578], rax
mov qword [rsp + 0x580], 0xf
mov byte [rsp + 0x568], 0
mov rsi, qword [rsp + 0x550]
mov qword [rsp + 0x550], rax
test rsi, rsi
je 0x14001e1c8
mov rcx, rsi
call fcn.140033cd0
mov rcx, rsi
call qword [sym.imp.mozglue.dll_free]
jmp 0x14001e1c8
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140062cb8]
test rax, rax
je 0x14001e7fb
mov rcx, qword [rax]
lea rdx, str.XRE_GetBootstrap
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001e7fb
lea rsi, [rsp + 0x2a0]
mov qword [rsi], 0
mov rcx, rsi
call qword [0x140068010]
mov rsi, qword [rsi]
mov rcx, r14
call qword [sym.imp.mozglue.dll_free]
mov rcx, qword [0x140062a90]
mov qword [0x140062a90], rsi
test rcx, rcx
mov r12, qword [rsp + 0x50]
jne 0x14001e864
mov rax, qword [rsi]
mov rax, qword [rax + 0x10]
mov rcx, rsi
call qword [0x140068010]
xor esi, esi
mov rcx, r12
call qword [sym.imp.mozglue.dll_free]
mov rcx, qword [rsp + 0x588]
xor rcx, rsp
call fcn.14002c610
mov eax, esi
movaps xmm6, xmmword [rsp + 0x590]
add rsp, 0x5a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [0x140062aa0]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14001e81f
mov byte [0x140062a98], 1
jmp 0x14001df6c
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.PrefetchVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp byte [0x140062cb0], 1
je 0x14001e87d
mov qword [0x140062ca8], rax
mov byte [0x140062cb0], 1
jmp 0x14001e45b
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.PrefetchVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp byte [0x140062cb0], 1
je 0x14001e87d
mov r14, rax
mov qword [0x140062ca8], rax
mov byte [0x140062cb0], 1
jmp 0x14001e54a
movups xmm0, xmmword [0x140055e89]
movaps xmmword [rsp + 0x190], xmm0
mov dword [rsp + 0x19f], 0x747369
jmp 0x14001e0a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [0x140062cb8]
test rdi, rdi
je 0x14001e7f2
mov rsi, qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rdi]
call rsi
mov rcx, qword [0x140062cb8]
mov rdi, qword [rcx + 8]
mov qword [0x140062cb8], rdi
call qword [sym.imp.mozglue.dll_free]
test rdi, rdi
jne 0x14001e7d0
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, r14
call qword [sym.imp.mozglue.dll_free]
mov r12, qword [rsp + 0x50]
lea rcx, str.Couldnt_load_XPCOM._n
call fcn.140033ad0
mov esi, 0x80004005
jmp 0x14001e6bb
lea rcx, str.Couldnt_find_the_application_directory._n
call fcn.140033ad0
mov esi, 0x80004005
jmp 0x14001e6c4
xor esi, esi
jmp 0x14001e6c4
lea rcx, [rsp + 0x190]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov dword [rsp + rax + 0x190], 0x6574672e
mov dword [rsp + rax + 0x193], 0x747365
jmp 0x14001e0b9
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140068010]
mov rsi, qword [0x140062a90]
jmp 0x14001e6a9
int3
lea rcx, [rsp + 0x4d8]
mov qword [rcx + 0x10], rdi
xor edx, edx
mov r8, rdi
call sub.ntdll.dll_memset
mov byte [rsp + rdi + 0x4d8], 0
lea rbx, [rsp + 0x4d8]
jmp 0x14001e28c
cmp qword [rsp + 0x4f0], 0x10
jb 0x14001ea71
mov rax, qword [rsp + 0x4d8]
jmp 0x14001ea79
movups xmm0, xmmword [rsi]
lea rax, [rsp + 0x568]
movups xmmword [rax], xmm0
mov r14d, 0xf
jmp 0x14001e3f2
lea rcx, [r14 + 0x28]
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rcx, rax
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14001e3db
movzx eax, byte [rsp + 0x521]
cmp qword [rsp + rax*8 + 0x510], 0
jne 0x14001e40c
lea rsi, [rsp + 0x68]
mov rcx, rsi
mov dl, 1
call qword [sym.imp.mozglue.dll_private:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::Now_bool_]
mov rax, qword [rsi + 0x10]
lea rcx, [rsp + 0x500]
mov qword [rcx + 0x20], rax
movups xmm0, xmmword [rsi]
movups xmmword [rcx + 0x10], xmm0
xorps xmm0, xmm0
movups xmmword [rcx + 0x28], xmm0
mov word [rsp + 0x538], 0x101
mov byte [rsp + 0x540], 0
jmp 0x14001e40c
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x14001ea6b
mov rcx, rax
mov r14, qword [rsp + 0x40]
jmp 0x14001e441
lea rcx, [rsp + 0x2a0]
call int.1400337b0
jmp 0x14001e5aa
lea rsi, [rsp + 0x4d8]
mov rcx, rsi
mov dl, 1
call qword [sym.imp.mozglue.dll_private:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::Now_bool_]
mov rax, qword [rsi + 0x10]
lea rcx, [rsp + 0x500]
mov qword [rcx + 0x38], rax
movups xmm0, xmmword [rsi]
movups xmmword [rcx + 0x28], xmm0
movzx eax, byte [rsp + 0x521]
cmp qword [rsp + rax*8 + 0x510], 0
sete al
add al, al
or al, 1
mov byte [rsp + 0x540], al
mov rsi, qword [rsp + 0x4f8]
test rsi, rsi
je 0x14001ea94
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov ecx, 1
lea rdi, [rsp + 0x4d8]
mov qword [rdi], rsi
mov qword [rdi + 8], rax
mov dword [rdi + 0x10], ecx
lea rax, [rsp + 0x568]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x68]
mov rdx, rdi
lea r8, [rsp + 0x500]
lea r9, [rsp + 0x508]
call qword [sym.imp.mozglue.dll____AddMarker_UTextMarker_markers_baseprofiler_mozilla__V__basic_string_DU__char_traits_D_std__V__allocator_D_2]
cmp dword [rdi + 0x10], 2
je 0x14001eaa4
mov r14, qword [rsp + 0x40]
lea rdi, [rsp + 0x2a0]
jmp 0x14001e5bc
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x14001ea6b
mov rcx, rax
mov r14, qword [rsp + 0x40]
jmp 0x14001e5e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea rax, [rsp + 0x4d8]
mov qword [rsp + 0x4e8], 0
mov byte [rax], 0
mov rbx, qword [sym.imp.mozglue.dll_public:_static_bool___cdecl_mozilla::baseprofiler::detail::RacyFeatures::IsActiveAndUnpaused_void_]
jmp 0x14001e2d7
xor eax, eax
lea rsi, [0x140057bde]
xor ecx, ecx
jmp 0x14001e9f8
mov rcx, qword [rsp + 0x4d8]
test rcx, rcx
je 0x14001ea3b
call qword [sym.imp.mozglue.dll_free]
jmp 0x14001ea3b