Function at 0x1000d960
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x44
test byte [0x10076188], 8
je 0x1000d98c
jmp 0x1000dbd0
lea ebx, [edx + 1]
mov eax, edx
lock cmpxchg dword [ecx + 4], ebx
je 0x1000d9a8
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
cmp dword [ecx], edx
jne 0x1000d980
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [esi + 4]
mov ebx, edx
and edx, 7
lea edx, [edx + edx*4]
shr ebx, 3
lea edi, [eax + edx*4 + 8]
mov eax, dword [esi + 8]
xor edx, edx
neg eax
and eax, ebx
mov dword [ebp - 0x34], eax
cmp ebx, dword [edi + 0x10]
jb 0x1000da0c
mov dword [ebp - 0x38], esi
mov esi, edx
jmp 0x1000d9e0
add esi, 1
cmp ebx, dword [edi + 0x10]
jb 0x1000da09
mov eax, dword [0x10076044]
cmp eax, 0xffffffff
je 0x1000dad8
cmp eax, esi
jg 0x1000d9d8
mov dword [esp], 0
xor esi, esi
call dword [sym.imp.kernel32.dll_Sleep]
sub esp, 4
cmp ebx, dword [edi + 0x10]
jae 0x1000d9e0
mov esi, dword [ebp - 0x38]
xor edx, edx
cmp ebx, dword [edi + 0xc]
je 0x1000da54
mov dword [ebp - 0x38], esi
mov esi, edx
jmp 0x1000da28
add esi, 1
cmp ebx, dword [edi + 0xc]
je 0x1000da51
mov eax, dword [0x10076044]
cmp eax, 0xffffffff
je 0x1000db08
cmp eax, esi
jg 0x1000da20
mov dword [esp], 0
xor esi, esi
call dword [sym.imp.kernel32.dll_Sleep]
sub esp, 4
cmp ebx, dword [edi + 0xc]
jne 0x1000da28
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov ecx, ebx
mov edx, dword [edi + 4]
sub ecx, eax
mov eax, 1
shl eax, cl
and eax, dword [edx + 4]
mov dword [ebp - 0x38], edx
je 0x1000db60
mov eax, dword [esi]
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x38]
mov dword [esp + 4], ecx
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
mov ecx, esi
call dword [eax + 8]
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x34]
sub esp, 0xc
lea eax, [ecx + eax - 1]
cmp ebx, eax
jne 0x1000dc49
mov dword [ebp - 0x34], 1
xor ebx, ebx
xor eax, eax
mov ecx, 1
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x1000dc08
mov eax, dword [0x10076044]
cmp eax, 0xffffffff
je 0x1000dba0
cmp ebx, eax
jge 0x1000db8a
add ebx, 1
jmp 0x1000daa7
lea eax, [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
sub esp, 4
cmp dword [ebp - 0x1c], 1
jbe 0x1000db38
mov dword [0x10076044], 0xfa0
mov eax, 0xfa0
jmp 0x1000d9ee
lea eax, [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
sub esp, 4
cmp dword [ebp - 0x1c], 1
jbe 0x1000db50
mov dword [0x10076044], 0xfa0
mov eax, 0xfa0
jmp 0x1000da36
mov dword [0x10076044], 0
jmp 0x1000d9f2
mov dword [0x10076044], 0
jmp 0x1000da3a
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x34]
lea eax, [ecx + eax - 1]
cmp ebx, eax
je 0x1000dc58
lock add dword [edi + 0xc], 1
jmp 0x1000d98c
mov dword [0x10076044], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_Sleep]
sub esp, 4
jmp 0x1000daa5
lea eax, [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
sub esp, 4
cmp dword [ebp - 0x1c], 1
jbe 0x1000db80
mov dword [0x10076044], 0xfa0
mov eax, 0xfa0
jmp 0x1000dac8
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0x1008004e
mov dword [esp + 8], str._Concurrent_queue_base_v4__Internal_pop_if_present
mov dword [esp + 4], 0x10076188
mov dword [esp + 0x14], eax
mov dword [esp], 3
call fcn.1000cf10
jmp 0x1000d98c
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov dword [edi + 4], eax
test eax, eax
je 0x1000dc40
mov dword [edi], 0
mov ebx, dword [ebp - 0x38]
mov ecx, esi
mov eax, dword [esi]
mov dword [esp], ebx
call dword [eax + 0x14]
sub esp, 4
lock add dword [edi + 0xc], 1
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1000d98c
jmp 0x1000dc4e
mov dword [edi + 8], 0
jmp 0x1000dc14
lock add dword [edi + 0xc], 1
mov eax, 1
jmp 0x1000d998
xor edx, edx
mov dword [ebp - 0x34], edx
jmp 0x1000daa5