Function at 0x140013d50
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, 0x1f8
mov qword [rsp + 0x58], rdx
mov rax, qword [0x14005f018]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov rdx, qword [rcx + 0x38]
test rdx, rdx
je 0x140014ead
mov rsi, r9
mov rdi, r8
mov r13, rcx
and rdx, 0xfffffffffffffffc
mov rcx, qword [rcx]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0xd0]
xor r8d, r8d
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x140014e9f
cmp qword [rsp + 0x78], 0
je 0x140014ead
cmp dword [rsp + 0xe0], 0
je 0x140014ead
cmp dword [rsp + 0xf0], 0x1000
jne 0x140014ead
cmp dword [rsp + 0xf4], 1
je 0x140014ead
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rsi
mov r14, qword [r13 + 0x38]
and r14, 0xfffffffffffffffc
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r15, rax
movabs rsi, 0x100000001
mov qword [rax + 8], rsi
lea rbx, [0x1400513a0]
mov qword [rax], rbx
lea rcx, [rax + 0x10]
mov qword [rax + 0x10], r13
mov qword [rax + 0x20], 0
mov qword [rax + 0x28], 0x20
add rax, 0x30
mov qword [r15 + 0x18], rax
mov qword [r15 + 0x50], r14
mov edx, 0x40
call fcn.1400186b0
cmp qword [r15 + 0x50], 0
je 0x1400144c4
cmp qword [r15 + 0x20], 0
je 0x1400144c4
mov rax, qword [r15 + 0x18]
test rax, rax
je 0x1400144c4
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400144c4
movsxd rdi, dword [rax + 0x3c]
add rdi, r14
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r12, rax
mov qword [rax + 8], rsi
mov qword [rax], rbx
lea rcx, [rax + 0x10]
mov qword [rax + 0x10], r13
mov qword [rax + 0x20], 0
mov qword [rax + 0x28], 0x20
add rax, 0x30
mov qword [r12 + 0x18], rax
mov qword [r12 + 0x50], rdi
mov edx, 0x108
call fcn.1400186b0
cmp qword [r12 + 0x50], 0
je 0x1400144aa
cmp qword [r12 + 0x20], 0
je 0x1400144aa
mov rdi, qword [r12 + 0x18]
test rdi, rdi
je 0x1400144aa
cmp dword [rdi], 0x4550
jne 0x1400144aa
movzx eax, word [rdi + 0x18]
cmp eax, 0x20b
jne 0x1400144aa
cmp dword [rdi + 0x50], 0x147
jbe 0x1400144aa
cmp dword [rdi + 0x84], 0
je 0x1400144aa
mov ebp, dword [rdi + 0x88]
test rbp, rbp
je 0x1400144aa
cmp dword [rdi + 0x8c], 0
je 0x1400144aa
add rbp, r14
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbx, rax
mov qword [rax + 8], rsi
lea rax, [0x1400513a0]
mov qword [rbx], rax
lea rcx, [rbx + 0x10]
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x20], 0
mov qword [rbx + 0x28], 0x20
lea rax, [rbx + 0x30]
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x50], rbp
mov edx, 0x28
call fcn.1400186b0
cmp qword [rbx + 0x50], 0
je 0x1400144de
cmp qword [rbx + 0x20], 0
je 0x1400144de
mov rbp, qword [rbx + 0x18]
test rbp, rbp
je 0x1400144de
cmp dword [rbp + 0x14], 0
je 0x1400144de
mov eax, dword [rdi + 0x88]
mov ecx, dword [rdi + 0x8c]
add ecx, eax
mov qword [rsp + 0xd0], r13
mov qword [rsp + 0xd8], r14
mov edx, dword [rbp + 0x10]
mov dword [rsp + 0xe0], edx
mov dword [rsp + 0xe4], eax
mov dword [rsp + 0xe8], ecx
mov rsi, r13
mov r13d, dword [rbp + 0x14]
mov edi, dword [rbp + 0x1c]
add rdi, r14
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
movabs rcx, 0x100000001
mov qword [rax + 8], rcx
lea rcx, [0x1400513a0]
mov qword [rax], rcx
lea rcx, [rax + 0x10]
mov qword [rax + 0x10], rsi
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 + 0xf0], rcx
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], r13
lea edx, [r13*4]
call fcn.140015390
shr eax, 2
cmp r13d, eax
ja 0x1400144f3
mov r13d, dword [rbp + 0x18]
mov edi, dword [rbp + 0x20]
add rdi, r14
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
movabs rcx, 0x100000001
mov qword [rax + 8], rcx
lea rcx, [0x1400513a0]
mov qword [rax], rcx
lea rcx, [rax + 0x10]
mov qword [rax + 0x10], rsi
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 + 0x108], rcx
mov qword [rsp + 0x110], rax
mov qword [rsp + 0x118], r13
lea edx, [r13*4]
call fcn.140015390
shr eax, 2
cmp r13d, eax
ja 0x140014502
mov edi, dword [rbp + 0x18]
mov eax, dword [rbp + 0x24]
add r14, rax
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
movabs rcx, 0x100000001
mov qword [rax + 8], rcx
lea rcx, [0x1400513a0]
mov qword [rax], rcx
lea rcx, [rax + 0x10]
mov qword [rax + 0x10], rsi
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 + 0x120], rcx
mov qword [rsp + 0x128], rax
mov qword [rsp + 0x130], rdi
lea edx, [rdi + rdi]
call fcn.140015390
shr eax, 1
cmp edi, eax
mov r13, rsi
ja 0x140014511
lock dec dword [rbx + 8]
mov rsi, qword [rsp + 0x58]
jne 0x1400141ba
mov rax, qword [rbx]
mov rax, qword [rax]
mov rcx, rbx
call qword [case.0x14002713e.0]
lock dec dword [rbx + 0xc]
jne 0x1400141ba
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [case.0x14002713e.0]
lock dec dword [r12 + 8]
jne 0x1400141eb
mov rax, qword [r12]
mov rax, qword [rax]
mov rcx, r12
call qword [case.0x14002713e.0]
lock dec dword [r12 + 0xc]
jne 0x1400141eb
mov rax, qword [r12]
mov rax, qword [rax + 8]
mov rcx, r12
call qword [case.0x14002713e.0]
lock dec dword [r15 + 8]
jne 0x140014218
mov rax, qword [r15]
mov rax, qword [rax]
mov rcx, r15
call qword [case.0x14002713e.0]
lock dec dword [r15 + 0xc]
jne 0x140014218
mov rax, qword [r15]
mov rax, qword [rax + 8]
mov rcx, r15
call qword [case.0x14002713e.0]
cmp rsi, 0xffff
mov qword [rsp + 0x48], r13
jbe 0x140014520
mov rax, qword [rsp + 0xd8]
xor r14d, r14d
mov rdi, r13
test rax, rax
je 0x140014573
cmp dword [rsp + 0xe4], 0
je 0x140014573
cmp dword [rsp + 0xe8], 0
je 0x140014573
mov rcx, qword [rsp + 0xf0]
xor r14d, r14d
cmp qword [rcx + 0x40], 0
je 0x140014573
cmp qword [rsp + 0x100], 0
je 0x140014573
mov rcx, qword [rsp + 0x108]
xor r14d, r14d
cmp qword [rcx + 0x40], 0
je 0x140014573
mov rbx, qword [rsp + 0x118]
test rbx, rbx
je 0x140014573
xor r14d, r14d
test rsi, rsi
je 0x140014573
mov rdx, qword [rsp + 0x120]
cmp qword [rdx + 0x40], 0
je 0x140014573
cmp qword [rsp + 0x130], 0
je 0x140014573
cmp byte [rsi], 0
je 0x1400144a0
mov edx, 1
lea rdi, [rdx + 1]
cmp byte [rsi + rdx], 0
mov rdx, rdi
jne 0x1400142e5
mov rdx, qword [rcx + 0x10]
mov qword [rsp + 0x60], rdx
test rdx, rdx
je 0x140014309
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x60], rcx
xor r14d, r14d
mov qword [rsp + 0x50], rbx
mov r13, rbx
sub r13, r14
shr r13, 1
add r13, r14
mov rcx, qword [rsp + 0x60]
mov esi, dword [rcx + r13*4]
add rsi, rax
mov rbx, qword [rsp + 0xd0]
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbp, rax
movabs rax, 0x100000001
mov qword [rbp + 8], rax
lea rax, [0x1400513a0]
mov qword [rbp], rax
lea rcx, [rbp + 0x10]
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], 0x20
lea rax, [rbp + 0x30]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x50], rsi
mov rsi, rdi
mov edx, edi
call fcn.140015390
mov rax, qword [rbp + 0x20]
test rax, rax
je 0x140014393
mov rax, qword [rbp + 0x18]
xor ecx, ecx
mov rdx, qword [rsp + 0x58]
movsx r12d, byte [rdx + rcx]
mov r15b, byte [rax + rcx]
test r12d, r12d
je 0x1400143b0
inc rcx
cmp r12b, r15b
je 0x14001439a
lock dec dword [rbp + 8]
jne 0x1400143dd
mov rax, qword [rbp]
mov rax, qword [rax]
mov rcx, rbp
call qword [case.0x14002713e.0]
lock dec dword [rbp + 0xc]
jne 0x1400143dd
mov rax, qword [rbp]
mov rax, qword [rax + 8]
mov rcx, rbp
call qword [case.0x14002713e.0]
movsx eax, r15b
sub r12d, eax
je 0x140014413
test r12d, r12d
mov rbx, qword [rsp + 0x50]
cmovs rbx, r13
lea rax, [r13 + 1]
cmovns r14, rax
cmp rbx, r14
je 0x140014e95
mov rax, qword [rsp + 0xd8]
mov rdi, rsi
jmp 0x14001430c
cmp qword [rsp + 0x130], r13
jbe 0x140014eb4
mov rax, qword [rsp + 0x120]
xor r14d, r14d
cmp qword [rax + 0x10], 0
mov rdi, qword [rsp + 0x48]
je 0x140014573
mov rax, qword [rax + 8]
test rax, rax
je 0x140014573
movzx eax, word [rax + r13*2]
cmp qword [rsp + 0x100], rax
jbe 0x140014498
mov rcx, qword [rsp + 0xf0]
xor r14d, r14d
cmp qword [rcx + 0x10], 0
je 0x140014573
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140014573
mov eax, dword [rcx + rax*4]
cmp eax, dword [rsp + 0xe4]
jb 0x140014568
cmp eax, dword [rsp + 0xe8]
jae 0x140014568
xor r14d, r14d
jmp 0x140014573
mov edi, 1
jmp 0x1400142f2
lea rcx, [rsp + 0xd0]
mov rdx, r13
call fcn.140030450
mov rsi, qword [rsp + 0x58]
jmp 0x1400141ba
lea rcx, [rsp + 0xd0]
mov rdx, r13
call fcn.140030450
mov rsi, qword [rsp + 0x58]
jmp 0x1400141eb
lea rcx, [rsp + 0xd0]
mov rdx, r13
call fcn.140030450
jmp 0x14001418a
mov eax, eax
mov qword [rsp + 0x100], rax
jmp 0x14001408b
mov eax, eax
mov qword [rsp + 0x118], rax
jmp 0x14001410d
mov eax, eax
mov qword [rsp + 0x130], rax
jmp 0x14001418a
movzx eax, si
sub eax, dword [rsp + 0xe0]
jb 0x140014eb4
cmp qword [rsp + 0x100], rax
jbe 0x140014eb4
mov rcx, qword [rsp + 0xf0]
cmp qword [rcx + 0x10], 0
je 0x140014e95
mov rcx, qword [rcx + 8]
test rcx, rcx
mov rdi, qword [rsp + 0x48]
mov r14d, 0
je 0x140014573
mov eax, dword [rcx + rax*4]
mov r14d, eax
add r14, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0x128]
test rsi, rsi
je 0x1400145ab
lock dec dword [rsi + 8]
jne 0x1400145ab
mov rax, qword [rsi]
mov rax, qword [rax]
mov rcx, rsi
call qword [case.0x14002713e.0]
lock dec dword [rsi + 0xc]
jne 0x1400145ab
mov rax, qword [rsi]
mov rax, qword [rax + 8]
mov rcx, rsi
call qword [case.0x14002713e.0]
mov rsi, qword [rsp + 0x110]
test rsi, rsi
mov r13, rdi
je 0x1400145e6
lock dec dword [rsi + 8]
jne 0x1400145e6
mov rax, qword [rsi]
mov rax, qword [rax]
mov rcx, rsi
call qword [case.0x14002713e.0]
lock dec dword [rsi + 0xc]
jne 0x1400145e6
mov rax, qword [rsi]
mov rax, qword [rax + 8]
mov rcx, rsi
call qword [case.0x14002713e.0]
mov rsi, qword [rsp + 0xf8]
test rsi, rsi
je 0x14001461e
lock dec dword [rsi + 8]
jne 0x14001461e
mov rax, qword [rsi]
mov rax, qword [rax]
mov rcx, rsi
call qword [case.0x14002713e.0]
lock dec dword [rsi + 0xc]
jne 0x14001461e
mov rax, qword [rsi]
mov rax, qword [rax + 8]
mov rcx, rsi
call qword [case.0x14002713e.0]
test r14, r14
je 0x140014ead
mov rcx, qword [r13]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x30
lea r12, [rsp + 0xd0]
mov rdx, r14
xor r8d, r8d
mov r9, r12
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
movabs rsi, 0x100000001
js 0x140014e9f
cmp qword [rsp + 0x78], 0
je 0x140014ead
cmp dword [rsp + 0xe0], 0
je 0x140014ead
cmp dword [rsp + 0xf0], 0x1000
jne 0x140014ead
cmp dword [rsp + 0xf4], 1
je 0x140014ead
cmp byte [r13 + 0x34], 0
jne 0x1400148dd
mov r15, qword [r13 + 0x38]
lea rcx, [0x140056166]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, rax
mov eax, dword [0x14005fc98]
cmp eax, 0x601ffff
jbe 0x140015038
mov eax, dword [0x14005fc98]
cmp eax, 0x9ffffff
ja 0x1400150e3
mov eax, dword [0x14005f03c]
mov bpl, 1
cmp eax, 0xa000001
jb 0x140014790
lea rdi, [rsp + 0xdc]
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call sub.ntdll.dll_memset
movabs rax, 0xa0000011c
mov qword [rdi - 0xc], rax
mov dword [rdi - 4], 0
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 + 0xd0]
mov edx, 0x33
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
sete bpl
lea rax, [0x14005f03c]
lea rcx, [0x14005fc98]
cmove rcx, rax
mov eax, 0xa000000
xchg dword [rcx], eax
mov eax, dword [0x14005fc98]
cmp eax, 0x601ffff
jbe 0x1400150ea
mov eax, dword [0x14005fc98]
cmp eax, 0x602ffff
ja 0x140015195
mov eax, dword [0x14005f03c]
cmp eax, 0x6030001
jb 0x14001519c
lea rdi, [rsp + 0xdc]
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call sub.ntdll.dll_memset
movabs rax, 0x60000011c
mov qword [rdi - 0xc], rax
mov dword [rdi - 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 + 0xd0]
mov edx, 0x33
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
sete dil
lea rax, [0x14005f03c]
lea rcx, [0x14005fc98]
cmove rcx, rax
mov eax, 0x6030000
xchg dword [rcx], eax
cmp r15, rsi
sete bl
mov rsi, qword [r13 + 0x38]
lea rcx, [0x14005695e]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp rsi, rax
sete al
cmp r14, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
sete r8b
cmp r14, qword [sym.imp.KERNEL32.dll_CloseHandle]
sete cl
cmp r14, qword [sym.imp.KERNEL32.dll_CreateFileA]
sete dl
cmp byte [r13 + 0x34], 0
movabs rsi, 0x100000001
jne 0x1400148dd
and bpl, al
and cl, bpl
or bl, cl
or dl, r8b
and al, dil
and al, dl
or al, bl
movzx eax, al
lea ecx, [rax + 4]
test dil, dil
cmove ecx, eax
cmp r14, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmovne ecx, eax
bts rcx, 0x20
mov qword [r13 + 0x30], rcx
test byte [r13 + 0x30], 4
jne 0x140014ec1
mov rax, qword [sym.imp.mozglue.dll_moz_xmalloc]
xor ebp, ebp
mov rbx, r14
cmp rbp, rbx
je 0x140014a01
mov rdi, rbx
mov ecx, 0x58
call rax
mov r15, rax
mov qword [rax + 8], rsi
lea rax, [0x1400513a0]
mov qword [r15], rax
lea rbp, [r15 + 0x10]
mov qword [r15 + 0x10], r13
xor ecx, ecx
mov qword [r15 + 0x20], rcx
mov qword [r15 + 0x28], 0x20
lea rax, [r15 + 0x30]
mov qword [r15 + 0x18], rax
mov qword [r15 + 0x50], rbx
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0xd8], r15
mov dword [rsp + 0xe0], 0
mov qword [rsp + 0x78], rcx
mov rcx, rbp
xor edx, edx
call fcn.1400186b0
mov rax, qword [r15 + 0x18]
cmp byte [rax], 0xeb
je 0x140014edf
lea rcx, [rsp + 0xd0]
lea rdx, [rsp + 0x78]
call fcn.140015750
test al, al
jne 0x140014ffd
mov rcx, rbp
xor edx, edx
call fcn.1400186b0
mov rax, qword [r15 + 0x18]
mov sil, 1
cmp byte [rax], 0xe9
mov rbx, rdi
je 0x140014f71
mov rbp, qword [rsp + 0xd8]
test rbp, rbp
je 0x1400149e2
lock dec dword [rbp + 8]
jne 0x1400149e2
mov rax, qword [rbp]
mov rax, qword [rax]
mov rcx, rbp
call qword [case.0x14002713e.0]
lock dec dword [rbp + 0xc]
jne 0x1400149e2
mov rax, qword [rbp]
mov rax, qword [rax + 8]
mov rcx, rbp
call qword [case.0x14002713e.0]
mov rbp, rdi
test sil, sil
movabs rsi, 0x100000001
mov rax, qword [sym.imp.mozglue.dll_moz_xmalloc]
jne 0x1400148f4
jmp 0x140014a62
cmp rbp, r14
lea rdi, [0x1400513a0]
jne 0x14001500a
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov qword [rax + 8], rsi
mov qword [rax], rdi
lea rcx, [rax + 0x10]
mov qword [rax + 0x10], r13
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 + 0xa8], rcx
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], 0
cmp byte [r13 + 0x34], 0
je 0x140015020
mov edi, dword [r13 + 0x30]
and edi, 1
shl rdi, 0x1e
mov eax, dword [0x14005fd34]
mov ecx, dword [0x14005f488]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140014e0d
mov esi, dword [0x14005fd30]
mov dword [rsp + 0x20], edi
lea rdx, [rsp + 0x78]
mov rcx, r13
mov r8d, esi
mov r9, rdi
call fcn.1400115f0
test esi, esi
je 0x140015031
cmp qword [r13], 0
je 0x140015031
cmp qword [r13 + 0x18], 0
jne 0x140014cbd
mov eax, dword [0x14005fd34]
mov ecx, dword [0x14005f488]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140014e51
mov ecx, dword [0x14005fd30]
mov eax, esi
xor edx, edx
div ecx
sub ecx, edx
test edx, edx
cmove ecx, edx
add ecx, esi
mov dword [r13 + 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 [r13 + 8], rax
test rax, rax
je 0x14001502b
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 [r13 + 0x10], rax
test rax, rax
je 0x14001502b
lea rdi, [r13 + 0x20]
mov rsi, qword [r13]
mov r14, qword [r13 + 8]
cmp byte [rsp + 0x88], 0
je 0x140015239
mov rbx, qword [rsp + 0x78]
test rbx, rbx
je 0x1400151a4
mov r15d, dword [r13 + 0x20]
mov rbp, qword [rsp + 0x80]
mov eax, dword [0x14005fd58]
mov ecx, dword [0x14005f488]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140014c40
lea rcx, [0x14005fd58]
call fcn.14002687c
cmp dword [0x14005fd58], 0xffffffff
jne 0x140014c40
lea rcx, str.kernelbase.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14005fd48], rax
mov qword [0x14005fd50], 0
test rax, rax
je 0x140014c34
lea rdx, str.MapViewOfFile3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14005fd50], rax
test rax, rax
jne 0x140014c34
mov rcx, qword [0x14005fd48]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x14005fd48], 0
lea rcx, [0x14005fd58]
call fcn.14002681c
mov rax, qword [0x14005fd50]
test rax, rax
jne 0x1400151af
add rbx, rbp
mov r12d, 8
mov r13, 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, rsi
mov r8, r15
mov r9, rbp
call fcn.140012140
test rax, rax
je 0x140015273
mov dword [rsp + 0x30], 0x20
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, r14
mov rdx, rsi
xor r8d, r8d
mov r9, rax
call r13
test rax, rax
je 0x140015230
mov r13, qword [rsp + 0x48]
mov qword [r13 + 0x18], rax
jmp 0x140014cc1
lea rdi, [r13 + 0x20]
cmp dword [rdi], 0
je 0x140015031
mov qword [rsp + 0xc0], r13
mov byte [rsp + 0xc8], 1
lea rsi, [rsp + 0xd0]
mov rcx, r13
mov rdx, rsi
call fcn.140015940
cmp byte [rsi + 0x30], 0
je 0x140015031
mov rax, qword [rsp + 0xd0]
lea rdi, [rsp + 0x78]
mov qword [rdi], rax
mov eax, dword [rsp + 0xd8]
mov dword [rdi + 8], eax
movups xmm0, xmmword [rsp + 0xe0]
movups xmmword [rdi + 0x10], xmm0
mov eax, dword [rsp + 0xf0]
mov dword [rdi + 0x20], eax
mov rax, qword [rsp + 0xf4]
mov qword [rdi + 0x24], rax
mov al, byte [rsp + 0xfc]
mov byte [rdi + 0x2c], al
mov dword [rsp + 0xd8], 0
mov byte [rsp + 0xfc], 0
mov rsi, qword [rsp + 0x70]
mov qword [rsp + 0x28], rsi
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0xa8]
lea r8, [rsp + 0xc0]
mov rcx, r13
mov r9, rdi
call fcn.140015c50
cmp qword [rsi], 0
setne sil
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140014daf
mov r8d, dword [rsp + 0x80]
test r8d, r8d
je 0x140014daf
lea r9, [rsp + 0x80]
mov edx, dword [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rdi, qword [rsp + 0xb0]
test rdi, rdi
je 0x140014de7
lock dec dword [rdi + 8]
jne 0x140014de7
mov rax, qword [rdi]
mov rax, qword [rax]
mov rcx, rdi
call qword [case.0x14002713e.0]
lock dec dword [rdi + 0xc]
jne 0x140014de7
mov rax, qword [rdi]
mov rax, qword [rax + 8]
mov rcx, rdi
call qword [case.0x14002713e.0]
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.140027a90
mov eax, esi
add rsp, 0x1f8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14005fd34]
call fcn.14002687c
cmp dword [0x14005fd34], 0xffffffff
jne 0x140014a9d
lea rsi, [rsp + 0xd0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsi + 0x28]
mov dword [0x14005fd30], eax
lea rcx, [0x14005fd34]
call fcn.14002681c
jmp 0x140014a9d
lea rcx, [0x14005fd34]
call fcn.14002687c
cmp dword [0x14005fd34], 0xffffffff
jne 0x140014afd
lea rdi, [rsp + 0xd0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 0x28]
mov dword [0x14005fd30], eax
lea rcx, [0x14005fd34]
call fcn.14002681c
jmp 0x140014afd
mov rdi, qword [rsp + 0x48]
jmp 0x140014498
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
xor esi, esi
jmp 0x140014de7
xor r14d, r14d
mov rdi, qword [rsp + 0x48]
jmp 0x140014573
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov qword [rax + 8], rsi
lea rcx, [0x1400513a0]
mov qword [rax], rcx
jmp 0x140014a23
mov qword [rsp + 0x50], r14
mov rcx, rbp
mov edx, 1
call fcn.1400186b0
mov rax, qword [r15 + 0x20]
test rax, rax
je 0x140014efe
mov rax, qword [r15 + 0x18]
movsx rax, byte [rax + 1]
add rax, 2
mov rbx, qword [r15 + 0x50]
add rbx, rax
mov qword [rsp + 0x78], rbx
shl eax, 0x18
add eax, 0xfe000000
mov r13d, eax
sar r13d, 0x18
test eax, eax
js 0x140015285
mov sil, 1
je 0x140015311
xor r14d, r14d
lea edx, [r14 + 2]
mov rcx, rbp
mov r12, rdx
call fcn.1400186b0
mov rax, qword [r15 + 0x20]
test rax, rax
je 0x140014f52
mov rax, qword [r15 + 0x18]
mov al, byte [rax + r12]
cmp al, 0x90
jne 0x140014f66
inc r14b
movsx r14d, r14b
cmp r13d, r14d
jg 0x140014f36
cmp al, 0x90
cmovne rbx, rdi
jmp 0x140015314
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r15, rax
movabs rax, 0x100000001
mov qword [r15 + 8], rax
lea rax, [0x1400513a0]
mov qword [r15], rax
lea rsi, [r15 + 0x10]
mov rcx, rsi
mov rdx, rbp
mov r8d, 1
call fcn.140030700
mov rcx, rsi
mov edx, 4
call fcn.1400186b0
mov rax, qword [r15 + 0x18]
mov rcx, qword [r15 + 0x50]
movsxd rax, dword [rax]
add rax, rcx
add rax, 4
mov qword [rsp + 0x78], rax
lock dec dword [r15 + 8]
jne 0x140014ffd
mov rax, qword [r15]
mov rax, qword [rax]
mov rcx, r15
call qword [case.0x14002713e.0]
lock dec dword [r15 + 0xc]
jne 0x140014ffd
mov rax, qword [r15]
mov rax, qword [rax + 8]
mov rcx, r15
call qword [case.0x14002713e.0]
mov sil, 1
mov rbx, qword [rsp + 0x78]
jmp 0x1400149a8
mov rcx, r13
mov rdx, rbp
call fcn.1400303c0
test al, al
cmovne r14, rbp
jmp 0x140014a11
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x140014daf
mov eax, dword [0x14005f03c]
cmp eax, 0x6020001
jb 0x140015336
lea rdi, [rsp + 0xdc]
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call sub.ntdll.dll_memset
movabs rax, 0x60000011c
mov qword [rdi - 0xc], rax
mov dword [rdi - 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 + 0xd0]
mov edx, 0x33
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x14001532b
mov eax, 0x6020000
xchg dword [0x14005fc98], eax
mov r13, qword [rsp + 0x48]
jmp 0x1400146cf
xor ebp, ebp
jmp 0x140014790
mov eax, dword [0x14005f03c]
cmp eax, 0x6020001
jb 0x14001534d
lea rdi, [rsp + 0xdc]
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call sub.ntdll.dll_memset
movabs rax, 0x60000011c
mov qword [rdi - 0xc], rax
mov dword [rdi - 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 + 0xd0]
mov edx, 0x33
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x140015342
mov eax, 0x6020000
xchg dword [0x14005fc98], eax
mov r13, qword [rsp + 0x48]
jmp 0x1400147a1
xor edi, edi
jmp 0x14001485f
mov dil, 1
jmp 0x14001485f
int3
lea rcx, [rbx + rbp]
dec rcx
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0xd8], rcx
mov qword [rsp + 0xe0], 0
lea rcx, [rsp + 0xc0]
mov qword [rcx], 1
mov qword [rcx + 8], r12
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], 0x20
mov dword [rsp + 0x28], 0
mov rcx, r14
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [case.0x14002713e.0]
mov r13, qword [rsp + 0x48]
mov qword [r13 + 0x18], rax
test rax, rax
jne 0x140014cc1
jmp 0x140015031
dec r12
jne 0x140014c60
mov dword [rsp + 0x30], 0x20
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, r14
mov rdx, rsi
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 0x140014cb2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [rsp + 0x48]
mov qword [rax + 0x18], 0
jmp 0x140015031
add r13b, 2
mov rcx, rbp
mov edx, r13d
call fcn.1400305c0
mov sil, 1
test al, al
je 0x140015311
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbp, rax
movabs rax, 0x100000001
mov qword [rbp + 8], rax
lea rax, [0x1400513a0]
mov qword [rbp], rax
lea rax, [rbp + 0x10]
mov rcx, qword [rsp + 0x48]
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], 0x20
lea rcx, [rbp + 0x30]
mov qword [rbp + 0x18], rcx
mov qword [rbp + 0x50], rbx
lea rcx, [rsp + 0xa8]
mov qword [rcx], rax
mov qword [rcx + 8], rbp
mov dword [rcx + 0x10], 0
lea rdx, [rsp + 0x78]
call fcn.140015750
test al, al
je 0x140015359
xor esi, esi
mov rbx, rdi
mov r13, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
lea r12, [rsp + 0xd0]
jmp 0x1400149a8
mov eax, 0x6020000
xchg dword [0x14005f03c], eax
xor ebp, ebp
mov r13, qword [rsp + 0x48]
jmp 0x140014790
mov eax, 0x6020000
xchg dword [0x14005f03c], eax
xor edi, edi
mov r13, qword [rsp + 0x48]
jmp 0x14001485f
lock dec dword [rbp + 8]
jne 0x140015311
mov rax, qword [rbp]
mov rax, qword [rax]
mov rcx, rbp
call qword [case.0x14002713e.0]
lock dec dword [rbp + 0xc]
jne 0x140015311
mov rax, qword [rbp]
mov rax, qword [rax + 8]
mov rcx, rbp
call qword [case.0x14002713e.0]
jmp 0x140015311