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

Disassembly:
push 0xffffffffffffffff
push 0x74f1cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebp
xor ebp, ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edi
mov word [esp + 0x44], bp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 1
xor esi, esi
mov edi, edi
push ebp
push esi
lea ecx, [esp + 0x34]
call fcn.006af6b0
add esi, 1
cmp esi, 6
jl 0x631600
mov edx, dword [edi + 0x64]
mov eax, edx
shr eax, 0x18
sub eax, ebp
je 0x631648
sub eax, 1
je 0x63163a
sub eax, 1
jne 0x631978
mov eax, dword [0x912e94]
mov ecx, dword [eax + 0x2e4]
jmp 0x631654
mov ecx, dword [0x912e94]
mov ecx, dword [ecx + 0x2e0]
jmp 0x631654
mov ecx, dword [0x912e94]
mov ecx, dword [ecx + 0x2dc]
mov eax, dword [ecx]
push edx
call dword [eax + 0x18]
cmp eax, ebp
je 0x631978
lea ecx, [eax - 0x18]
cmp ecx, ebp
je 0x631978
mov edx, dword [ecx]
push ebx
call dword [edx + 0x50]
mov ebx, eax
cmp ebx, ebp
je 0x631977
mov ax, word [ebx + 0xe2]
push ebp
push eax
call fcn.00659110
mov esi, eax
add esp, 8
cmp esi, ebp
mov dword [esp + 0x28], esi
je 0x631977
mov cx, word [esi + 0x2a]
push ecx
call fcn.00659140
add esp, 4
cmp eax, ebp
mov dword [esp + 0x20], eax
je 0x631977
mov edx, dword [esi + 0x194]
cmp edx, dword [eax + 0x294]
je 0x631977
cmp word [edi + 0x98], bp
jne 0x631977
mov eax, dword [esi + 0x70]
add esi, 0x70
mov ecx, esi
xor edi, edi
call dword [eax + 0x2c]
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x631737
lea esp, [esp]
mov edx, dword [esi]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call dword [edx + 0x34]
mov ecx, dword [eax]
push ecx
mov ecx, dword [0x912e94]
call fcn.004668b0
cmp eax, ebp
je 0x631731
lea ecx, [eax - 0x18]
cmp ecx, ebp
je 0x631731
mov edx, dword [ecx]
call dword [edx + 0x38]
cmp eax, ebp
je 0x631731
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x280]
cmp ax, 0x80
jne 0x631731
add edi, 1
cmp dword [esp + 0x1c], ebp
jne 0x6316f0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x290]
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x13], al
mov eax, dword [ecx + 0x19c]
xor bl, bl
cmp eax, ebp
je 0x631768
mov ecx, dword [0x912eec]
push eax
call fcn.005b45a0
cmp eax, ebp
je 0x631768
mov bl, byte [eax + 0x55]
movzx edx, byte [esp + 0x13]
mov ecx, dword [0x914298]
mov eax, dword [ecx + 0xdc80]
mov ecx, dword [ecx + 0xdc7c]
imul eax, edi
lea esi, [edx + 1]
mov edx, esi
imul edx, ecx
add edx, eax
push edx
push 0
lea ecx, [esp + 0x38]
call fcn.006af6b0
mov eax, dword [0x914298]
mov eax, dword [eax + 0xdc84]
push eax
push 5
lea ecx, [esp + 0x38]
call fcn.006af6b0
mov eax, dword [0x914298]
mov ecx, dword [eax + 0xdc74]
imul esi, dword [eax + 0xdc78]
mov edx, dword [eax + 0xdc90]
imul ecx, edi
mov ebp, dword [eax + 0xdc8c]
mov dword [esp + 0x14], edx
movzx edx, bl
mov ebx, edx
imul ebx, dword [esp + 0x14]
add esi, ecx
mov ecx, dword [eax + 0xdc88]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x24]
movzx edi, byte [esi + 0x96]
sub ecx, ebx
mov ebx, edi
imul ebx, ebp
sub ecx, ebx
mov ebx, ecx
jns 0x631804
xor ebx, ebx
imul edx, dword [eax + 0xdc9c]
mov ebp, dword [eax + 0xdc98]
mov ecx, dword [eax + 0xdc94]
imul edi, ebp
sub ecx, edx
sub ecx, edi
mov dword [esp + 0x24], ecx
jns 0x63182c
mov dword [esp + 0x24], 0
mov edi, dword [esp + 0x20]
add edi, 0x38
push edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], 2
call fcn.00580db0
test al, al
je 0x631975
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 1
jne 0x631975
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.00580d50
push 1
mov ecx, esi
call fcn.00630390
mov ecx, dword [0x912e94]
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [0x912e94]
push 0xb89
push str.BSSKoHGame_noble.cpp
push 0x64
mov ebp, eax
mov eax, dword [ecx]
xor edi, edi
push edi
call dword [eax + 0x40]
cmp eax, ebx
jge 0x6318d1
mov ecx, dword [0x912e94]
mov edx, dword [ecx]
push 0xb8d
push str.BSSKoHGame_noble.cpp
push 0x64
push 0
mov edi, 1
call dword [edx + 0x40]
cmp eax, dword [esp + 0x24]
jge 0x6318d1
mov edi, 2
push 0x30
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x5c], eax
test eax, eax
mov dword [esp + 0x54], 0
je 0x631911
mov ecx, dword [esi]
mov edx, dword [0x912e94]
push 1
push edi
push ecx
mov ecx, dword [edx + 0x1a4]
push 0x3e8
push 0x1b62
push ecx
mov ecx, eax
call fcn.00419400
jmp 0x631913
xor eax, eax
mov edx, dword [0x914138]
mov ecx, dword [edx + 0xc]
mov ecx, dword [ecx + 0xa4]
mov edx, dword [ecx]
push 0xffffffffffffffff
push eax
mov dword [esp + 0x5c], 0xffffffff
call dword [edx + 0x14]
mov edi, dword [esp + 0x28]
movzx eax, word [edi + 0x20]
mov ecx, dword [0x890210]
push 0
push eax
push 0x18
call fcn.0040fed0
mov ecx, dword [esp + 0x2c]
test ecx, ecx
lea eax, [ecx + ebp]
mov dword [esi + 0x9c], ebp
mov dword [esi + 0xa0], eax
jne 0x63196a
add eax, 1
mov dword [esi + 0xa0], eax
mov cx, word [edi + 0x20]
mov word [esi + 0x98], cx
xor ebp, ebp
pop ebx
mov eax, dword [esp + 0x5c]
cmp eax, ebp
je 0x631986
mov edx, dword [esp + 0x10]
mov dword [eax], edx
mov ecx, dword [esp + 0x60]
pop edi
pop esi
cmp ecx, ebp
pop ebp
je 0x63199b
lea eax, [esp + 0x20]
push eax
call fcn.00474c40
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x48
ret 0xc