Function at 0x140013390
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 0x1400142c7
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 0x1400142b9
cmp qword [rsp + 0xf0], 0
je 0x1400142c7
cmp dword [rsp + 0x98], 0
je 0x1400142c7
cmp dword [rsp + 0xa8], 0x1000
jne 0x1400142c7
cmp dword [rsp + 0xac], 1
je 0x1400142c7
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.1400183d0
cmp qword [r14 + 0x50], 0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x80], rbx
je 0x14001427b
cmp qword [r14 + 0x20], 0
je 0x14001427b
mov rax, qword [r14 + 0x18]
test rax, rax
je 0x14001427b
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14001427b
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.1400183d0
cmp qword [r12 + 0x50], 0
je 0x140014252
cmp qword [r12 + 0x20], 0
je 0x140014252
mov rdi, qword [r12 + 0x18]
test rdi, rdi
je 0x140014252
cmp dword [rdi], 0x4550
jne 0x140014252
movzx eax, word [rdi + 0x18]
cmp eax, 0x20b
jne 0x140014252
cmp dword [rdi + 0x50], 0x147
jbe 0x140014252
cmp dword [rdi + 0x84], 0
je 0x140014252
mov esi, dword [rdi + 0x88]
test rsi, rsi
je 0x140014252
cmp dword [rdi + 0x8c], 0
je 0x140014252
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.1400183d0
cmp qword [rbx + 0x50], 0
je 0x140014295
cmp qword [rbx + 0x20], 0
je 0x140014295
mov r13, qword [rbx + 0x18]
test r13, r13
je 0x140014295
mov esi, dword [r13 + 0x14]
test rsi, rsi
je 0x140014295
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.1400148e0
shr eax, 2
cmp esi, eax
ja 0x14001431f
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.1400148e0
shr eax, 2
cmp esi, eax
ja 0x14001432e
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.1400148e0
shr eax, 1
cmp esi, eax
mov r13, r15
ja 0x14001433d
mov rax, qword [rsp + 0x70]
lock dec dword [rax]
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x60]
jne 0x14001383e
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 0x14001383e
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140068010]
lock dec dword [r15]
lea r15, [0x140054450]
jne 0x140013878
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 0x140013878
mov rax, qword [r12]
mov rax, qword [rax + 8]
mov rcx, r12
call qword [0x140068010]
lock dec dword [rbp]
jne 0x1400138a9
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 0x1400138a9
mov rax, qword [r14]
mov rax, qword [rax + 8]
mov rcx, r14
call qword [0x140068010]
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xffff
jbe 0x1400142ce
xor r14d, r14d
cmp qword [rsp + 0x90], 0
je 0x140013b2e
cmp dword [rsp + 0x9c], 0
je 0x140013b2e
cmp dword [rsp + 0xa0], 0
je 0x140013b2e
mov rax, qword [rsp + 0xa8]
xor r14d, r14d
cmp qword [rax + 0x40], 0
je 0x140013b2e
cmp qword [rsp + 0xb8], 0
je 0x140013b2e
mov rax, qword [rsp + 0xc0]
xor r14d, r14d
cmp qword [rax + 0x40], 0
je 0x140013b2e
mov rsi, qword [rsp + 0xd0]
test rsi, rsi
je 0x140013b2e
xor r14d, r14d
test rdx, rdx
je 0x140013b2e
mov rcx, qword [rsp + 0xd8]
cmp qword [rcx + 0x40], 0
je 0x140013b2e
cmp qword [rsp + 0xe8], 0
je 0x140013b2e
cmp byte [rdx], 0
je 0x14001424b
xor ecx, ecx
lea rbx, [rcx + 1]
cmp byte [rdx + rcx + 1], 0
mov rcx, rbx
jne 0x14001396e
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x58], rcx
test rcx, rcx
je 0x140013993
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.1400148e0
mov rax, qword [r12 + 0x20]
test rax, rax
je 0x140013a1e
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 0x140013a46
inc rdx
cmp dil, r14b
je 0x140013a31
lock dec dword [rcx]
jne 0x140013a72
mov rax, qword [r12]
mov rax, qword [rax]
mov rcx, r12
call qword [0x140068010]
lock dec dword [r15]
jne 0x140013a72
mov rax, qword [r12]
mov rax, qword [rax + 8]
mov rcx, r12
call qword [0x140068010]
cmp dil, r14b
je 0x140013aad
cmp dil, r14b
cmovl rsi, rbp
lea rax, [rbp + 1]
cmovge r13, rax
cmp rsi, r13
lea r15, [0x140054450]
jne 0x140013998
mov r13, qword [rsp + 0x50]
movabs rdi, 0x100000001
xor r14d, r14d
jmp 0x140013b2e
cmp qword [rsp + 0xe8], rbp
jbe 0x1400144e7
mov rax, qword [rsp + 0xd8]
xor r14d, r14d
cmp qword [rax + 0x10], 0
mov r13, qword [rsp + 0x50]
movabs rdi, 0x100000001
je 0x140013b2e
mov rax, qword [rax + 8]
test rax, rax
je 0x140013b2e
movzx eax, word [rax + rbp*2]
cmp qword [rsp + 0xb8], rax
jbe 0x140013aa5
mov rcx, qword [rsp + 0xa8]
xor r14d, r14d
cmp qword [rcx + 0x10], 0
je 0x140013b2e
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140013b2e
mov eax, dword [rcx + rax*4]
cmp eax, dword [rsp + 0x9c]
jb 0x140013b23
cmp eax, dword [rsp + 0xa0]
jb 0x140013aa5
mov r14d, eax
add r14, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xe0]
test rbx, rbx
je 0x140013b66
lock dec dword [rbx + 8]
jne 0x140013b66
mov rax, qword [rbx]
mov rax, qword [rax]
mov rcx, rbx
call qword [0x140068010]
lock dec dword [rbx + 0xc]
jne 0x140013b66
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140068010]
mov rbx, qword [rsp + 0xc8]
test rbx, rbx
je 0x140013b9e
lock dec dword [rbx + 8]
jne 0x140013b9e
mov rax, qword [rbx]
mov rax, qword [rax]
mov rcx, rbx
call qword [0x140068010]
lock dec dword [rbx + 0xc]
jne 0x140013b9e
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140068010]
mov rbx, qword [rsp + 0xb0]
test rbx, rbx
je 0x140013bd6
lock dec dword [rbx + 8]
jne 0x140013bd6
mov rax, qword [rbx]
mov rax, qword [rax]
mov rcx, rbx
call qword [0x140068010]
lock dec dword [rbx + 0xc]
jne 0x140013bd6
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140068010]
test r14, r14
je 0x1400142c7
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 0x1400142b9
cmp qword [rsp + 0xf0], 0
je 0x1400142c7
cmp dword [rsp + 0x98], 0
je 0x1400142c7
cmp dword [rsp + 0xa8], 0x1000
jne 0x1400142c7
cmp dword [rsp + 0xac], 1
je 0x1400142c7
cmp byte [r13 + 0x34], 0
jne 0x140013c80
mov rsi, qword [r13 + 0x38]
lea rcx, [0x14005a6b0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp byte [r13 + 0x34], 0
jne 0x140013c80
xor ecx, ecx
cmp rsi, rax
sete cl
bts rcx, 0x20
mov qword [r13 + 0x30], rcx
test byte [r13 + 0x30], 4
jne 0x14001434c
xor esi, esi
mov rax, qword [sym.imp.mozglue.dll_moz_xmalloc]
xor ebx, ebx
mov qword [rsp + 0x68], r14
cmp rbx, r14
je 0x140013da5
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.1400183d0
mov rax, qword [rbp + 0x18]
cmp byte [rax], 0xeb
je 0x14001438e
lea rcx, [rsp + 0x88]
lea rdx, [rsp + 0xf0]
call fcn.140014cc0
test al, al
jne 0x1400144a8
mov rcx, rbx
xor edx, edx
call fcn.1400183d0
mov rax, qword [rbp + 0x18]
mov sil, 1
cmp byte [rax], 0xe9
mov r14, r15
je 0x14001441c
mov rbx, qword [rsp + 0x90]
test rbx, rbx
je 0x140013d8f
lock dec dword [rbx + 8]
jne 0x140013d8f
mov rax, qword [rbx]
mov rax, qword [rax]
mov rcx, rbx
call qword [0x140068010]
lock dec dword [rbx + 0xc]
jne 0x140013d8f
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 0x140013c9b
jmp 0x140013e0b
mov r12, qword [rsp + 0x68]
cmp rbx, r12
jne 0x1400144b8
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 0x1400144cf
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 0x1400141c2
mov ebx, dword [0x140064b00]
lea rcx, [rsp + 0xf0]
mov edx, ebx
mov r8, r14
mov r9d, r14d
call fcn.140004280
test ebx, ebx
je 0x1400144e0
cmp qword [r13], 0
je 0x1400144e0
cmp qword [r13 + 0x18], 0
jne 0x14001406c
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 0x140014206
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 0x1400144da
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 0x1400144da
lea rsi, [r13 + 0x20]
mov r14, qword [r13]
mov r12, qword [r13 + 8]
cmp byte [rsp + 0x100], 0
je 0x140014781
mov rbp, qword [rsp + 0xf0]
test rbp, rbp
je 0x14001450b
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 0x140013fd7
lea rcx, [0x140062d48]
call fcn.14002eaa8
cmp dword [0x140062d48], 0xffffffff
jne 0x140013fd7
lea rcx, str.kernelbase.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140062d38], rax
mov qword [0x140062d40], 0
test rax, rax
je 0x140013fcb
lea rdx, str.MapViewOfFile3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140062d40], rax
test rax, rax
je 0x1400147c3
lea rcx, [0x140062d48]
call fcn.14002ea48
mov rax, qword [0x140062d40]
test rax, rax
je 0x140014516
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 0x140014070
jmp 0x1400144e0
lea rsi, [r13 + 0x20]
cmp dword [rsi], 0
je 0x1400144e0
mov qword [rsp + 0x140], r13
mov byte [rsp + 0x148], 1
lea rbx, [rsp + 0x88]
mov rcx, r13
mov rdx, rbx
call fcn.140014e90
cmp byte [rbx + 0x38], 0
je 0x1400144e0
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.1400151c0
cmp qword [rsi], 0
setne sil
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140014164
mov r8d, dword [rsp + 0xf8]
test r8d, r8d
je 0x140014164
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 0x14001419c
lock dec dword [rdi + 8]
jne 0x14001419c
mov rax, qword [rdi]
mov rax, qword [rax]
mov rcx, rdi
call qword [0x140068010]
lock dec dword [rdi + 0xc]
jne 0x14001419c
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.14002fbe0
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.14002eaa8
cmp dword [0x140064b04], 0xffffffff
jne 0x140013e47
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.14002ea48
jmp 0x140013e47
lea rcx, [0x140064b04]
call fcn.14002eaa8
cmp dword [0x140064b04], 0xffffffff
jne 0x140013ea5
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.14002ea48
jmp 0x140013ea5
xor ebx, ebx
jmp 0x14001397c
lea rcx, [rsp + 0x88]
mov rdx, r13
call fcn.140034fd0
movabs rdi, 0x100000001
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x60]
jmp 0x14001383e
lea rcx, [rsp + 0x88]
mov rdx, r13
call fcn.140034fd0
mov rbp, qword [rsp + 0x58]
jmp 0x140013878
lea rcx, [rsp + 0x88]
mov r13, qword [rsp + 0x50]
mov rdx, r13
call fcn.140034fd0
movabs rdi, 0x100000001
jmp 0x1400137ff
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
xor esi, esi
jmp 0x14001419c
movzx eax, dx
sub eax, dword [rsp + 0x98]
jb 0x1400144fe
cmp qword [rsp + 0xb8], rax
jbe 0x1400144fe
mov rcx, qword [rsp + 0xa8]
cmp qword [rcx + 0x10], 0
je 0x1400148d3
mov rcx, qword [rcx + 8]
test rcx, rcx
mov r13, qword [rsp + 0x50]
mov r14d, 0
je 0x140013b2e
mov eax, dword [rcx + rax*4]
jmp 0x140013b23
mov eax, eax
mov qword [rsp + 0xb8], rax
jmp 0x1400136ff
mov eax, eax
mov qword [rsp + 0xd0], rax
jmp 0x140013780
mov eax, eax
mov qword [rsp + 0xe8], rax
jmp 0x1400137ff
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 0x140013df0
mov rcx, rbx
mov edx, 1
call fcn.1400183d0
mov rax, qword [rbp + 0x20]
test rax, rax
je 0x1400143a8
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 0x1400147e0
mov sil, 1
je 0x14001486e
xor edi, edi
lea edx, [rdi + 2]
mov rcx, rbx
mov r13, rdx
call fcn.1400183d0
mov rax, qword [rbp + 0x20]
test rax, rax
je 0x1400143ff
mov rax, qword [rbp + 0x18]
cmp byte [rax + r13], 0x90
jne 0x14001486e
inc dil
movsx edi, dil
cmp dword [rsp + 0x58], edi
jg 0x1400143e4
jmp 0x140014871
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.1400188e0
mov rcx, rsi
mov edx, 4
call fcn.1400183d0
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 0x1400144a8
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 0x1400144a8
mov rax, qword [rbp]
mov rax, qword [rax + 8]
mov rcx, rbp
call qword [0x140068010]
mov sil, 1
mov r14, qword [rsp + 0xf0]
jmp 0x140013d57
mov rcx, qword [r13]
mov rdx, rbx
call fcn.140034c30
test al, al
cmovne r12, rbx
jmp 0x140013db3
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x140014164
xor r14d, r14d
mov r13, qword [rsp + 0x50]
movabs rdi, 0x100000001
jmp 0x140013b2e
xor r14d, r14d
mov r13, qword [rsp + 0x50]
jmp 0x140013b2e
int3
add rbp, rbx
mov rcx, r14
mov rdx, r13
mov r8, rbx
mov r9, rbp
call fcn.140034cc0
test rax, rax
je 0x14001488b
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 0x1400147b5
mov rcx, r14
mov rdx, r13
mov r8, rbx
mov r9, rbp
call fcn.140034cc0
test rax, rax
je 0x14001488b
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 0x1400147b5
mov rcx, r14
mov rdx, r13
mov r8, rbx
mov r9, rbp
call fcn.140034cc0
test rax, rax
je 0x14001488b
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 0x1400147b5
mov rcx, r14
mov rdx, r13
mov r8, rbx
mov r9, rbp
call fcn.140034cc0
test rax, rax
je 0x14001488b
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 0x1400147b5
mov rcx, r14
mov rdx, r13
mov r8, rbx
mov r9, rbp
call fcn.140034cc0
test rax, rax
je 0x14001488b
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 0x1400147b5
mov rcx, r14
mov rdx, r13
mov r8, rbx
mov r9, rbp
call fcn.140034cc0
test rax, rax
je 0x14001488b
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 0x1400147b5
mov rcx, r14
mov rdx, r13
mov r8, rbx
mov r9, rbp
call fcn.140034cc0
test rax, rax
je 0x14001488b
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 0x1400147b5
mov rcx, r14
mov rdx, r13
mov r8, rbx
mov r9, rbp
call fcn.140034cc0
test rax, rax
je 0x14001488b
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 0x1400147b5
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 0x140014885
mov r13, qword [rsp + 0x50]
mov qword [r13 + 0x18], rax
jmp 0x140014070
mov rcx, qword [0x140062d38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x140062d38], 0
jmp 0x140013fcb
mov edx, dword [rsp + 0x58]
add dl, 2
mov rcx, rbx
call fcn.140034ee0
mov sil, 1
test al, al
je 0x14001486e
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.140014cc0
test al, al
je 0x14001489d
xor esi, esi
mov r14, r15
mov r13, qword [rsp + 0x50]
movabs rdi, 0x100000001
jmp 0x140013d57
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x18], 0
jmp 0x1400144e0
lea rax, [rbx + 8]
lock dec dword [rax]
jne 0x14001486e
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 0x14001486e
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140068010]
jmp 0x14001486e
mov r13, qword [rsp + 0x50]
jmp 0x140013aa5