Function at 0x1400132d0
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, 0x158
mov qword [rsp + 0x68], rdx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdx, qword [rcx + 0x38]
test rdx, rdx
je 0x140014207
mov rbx, r9
mov rsi, r8
mov r13, rcx
and rdx, 0xfffffffffffffffc
mov rcx, qword [rcx]
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0x88]
xor r8d, r8d
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x1400141f9
cmp qword [rsp + 0xf0], 0
je 0x140014207
cmp dword [rsp + 0x98], 0
je 0x140014207
cmp dword [rsp + 0xa8], 0x1000
jne 0x140014207
cmp dword [rsp + 0xac], 1
je 0x140014207
mov qword [rsp + 0x78], rsi
mov rbp, qword [r13 + 0x38]
and rbp, 0xfffffffffffffffc
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r14, rax
add rax, 8
mov qword [rsp + 0x58], rax
movabs rdi, 0x100000001
mov qword [r14 + 8], rdi
lea r15, [0x140054450]
mov qword [r14], r15
lea rcx, [r14 + 0x10]
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x20], 0
mov qword [r14 + 0x28], 0x20
lea rax, [r14 + 0x30]
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x50], rbp
mov edx, 0x40
call fcn.140018310
cmp qword [r14 + 0x50], 0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x80], rbx
je 0x1400141bb
cmp qword [r14 + 0x20], 0
je 0x1400141bb
mov rax, qword [r14 + 0x18]
test rax, rax
je 0x1400141bb
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400141bb
movsxd rsi, dword [rax + 0x3c]
add rsi, rbp
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], rdi
mov qword [r12], r15
lea rcx, [r12 + 0x10]
mov qword [r12 + 0x10], r13
mov qword [r12 + 0x20], 0
mov qword [r12 + 0x28], 0x20
lea rax, [r12 + 0x30]
mov qword [r12 + 0x18], rax
mov qword [r12 + 0x50], rsi
mov edx, 0x108
call fcn.140018310
cmp qword [r12 + 0x50], 0
je 0x140014192
cmp qword [r12 + 0x20], 0
je 0x140014192
mov rdi, qword [r12 + 0x18]
test rdi, rdi
je 0x140014192
cmp dword [rdi], 0x4550
jne 0x140014192
movzx eax, word [rdi + 0x18]
cmp eax, 0x20b
jne 0x140014192
cmp dword [rdi + 0x50], 0x147
jbe 0x140014192
cmp dword [rdi + 0x84], 0
je 0x140014192
mov esi, dword [rdi + 0x88]
test rsi, rsi
je 0x140014192
cmp dword [rdi + 0x8c], 0
je 0x140014192
add rsi, rbp
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbx, rax
add rax, 8
mov qword [rsp + 0x70], rax
movabs rax, 0x100000001
mov qword [rbx + 8], rax
mov qword [rbx], r15
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], rsi
mov edx, 0x28
call fcn.140018310
cmp qword [rbx + 0x50], 0
je 0x1400141d5
cmp qword [rbx + 0x20], 0
je 0x1400141d5
mov r13, qword [rbx + 0x18]
test r13, r13
je 0x1400141d5
mov esi, dword [r13 + 0x14]
test rsi, rsi
je 0x1400141d5
mov eax, dword [rdi + 0x88]
mov ecx, dword [rdi + 0x8c]
add ecx, eax
mov r15, qword [rsp + 0x50]
mov qword [rsp + 0x88], r15
mov qword [rsp + 0x90], rbp
mov edx, dword [r13 + 0x10]
mov dword [rsp + 0x98], edx
mov dword [rsp + 0x9c], eax
mov dword [rsp + 0xa0], ecx
mov edi, dword [r13 + 0x1c]
add rdi, rbp
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
movabs rcx, 0x100000001
mov qword [rax + 8], rcx
lea rcx, [0x140054450]
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 + 0xa8], rcx
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rsi
lea edx, [rsi*4]
call fcn.140014820
shr eax, 2
cmp esi, eax
ja 0x14001425f
mov esi, dword [r13 + 0x18]
mov edi, dword [r13 + 0x20]
add rdi, rbp
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
movabs rcx, 0x100000001
mov qword [rax + 8], rcx
lea rcx, [0x140054450]
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 + 0xc0], rcx
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rsi
lea edx, [rsi*4]
call fcn.140014820
shr eax, 2
cmp esi, eax
ja 0x14001426e
mov esi, dword [r13 + 0x18]
mov eax, dword [r13 + 0x24]
add rbp, rax
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
movabs rdi, 0x100000001
mov qword [rax + 8], rdi
lea rcx, [0x140054450]
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], rbp
mov qword [rsp + 0xd8], rcx
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], rsi
lea edx, [rsi + rsi]
call fcn.140014820
shr eax, 1
cmp esi, eax
mov r13, r15
ja 0x14001427d
mov rax, qword [rsp + 0x70]
lock dec dword [rax]
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x60]
jne 0x14001377e
mov rsi, rbx
add rsi, 0xc
mov rax, qword [rbx]
mov rax, qword [rax]
mov rcx, rbx
call qword [0x140068010]
lock dec dword [rsi]
jne 0x14001377e
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140068010]
lock dec dword [r15]
lea r15, [0x140054450]
jne 0x1400137b8
mov rsi, r12
add rsi, 0xc
mov rax, qword [r12]
mov rax, qword [rax]
mov rcx, r12
call qword [0x140068010]
lock dec dword [rsi]
jne 0x1400137b8
mov rax, qword [r12]
mov rax, qword [rax + 8]
mov rcx, r12
call qword [0x140068010]
lock dec dword [rbp]
jne 0x1400137e9
mov rsi, r14
add rsi, 0xc
mov rax, qword [r14]
mov rax, qword [rax]
mov rcx, r14
call qword [0x140068010]
lock dec dword [rsi]
jne 0x1400137e9
mov rax, qword [r14]
mov rax, qword [rax + 8]
mov rcx, r14
call qword [0x140068010]
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xffff
jbe 0x14001420e
xor r14d, r14d
cmp qword [rsp + 0x90], 0
je 0x140013a6e
cmp dword [rsp + 0x9c], 0
je 0x140013a6e
cmp dword [rsp + 0xa0], 0
je 0x140013a6e
mov rax, qword [rsp + 0xa8]
xor r14d, r14d
cmp qword [rax + 0x40], 0
je 0x140013a6e
cmp qword [rsp + 0xb8], 0
je 0x140013a6e
mov rax, qword [rsp + 0xc0]
xor r14d, r14d
cmp qword [rax + 0x40], 0
je 0x140013a6e
mov rsi, qword [rsp + 0xd0]
test rsi, rsi
je 0x140013a6e
xor r14d, r14d
test rdx, rdx
je 0x140013a6e
mov rcx, qword [rsp + 0xd8]
cmp qword [rcx + 0x40], 0
je 0x140013a6e
cmp qword [rsp + 0xe8], 0
je 0x140013a6e
cmp byte [rdx], 0
je 0x14001418b
xor ecx, ecx
lea rbx, [rcx + 1]
cmp byte [rdx + rcx + 1], 0
mov rcx, rbx
jne 0x1400138ae
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x58], rcx
test rcx, rcx
je 0x1400138d3
mov rax, qword [rax + 8]
mov qword [rsp + 0x58], rax
inc ebx
xor r13d, r13d
mov rbp, rsi
sub rbp, r13
shr rbp, 1
add rbp, r13
mov rax, qword [rsp + 0x58]
mov edi, dword [rax + rbp*4]
add rdi, qword [rsp + 0x90]
mov r14, qword [rsp + 0x88]
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r12, rax
movabs rax, 0x100000001
mov qword [r12 + 8], rax
mov qword [r12], r15
lea rcx, [r12 + 0x10]
mov qword [r12 + 0x10], r14
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, ebx
call fcn.140014820
mov rax, qword [r12 + 0x20]
test rax, rax
je 0x14001395e
mov rax, qword [r12 + 0x18]
lea rcx, [r12 + 8]
mov r15, r12
add r15, 0xc
xor edx, edx
mov r8, qword [rsp + 0x68]
mov dil, byte [r8 + rdx]
mov r14b, byte [rax + rdx]
test dil, dil
je 0x140013986
inc rdx
cmp dil, r14b
je 0x140013971
lock dec dword [rcx]
jne 0x1400139b2
mov rax, qword [r12]
mov rax, qword [rax]
mov rcx, r12
call qword [0x140068010]
lock dec dword [r15]
jne 0x1400139b2
mov rax, qword [r12]
mov rax, qword [rax + 8]
mov rcx, r12
call qword [0x140068010]
cmp dil, r14b
je 0x1400139ed
cmp dil, r14b
cmovl rsi, rbp
lea rax, [rbp + 1]
cmovge r13, rax
cmp rsi, r13
lea r15, [0x140054450]
jne 0x1400138d8
mov r13, qword [rsp + 0x50]
movabs rdi, 0x100000001
xor r14d, r14d
jmp 0x140013a6e
cmp qword [rsp + 0xe8], rbp
jbe 0x140014427
mov rax, qword [rsp + 0xd8]
xor r14d, r14d
cmp qword [rax + 0x10], 0
mov r13, qword [rsp + 0x50]
movabs rdi, 0x100000001
je 0x140013a6e
mov rax, qword [rax + 8]
test rax, rax
je 0x140013a6e
movzx eax, word [rax + rbp*2]
cmp qword [rsp + 0xb8], rax
jbe 0x1400139e5
mov rcx, qword [rsp + 0xa8]
xor r14d, r14d
cmp qword [rcx + 0x10], 0
je 0x140013a6e
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140013a6e
mov eax, dword [rcx + rax*4]
cmp eax, dword [rsp + 0x9c]
jb 0x140013a63
cmp eax, dword [rsp + 0xa0]
jb 0x1400139e5
mov r14d, eax
add r14, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xe0]
test rbx, rbx
je 0x140013aa6
lock dec dword [rbx + 8]
jne 0x140013aa6
mov rax, qword [rbx]
mov rax, qword [rax]
mov rcx, rbx
call qword [0x140068010]
lock dec dword [rbx + 0xc]
jne 0x140013aa6
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140068010]
mov rbx, qword [rsp + 0xc8]
test rbx, rbx
je 0x140013ade
lock dec dword [rbx + 8]
jne 0x140013ade
mov rax, qword [rbx]
mov rax, qword [rax]
mov rcx, rbx
call qword [0x140068010]
lock dec dword [rbx + 0xc]
jne 0x140013ade
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140068010]
mov rbx, qword [rsp + 0xb0]
test rbx, rbx
je 0x140013b16
lock dec dword [rbx + 8]
jne 0x140013b16
mov rax, qword [rbx]
mov rax, qword [rax]
mov rcx, rbx
call qword [0x140068010]
lock dec dword [rbx + 0xc]
jne 0x140013b16
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140068010]
test r14, r14
je 0x140014207
mov rcx, qword [r13]
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0x88]
mov rdx, r14
xor r8d, r8d
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x1400141f9
cmp qword [rsp + 0xf0], 0
je 0x140014207
cmp dword [rsp + 0x98], 0
je 0x140014207
cmp dword [rsp + 0xa8], 0x1000
jne 0x140014207
cmp dword [rsp + 0xac], 1
je 0x140014207
cmp byte [r13 + 0x34], 0
jne 0x140013bc0
mov rsi, qword [r13 + 0x38]
lea rcx, [0x14005a6b0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp byte [r13 + 0x34], 0
jne 0x140013bc0
xor ecx, ecx
cmp rsi, rax
sete cl
bts rcx, 0x20
mov qword [r13 + 0x30], rcx
test byte [r13 + 0x30], 4
jne 0x14001428c
xor esi, esi
mov rax, qword [sym.imp.mozglue.dll_moz_xmalloc]
xor ebx, ebx
mov qword [rsp + 0x68], r14
cmp rbx, r14
je 0x140013ce5
mov r15, r14
mov ecx, 0x58
mov r12, rax
call rax
mov rbp, rax
mov qword [rax + 8], rdi
lea rax, [0x140054450]
mov qword [rbp], rax
lea rbx, [rbp + 0x10]
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x28], 0x20
lea rax, [rbp + 0x30]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x50], r14
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rbp
mov dword [rsp + 0x98], 0
mov qword [rsp + 0xf0], rsi
mov rcx, rbx
xor edx, edx
call fcn.140018310
mov rax, qword [rbp + 0x18]
cmp byte [rax], 0xeb
je 0x1400142ce
lea rcx, [rsp + 0x88]
lea rdx, [rsp + 0xf0]
call fcn.140014c00
test al, al
jne 0x1400143e8
mov rcx, rbx
xor edx, edx
call fcn.140018310
mov rax, qword [rbp + 0x18]
mov sil, 1
cmp byte [rax], 0xe9
mov r14, r15
je 0x14001435c
mov rbx, qword [rsp + 0x90]
test rbx, rbx
je 0x140013ccf
lock dec dword [rbx + 8]
jne 0x140013ccf
mov rax, qword [rbx]
mov rax, qword [rax]
mov rcx, rbx
call qword [0x140068010]
lock dec dword [rbx + 0xc]
jne 0x140013ccf
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140068010]
mov rbx, r15
test sil, sil
mov esi, 0
mov rax, r12
jne 0x140013bdb
jmp 0x140013d4b
mov r12, qword [rsp + 0x68]
cmp rbx, r12
jne 0x1400143f8
lea rsi, [0x140054450]
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov qword [rax + 8], rdi
mov qword [rax], rsi
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], r12
mov qword [rsp + 0x128], rcx
mov qword [rsp + 0x130], rax
mov dword [rsp + 0x138], 0
cmp byte [r13 + 0x34], 0
je 0x14001440f
mov r14d, dword [r13 + 0x30]
and r14d, 1
shl r14, 0x1e
mov eax, dword [0x140064b04]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140014102
mov ebx, dword [0x140064b00]
lea rcx, [rsp + 0xf0]
mov edx, ebx
mov r8, r14
mov r9d, r14d
call fcn.140004280
test ebx, ebx
je 0x140014420
cmp qword [r13], 0
je 0x140014420
cmp qword [r13 + 0x18], 0
jne 0x140013fac
mov eax, dword [0x140064b04]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140014146
mov ecx, dword [0x140064b00]
mov eax, ebx
xor edx, edx
div ecx
sub ecx, edx
test edx, edx
cmove ecx, edx
add ecx, ebx
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 0x14001441a
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 0x14001441a
lea rsi, [r13 + 0x20]
mov r14, qword [r13]
mov r12, qword [r13 + 8]
cmp byte [rsp + 0x100], 0
je 0x1400146c1
mov rbp, qword [rsp + 0xf0]
test rbp, rbp
je 0x14001444b
mov r13d, dword [r13 + 0x20]
mov rbx, qword [rsp + 0xf8]
mov eax, dword [0x140062d48]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140013f17
lea rcx, [0x140062d48]
call fcn.14002e938
cmp dword [0x140062d48], 0xffffffff
jne 0x140013f17
lea rcx, str.kernelbase.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140062d38], rax
mov qword [0x140062d40], 0
test rax, rax
je 0x140013f0b
lea rdx, str.MapViewOfFile3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140062d40], rax
test rax, rax
je 0x140014703
lea rcx, [0x140062d48]
call fcn.14002e8d8
mov rax, qword [0x140062d40]
test rax, rax
je 0x140014456
lea rcx, [rbx + rbp]
dec rcx
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], 0
lea rcx, [rsp + 0x140]
mov qword [rcx], 1
lea rdx, [rsp + 0x88]
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 [0x140068010]
mov r13, qword [rsp + 0x50]
mov qword [r13 + 0x18], rax
test rax, rax
jne 0x140013fb0
jmp 0x140014420
lea rsi, [r13 + 0x20]
cmp dword [rsi], 0
je 0x140014420
mov qword [rsp + 0x140], r13
mov byte [rsp + 0x148], 1
lea rbx, [rsp + 0x88]
mov rcx, r13
mov rdx, rbx
call fcn.140014dd0
cmp byte [rbx + 0x38], 0
je 0x140014420
mov rax, qword [rsp + 0x88]
lea rbx, [rsp + 0xf0]
mov qword [rbx], rax
mov eax, dword [rsp + 0x90]
mov dword [rbx + 8], eax
movups xmm0, xmmword [rsp + 0x98]
movups xmmword [rbx + 0x10], xmm0
movups xmm0, xmmword [rsp + 0xa8]
movups xmmword [rbx + 0x20], xmm0
mov eax, dword [rsp + 0xb8]
mov dword [rbx + 0x30], eax
mov al, byte [rsp + 0xbc]
mov byte [rbx + 0x34], al
mov dword [rsp + 0x90], 0
mov byte [rsp + 0xbc], 0
mov rsi, qword [rsp + 0x80]
mov qword [rsp + 0x28], rsi
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x128]
lea r8, [rsp + 0x140]
mov rcx, r13
mov r9, rbx
call fcn.140015100
cmp qword [rsi], 0
setne sil
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400140a4
mov r8d, dword [rsp + 0xf8]
test r8d, r8d
je 0x1400140a4
lea r9, [rsp + 0xf8]
mov edx, dword [r9 + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rdi, qword [rsp + 0x130]
test rdi, rdi
je 0x1400140dc
lock dec dword [rdi + 8]
jne 0x1400140dc
mov rax, qword [rdi]
mov rax, qword [rax]
mov rcx, rdi
call qword [0x140068010]
lock dec dword [rdi + 0xc]
jne 0x1400140dc
mov rax, qword [rdi]
mov rax, qword [rax + 8]
mov rcx, rdi
call qword [0x140068010]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14002fa70
mov eax, esi
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140064b04]
call fcn.14002e938
cmp dword [0x140064b04], 0xffffffff
jne 0x140013d87
lea rbx, [rsp + 0x88]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 0x28]
mov dword [0x140064b00], eax
lea rcx, [0x140064b04]
call fcn.14002e8d8
jmp 0x140013d87
lea rcx, [0x140064b04]
call fcn.14002e938
cmp dword [0x140064b04], 0xffffffff
jne 0x140013de5
lea r14, [rsp + 0x88]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r14 + 0x28]
mov dword [0x140064b00], eax
lea rcx, [0x140064b04]
call fcn.14002e8d8
jmp 0x140013de5
xor ebx, ebx
jmp 0x1400138bc
lea rcx, [rsp + 0x88]
mov rdx, r13
call fcn.140034eb0
movabs rdi, 0x100000001
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x60]
jmp 0x14001377e
lea rcx, [rsp + 0x88]
mov rdx, r13
call fcn.140034eb0
mov rbp, qword [rsp + 0x58]
jmp 0x1400137b8
lea rcx, [rsp + 0x88]
mov r13, qword [rsp + 0x50]
mov rdx, r13
call fcn.140034eb0
movabs rdi, 0x100000001
jmp 0x14001373f
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
xor esi, esi
jmp 0x1400140dc
movzx eax, dx
sub eax, dword [rsp + 0x98]
jb 0x14001443e
cmp qword [rsp + 0xb8], rax
jbe 0x14001443e
mov rcx, qword [rsp + 0xa8]
cmp qword [rcx + 0x10], 0
je 0x140014813
mov rcx, qword [rcx + 8]
test rcx, rcx
mov r13, qword [rsp + 0x50]
mov r14d, 0
je 0x140013a6e
mov eax, dword [rcx + rax*4]
jmp 0x140013a63
mov eax, eax
mov qword [rsp + 0xb8], rax
jmp 0x14001363f
mov eax, eax
mov qword [rsp + 0xd0], rax
jmp 0x1400136c0
mov eax, eax
mov qword [rsp + 0xe8], rax
jmp 0x14001373f
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov qword [rax + 8], rdi
lea rcx, [0x140054450]
mov qword [rax], rcx
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
jmp 0x140013d30
mov rcx, rbx
mov edx, 1
call fcn.140018310
mov rax, qword [rbp + 0x20]
test rax, rax
je 0x1400142e8
mov rax, qword [rbp + 0x18]
movsx rax, byte [rax + 1]
add rax, 2
mov r14, qword [rbp + 0x50]
add r14, rax
mov qword [rsp + 0xf0], r14
shl eax, 0x18
add eax, 0xfe000000
mov ecx, eax
sar ecx, 0x18
mov dword [rsp + 0x58], ecx
test eax, eax
js 0x140014720
mov sil, 1
je 0x1400147ae
xor edi, edi
lea edx, [rdi + 2]
mov rcx, rbx
mov r13, rdx
call fcn.140018310
mov rax, qword [rbp + 0x20]
test rax, rax
je 0x14001433f
mov rax, qword [rbp + 0x18]
cmp byte [rax + r13], 0x90
jne 0x1400147ae
inc dil
movsx edi, dil
cmp dword [rsp + 0x58], edi
jg 0x140014324
jmp 0x1400147b1
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbp, rax
mov qword [rax + 8], rdi
lea rax, [0x140054450]
mov qword [rbp], rax
lea rsi, [rbp + 0x10]
mov rcx, rsi
mov rdx, rbx
mov r8d, 1
call fcn.140018820
mov rcx, rsi
mov edx, 4
call fcn.140018310
mov rax, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x50]
movsxd rax, dword [rax]
add rax, rcx
add rax, 4
mov qword [rsp + 0xf0], rax
lock dec dword [rbp + 8]
jne 0x1400143e8
mov rsi, rbp
add rsi, 0xc
mov rax, qword [rbp]
mov rax, qword [rax]
mov rcx, rbp
call qword [0x140068010]
lock dec dword [rsi]
jne 0x1400143e8
mov rax, qword [rbp]
mov rax, qword [rax + 8]
mov rcx, rbp
call qword [0x140068010]
mov sil, 1
mov r14, qword [rsp + 0xf0]
jmp 0x140013c97
mov rcx, qword [r13]
mov rdx, rbx
call fcn.140034b10
test al, al
cmovne r12, rbx
jmp 0x140013cf3
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x1400140a4
xor r14d, r14d
mov r13, qword [rsp + 0x50]
movabs rdi, 0x100000001
jmp 0x140013a6e
xor r14d, r14d
mov r13, qword [rsp + 0x50]
jmp 0x140013a6e
int3
add rbp, rbx
mov rcx, r14
mov rdx, r13
mov r8, rbx
mov r9, rbp
call fcn.140034ba0
test rax, rax
je 0x1400147cb
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 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 0x1400146f5
mov rcx, r14
mov rdx, r13
mov r8, rbx
mov r9, rbp
call fcn.140034ba0
test rax, rax
je 0x1400147cb
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 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 0x1400146f5
mov rcx, r14
mov rdx, r13
mov r8, rbx
mov r9, rbp
call fcn.140034ba0
test rax, rax
je 0x1400147cb
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 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 0x1400146f5
mov rcx, r14
mov rdx, r13
mov r8, rbx
mov r9, rbp
call fcn.140034ba0
test rax, rax
je 0x1400147cb
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 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 0x1400146f5
mov rcx, r14
mov rdx, r13
mov r8, rbx
mov r9, rbp
call fcn.140034ba0
test rax, rax
je 0x1400147cb
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 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 0x1400146f5
mov rcx, r14
mov rdx, r13
mov r8, rbx
mov r9, rbp
call fcn.140034ba0
test rax, rax
je 0x1400147cb
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 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 0x1400146f5
mov rcx, r14
mov rdx, r13
mov r8, rbx
mov r9, rbp
call fcn.140034ba0
test rax, rax
je 0x1400147cb
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 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 0x1400146f5
mov rcx, r14
mov rdx, r13
mov r8, rbx
mov r9, rbp
call fcn.140034ba0
test rax, rax
je 0x1400147cb
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 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 0x1400146f5
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
je 0x1400147c5
mov r13, qword [rsp + 0x50]
mov qword [r13 + 0x18], rax
jmp 0x140013fb0
mov rcx, qword [0x140062d38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x140062d38], 0
jmp 0x140013f0b
mov edx, dword [rsp + 0x58]
add dl, 2
mov rcx, rbx
call fcn.140034dc0
mov sil, 1
test al, al
je 0x1400147ae
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbx, rax
movabs rax, 0x100000001
mov qword [rbx + 8], rax
lea rax, [0x140054450]
mov qword [rbx], rax
lea rax, [rbx + 0x10]
mov rcx, qword [rsp + 0x50]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x20], 0
mov qword [rbx + 0x28], 0x20
lea rcx, [rbx + 0x30]
mov qword [rbx + 0x18], rcx
mov qword [rbx + 0x50], r14
lea rcx, [rsp + 0x128]
mov qword [rcx], rax
mov qword [rcx + 8], rbx
mov dword [rcx + 0x10], 0
lea rdx, [rsp + 0xf0]
call fcn.140014c00
test al, al
je 0x1400147dd
xor esi, esi
mov r14, r15
mov r13, qword [rsp + 0x50]
movabs rdi, 0x100000001
jmp 0x140013c97
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x18], 0
jmp 0x140014420
lea rax, [rbx + 8]
lock dec dword [rax]
jne 0x1400147ae
mov rdi, rbx
add rdi, 0xc
mov rax, qword [rbx]
mov rax, qword [rax]
mov rcx, rbx
call qword [0x140068010]
lock dec dword [rdi]
jne 0x1400147ae
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140068010]
jmp 0x1400147ae
mov r13, qword [rsp + 0x50]
jmp 0x1400139e5