Function at 0x419620
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 [0x45b0d0]
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 0x419656
mov edx, eax
mov dword [0x45c350], edx
jmp 0x41965c
mov edx, dword [0x45c350]
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x41966d
mov ecx, edi
mov dword [0x45c354], ecx
jmp 0x419673
mov ecx, dword [0x45c354]
test edx, edx
je 0x419bbf
test ecx, ecx
je 0x419bbf
test eax, eax
je 0x4196a4
inc dword [eax + 8]
lea edx, [eax + 0x10]
call fcn.0041f9c4
push edx
xor ecx, ecx
xor edx, edx
test al, al
je 0x41969e
inc ecx
jmp 0x41969f
inc edx
call fcn.00418d70
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 0x4196e5
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 0x4196cd
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 [0x45c350]
shrd eax, edx, 0x18
shr edx, 0x18
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
cmp byte [ecx], 0
je 0x419756
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x419754
cmp eax, dword [ecx + 4]
je 0x419754
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 0x419754
cmp edx, 0x3e8
jae 0x419754
test esi, esi
je 0x419756
cmp byte [ecx + 0x20], 0
jne 0x419756
mov bh, 1
mov byte [esp + 0xf], bh
jmp 0x419756
mov bh, 1
cmp byte [ecx + 0x21], 0
je 0x41978a
test edi, edi
je 0x41978a
test esi, esi
jne 0x41978a
mov eax, dword [0x45c354]
cmp dword [eax], esi
jbe 0x41978a
cmp dword [eax], 2
jbe 0x419786
cmp dword [eax], 3
jbe 0x41978a
cmp dword [eax], 6
jbe 0x419786
cmp dword [eax], 8
je 0x419786
cmp dword [eax], 0x11
jne 0x41978a
mov bl, 1
jmp 0x41978c
xor bl, bl
and dword [esp + 0x70], 0
and dword [esp + 0x74], 0
test bh, bh
jne 0x4197a2
test bl, bl
je 0x419bbf
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x74]
call fcn.00419326
test eax, eax
js 0x419bbf
movzx eax, word [esp + 0x70]
mov ecx, 0xffff
sub ecx, eax
cmp ecx, 2
jb 0x419bbf
test bl, bl
je 0x41991d
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], 0x403064
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], 0x403070
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], 0x40307c
test al, al
jne 0x4198a0
mov ecx, dword [edi]
mov byte [esp + 0xe], al
cmp ecx, dword [esp + 0x28]
ja 0x419881
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.004536e0
call fcn.00452dce
mov ecx, eax
mov al, byte [esp + 0xe]
test ecx, ecx
js 0x419bbf
xor ecx, ecx
test ecx, ecx
js 0x419bbf
mov ecx, dword [esp + 0x18]
add edi, 0xc
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, 3
jb 0x419838
test al, al
je 0x41991d
lea eax, [esp + 0xe]
mov dword [esp + 0x4c], 0x14
push eax
lea edx, [esp + 0x2c]
mov dword [esp + 0x54], 0x16
lea ecx, [esp + 0x50]
mov dword [esp + 0x58], 0x403088
call fcn.00453103
test eax, eax
js 0x419bbf
cmp byte [esp + 0xe], 0
jne 0x41991d
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.0041bc63
mov ecx, dword [0x45c350]
lea eax, [esp + 0x34]
sub esp, 0xc
lea ecx, [ecx + 0x24]
push eax
call fcn.0041bce2
lea ecx, [esp + 0x34]
test eax, eax
jns 0x419918
call fcn.0041bb93
jmp 0x419bbf
call fcn.0041bb93
test bh, bh
je 0x419bbf
mov ecx, dword [0x45c350]
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.0042a7f0
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.00452eff
test eax, eax
js 0x419bb0
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 0x419bb0
mov dword [esp + 0x6c], ebx
sub esi, ebx
je 0x4199c6
sub esi, 1
je 0x4199bf
sub esi, 1
jne 0x419bb0
mov eax, 0xc0000003
jmp 0x4199cb
mov eax, 0xc0000002
jmp 0x4199cb
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 0x419bb0
mov eax, dword [esp + 0x58]
test byte [eax + 2], 1
je 0x419bb0
mov ecx, dword [0x45c350]
push 0x64
pop esi
cmp dword [ecx + 4], ebx
jbe 0x419a39
mov edx, dword [ecx + 8]
cmp dword [ecx + 4], edx
jbe 0x419a39
lea eax, [esp + 0x24]
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.0041bf27
mov ecx, dword [0x45c350]
cmp dword [esp + 0x20], ebx
jl 0x419a39
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 0x419b3f
push 0x2e
pop esi
mov ax, word [esp + 0x64]
cmp ax, 0x10
jb 0x419bb0
shr ax, 1
mov word [esp + 0x64], ax
movzx ecx, ax
movzx eax, word [esp + 0x66]
sub eax, ecx
cmp eax, 8
jb 0x419bb0
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 0x419aa5
test eax, eax
js 0x419bb0
mov eax, dword [esp + 0x6c]
cmp eax, 2
jb 0x419b53
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 0x419b96
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.ntdll.dll_NtDisplayString]
mov eax, dword [0x45c350]
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
cmp dword [esp + 0x68], ebx
je 0x419bbf
lea ecx, [esp + 0x64]
call fcn.004524f4
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045a80a
mov esp, ebp
pop ebp
ret 0x14