Function at 0x4ddbe0
Capabilities:
Check os version
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f54e8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x2e8]
add esi, 0x380
lea ebx, [esi + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x30]
push ebx
jb 0x4ddc37
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
jmp 0x4ddcb1
mov eax, dword [esi + 0x2c]
shr eax, 7
and al, 1
mov byte [ebp - 0x11], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
cmp byte [ebp - 0x11], bl
je 0x4ddcb1
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
call fcn.004e7a70
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, eax
lea eax, [ebp - 0x70]
mov dword [ebp - 4], ebx
call fcn.004d1d90
mov byte [ebp - 4], 1
mov edx, dword [edi + 0x2e8]
push eax
add edx, 0x380
push edx
call fcn.004c4090
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], bl
call fcn.004c2120
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x4ddcb1
mov ecx, eax
add eax, 8
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x4ddcb1
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
or byte [edi + 0x4f8], 0x80
mov esi, edi
call fcn.004ece70
mov eax, dword [ebp + 0xc]
push 1
push eax
push edi
call fcn.004df430
mov ecx, dword [edi + 0x318]
cmp ecx, ebx
mov esi, dword [ecx + 0x5c]
je 0x4ddcdd
mov edx, dword [ecx + 0x64]
jmp 0x4ddce9
mov edi, dword [edi + 0xa8]
mov edx, dword [edi + 0x90]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xa8]
mov eax, dword [eax + 0x90]
add edx, esi
cmp edx, eax
sete byte [ebp - 0x11]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 2
call fcn.00554d80
call fcn.0051a4d0
mov dword [ebp - 0x38], eax
mov byte [eax + 0x11], 1
mov eax, dword [ebp - 0x38]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [eax], eax
mov eax, dword [ebp - 0x38]
mov dword [eax + 8], eax
mov dword [ebp - 0x34], ebx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
lea ecx, [ebp - 0x3c]
mov edi, ecx
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x44]
xor esi, esi
cmp ecx, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], eax
jbe 0x4ddd6d
call fcn.005b8b18
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
cmp ecx, eax
mov dword [ebp - 0x2c], ecx
jbe 0x4ddd79
call fcn.005b8b18
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov byte [ebp - 0x15], bl
mov eax, dword [ebp - 0x15]
mov ebx, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x60]
push edx
call fcn.004f7d30
mov eax, dword [ebp - 0x38]
mov edi, dword [eax]
lea esi, [ebp - 0x3c]
add esp, 0x1c
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], esi
mov ebx, eax
lea esp, [esp]
test esi, esi
je 0x4dddcb
lea eax, [ebp - 0x3c]
cmp esi, eax
je 0x4dddd0
call fcn.005b8b18
cmp edi, ebx
je 0x4dde3a
test esi, esi
jne 0x4ddddd
call fcn.005b8b18
cmp edi, dword [esi + 4]
jne 0x4ddde7
call fcn.005b8b18
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4dde2a
mov edx, dword [ecx + 0x20]
and byte [ecx + 0x24], 0xfb
mov eax, edx
shl eax, 0x18
sar eax, 0x1c
add eax, 1
cmp eax, 8
jle 0x4dde0a
mov eax, 8
shl eax, 4
xor eax, edx
and eax, 0xf0
xor eax, edx
mov dword [ecx + 0x20], eax
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x4dde2a
mov edx, dword [ebp + 0xc]
push edx
push ecx
call fcn.005388b0
lea esi, [ebp - 0x30]
call fcn.00519d60
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
jmp 0x4dddc0
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp - 0x48]
cmp esi, eax
mov edi, eax
jbe 0x4dde5d
call fcn.005b8b18
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp - 0x48]
cmp esi, eax
jbe 0x4dde5d
call fcn.005b8b18
mov eax, dword [ebp - 0x44]
cmp esi, edi
je 0x4dde83
sub eax, edi
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea ebx, [esi + ecx]
jle 0x4dde80
push ecx
push edi
push ecx
push esi
call fcn.005b85b9
add esp, 0x10
mov dword [ebp - 0x44], ebx
mov eax, dword [ebp - 0x38]
mov edi, dword [eax + 4]
cmp byte [edi + 0x11], 0
mov esi, edi
jne 0x4ddeb3
mov eax, dword [esi + 8]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004f0d40
mov esi, dword [esi]
push edi
call fcn.0059b877
add esp, 4
cmp byte [esi + 0x11], 0
mov edi, esi
je 0x4dde91
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], 0
mov dword [eax], eax
mov eax, dword [ebp - 0x38]
push ecx
mov dword [eax + 8], eax
call fcn.004dd7a0
mov eax, dword [edi + 0xb8]
mov ebx, dword [eax]
add edi, 0xb4
mov esi, edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], esi
jmp 0x4ddef6
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
test esi, esi
mov edx, dword [edi + 4]
mov dword [ebp - 0x1c], edx
je 0x4ddf04
cmp esi, edi
je 0x4ddf09
call fcn.005b8b18
cmp ebx, dword [ebp - 0x1c]
je 0x4ddf7c
test esi, esi
jne 0x4ddf17
call fcn.005b8b18
cmp ebx, dword [esi + 4]
jne 0x4ddf21
call fcn.005b8b18
mov ebx, dword [ebx + 0xc]
test ebx, ebx
mov dword [ebp - 0x2c], ebx
je 0x4ddf37
lea eax, [ebx + 4]
mov ecx, 1
lock xadd dword [eax], ecx
lea esi, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00519d60
mov edx, dword [ebp + 0xc]
push edx
push ebx
call fcn.005385d0
test ebx, ebx
mov byte [ebp - 4], 3
je 0x4ddef0
lea eax, [ebx + 4]
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4ddef0
test eax, eax
je 0x4ddef0
lea ecx, [eax - 4]
test ecx, ecx
je 0x4ddef0
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 1
call edx
jmp 0x4ddef0
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x2e8]
mov ecx, dword [eax + 0x1cc]
test ecx, ecx
jle 0x4ddfcc
mov eax, dword [edi + 0x318]
cmp dword [eax + 0x70], ecx
jle 0x4ddfcc
mov ecx, dword [eax + 0x68]
mov esi, dword [eax + 0x6c]
mov eax, dword [ebp + 0xc]
cmp eax, ecx
jle 0x4ddfb6
push esi
add eax, 0xffffffff
push eax
mov ebx, edi
call fcn.004dd6c0
mov eax, dword [ebp + 0xc]
lea ecx, [esi - 1]
cmp eax, ecx
jge 0x4ddfcc
mov edx, dword [ebp + 0xc]
push esi
add edx, 1
push edx
mov ebx, edi
call fcn.004dd6c0
mov ecx, dword [edi + 0xd4]
mov ebx, dword [ecx]
lea eax, [edi + 0xd0]
mov esi, eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
test esi, esi
mov dword [ebp - 0x2c], ebx
je 0x4ddff1
cmp esi, dword [ebp - 0x28]
je 0x4ddff6
call fcn.005b8b18
cmp ebx, dword [ebp - 0x24]
je 0x4de04d
test esi, esi
mov byte [ebp - 4], 5
jne 0x4de008
call fcn.005b8b18
cmp ebx, dword [esi + 4]
jne 0x4de012
call fcn.005b8b18
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 8]
push eax
call edx
mov dword [ebp - 4], 3
jmp 0x4de03c
cmp ebx, dword [esi + 4]
jne 0x4de046
call fcn.005b8b18
mov ebx, dword [ebx]
mov edi, dword [ebp + 8]
jmp 0x4ddfe5
mov eax, dword [edi + 0xb8]
mov ebx, dword [eax]
add edi, 0xb4
mov esi, edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], esi
jmp 0x4de06b
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
test esi, esi
mov eax, dword [edi + 4]
mov dword [ebp - 0x24], eax
je 0x4de079
cmp esi, edi
je 0x4de07e
call fcn.005b8b18
cmp ebx, dword [ebp - 0x24]
je 0x4de0c1
test esi, esi
jne 0x4de08c
call fcn.005b8b18
cmp ebx, dword [esi + 4]
jne 0x4de096
call fcn.005b8b18
mov ebx, dword [ebx + 0xc]
lea esi, [ebp - 0x30]
call fcn.00519d60
test byte [ebx + 0x349], 0x20
je 0x4de065
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, ebx
call fcn.00538740
test al, al
je 0x4de065
push ebx
call fcn.005372f0
jmp 0x4de065
cmp byte [ebp - 0x11], 0
mov esi, dword [ebp + 8]
jne 0x4de130
mov edx, dword [esi + 0xa8]
cmp dword [edx + 0x94], 0
jle 0x4de130
mov eax, dword [esi + 0x318]
test eax, eax
je 0x4de12a
mov cl, byte [esi + 0x4e7]
and cl, 7
cmp cl, 5
je 0x4de12a
mov ecx, dword [eax + 0x28]
test ecx, ecx
mov edi, dword [eax + 0x64]
jne 0x4de0ff
xor eax, eax
jmp 0x4de107
mov eax, dword [eax + 0x2c]
sub eax, ecx
sar eax, 3
cmp edi, eax
je 0x4de12a
cmp dword [edx + 0x94], 0
jle 0x4de130
mov eax, dword [edx + 0x90]
mov ecx, dword [esi + 0x318]
sub eax, dword [ecx + 0x5c]
mov edx, dword [ecx + 0x64]
sub eax, edx
jne 0x4de130
push esi
call fcn.004e6c60
test byte [esi + 0x52c], 0x80
mov dword [esi + 0x538], 0
je 0x4de149
push esi
call fcn.004ea800
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.004f0d80
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4de165
push eax
call fcn.0059b877
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8