Function at 0x18005f640
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x1800cb028]
xor rax, rsp
mov qword [rsp + 0x58], rax
test rcx, rcx
je 0x18005fb55
mov rsi, rcx
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 0x18005f85f
cmp byte [0x1800cb770], 0
je 0x18005f99a
mov rax, qword [0x1800cb640]
cmp qword [rax + 8], rsi
jbe 0x18005f6ad
mov rax, qword [rax]
cmp rax, rsi
jbe 0x18005fbbe
cmp dword [0x1800cb718], 0
je 0x18005fb55
mov rax, rsi
and rax, 0xfffffffffff00000
je 0x18005fb55
mov rcx, qword [0x1800cb678]
mov rdx, rsi
shr rdx, 0x3e
mov rcx, qword [rcx + rdx*8]
test rcx, rcx
je 0x18005fb55
mov rdx, rsi
shr rdx, 0x38
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18005fb55
mov rdx, rsi
shr rdx, 0x35
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18005fb55
mov rdx, rsi
shr rdx, 0x32
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18005fb55
mov rdx, rsi
shr rdx, 0x2f
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18005fb55
mov rdx, rsi
shr rdx, 0x2c
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18005fb55
mov rdx, rsi
shr rdx, 0x29
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18005fb55
mov rdx, rsi
shr rdx, 0x26
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18005fb55
mov rdx, rsi
shr rdx, 0x23
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18005fb55
mov rdx, rsi
shr rdx, 0x20
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18005fb55
mov rdx, rsi
shr rdx, 0x1d
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18005fb55
mov edx, esi
shr edx, 0x1d
mov rcx, qword [rcx + rdx*8]
test rcx, rcx
je 0x18005fb55
mov edx, esi
shr edx, 0x1a
and edx, 7
mov rcx, qword [rcx + rdx*8]
test rcx, rcx
je 0x18005fb55
mov edx, esi
shr edx, 0x17
and edx, 7
mov rcx, qword [rcx + rdx*8]
test rcx, rcx
je 0x18005fb55
mov edx, esi
shr edx, 0x14
and edx, 7
cmp qword [rcx + rdx*8], 0
je 0x18005fb55
cmp rax, rsi
je 0x18005fb5c
shr esi, 0xc
movzx ecx, sil
lea rcx, [rcx + rcx*2]
mov rax, qword [rax + rcx*8 + 0x30]
mov rdi, rax
and rdi, 0xfffffffffffff000
test al, 2
jne 0x18005f847
mov rax, qword [rdi]
mov rdi, qword [rax + 0x10]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180062020
mov rax, rdi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1800cb774]
call fcn.180060ac0
cmp dword [0x1800cb774], 0xffffffff
jne 0x18005f687
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 0x18005f8d2
lea rcx, [0x1800cb600]
call fcn.180060ac0
cmp dword [0x1800cb600], 0xffffffff
jne 0x18005f8d2
lea rdi, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov qword [0x1800cb5f8], rax
lea rcx, [0x1800cb600]
call fcn.180060b40
mov rbx, qword [0x1800cb5f8]
cmp rbx, 0x1000
jne 0x18005f97b
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 0x18005fc40
call fcn.180002e80
mov qword [0x1800cb648], rax
lea rdi, [0x1800cb618]
mov rcx, rdi
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, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp rbx, 0x1000
sete byte [0x1800cb770]
lea rcx, [0x1800cb774]
call fcn.180060b40
jmp 0x18005f687
cmp dword [0x1800cb718], 0
je 0x18005fb55
mov rax, rsi
and rax, 0xfffffffffff00000
je 0x18005fb55
mov rcx, qword [0x1800cb678]
mov rdx, rsi
shr rdx, 0x3e
mov rcx, qword [rcx + rdx*8]
test rcx, rcx
je 0x18005fb55
mov rdx, rsi
shr rdx, 0x38
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18005fb55
mov rdx, rsi
shr rdx, 0x35
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18005fb55
mov rdx, rsi
shr rdx, 0x32
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18005fb55
mov rdx, rsi
shr rdx, 0x2f
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18005fb55
mov rdx, rsi
shr rdx, 0x2c
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18005fb55
mov rdx, rsi
shr rdx, 0x29
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18005fb55
mov rdx, rsi
shr rdx, 0x26
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18005fb55
mov rdx, rsi
shr rdx, 0x23
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18005fb55
mov rdx, rsi
shr rdx, 0x20
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18005fb55
mov rdx, rsi
shr rdx, 0x1d
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18005fb55
mov edx, esi
shr edx, 0x1d
mov rcx, qword [rcx + rdx*8]
test rcx, rcx
je 0x18005fb55
mov edx, esi
shr edx, 0x1a
and edx, 7
mov rcx, qword [rcx + rdx*8]
test rcx, rcx
je 0x18005fb55
mov edx, esi
shr edx, 0x17
and edx, 7
mov rcx, qword [rcx + rdx*8]
test rcx, rcx
je 0x18005fb55
mov edx, esi
shr edx, 0x14
and edx, 7
cmp qword [rcx + rdx*8], 0
je 0x18005fb55
cmp rax, rsi
jne 0x18005f822
lea rcx, [0x1800cb5b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1800cb5e0]
test rax, rax
je 0x18005fc16
mov ecx, 0xffffffff
xor edi, edi
xor edx, edx
cmp qword [rax + 0x20], rsi
setb dl
cmova edx, ecx
cmp edx, 0xffffffff
je 0x18005fb4a
test edx, edx
je 0x18005fc1a
mov rax, qword [rax + 0x18]
and rax, 0xfffffffffffffffe
jmp 0x18005fb4e
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x18005fb27
jmp 0x18005fbac
xor edi, edi
jmp 0x18005f847
lea rcx, [0x1800cb5b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1800cb5e0]
test rax, rax
je 0x18005fc16
mov ecx, 0xffffffff
xor edi, edi
xor edx, edx
cmp qword [rax + 0x20], rsi
setb dl
cmova edx, ecx
cmp edx, 0xffffffff
je 0x18005fba3
test edx, edx
je 0x18005fc1a
mov rax, qword [rax + 0x18]
and rax, 0xfffffffffffffffe
jmp 0x18005fba7
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x18005fb80
lea rcx, [0x1800cb5b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x18005f847
mov rdi, rsi
sub rdi, rax
bt edi, 0xc
jae 0x18005fc24
shr rdi, 0xd
lea rcx, [0x1800cb618]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1800cb648]
imul rcx, rdi, 0x148
mov rdx, qword [rax + rcx + 0x28]
cmp rdx, rsi
ja 0x18005fc20
and edx, 0xfff
mov r8d, 0x1000
sub r8, rdx
xor edi, edi
cmp dword [rax + rcx + 0x10], 0
cmovne rdi, r8
lea rcx, [0x1800cb618]
jmp 0x18005fbb3
xor edi, edi
jmp 0x18005fbac
mov rdi, qword [rax + 0x28]
jmp 0x18005fbac
xor edi, edi
jmp 0x18005fc0d
mov byte [rsi], 0
lea rax, str.MOZ_CRASH_unreachable_
mov qword [sym.mozglue.dll_gMozCrashReason], rax
int3
call fcn.180060de8
jmp 0x18005f912