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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x45e040]
xor eax, esp
mov dword [esp + 0x150], eax
mov eax, dword [ebp + 0x14]
push ebx
xor bh, bh
mov byte [esp + 7], bh
push esi
push edi
test eax, eax
je 0x419da6
mov edx, eax
mov dword [0x45f340], edx
jmp 0x419dac
mov edx, dword [0x45f340]
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x419dbd
mov ecx, edi
mov dword [0x45f344], ecx
jmp 0x419dc3
mov ecx, dword [0x45f344]
test edx, edx
je 0x41a2fe
test ecx, ecx
je 0x41a2fe
test eax, eax
je 0x419df4
inc dword [eax + 8]
lea edx, [eax + 0x10]
call fcn.0041fe6a
push edx
xor ecx, ecx
xor edx, edx
test al, al
je 0x419dee
inc ecx
jmp 0x419def
inc edx
call fcn.00419482
mov ecx, dword [0x7ffe0004]
mov eax, 0x7ffe0324
mov dword [esp + 0x18], ecx
mov edx, dword [eax]
add eax, 0xfffffffc
mov esi, dword [eax]
mov eax, 0x7ffe0328
mov eax, dword [eax]
cmp edx, eax
je 0x419e35
mov eax, 0x7ffe0324
lea edi, [eax - 4]
pause
mov edx, dword [eax]
mov ecx, 0x7ffe0328
mov esi, dword [edi]
mov ecx, dword [ecx]
cmp edx, ecx
jne 0x419e1d
mov edi, dword [ebp + 0x18]
mov ecx, dword [esp + 0x18]
mov eax, edx
mul ecx
shld edx, eax, 8
shl eax, 8
mov dword [esp + 0x10], eax
mov eax, esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], edx
mul ecx
mov ecx, dword [0x45f340]
shrd eax, edx, 0x18
shr edx, 0x18
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
cmp byte [ecx], 0
je 0x419ea6
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x419ea4
cmp eax, dword [ecx + 4]
je 0x419ea4
mov edx, dword [esp + 0x10]
sub edx, dword [ecx + 0x18]
mov eax, dword [esp + 0x14]
sbb eax, dword [ecx + 0x1c]
mov dword [esp + 0x1c], eax
jne 0x419ea4
cmp edx, 0x3e8
jae 0x419ea4
test esi, esi
je 0x419ea6
cmp byte [ecx + 0x20], 0
jne 0x419ea6
mov bh, 1
mov byte [esp + 0xf], bh
jmp 0x419ea6
mov bh, 1
cmp byte [ecx + 0x21], 0
je 0x419eda
test edi, edi
je 0x419eda
test esi, esi
jne 0x419eda
mov eax, dword [0x45f344]
cmp dword [eax], esi
jbe 0x419eda
cmp dword [eax], 2
jbe 0x419ed6
cmp dword [eax], 3
jbe 0x419eda
cmp dword [eax], 6
jbe 0x419ed6
cmp dword [eax], 8
je 0x419ed6
cmp dword [eax], 0x11
jne 0x419eda
mov bl, 1
jmp 0x419edc
xor bl, bl
and dword [esp + 0x70], 0
and dword [esp + 0x74], 0
test bh, bh
jne 0x419ef2
test bl, bl
je 0x41a2fe
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x74]
call fcn.00419a63
test eax, eax
js 0x41a2fe
movzx eax, word [esp + 0x70]
mov ecx, 0xffff
sub ecx, eax
cmp ecx, 2
jb 0x41a2fe
test bl, bl
je 0x41a062
push 8
pop edx
push 0xa
pop ecx
xor al, al
mov dword [esp + 0x9c], edx
and dword [esp + 0x18], 0
lea edi, [esp + 0x9c]
mov byte [esp + 0xe], al
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], 0x4030a8
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], 0x4030b4
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], 0x4030c0
test al, al
jne 0x419fe4
mov ecx, dword [edi]
mov byte [esp + 0xe], al
cmp ecx, dword [esp + 0x28]
ja 0x419fcf
mov eax, dword [esp + 0x30]
mov edx, edi
sub eax, ecx
mov dword [esp + 0x40], ecx
add eax, dword [esp + 0x28]
mov dword [esp + 0x48], eax
lea eax, [esp + 0xe]
push eax
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x44]
push fcn.00455ca0
call fcn.004553cd
test eax, eax
js 0x41a2fe
mov al, byte [esp + 0xe]
mov ecx, dword [esp + 0x18]
add edi, 0xc
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, 3
jb 0x419f88
test al, al
je 0x41a062
lea eax, [esp + 0xe]
mov dword [esp + 0x4c], 0x14
push eax
push ecx
lea edx, [esp + 0x30]
mov dword [esp + 0x58], 0x16
lea ecx, [esp + 0x54]
mov dword [esp + 0x5c], 0x4030cc
call fcn.004556bd
test eax, eax
js 0x41a2fe
cmp byte [esp + 0xe], 0
jne 0x41a062
xor eax, eax
lea edi, [esp + 0x34]
stosd dword es:[edi], eax
lea ecx, [esp + 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push eax
call fcn.0041c244
mov ecx, dword [0x45f340]
lea eax, [esp + 0x34]
sub esp, 0xc
lea ecx, [ecx + 0x24]
push eax
call fcn.0041c2e2
lea ecx, [esp + 0x34]
test eax, eax
jns 0x41a05d
call fcn.0041c15b
jmp 0x41a2fe
call fcn.0041c15b
test bh, bh
je 0x41a2fe
mov ecx, dword [0x45f340]
xor ebx, ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x84], ebx
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x78], eax
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x78]
mov dword [esp + 0x80], eax
call fcn.0042b15b
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x64]
add eax, 2
mov dword [esp + 0x64], ebx
movzx edx, ax
push ecx
mov dword [esp + 0x6c], ebx
call fcn.00455508
test eax, eax
js 0x41a2f5
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.ntdll.dll_RtlCopyUnicodeString]
movzx ecx, word [esp + 0x64]
xor edx, edx
mov eax, dword [esp + 0x68]
shr ecx, 1
mov word [eax + ecx*2], dx
cmp word [esp + 0x64], dx
jbe 0x41a2f5
mov dword [esp + 0x6c], ebx
sub esi, ebx
je 0x41a10b
sub esi, 1
je 0x41a104
sub esi, 1
jne 0x41a2f5
mov eax, 0xc0000003
jmp 0x41a110
mov eax, 0xc0000002
jmp 0x41a110
mov eax, 0x40000001
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], ebx
push ecx
push eax
mov eax, dword fs:[0x30]
push ebx
push 0xb
push dword [eax + 8]
call dword [sym.imp.ntdll.dll_RtlFindMessage]
test eax, eax
js 0x41a2f5
mov eax, dword [esp + 0x58]
test byte [eax + 2], 1
je 0x41a2f5
mov ecx, dword [0x45f340]
push 0x64
pop esi
cmp dword [ecx + 4], ebx
jbe 0x41a17e
mov edx, dword [ecx + 8]
cmp dword [ecx + 4], edx
jbe 0x41a17e
lea eax, [esp + 0x24]
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.0041c536
mov ecx, dword [0x45f340]
cmp dword [esp + 0x20], ebx
jl 0x41a17e
mov eax, dword [esp + 0x24]
xor edx, edx
div dword [ecx + 4]
mov esi, eax
mov eax, dword [ecx + 8]
mov edi, 0x96
mov dword [esp + 0x88], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x90], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x94], eax
lea eax, [esp + 0x6c]
push eax
push edi
lea eax, [esp + 0xc8]
mov dword [esp + 0xa0], esi
push eax
lea eax, [esp + 0x94]
push eax
mov eax, dword [esp + 0x68]
push 1
push ebx
push ebx
push ebx
add eax, 4
push eax
call dword [sym.imp.ntdll.dll_RtlFormatMessage]
cmp eax, 0x80000005
jne 0x41a284
push 0x2e
pop esi
mov ax, word [esp + 0x64]
cmp ax, 0x10
jb 0x41a2f5
shr ax, 1
mov word [esp + 0x64], ax
movzx ecx, ax
movzx eax, word [esp + 0x66]
sub eax, ecx
cmp eax, 8
jb 0x41a2f5
mov eax, dword [esp + 0x68]
xor edx, edx
shr ecx, 1
mov word [eax + ecx*2], si
movzx ecx, word [esp + 0x64]
mov eax, dword [esp + 0x68]
shr ecx, 1
mov word [eax + ecx*2 + 2], si
movzx ecx, word [esp + 0x64]
mov eax, dword [esp + 0x68]
shr ecx, 1
mov word [eax + ecx*2 + 4], si
movzx ecx, word [esp + 0x64]
mov eax, dword [esp + 0x68]
shr ecx, 1
mov word [eax + ecx*2 + 6], dx
lea eax, [esp + 0x6c]
push eax
push edi
lea eax, [esp + 0xc8]
push eax
lea eax, [esp + 0x94]
push eax
mov eax, dword [esp + 0x68]
push 1
push ebx
push ebx
push ebx
add eax, 4
push eax
call dword [sym.imp.ntdll.dll_RtlFormatMessage]
cmp eax, 0x80000005
je 0x41a1ea
test eax, eax
js 0x41a2f5
mov eax, dword [esp + 0x6c]
cmp eax, 2
jb 0x41a298
sub eax, 2
mov dword [esp + 0x6c], eax
mov word [esp + 0x5c], ax
lea ecx, [esp + 0xc0]
mov dword [esp + 0x60], ecx
mov ecx, 0x98
movzx eax, ax
shr eax, 1
mov word [esp + 0x5e], cx
xor ecx, ecx
mov word [esp + eax*2 + 0xc0], cx
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.ntdll.dll_NtDrawText]
test eax, eax
jns 0x41a2db
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.ntdll.dll_NtDisplayString]
mov eax, dword [0x45f340]
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x1c], ecx
mov cl, byte [esp + 0xf]
mov byte [eax + 0x20], cl
lea ecx, [esp + 0x64]
call fcn.0041caca
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045d1ae
mov esp, ebp
pop ebp
ret 0x14