Function at 0x180003420
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x1800cb028]
xor rax, rsp
mov qword [rsp + 0x58], rax
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 0x180003636
cmp byte [0x1800cb770], 0
je 0x180003771
mov rax, qword [0x1800cb640]
cmp qword [rax + 8], rsi
jbe 0x180003484
mov rax, qword [rax]
cmp rax, rsi
jbe 0x180003995
cmp dword [0x1800cb718], 0
je 0x18000392c
mov rax, rsi
and rax, 0xfffffffffff00000
je 0x18000392c
mov rcx, qword [0x1800cb678]
mov rdx, rsi
shr rdx, 0x3e
mov rcx, qword [rcx + rdx*8]
test rcx, rcx
je 0x18000392c
mov rdx, rsi
shr rdx, 0x38
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18000392c
mov rdx, rsi
shr rdx, 0x35
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18000392c
mov rdx, rsi
shr rdx, 0x32
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18000392c
mov rdx, rsi
shr rdx, 0x2f
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18000392c
mov rdx, rsi
shr rdx, 0x2c
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18000392c
mov rdx, rsi
shr rdx, 0x29
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18000392c
mov rdx, rsi
shr rdx, 0x26
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18000392c
mov rdx, rsi
shr rdx, 0x23
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18000392c
mov rdx, rsi
shr rdx, 0x20
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18000392c
mov rdx, rsi
shr rdx, 0x1d
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18000392c
mov edx, esi
shr edx, 0x1d
mov rcx, qword [rcx + rdx*8]
test rcx, rcx
je 0x18000392c
mov edx, esi
shr edx, 0x1a
and edx, 7
mov rcx, qword [rcx + rdx*8]
test rcx, rcx
je 0x18000392c
mov edx, esi
shr edx, 0x17
and edx, 7
mov rcx, qword [rcx + rdx*8]
test rcx, rcx
je 0x18000392c
mov edx, esi
shr edx, 0x14
and edx, 7
cmp qword [rcx + rdx*8], 0
je 0x18000392c
cmp rax, rsi
je 0x180003933
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 0x18000361e
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 0x18000345e
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 0x1800036a9
lea rcx, [0x1800cb600]
call fcn.180060ac0
cmp dword [0x1800cb600], 0xffffffff
jne 0x1800036a9
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 0x180003752
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 0x180003a17
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 0x18000345e
cmp dword [0x1800cb718], 0
je 0x18000392c
mov rax, rsi
and rax, 0xfffffffffff00000
je 0x18000392c
mov rcx, qword [0x1800cb678]
mov rdx, rsi
shr rdx, 0x3e
mov rcx, qword [rcx + rdx*8]
test rcx, rcx
je 0x18000392c
mov rdx, rsi
shr rdx, 0x38
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18000392c
mov rdx, rsi
shr rdx, 0x35
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18000392c
mov rdx, rsi
shr rdx, 0x32
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18000392c
mov rdx, rsi
shr rdx, 0x2f
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18000392c
mov rdx, rsi
shr rdx, 0x2c
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18000392c
mov rdx, rsi
shr rdx, 0x29
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18000392c
mov rdx, rsi
shr rdx, 0x26
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18000392c
mov rdx, rsi
shr rdx, 0x23
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18000392c
mov rdx, rsi
shr rdx, 0x20
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18000392c
mov rdx, rsi
shr rdx, 0x1d
and edx, 0x38
mov rcx, qword [rcx + rdx]
test rcx, rcx
je 0x18000392c
mov edx, esi
shr edx, 0x1d
mov rcx, qword [rcx + rdx*8]
test rcx, rcx
je 0x18000392c
mov edx, esi
shr edx, 0x1a
and edx, 7
mov rcx, qword [rcx + rdx*8]
test rcx, rcx
je 0x18000392c
mov edx, esi
shr edx, 0x17
and edx, 7
mov rcx, qword [rcx + rdx*8]
test rcx, rcx
je 0x18000392c
mov edx, esi
shr edx, 0x14
and edx, 7
cmp qword [rcx + rdx*8], 0
je 0x18000392c
cmp rax, rsi
jne 0x1800035f9
lea rcx, [0x1800cb5b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1800cb5e0]
test rax, rax
je 0x1800039ed
mov ecx, 0xffffffff
xor edi, edi
xor edx, edx
cmp qword [rax + 0x20], rsi
setb dl
cmova edx, ecx
cmp edx, 0xffffffff
je 0x180003921
test edx, edx
je 0x1800039f1
mov rax, qword [rax + 0x18]
and rax, 0xfffffffffffffffe
jmp 0x180003925
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1800038fe
jmp 0x180003983
xor edi, edi
jmp 0x18000361e
lea rcx, [0x1800cb5b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1800cb5e0]
test rax, rax
je 0x1800039ed
mov ecx, 0xffffffff
xor edi, edi
xor edx, edx
cmp qword [rax + 0x20], rsi
setb dl
cmova edx, ecx
cmp edx, 0xffffffff
je 0x18000397a
test edx, edx
je 0x1800039f1
mov rax, qword [rax + 0x18]
and rax, 0xfffffffffffffffe
jmp 0x18000397e
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x180003957
lea rcx, [0x1800cb5b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x18000361e
mov rdi, rsi
sub rdi, rax
bt edi, 0xc
jae 0x1800039fb
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 0x1800039f7
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 0x18000398a
xor edi, edi
jmp 0x180003983
mov rdi, qword [rax + 0x28]
jmp 0x180003983
xor edi, edi
jmp 0x1800039e4
mov byte [rsi], 0
lea rax, str.MOZ_CRASH_unreachable_
mov qword [sym.mozglue.dll_gMozCrashReason], rax
int3
call fcn.180060de8
jmp 0x1800036e9