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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d62ed
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x100eedbc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
mov dword [ebp - 0x3c], edi
mov byte [ebp - 4], 1
mov esi, dword [edi + 0x30]
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x100788eb
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x5c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
cmp eax, ecx
je 0x1007873c
lea ebx, [eax + 0x44]
cmp dword [ebx - 0x1c], 0
je 0x1007863b
cmp dword [ebx - 0x18], 8
lea eax, [ebx - 0x2c]
jb 0x10078628
mov eax, dword [eax]
push dword [ebp + 8]
push eax
call fcn.100bb3e9
pop ecx
pop ecx
test eax, eax
jne 0x10078722
cmp dword [ebx - 4], 0
je 0x10078664
cmp dword [ebx], 8
lea ecx, [ebx - 0x14]
jb 0x1007864b
mov ecx, dword [ecx]
mov eax, dword [ebp + 8]
add eax, 0x192
push eax
push ecx
call fcn.100bb3e9
pop ecx
pop ecx
test eax, eax
jne 0x10078722
cmp dword [ebx + 0x14], 0
je 0x1007868e
cmp dword [ebx + 0x18], 8
lea ecx, [ebx + 4]
jb 0x10078675
mov ecx, dword [ecx]
mov eax, dword [ebp + 8]
add eax, 0x324
push eax
push ecx
call fcn.100bb3e9
pop ecx
pop ecx
test eax, eax
jne 0x10078722
cmp dword [ebx + 0x2c], 0
je 0x100786b3
cmp dword [ebx + 0x30], 8
lea eax, [ebx + 0x1c]
jb 0x1007869f
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
add eax, 0x4b6
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x10078722
cmp dword [ebx + 0x44], 0
je 0x100786d8
cmp dword [ebx + 0x48], 8
lea eax, [ebx + 0x34]
jb 0x100786c4
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
add eax, 0x648
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x10078722
cmp dword [ebx + 0x5c], 0
je 0x100786fd
cmp dword [ebx + 0x60], 8
lea eax, [ebx + 0x4c]
jb 0x100786e9
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
add eax, 0x7da
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x10078722
cmp dword [ebx + 0x74], 0
je 0x10078751
cmp dword [ebx + 0x78], 8
lea eax, [ebx + 0x64]
jb 0x1007870e
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
add eax, 0x96c
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x10078751
mov eax, dword [ebp - 0x14]
mov ecx, 0xc0
add eax, ecx
add ebx, ecx
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x18]
jne 0x10078617
xor ebx, ebx
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x100788cc
mov eax, dword [esi + 4]
jmp 0x100788bf
call fcn.10045373
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
cmp dword [eax], 5
jbe 0x10078815
mov ebx, dword [ebp - 0x14]
push 8
pop edx
lea eax, [ebx + 0xa8]
cmp dword [eax + 0x14], edx
jb 0x10078777
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
lea eax, [ebx + 0x90]
cmp dword [eax + 0x14], edx
jb 0x10078787
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea eax, [ebx + 0x78]
cmp dword [eax + 0x14], edx
jb 0x10078794
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0x60]
cmp dword [eax + 0x14], edx
jb 0x100787a1
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
lea eax, [ebx + 0x48]
cmp dword [eax + 0x14], edx
jb 0x100787ae
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
lea eax, [ebx + 0x18]
cmp dword [eax + 0x14], edx
jb 0x100787bb
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
lea eax, [ebx + 0x30]
cmp dword [eax + 0x14], edx
jb 0x100787c8
mov eax, dword [eax]
lea ecx, [esi + 0x10]
mov dword [ebp - 0x2c], eax
cmp dword [esi + 0x24], edx
jb 0x100787d6
mov ecx, dword [esi + 0x10]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], ecx
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x34], 0x10023d00
push eax
lea eax, [ebp - 0x1c]
mov edx, 0x10034f3e
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
push ecx
push ecx
mov ecx, dword [ebp - 0x38]
call fcn.100393ee
jmp 0x10078818
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.10078ec0
mov ecx, eax
lea eax, [esi + 0x40]
push eax
mov ecx, dword [ecx]
add ecx, 0x20
call fcn.1004799d
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10078ec0
push ebx
mov ecx, dword [eax]
add ecx, 0x38
call fcn.1004799d
jmp 0x1007873a
cmp esi, dword [eax + 8]
jne 0x100788c5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100788b5
mov esi, eax
jmp 0x100785f6
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x100785f6
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x100788da
jmp 0x100785f6
test edi, edi
je 0x100788f6
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8