Function at 0x419e00
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 0x419e36
mov edx, eax
mov dword [0x45f340], edx
jmp 0x419e3c
mov edx, dword [0x45f340]
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x419e4d
mov ecx, edi
mov dword [0x45f344], ecx
jmp 0x419e53
mov ecx, dword [0x45f344]
test edx, edx
je 0x41a38e
test ecx, ecx
je 0x41a38e
test eax, eax
je 0x419e84
inc dword [eax + 8]
lea edx, [eax + 0x10]
call fcn.004203aa
push edx
xor ecx, ecx
xor edx, edx
test al, al
je 0x419e7e
inc ecx
jmp 0x419e7f
inc edx
call fcn.00419512
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 0x419ec5
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 0x419ead
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 0x419f36
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x419f34
cmp eax, dword [ecx + 4]
je 0x419f34
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 0x419f34
cmp edx, 0x3e8
jae 0x419f34
test esi, esi
je 0x419f36
cmp byte [ecx + 0x20], 0
jne 0x419f36
mov bh, 1
mov byte [esp + 0xf], bh
jmp 0x419f36
mov bh, 1
cmp byte [ecx + 0x21], 0
je 0x419f6a
test edi, edi
je 0x419f6a
test esi, esi
jne 0x419f6a
mov eax, dword [0x45f344]
cmp dword [eax], esi
jbe 0x419f6a
cmp dword [eax], 2
jbe 0x419f66
cmp dword [eax], 3
jbe 0x419f6a
cmp dword [eax], 6
jbe 0x419f66
cmp dword [eax], 8
je 0x419f66
cmp dword [eax], 0x11
jne 0x419f6a
mov bl, 1
jmp 0x419f6c
xor bl, bl
and dword [esp + 0x70], 0
and dword [esp + 0x74], 0
test bh, bh
jne 0x419f82
test bl, bl
je 0x41a38e
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x74]
call fcn.00419af3
test eax, eax
js 0x41a38e
movzx eax, word [esp + 0x70]
mov ecx, 0xffff
sub ecx, eax
cmp ecx, 2
jb 0x41a38e
test bl, bl
je 0x41a0f2
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], 0x4030b8
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], 0x4030c4
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], 0x4030d0
test al, al
jne 0x41a074
mov ecx, dword [edi]
mov byte [esp + 0xe], al
cmp ecx, dword [esp + 0x28]
ja 0x41a05f
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.00456210
call fcn.0045593b
test eax, eax
js 0x41a38e
mov al, byte [esp + 0xe]
mov ecx, dword [esp + 0x18]
add edi, 0xc
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, 3
jb 0x41a018
test al, al
je 0x41a0f2
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], 0x4030dc
call fcn.00455c2b
test eax, eax
js 0x41a38e
cmp byte [esp + 0xe], 0
jne 0x41a0f2
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.0041c3b4
mov ecx, dword [0x45f340]
lea eax, [esp + 0x34]
sub esp, 0xc
lea ecx, [ecx + 0x24]
push eax
call fcn.0041c452
lea ecx, [esp + 0x34]
test eax, eax
jns 0x41a0ed
call fcn.0041c2cb
jmp 0x41a38e
call fcn.0041c2cb
test bh, bh
je 0x41a38e
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.0042b69b
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.00455a76
test eax, eax
js 0x41a385
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 0x41a385
mov dword [esp + 0x6c], ebx
sub esi, ebx
je 0x41a19b
sub esi, 1
je 0x41a194
sub esi, 1
jne 0x41a385
mov eax, 0xc0000003
jmp 0x41a1a0
mov eax, 0xc0000002
jmp 0x41a1a0
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 0x41a385
mov eax, dword [esp + 0x58]
test byte [eax + 2], 1
je 0x41a385
mov ecx, dword [0x45f340]
push 0x64
pop esi
cmp dword [ecx + 4], ebx
jbe 0x41a20e
mov edx, dword [ecx + 8]
cmp dword [ecx + 4], edx
jbe 0x41a20e
lea eax, [esp + 0x24]
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.0041c6a6
mov ecx, dword [0x45f340]
cmp dword [esp + 0x20], ebx
jl 0x41a20e
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 0x41a314
push 0x2e
pop esi
mov ax, word [esp + 0x64]
cmp ax, 0x10
jb 0x41a385
shr ax, 1
mov word [esp + 0x64], ax
movzx ecx, ax
movzx eax, word [esp + 0x66]
sub eax, ecx
cmp eax, 8
jb 0x41a385
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 0x41a27a
test eax, eax
js 0x41a385
mov eax, dword [esp + 0x6c]
cmp eax, 2
jb 0x41a328
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 0x41a36b
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.0041d00c
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045d72e
mov esp, ebp
pop ebp
ret 0x14