Function at 0x1800539e0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xe0
mov rsi, r8
mov rdi, rdx
mov rax, qword [0x1800cb028]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0x30], rcx
mov byte [rsp + 0x38], 1
test rdx, rdx
je 0x180053b1f
mov eax, dword [0x1800cb774]
mov ecx, dword [0x1800cb4e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x180053b52
cmp byte [0x1800cb770], 0
je 0x180053a60
mov rax, qword [0x1800cb640]
cmp qword [rax + 8], rdi
jbe 0x180053a60
mov rax, qword [rax]
cmp rax, rdi
jbe 0x180053d21
cmp byte [rsp + 0x38], 0
je 0x180053ca6
mov rbx, qword [rsp + 0x30]
cmp dword [0x1800cb718], 0
je 0x180053cb7
test bl, 1
jne 0x180053cbf
lea rcx, [0x1800cb540]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r14, qword [0x1800cb580]
test r14, r14
je 0x180053c8d
mov eax, 0xffffffff
xor ecx, ecx
cmp qword [r14 + 0x10], rbx
setb cl
cmova ecx, eax
cmp ecx, 0xffffffff
jne 0x180053ad0
mov r14, qword [r14]
test r14, r14
jne 0x180053aa8
jmp 0x180053c8d
test ecx, ecx
jne 0x180053d14
lea rcx, [0x1800cb540]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x50]
mov rdx, rdi
mov r8, rsi
call fcn.180028560
mov rbx, rax
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.180062020
mov rax, rbx
add rsp, 0xe0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov r14, rcx
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rsi
call fcn.180064050
test rax, rax
jne 0x180053afa
mov rcx, r14
mov rdx, rsi
call fcn.18000ba00
mov rbx, rax
test rbx, rbx
jne 0x180053afd
jmp 0x180053a60
lea rcx, [0x1800cb774]
call fcn.180060ac0
cmp dword [0x1800cb774], 0xffffffff
jne 0x180053a3e
mov eax, dword [0x1800cb600]
mov ecx, dword [0x1800cb4e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x180053bc5
lea rcx, [0x1800cb600]
call fcn.180060ac0
cmp dword [0x1800cb600], 0xffffffff
jne 0x180053bc5
lea rbx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov qword [0x1800cb5f8], rax
lea rcx, [0x1800cb600]
call fcn.180060b40
mov r14, qword [0x1800cb5f8]
cmp r14, 0x1000
jne 0x180053c6e
call fcn.180002fa0
mov qword [0x1800cb640], rax
mov eax, dword [0x1800cb4e0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 8], 0
je 0x180054012
call fcn.180002e80
mov qword [0x1800cb648], rax
lea rbx, [0x1800cb618]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1800cb648]
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
mov qword [rax], rdx
mov r8, rcx
shl r8, 0x17
xor r8, rcx
mov rcx, rdx
shr rcx, 0x1a
xor rcx, rdx
xor rcx, r8
shr r8, 0x11
xor r8, rcx
mov qword [rax + 8], r8
add edx, r8d
and edx, 0x1ffff
inc edx
mov dword [0x1800cb610], edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp r14, 0x1000
sete byte [0x1800cb770]
lea rcx, [0x1800cb774]
call fcn.180060b40
jmp 0x180053a3e
lea rax, str.MOZ_RELEASE_ASSERT_result_
mov qword [sym.mozglue.dll_gMozCrashReason], rax
int3
lea rcx, [rsp + 0x50]
mov qword [rcx], 0
jmp 0x180053aef
xor r14d, r14d
jmp 0x180053ae5
mov r14, qword [0x1800cb588]
test r14, r14
je 0x180053cfb
mov eax, 0xffffffff
xor ecx, ecx
cmp qword [r14 + 0x10], rbx
setb cl
cmova ecx, eax
cmp ecx, 0xffffffff
je 0x180053cf3
test ecx, ecx
je 0x180053ae5
mov r14, qword [r14 + 8]
and r14, 0xfffffffffffffffe
jmp 0x180053cf6
mov r14, qword [r14]
test r14, r14
jne 0x180053cd0
lea rax, str.MOZ_RELEASE_ASSERT_result_
mov qword [sym.mozglue.dll_gMozCrashReason], rax
int3
mov r14, qword [r14 + 8]
and r14, 0xfffffffffffffffe
jmp 0x180053abc
mov rbx, rdi
sub rbx, rax
bt ebx, 0xc
jae 0x180053ff6
mov byte [rsp + 0x46], 0
mov qword [rsp + 0x50], 0
mov eax, dword [0x1800cb4e0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 8], 0
jne 0x180053d60
call fcn.180060de8
mov r14, rbx
shr r14, 0xd
mov eax, dword [0x1800cb4e0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 9], 0
jne 0x180053dbb
lea rcx, [rsp + 0x45]
call fcn.180067310
lea r9, [rsp + 0x50]
mov qword [r9], 0
mov rdx, qword [rsp + 0x108]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rcx, [0x180067240]
mov r8d, 0x10
call fcn.18009d790
lea rcx, [0x1800cb618]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x1800cb648]
mov rdx, rdi
mov r8, r14
call fcn.180067380
cmp rsi, 0x1000
ja 0x180053dfa
mov r15, qword [0x1800cb648]
mov eax, dword [r15 + 0x14810]
cmp eax, 1
je 0x180053f08
cmp byte [rsp + 0x38], 0
je 0x180053e3a
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
call fcn.18000ba00
mov rbx, rax
test rax, rax
jne 0x180053e71
xor ebx, ebx
lea rcx, [0x1800cb618]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [rsp + 0x46], 0
je 0x180053b48
call fcn.180067250
jmp 0x180053b48
mov rax, qword [0x1800cb648]
imul rcx, r14, 0x148
cmp byte [rax + rcx + 0x20], 0
je 0x180053e5b
add rax, rcx
add rax, 0x18
mov rcx, qword [rax]
jmp 0x180053e06
lea rcx, [rsp + 0x48]
mov qword [rcx], 0
mov rdx, rsi
call fcn.180067460
jmp 0x180053e0e
mov rax, qword [0x1800cb648]
mov rcx, qword [rax]
mov r15, qword [rax + 8]
mov qword [rax], r15
mov rdx, rcx
shl rdx, 0x17
xor rdx, rcx
mov rcx, r15
shr rcx, 0x1a
xor rcx, r15
xor rcx, rdx
shr rdx, 0x11
xor rdx, rcx
mov qword [rax + 8], rdx
add r15d, edx
and r15d, 0x3ffff
add r15d, 0x20001
imul rcx, r14, 0x148
mov rdx, qword [rax + rcx + 0x28]
and edx, 0xfff
mov r9d, 0x1000
sub r9, rdx
xor r8d, r8d
cmp dword [rax + rcx + 0x10], 0
cmovne r8, r9
cmp r8, rsi
cmovae r8, rsi
mov rcx, rbx
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x50]
mov rcx, r14
mov r9d, r15d
call fcn.18006c590
jmp 0x180053e18
imul rax, r14, 0x148
mov rcx, qword [r15 + rax + 0x28]
and ecx, 0xfff
mov edx, 0x1000
sub rdx, rcx
xor r8d, r8d
cmp dword [r15 + rax + 0x10], 0
cmovne r8, rdx
cmp rsi, 8
ja 0x180053fc3
mov rax, rsi
mov ecx, 0x40
dec rax
je 0x180053f4e
bsr rcx, rax
xor rcx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rax, 0x11
mov ecx, 0x10
cmovb rax, rcx
cmp rsi, 2
cmovb rax, rcx
mov rcx, qword [0x1800cb640]
and rbx, 0xffffffffffffe000
add rbx, qword [rcx]
sub rbx, rax
add rbx, 0x2000
cmp r8, rsi
cmovae r8, rsi
mov rcx, rbx
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
mov r8, qword [rsp + 0x30]
mov r9b, byte [rsp + 0x38]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov rcx, r15
mov rdx, r14
call fcn.1800673e0
jmp 0x180053e18
cmp rsi, 0x1f0
ja 0x180053fd6
lea rax, [rsi + 0xf]
and rax, 0xfffffffffffffff0
jmp 0x180053f6d
mov eax, 0x1000
cmp rsi, 0xf00
ja 0x180053f6d
lea rax, [rsi + 0xff]
and rax, 0xffffffffffffff00
jmp 0x180053f6d
mov byte [rdi], 0
lea rax, str.MOZ_CRASH_unreachable_
mov qword [sym.mozglue.dll_gMozCrashReason], rax
int3
call fcn.180060de8
jmp 0x180053c05