Function at 0x14000ffa0
Capabilities:
Get system information on windows
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x208
mov qword [rsp + 0x58], rdx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov rdx, qword [rcx + 0x38]
test rdx, rdx
je 0x1400110e5
mov rbx, r9
mov r15, r8
mov rdi, rcx
and rdx, 0xfffffffffffffffc
mov rcx, qword [rcx]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0xe0]
xor r8d, r8d
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x1400110d7
cmp qword [rsp + 0x80], 0
je 0x1400110e5
cmp dword [rsp + 0xf0], 0
je 0x1400110e5
cmp dword [rsp + 0x100], 0x1000
jne 0x1400110e5
cmp dword [rsp + 0x104], 1
je 0x1400110e5
mov rsi, qword [rdi + 0x38]
and rsi, 0xfffffffffffffffc
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r14, rax
add rax, 8
mov qword [rsp + 0x50], rax
movabs rbp, 0x100000001
mov qword [r14 + 8], rbp
lea r13, [0x1400553c0]
mov qword [r14], r13
lea rcx, [r14 + 0x10]
mov qword [rsp + 0x48], rdi
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x20], 0
mov qword [r14 + 0x28], 0x20
lea rax, [r14 + 0x30]
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x50], rsi
mov edx, 0x40
call fcn.140015110
cmp qword [r14 + 0x50], 0
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x70], r15
je 0x14001109c
cmp qword [r14 + 0x20], 0
je 0x14001109c
mov rax, qword [r14 + 0x18]
test rax, rax
je 0x14001109c
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14001109c
movsxd rdi, dword [rax + 0x3c]
add rdi, rsi
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r12, rax
add rax, 8
mov qword [rsp + 0x60], rax
mov qword [r12 + 8], rbp
mov qword [r12], r13
lea rcx, [r12 + 0x10]
mov rax, qword [rsp + 0x48]
mov qword [r12 + 0x10], rax
mov qword [r12 + 0x20], 0
mov qword [r12 + 0x28], 0x20
lea rax, [r12 + 0x30]
mov qword [r12 + 0x18], rax
mov qword [r12 + 0x50], rdi
mov edx, 0x108
call fcn.140015110
cmp qword [r12 + 0x50], 0
je 0x14001107b
cmp qword [r12 + 0x20], 0
je 0x14001107b
mov rdi, qword [r12 + 0x18]
test rdi, rdi
je 0x14001107b
cmp dword [rdi], 0x4550
jne 0x14001107b
movzx eax, word [rdi + 0x18]
cmp eax, 0x20b
jne 0x14001107b
cmp dword [rdi + 0x50], 0x147
jbe 0x14001107b
cmp dword [rdi + 0x84], 0
je 0x14001107b
mov ebx, dword [rdi + 0x88]
test rbx, rbx
je 0x14001107b
cmp dword [rdi + 0x8c], 0
je 0x14001107b
add rbx, rsi
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r13, rax
add rax, 8
mov qword [rsp + 0x68], rax
mov qword [r13 + 8], rbp
lea rax, [0x1400553c0]
mov qword [r13], rax
lea rcx, [r13 + 0x10]
mov rax, qword [rsp + 0x48]
mov qword [r13 + 0x10], rax
mov qword [r13 + 0x20], 0
mov qword [r13 + 0x28], 0x20
lea rax, [r13 + 0x30]
mov qword [r13 + 0x18], rax
mov qword [r13 + 0x50], rbx
mov edx, 0x28
call fcn.140015110
cmp qword [r13 + 0x50], 0
je 0x1400110bb
cmp qword [r13 + 0x20], 0
je 0x1400110bb
mov rbp, qword [r13 + 0x18]
test rbp, rbp
je 0x1400110bb
mov ebx, dword [rbp + 0x14]
test rbx, rbx
je 0x1400110bb
mov eax, dword [rdi + 0x88]
mov ecx, dword [rdi + 0x8c]
add ecx, eax
mov r15, qword [rsp + 0x48]
mov qword [rsp + 0xe0], r15
mov qword [rsp + 0xe8], rsi
mov edx, dword [rbp + 0x10]
mov dword [rsp + 0xf0], edx
mov dword [rsp + 0xf4], eax
mov dword [rsp + 0xf8], ecx
mov edi, dword [rbp + 0x1c]
add rdi, rsi
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
movabs rcx, 0x100000001
mov qword [rax + 8], rcx
lea rcx, [0x1400553c0]
mov qword [rax], rcx
lea rcx, [rax + 0x10]
mov qword [rax + 0x10], r15
mov qword [rax + 0x20], 0
mov qword [rax + 0x28], 0x20
lea rdx, [rax + 0x30]
mov qword [rax + 0x18], rdx
mov qword [rax + 0x50], rdi
mov qword [rsp + 0x100], rcx
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x110], rbx
lea edx, [rbx*4]
call fcn.140011690
shr eax, 2
cmp ebx, eax
ja 0x1400110ec
mov edi, dword [rbp + 0x18]
mov ebx, dword [rbp + 0x20]
add rbx, rsi
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
movabs rcx, 0x100000001
mov qword [rax + 8], rcx
lea rcx, [0x1400553c0]
mov qword [rax], rcx
lea rcx, [rax + 0x10]
mov qword [rax + 0x10], r15
mov qword [rax + 0x20], 0
mov qword [rax + 0x28], 0x20
lea rdx, [rax + 0x30]
mov qword [rax + 0x18], rdx
mov qword [rax + 0x50], rbx
mov qword [rsp + 0x118], rcx
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x128], rdi
lea edx, [rdi*4]
call fcn.140011690
shr eax, 2
cmp edi, eax
ja 0x1400110fb
mov edi, dword [rbp + 0x18]
mov eax, dword [rbp + 0x24]
add rsi, rax
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
movabs rcx, 0x100000001
mov qword [rax + 8], rcx
lea rcx, [0x1400553c0]
mov qword [rax], rcx
lea rcx, [rax + 0x10]
mov qword [rax + 0x10], r15
mov qword [rax + 0x20], 0
mov qword [rax + 0x28], 0x20
lea rdx, [rax + 0x30]
mov qword [rax + 0x18], rdx
mov qword [rax + 0x50], rsi
mov qword [rsp + 0x130], rcx
mov qword [rsp + 0x138], rax
mov qword [rsp + 0x140], rdi
lea edx, [rdi + rdi]
call fcn.140011690
shr eax, 1
cmp edi, eax
mov rbx, qword [rsp + 0x50]
ja 0x14001110a
mov rax, qword [rsp + 0x68]
lock dec dword [rax]
mov rdi, qword [rsp + 0x60]
jne 0x14001044b
mov rsi, r13
add rsi, 0xc
mov rax, qword [r13]
mov rax, qword [rax]
mov rcx, r13
call qword [0x14006a010]
lock dec dword [rsi]
jne 0x14001044b
mov rax, qword [r13]
mov rax, qword [rax + 8]
mov rcx, r13
call qword [0x14006a010]
lock dec dword [rdi]
mov rdi, qword [rsp + 0x48]
jne 0x140010482
mov rsi, r12
add rsi, 0xc
mov rax, qword [r12]
mov rax, qword [rax]
mov rcx, r12
call qword [0x14006a010]
lock dec dword [rsi]
jne 0x140010482
mov rax, qword [r12]
mov rax, qword [rax + 8]
mov rcx, r12
call qword [0x14006a010]
lock dec dword [rbx]
jne 0x1400104b2
mov rsi, r14
add rsi, 0xc
mov rax, qword [r14]
mov rax, qword [rax]
mov rcx, r14
call qword [0x14006a010]
lock dec dword [rsi]
jne 0x1400104b2
mov rax, qword [r14]
mov rax, qword [rax + 8]
mov rcx, r14
call qword [0x14006a010]
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xffff
jbe 0x140011119
xor ebx, ebx
cmp qword [rsp + 0xe8], 0
je 0x140010711
cmp dword [rsp + 0xf4], 0
je 0x140010711
cmp dword [rsp + 0xf8], 0
je 0x140010711
mov rax, qword [rsp + 0x100]
xor ebx, ebx
cmp qword [rax + 0x40], 0
je 0x140010711
cmp qword [rsp + 0x110], 0
je 0x140010711
mov rax, qword [rsp + 0x118]
xor ebx, ebx
cmp qword [rax + 0x40], 0
je 0x140010711
mov rsi, qword [rsp + 0x128]
test rsi, rsi
je 0x140010711
xor ebx, ebx
test rdx, rdx
je 0x140010711
mov rcx, qword [rsp + 0x130]
cmp qword [rcx + 0x40], 0
je 0x140010711
cmp qword [rsp + 0x140], 0
je 0x140010711
cmp byte [rdx], 0
je 0x140011070
mov ecx, 1
lea r12, [rcx + 1]
cmp byte [rdx + rcx], 0
mov rcx, r12
jne 0x140010576
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x50], rcx
test rcx, rcx
je 0x14001059a
mov rax, qword [rax + 8]
mov qword [rsp + 0x50], rax
xor r14d, r14d
mov rbp, rsi
sub rbp, r14
shr rbp, 1
add rbp, r14
mov rax, qword [rsp + 0x50]
mov edi, dword [rax + rbp*4]
add rdi, qword [rsp + 0xe8]
mov rbx, qword [rsp + 0xe0]
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r13, rax
movabs rax, 0x100000001
mov qword [r13 + 8], rax
lea rax, [0x1400553c0]
mov qword [r13], rax
lea rcx, [r13 + 0x10]
mov qword [r13 + 0x10], rbx
mov qword [r13 + 0x20], 0
mov qword [r13 + 0x28], 0x20
lea rax, [r13 + 0x30]
mov qword [r13 + 0x18], rax
mov qword [r13 + 0x50], rdi
mov edx, r12d
call fcn.140011690
mov rax, qword [r13 + 0x20]
test rax, rax
je 0x140010621
mov rax, qword [r13 + 0x18]
lea rcx, [r13 + 8]
mov r15, r13
add r15, 0xc
xor edx, edx
mov r8, qword [rsp + 0x58]
mov dil, byte [r8 + rdx]
mov bl, byte [rax + rdx]
test dil, dil
je 0x140010647
inc rdx
cmp dil, bl
je 0x140010633
lock dec dword [rcx]
jne 0x140010673
mov rax, qword [r13]
mov rax, qword [rax]
mov rcx, r13
call qword [0x14006a010]
lock dec dword [r15]
jne 0x140010673
mov rax, qword [r13]
mov rax, qword [rax + 8]
mov rcx, r13
call qword [0x14006a010]
cmp dil, bl
je 0x140010695
cmp dil, bl
cmovl rsi, rbp
lea rax, [rbp + 1]
cmovge r14, rax
cmp rsi, r14
jne 0x14001059d
jmp 0x14001115d
cmp qword [rsp + 0x140], rbp
jbe 0x140011169
mov rax, qword [rsp + 0x130]
xor ebx, ebx
cmp qword [rax + 0x10], 0
mov rdi, qword [rsp + 0x48]
je 0x140010711
mov rax, qword [rax + 8]
test rax, rax
je 0x140010711
movzx eax, word [rax + rbp*2]
cmp qword [rsp + 0x110], rax
jbe 0x140011162
mov rcx, qword [rsp + 0x100]
xor ebx, ebx
cmp qword [rcx + 0x10], 0
je 0x140010711
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140010711
mov eax, dword [rcx + rax*4]
cmp eax, dword [rsp + 0xf4]
jb 0x140010707
cmp eax, dword [rsp + 0xf8]
jb 0x140011162
mov ebx, eax
add rbx, qword [rsp + 0xe8]
mov r15, qword [rsp + 0x138]
test r15, r15
je 0x14001074b
lock dec dword [r15 + 8]
jne 0x14001074b
mov rax, qword [r15]
mov rax, qword [rax]
mov rcx, r15
call qword [0x14006a010]
lock dec dword [r15 + 0xc]
jne 0x14001074b
mov rax, qword [r15]
mov rax, qword [rax + 8]
mov rcx, r15
call qword [0x14006a010]
mov r15, qword [rsp + 0x120]
test r15, r15
je 0x140010785
lock dec dword [r15 + 8]
jne 0x140010785
mov rax, qword [r15]
mov rax, qword [rax]
mov rcx, r15
call qword [0x14006a010]
lock dec dword [r15 + 0xc]
jne 0x140010785
mov rax, qword [r15]
mov rax, qword [rax + 8]
mov rcx, r15
call qword [0x14006a010]
mov r15, qword [rsp + 0x108]
test r15, r15
je 0x1400107bf
lock dec dword [r15 + 8]
jne 0x1400107bf
mov rax, qword [r15]
mov rax, qword [rax]
mov rcx, r15
call qword [0x14006a010]
lock dec dword [r15 + 0xc]
jne 0x1400107bf
mov rax, qword [r15]
mov rax, qword [rax + 8]
mov rcx, r15
call qword [0x14006a010]
test rbx, rbx
movabs rbp, 0x100000001
je 0x1400110e5
mov rcx, qword [rdi]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0xe0]
mov rdx, rbx
xor r8d, r8d
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x1400110d7
cmp qword [rsp + 0x80], 0
je 0x1400110e5
cmp dword [rsp + 0xf0], 0
je 0x1400110e5
cmp dword [rsp + 0x100], 0x1000
jne 0x1400110e5
mov qword [rsp + 0x58], rbx
cmp dword [rsp + 0x104], 1
je 0x1400110e5
cmp byte [rdi + 0x34], 0
mov r14, rdi
jne 0x140010a8f
mov r13, qword [r14 + 0x38]
lea rcx, [0x14005aa10]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r12, rax
mov eax, dword [0x140064ce0]
cmp eax, 0x601ffff
jbe 0x14001131c
mov eax, dword [0x140064ce0]
cmp eax, 0x9ffffff
ja 0x1400113cd
mov eax, dword [0x14006404c]
mov sil, 1
cmp eax, 0xa000001
jb 0x14001093b
lea r15, [rsp + 0xec]
mov r8d, 0x110
mov rcx, r15
xor edx, edx
call sub.ntdll.dll_memset
movabs rax, 0xa0000011c
mov qword [r15 - 0xc], rax
mov dword [r15 - 4], 0
mov rsi, qword [sym.imp.ntdll.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call rsi
mov rcx, rax
mov edx, 1
mov r8b, 3
call rsi
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call rsi
mov rcx, rax
mov edx, 0x10
mov r8b, 3
call rsi
lea rcx, [rsp + 0xe0]
mov edx, 0x33
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
sete sil
lea rax, [0x14006404c]
lea rcx, [0x140064ce0]
cmove rcx, rax
mov eax, 0xa000000
xchg dword [rcx], eax
mov eax, dword [0x140064ce0]
cmp eax, 0x601ffff
jbe 0x1400113d4
mov eax, dword [0x140064ce0]
cmp eax, 0x602ffff
ja 0x140010fdf
mov eax, dword [0x14006404c]
cmp eax, 0x6030001
jb 0x14001160e
lea r15, [rsp + 0xec]
mov r8d, 0x110
mov rcx, r15
xor edx, edx
call sub.ntdll.dll_memset
movabs rax, 0x60000011c
mov qword [r15 - 0xc], rax
mov dword [r15 - 4], 3
mov rdi, qword [sym.imp.ntdll.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call rdi
mov rcx, rax
mov edx, 1
mov r8b, 3
call rdi
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call rdi
mov rcx, rax
mov edx, 0x10
mov r8b, 3
call rdi
lea rcx, [rsp + 0xe0]
mov edx, 0x33
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
sete dil
lea rax, [0x14006404c]
lea rcx, [0x140064ce0]
cmove rcx, rax
mov eax, 0x6030000
xchg dword [rcx], eax
mov r14, qword [rsp + 0x48]
mov rbx, qword [r14 + 0x38]
lea rcx, [0x14005b47c]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp byte [r14 + 0x34], 0
jne 0x140010a8f
cmp r13, r12
sete cl
cmp rbx, rax
sete al
mov r10, qword [rsp + 0x58]
cmp r10, qword [sym.imp.KERNEL32.dll_CloseHandle]
sete dl
and dl, sil
and dl, al
or dl, cl
and al, dil
cmp r10, qword [sym.imp.KERNEL32.dll_CreateFileA]
sete cl
mov r8, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp r10, r8
sete r9b
or r9b, cl
and r9b, al
or r9b, dl
movzx ecx, r9b
lea eax, [rcx + 4]
test dil, dil
cmove eax, ecx
cmp r10, r8
cmovne eax, ecx
mov rcx, rax
bts rcx, 0x20
mov qword [r14 + 0x30], rcx
jmp 0x140010a93
mov eax, dword [r14 + 0x30]
mov rdi, r14
test al, 4
jne 0x140011175
xor esi, esi
mov rax, qword [sym.imp.mozglue.dll_moz_xmalloc]
xor r15d, r15d
mov r14, qword [rsp + 0x58]
mov rbx, r14
cmp r15, rbx
je 0x140010bc7
mov r13, rbx
mov ecx, 0x58
mov r12, rax
call rax
mov r15, rax
mov qword [rax + 8], rbp
lea rax, [0x1400553c0]
mov qword [r15], rax
lea rbp, [r15 + 0x10]
mov qword [r15 + 0x10], rdi
mov qword [r15 + 0x20], rsi
mov qword [r15 + 0x28], 0x20
lea rax, [r15 + 0x30]
mov qword [r15 + 0x18], rax
mov qword [r15 + 0x50], rbx
mov qword [rsp + 0xe0], rbp
mov qword [rsp + 0xe8], r15
mov dword [rsp + 0xf0], 0
mov qword [rsp + 0x80], rsi
mov rcx, rbp
xor edx, edx
call fcn.140015110
mov rax, qword [r15 + 0x18]
cmp byte [rax], 0xeb
je 0x1400111bc
lea rcx, [rsp + 0xe0]
lea rdx, [rsp + 0x80]
call fcn.140011a60
test al, al
jne 0x1400112de
mov rcx, rbp
xor edx, edx
call fcn.140015110
mov rax, qword [r15 + 0x18]
mov sil, 1
cmp byte [rax], 0xe9
mov rbx, r13
je 0x14001124a
mov r15, qword [rsp + 0xe8]
test r15, r15
je 0x140010ba7
lock dec dword [r15 + 8]
jne 0x140010ba7
mov rax, qword [r15]
mov rax, qword [rax]
mov rcx, r15
call qword [0x14006a010]
lock dec dword [r15 + 0xc]
jne 0x140010ba7
mov rax, qword [r15]
mov rax, qword [rax + 8]
mov rcx, r15
call qword [0x14006a010]
mov r15, r13
test sil, sil
movabs rbp, 0x100000001
mov rax, r12
mov esi, 0
jne 0x140010ab2
jmp 0x140010c28
cmp r15, r14
jne 0x1400112ee
lea rsi, [0x1400553c0]
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov qword [rax + 8], rbp
mov qword [rax], rsi
lea rcx, [rax + 0x10]
mov qword [rax + 0x10], rdi
mov qword [rax + 0x20], 0
mov qword [rax + 0x28], 0x20
lea rdx, [rax + 0x30]
mov qword [rax + 0x18], rdx
mov qword [rax + 0x50], r14
mov qword [rsp + 0xb8], rcx
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xc8], 0
cmp byte [rdi + 0x34], 0
je 0x140011304
mov r14d, dword [rdi + 0x30]
and r14d, 1
shl r14, 0x1e
mov eax, dword [0x140064d7c]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140010fe6
mov ebp, dword [0x140064d78]
mov dword [rsp + 0x20], r14d
lea rdx, [rsp + 0x80]
mov rcx, rdi
mov r8d, ebp
mov r9, r14
call fcn.140019690
test ebp, ebp
je 0x140011315
cmp qword [rdi], 0
je 0x140011315
cmp qword [rdi + 0x18], 0
jne 0x140010e86
mov eax, dword [0x140064d7c]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001102b
mov ecx, dword [0x140064d78]
mov eax, ebp
xor edx, edx
div ecx
sub ecx, edx
test edx, edx
cmove ecx, edx
add ecx, ebp
mov dword [rdi + 0x20], ecx
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x28], 0
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x4000040
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rdi + 8], rax
test rax, rax
je 0x14001130f
mov qword [rsp + 0x20], 0
mov rcx, rax
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x14001130f
lea rsi, [rdi + 0x20]
mov r14, qword [rdi]
mov r12, qword [rdi + 8]
cmp byte [rsp + 0x90], 0
je 0x140011522
mov rbx, qword [rsp + 0x80]
test rbx, rbx
je 0x140011485
mov r13d, dword [rdi + 0x20]
mov rbp, qword [rsp + 0x88]
mov eax, dword [0x140064da0]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140010e0a
lea rcx, [0x140064da0]
call fcn.14002ef94
cmp dword [0x140064da0], 0xffffffff
jne 0x140010e0a
lea rcx, str.kernelbase.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140064d90], rax
mov qword [0x140064d98], 0
test rax, rax
je 0x140010dfe
lea rdx, str.MapViewOfFile3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140064d98], rax
test rax, rax
jne 0x140010dfe
mov rcx, qword [0x140064d90]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x140064d90], 0
lea rcx, [0x140064da0]
call fcn.14002ef34
mov rax, qword [0x140064d98]
test rax, rax
jne 0x140011490
add rbx, rbp
mov edi, 8
mov r15, qword [sym.imp.mozglue.dll_void____ptr64___cdecl_mozilla::MapRemoteViewOfFile_void____ptr64__void____ptr64__unsigned_long_long_unsigned___int64___void____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_int__unsigned_long_int_]
mov qword [rsp + 0x20], rbx
mov rcx, qword [rsp + 0x48]
mov rdx, r14
mov r8, r13
mov r9, rbp
call fcn.140019e40
test rax, rax
je 0x14001155c
mov dword [rsp + 0x30], 0x20
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, r12
mov rdx, r14
xor r8d, r8d
mov r9, rax
call r15
test rax, rax
je 0x140011519
mov rdi, qword [rsp + 0x48]
mov qword [rdi + 0x18], rax
jmp 0x140010e8a
lea rsi, [rdi + 0x20]
cmp dword [rsi], 0
je 0x140011315
mov qword [rsp + 0xd0], rdi
mov byte [rsp + 0xd8], 1
lea r14, [rsp + 0xe0]
mov rcx, rdi
mov rdx, r14
call fcn.140011c30
cmp byte [r14 + 0x38], 0
je 0x140011315
mov rax, qword [rsp + 0xe0]
lea r14, [rsp + 0x80]
mov qword [r14], rax
mov eax, dword [rsp + 0xe8]
mov dword [r14 + 8], eax
movups xmm0, xmmword [rsp + 0xf0]
movups xmmword [r14 + 0x10], xmm0
mov eax, dword [rsp + 0x100]
mov dword [r14 + 0x20], eax
movups xmm0, xmmword [rsp + 0x104]
movups xmmword [r14 + 0x24], xmm0
mov al, byte [rsp + 0x114]
mov byte [r14 + 0x34], al
mov dword [rsp + 0xe8], 0
mov byte [rsp + 0x114], 0
mov rsi, qword [rsp + 0x78]
mov qword [rsp + 0x28], rsi
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0xb8]
lea r8, [rsp + 0xd0]
mov rcx, rdi
mov r9, r14
call fcn.140011f50
cmp qword [rsi], 0
setne sil
mov rcx, qword [r14 + 0x10]
test rcx, rcx
je 0x140010f81
mov r8d, dword [rsp + 0x88]
test r8d, r8d
je 0x140010f81
lea r9, [rsp + 0x88]
mov edx, dword [r9 + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rdi, qword [rsp + 0xc0]
test rdi, rdi
je 0x140010fb9
lock dec dword [rdi + 8]
jne 0x140010fb9
mov rax, qword [rdi]
mov rax, qword [rax]
mov rcx, rdi
call qword [0x14006a010]
lock dec dword [rdi + 0xc]
jne 0x140010fb9
mov rax, qword [rdi]
mov rax, qword [rax + 8]
mov rcx, rdi
call qword [0x14006a010]
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.140030100
mov eax, esi
add rsp, 0x208
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor edi, edi
jmp 0x140010a0b
lea rcx, [0x140064d7c]
call fcn.14002ef94
cmp dword [0x140064d7c], 0xffffffff
jne 0x140010c63
lea r15, [rsp + 0xe0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r15 + 0x28]
mov dword [0x140064d78], eax
lea rcx, [0x140064d7c]
call fcn.14002ef34
jmp 0x140010c63
lea rcx, [0x140064d7c]
call fcn.14002ef94
cmp dword [0x140064d7c], 0xffffffff
jne 0x140010cc6
lea r14, [rsp + 0xe0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r14 + 0x28]
mov dword [0x140064d78], eax
lea rcx, [0x140064d7c]
call fcn.14002ef34
jmp 0x140010cc6
mov r12d, 1
jmp 0x140010583
lea rcx, [rsp + 0xe0]
mov rdx, qword [rsp + 0x48]
call fcn.140035ff0
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
jmp 0x14001044b
lea rcx, [rsp + 0xe0]
mov rdi, qword [rsp + 0x48]
mov rdx, rdi
call fcn.140035ff0
mov rbx, qword [rsp + 0x50]
jmp 0x140010482
lea rcx, [rsp + 0xe0]
mov rdx, qword [rsp + 0x48]
call fcn.140035ff0
mov rbx, qword [rsp + 0x50]
jmp 0x14001040f
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
xor esi, esi
jmp 0x140010fb9
mov eax, eax
mov qword [rsp + 0x110], rax
jmp 0x140010311
mov eax, eax
mov qword [rsp + 0x128], rax
jmp 0x140010390
mov eax, eax
mov qword [rsp + 0x140], rax
jmp 0x14001040f
movzx eax, dx
sub eax, dword [rsp + 0xf0]
jb 0x140011169
cmp qword [rsp + 0x110], rax
jbe 0x140011169
mov rcx, qword [rsp + 0x100]
cmp qword [rcx + 0x10], 0
je 0x14001115d
mov rcx, qword [rcx + 8]
test rcx, rcx
mov rdi, qword [rsp + 0x48]
mov ebx, 0
je 0x140010711
mov eax, dword [rcx + rax*4]
jmp 0x140010707
mov rdi, qword [rsp + 0x48]
xor ebx, ebx
jmp 0x140010711
xor ebx, ebx
mov rdi, qword [rsp + 0x48]
jmp 0x140010711
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov qword [rax + 8], rbp
lea rcx, [0x1400553c0]
mov qword [rax], rcx
lea rcx, [rax + 0x10]
mov qword [rax + 0x10], rdi
mov qword [rax + 0x20], 0
mov qword [rax + 0x28], 0x20
lea rdx, [rax + 0x30]
mov qword [rax + 0x18], rdx
mov rdx, qword [rsp + 0x58]
mov qword [rax + 0x50], rdx
jmp 0x140010c0d
mov rcx, rbp
mov edx, 1
call fcn.140015110
mov rax, qword [r15 + 0x20]
test rax, rax
je 0x1400111d6
mov rax, qword [r15 + 0x18]
movsx rax, byte [rax + 1]
add rax, 2
mov rbx, qword [r15 + 0x50]
add rbx, rax
mov qword [rsp + 0x80], rbx
shl eax, 0x18
add eax, 0xfe000000
mov ecx, eax
sar ecx, 0x18
mov dword [rsp + 0x50], ecx
test eax, eax
js 0x14001156e
mov sil, 1
je 0x1400115fc
xor edi, edi
lea edx, [rdi + 2]
mov rcx, rbp
mov r14, rdx
call fcn.140015110
mov rax, qword [r15 + 0x20]
test rax, rax
je 0x14001122d
mov rax, qword [r15 + 0x18]
cmp byte [rax + r14], 0x90
jne 0x1400115fc
inc dil
movsx edi, dil
cmp dword [rsp + 0x50], edi
jg 0x140011212
jmp 0x1400115ff
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r15, rax
movabs rax, 0x100000001
mov qword [r15 + 8], rax
lea rax, [0x1400553c0]
mov qword [r15], rax
lea rsi, [r15 + 0x10]
mov rcx, rsi
mov rdx, rbp
mov r8d, 1
call fcn.140036340
mov rcx, rsi
mov edx, 4
call fcn.140015110
mov rax, qword [r15 + 0x18]
mov rcx, qword [r15 + 0x50]
movsxd rax, dword [rax]
add rax, rcx
add rax, 4
mov qword [rsp + 0x80], rax
lock dec dword [r15 + 8]
jne 0x1400112de
mov rsi, r15
add rsi, 0xc
mov rax, qword [r15]
mov rax, qword [rax]
mov rcx, r15
call qword [0x14006a010]
lock dec dword [rsi]
jne 0x1400112de
mov rax, qword [r15]
mov rax, qword [rax + 8]
mov rcx, r15
call qword [0x14006a010]
mov sil, 1
mov rbx, qword [rsp + 0x80]
jmp 0x140010b6d
mov rcx, rdi
mov rdx, r15
call fcn.140035f60
test al, al
cmovne r14, r15
jmp 0x140010bd0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x140010f81
mov eax, dword [0x14006404c]
cmp eax, 0x6020001
jb 0x140011621
lea r15, [rsp + 0xec]
mov r8d, 0x110
mov rcx, r15
xor edx, edx
call sub.ntdll.dll_memset
movabs rax, 0x60000011c
mov qword [r15 - 0xc], rax
mov dword [r15 - 4], 2
mov rsi, qword [sym.imp.ntdll.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call rsi
mov rcx, rax
mov edx, 1
mov r8b, 3
call rsi
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call rsi
mov rcx, rax
mov edx, 0x10
mov r8b, 3
call rsi
lea rcx, [rsp + 0xe0]
mov edx, 0x33
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x140011616
mov eax, 0x6020000
xchg dword [0x140064ce0], eax
movabs rbp, 0x100000001
jmp 0x140010879
xor esi, esi
jmp 0x14001093b
mov eax, dword [0x14006404c]
cmp eax, 0x6020001
jb 0x14001163d
lea r15, [rsp + 0xec]
mov r8d, 0x110
mov rcx, r15
xor edx, edx
call sub.ntdll.dll_memset
movabs rax, 0x60000011c
mov qword [r15 - 0xc], rax
mov dword [r15 - 4], 2
mov rdi, qword [sym.imp.ntdll.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call rdi
mov rcx, rax
mov edx, 1
mov r8b, 3
call rdi
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call rdi
mov rcx, rax
mov edx, 0x10
mov r8b, 3
call rdi
lea rcx, [rsp + 0xe0]
mov edx, 0x33
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x140011632
mov eax, 0x6020000
xchg dword [0x140064ce0], eax
movabs rbp, 0x100000001
jmp 0x14001094c
int3
lea rcx, [rbx + rbp]
dec rcx
mov qword [rsp + 0xe0], rbp
mov qword [rsp + 0xe8], rcx
mov qword [rsp + 0xf0], 0
lea rcx, [rsp + 0xd0]
mov qword [rcx], 1
lea rdx, [rsp + 0xe0]
mov qword [rcx + 8], rdx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], 0x20
mov dword [rsp + 0x28], 0
mov rcx, r12
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [0x14006a010]
mov rdi, qword [rsp + 0x48]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x140010e8a
jmp 0x140011315
dec rdi
jne 0x140010e29
mov dword [rsp + 0x30], 0x20
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, r12
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.mozglue.dll_void____ptr64___cdecl_mozilla::MapRemoteViewOfFile_void____ptr64__void____ptr64__unsigned_long_long_unsigned___int64___void____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_int__unsigned_long_int_]
test rax, rax
jne 0x140010e7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [rsp + 0x48]
mov qword [rax + 0x18], 0
jmp 0x140011315
mov edx, dword [rsp + 0x50]
add dl, 2
mov rcx, rbp
call fcn.140036200
mov sil, 1
test al, al
je 0x1400115fc
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r15, rax
movabs rax, 0x100000001
mov qword [r15 + 8], rax
lea rax, [0x1400553c0]
mov qword [r15], rax
lea rax, [r15 + 0x10]
mov rcx, qword [rsp + 0x48]
mov qword [r15 + 0x10], rcx
mov qword [r15 + 0x20], 0
mov qword [r15 + 0x28], 0x20
lea rcx, [r15 + 0x30]
mov qword [r15 + 0x18], rcx
mov qword [r15 + 0x50], rbx
lea rcx, [rsp + 0xb8]
mov qword [rcx], rax
mov qword [rcx + 8], r15
mov dword [rcx + 0x10], 0
lea rdx, [rsp + 0x80]
call fcn.140011a60
test al, al
je 0x14001164e
xor esi, esi
mov rbx, r13
mov rdi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x58]
jmp 0x140010b6d
mov dil, 1
jmp 0x140010a0b
mov eax, 0x6020000
xchg dword [0x14006404c], eax
xor esi, esi
movabs rbp, 0x100000001
jmp 0x14001093b
mov eax, 0x6020000
xchg dword [0x14006404c], eax
xor edi, edi
movabs rbp, 0x100000001
jmp 0x140010a0b
lea rax, [r15 + 8]
lock dec dword [rax]
jne 0x1400115fc
mov rdi, r15
add rdi, 0xc
mov rax, qword [r15]
mov rax, qword [rax]
mov rcx, r15
call qword [0x14006a010]
lock dec dword [rdi]
jne 0x1400115fc
mov rax, qword [r15]
mov rax, qword [rax + 8]
mov rcx, r15
call qword [0x14006a010]
jmp 0x1400115fc