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

Disassembly:
push 0xffffffffffffffff
push 0x10189531
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x101cd7b4]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101cd7b4]
xor eax, esp
push eax
lea eax, [esp + 0x1d8]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1e8]
xor esi, esi
mov ebp, ecx
mov dword [esp + 0x3c], esi
call fcn.10021db0
mov dword [esp + 0x58], eax
add eax, 4
push eax
mov dword [esp + 0x58], 0x10199614
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x1ec]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1e4], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], esi
lea esi, [ebp + 0x34]
push ecx
mov ecx, esi
mov dword [esp + 0x2c], 4
call fcn.10004d20
mov ebx, dword [esp + 0x14]
test ebx, ebx
mov edx, dword [esi + 4]
mov dword [esp + 0x34], edx
je 0x100b5b3a
cmp ebx, esi
je 0x100b5b3f
call fcn.1015988d
mov esi, dword [esp + 0x18]
cmp esi, dword [esp + 0x34]
je 0x100b5b63
test ebx, ebx
jne 0x100b5b52
call fcn.1015988d
cmp esi, dword [ebx + 4]
jne 0x100b5b5c
call fcn.1015988d
mov eax, dword [esi + 0x10]
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x18]
lea esi, [ebp + 0x1c]
push edx
mov ecx, esi
call fcn.10004d20
mov ebx, dword [esp + 0x14]
test ebx, ebx
mov eax, dword [esi + 4]
mov dword [esp + 0x34], eax
je 0x100b5b8a
cmp ebx, esi
je 0x100b5b8f
call fcn.1015988d
mov esi, dword [esp + 0x18]
cmp esi, dword [esp + 0x34]
je 0x100b5bb3
test ebx, ebx
jne 0x100b5ba2
call fcn.1015988d
cmp esi, dword [ebx + 4]
jne 0x100b5bac
call fcn.1015988d
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc0], 0xf
mov dword [esp + 0xbc], 0
mov byte [esp + 0xac], 0
mov edx, dword [esp + 0x2c]
push 0xffffffffffffffff
push 0
push edi
lea ecx, [esp + 0xb4]
mov byte [esp + 0x1ec], 1
mov dword [esp + 0xb0], edx
call fcn.10005470
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x18]
lea esi, [ebp + 0x60]
push ecx
mov ecx, esi
call fcn.100a9860
push edi
lea ecx, [esp + 0xc8]
call fcn.1010add5
mov ebx, dword [esp + 0x14]
test ebx, ebx
mov edi, dword [esi + 4]
mov byte [esp + 0x1e0], 2
je 0x100b5c30
cmp ebx, esi
je 0x100b5c35
call fcn.1015988d
mov esi, dword [esp + 0x18]
cmp esi, edi
je 0x100b61a1
test ebx, ebx
jne 0x100b5c4a
call fcn.1015988d
cmp esi, dword [ebx + 4]
jne 0x100b5c54
call fcn.1015988d
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x161], edx
cmp esi, dword [ebx + 4]
jne 0x100b5c68
call fcn.1015988d
cmp dword [esi + 0x17c], 0
je 0x100b5cda
cmp esi, dword [ebx + 4]
jne 0x100b5c7b
call fcn.1015988d
cmp byte [esi + 0x188], 0
je 0x100b5cda
lea ecx, [esp + 0xc4]
call fcn.1002c3e0
cmp dword [esp + 0xc0], 0x10
jb 0x100b5caa
mov eax, dword [esp + 0xac]
push eax
call fcn.10159534
add esp, 4
mov ecx, dword [esp + 0x38]
push ecx
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], 0
mov byte [esp + 0xb0], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x100b622e
cmp byte [ebp + 0x59bc], 0
jne 0x100b5cf4
cmp esi, dword [ebx + 4]
jne 0x100b5ced
call fcn.1015988d
mov byte [esi + 0x15c], 1
cmp esi, dword [ebx + 4]
jne 0x100b5cfe
call fcn.1015988d
cmp byte [esi + 0x15c], 0
jne 0x100b5d7e
mov ecx, dword [esp + 0x1c]
mov eax, 0x431bde83
mul ecx
shr edx, 0x12
mov edi, edx
mov eax, 0x51eb851f
mul ecx
shr edx, 5
sub edi, edx
mov edx, dword [ebp + 0x592c]
imul edi, edi, 0x64
add edi, ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x24], edi
lea edi, [ebp + 0x5928]
push eax
lea ecx, [esp + 0x60]
push ecx
mov ecx, edi
mov dword [esp + 0x3c], edx
call fcn.10062240
mov dword [esp + 0x24], eax
mov eax, dword [eax]
test eax, eax
je 0x100b5d5b
cmp eax, edi
je 0x100b5d60
call fcn.1015988d
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
cmp dword [eax + 4], edx
je 0x100b5d7e
cmp esi, dword [ebx + 4]
jne 0x100b5d77
call fcn.1015988d
mov byte [esi + 0x15c], 1
cmp esi, dword [ebx + 4]
jne 0x100b5d88
call fcn.1015988d
cmp byte [esi + 0x15c], 0
jne 0x100b5db5
cmp esi, dword [ebx + 4]
jne 0x100b5d9b
call fcn.1015988d
cmp byte [esi + 0xad], 0
jne 0x100b5db5
cmp esi, dword [ebx + 4]
jne 0x100b5dae
call fcn.1015988d
mov byte [esi + 0x15c], 1
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
lea edi, [ebp + 0x5904]
push edx
mov ecx, edi
call fcn.1005aee0
mov ebx, dword [esp + 0x24]
test ebx, ebx
mov eax, dword [edi + 4]
mov dword [esp + 0x34], eax
je 0x100b5ddf
cmp ebx, edi
je 0x100b5de4
call fcn.1015988d
mov edi, dword [esp + 0x28]
cmp edi, dword [esp + 0x34]
je 0x100b5eda
test ebx, ebx
jne 0x100b5dfb
call fcn.1015988d
cmp edi, dword [ebx + 4]
jne 0x100b5e05
call fcn.1015988d
mov ecx, dword [esp + 0x14]
cmp esi, dword [ecx + 4]
jne 0x100b5e13
call fcn.1015988d
movzx edx, word [edi + 0x1a]
mov dword [esi + 0x15d], edx
cmp edi, dword [ebx + 4]
jne 0x100b5e27
call fcn.1015988d
mov eax, dword [esp + 0x14]
cmp esi, dword [eax + 4]
jne 0x100b5e35
call fcn.1015988d
mov cl, byte [edi + 0x1c]
mov byte [esi + 0x165], cl
cmp edi, dword [ebx + 4]
jne 0x100b5e48
call fcn.1015988d
cmp byte [edi + 0x28], 0
je 0x100b5e75
cmp edi, dword [ebx + 4]
jne 0x100b5e58
call fcn.1015988d
mov edx, dword [esp + 0x14]
cmp esi, dword [edx + 4]
jne 0x100b5e66
call fcn.1015988d
cmp byte [edi + 0x1d], 0
setne al
mov byte [esi + 0xac], al
jmp 0x100b5eaa
cmp edi, dword [ebx + 4]
jne 0x100b5e7f
call fcn.1015988d
cmp byte [edi + 0x1d], 0
je 0x100b5eaa
lea ecx, [esp + 0x24]
call fcn.10061ca0
cmp byte [eax + 0x11], 0
lea ecx, [esp + 0x14]
setne byte [esp + 0x23]
call fcn.10061ca0
mov cl, byte [esp + 0x23]
mov byte [eax + 0xa0], cl
cmp edi, dword [ebx + 4]
jne 0x100b5eb4
call fcn.1015988d
cmp byte [edi + 0x25], 0
je 0x100b5eda
cmp edi, dword [ebx + 4]
jne 0x100b5ec4
call fcn.1015988d
cmp byte [edi + 0x15], 0
je 0x100b5eda
lea ecx, [esp + 0x14]
call fcn.10061ca0
mov byte [eax + 0x150], 0
cmp dword [ebp + 0x59c8], 5
jne 0x100b5ef8
mov edx, dword [esp + 0x14]
cmp esi, dword [edx + 4]
jne 0x100b5ef1
call fcn.1015988d
mov byte [esi + 0x15c], 1
push 0x33e0
call fcn.1015989d
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x1e0], 3
je 0x100b5fab
lea ecx, [esp + 0x64]
call fcn.100da590
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x14]
cmp esi, dword [eax + 4]
mov byte [esp + 0x1e0], 4
mov dword [esp + 0x3c], 1
jne 0x100b5f5a
call fcn.1015988d
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x44]
push edx
push 0
lea eax, [ebp + 0x39dc]
push eax
lea ecx, [ebp + 0x1748]
push ecx
lea edx, [ebp + 0xbe0]
push edx
mov edx, dword [ebp + 0x4cec]
lea eax, [esi + 0x2c]
push eax
mov eax, dword [ebp + 0x4ce8]
lea ecx, [ebp + 0x56bc]
push ecx
mov ecx, dword [ebp + 0x4ca0]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x48]
push ebp
call fcn.10093e90
mov dword [esp + 0x1c], eax
jmp 0x100b5fb3
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x14]
cmp esi, dword [edx + 4]
mov dword [esp + 0x1e0], 5
jne 0x100b5fcc
call fcn.1015988d
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esi + 0x174]
call fcn.10036d80
test byte [esp + 0x3c], 1
mov dword [esp + 0x1e0], 2
je 0x100b5ff7
lea ecx, [esp + 0x64]
call fcn.100da490
mov ecx, dword [esp + 0x14]
cmp esi, dword [ecx + 4]
jne 0x100b6005
call fcn.1015988d
test ebx, ebx
lea eax, [ebp + 0x5904]
mov byte [esi + 0x190], 0
mov edx, dword [eax + 4]
mov dword [esp + 0x34], edx
je 0x100b6021
cmp ebx, eax
je 0x100b6026
call fcn.1015988d
cmp edi, dword [esp + 0x34]
je 0x100b6147
test ebx, ebx
jne 0x100b6039
call fcn.1015988d
cmp edi, dword [ebx + 4]
jne 0x100b6043
call fcn.1015988d
mov eax, dword [esp + 0x14]
cmp esi, dword [eax + 4]
jne 0x100b6051
call fcn.1015988d
movzx ecx, byte [edi + 0x39]
push ecx
mov ecx, dword [esi + 0x17c]
call fcn.10087430
cmp edi, dword [ebx + 4]
jne 0x100b607f
call fcn.1015988d
cmp edi, dword [ebx + 4]
jne 0x100b607f
call fcn.1015988d
cmp edi, dword [ebx + 4]
jne 0x100b607f
call fcn.1015988d
mov edx, dword [esp + 0x14]
cmp esi, dword [edx + 4]
jne 0x100b608d
call fcn.1015988d
movzx eax, word [edi + 0x3d]
movzx ecx, word [edi + 0x3b]
movzx edx, byte [edi + 0x3a]
push eax
push ecx
mov ecx, dword [esi + 0x17c]
push edx
call fcn.10087450
cmp edi, dword [ebx + 4]
jne 0x100b60b1
call fcn.1015988d
mov eax, dword [esp + 0x14]
cmp esi, dword [eax + 4]
jne 0x100b60bf
call fcn.1015988d
movzx ecx, byte [edi + 0x41]
push ecx
mov ecx, dword [esi + 0x17c]
call fcn.100874d0
cmp edi, dword [ebx + 4]
jne 0x100b60d9
call fcn.1015988d
mov edx, dword [esp + 0x14]
cmp esi, dword [edx + 4]
jne 0x100b60e7
call fcn.1015988d
movzx eax, byte [edi + 0x40]
mov ecx, dword [esi + 0x17c]
push eax
call fcn.100874e0
cmp edi, dword [ebx + 4]
jne 0x100b6101
call fcn.1015988d
mov ecx, dword [esp + 0x14]
cmp esi, dword [ecx + 4]
jne 0x100b610f
call fcn.1015988d
movzx edx, byte [edi + 0x42]
mov ecx, dword [esi + 0x17c]
push edx
call fcn.10087500
cmp edi, dword [ebx + 4]
jne 0x100b6129
call fcn.1015988d
mov eax, dword [esp + 0x14]
cmp esi, dword [eax + 4]
jne 0x100b6137
call fcn.1015988d
movzx ecx, byte [edi + 0x45]
push ecx
mov ecx, dword [esi + 0x17c]
call fcn.10087520
mov edx, dword [esp + 0x14]
cmp esi, dword [edx + 4]
jne 0x100b6155
call fcn.1015988d
mov eax, dword [esp + 0x14]
cmp esi, dword [eax + 4]
mov edi, dword [esi + 0x17c]
jne 0x100b6169
call fcn.1015988d
push 1
lea ecx, [ebp + 0x4cb4]
push ecx
mov ecx, edi
call fcn.10090af0
mov edx, dword [esp + 0x14]
mov byte [esi + 0x188], al
cmp esi, dword [edx + 4]
jne 0x100b618d
call fcn.1015988d
mov al, byte [esi + 0x188]
neg al
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
mov dword [esp + 0x24], eax
mov ebx, dword [ebp + 0x58fc]
lea ecx, [esp + 0x2c]
push ecx
lea esi, [ebp + 0x58f8]
lea edx, [esp + 0x60]
push edx
mov ecx, esi
call fcn.10062240
mov edi, eax
mov eax, dword [edi]
test eax, eax
je 0x100b61ca
cmp eax, esi
je 0x100b61cf
call fcn.1015988d
cmp dword [edi + 4], ebx
je 0x100b61db
mov ecx, ebp
call fcn.100a86a0
lea ecx, [esp + 0xc4]
call fcn.1002c3e0
cmp dword [esp + 0xc0], 0x10
jb 0x100b6201
mov eax, dword [esp + 0xac]
push eax
call fcn.10159534
add esp, 4
mov ecx, dword [esp + 0x38]
push ecx
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], 0
mov byte [esp + 0xb0], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.10159cce
add esp, 0x1d0
ret 8