Function at 0x412273
Capabilities:
Get os information via kuser_shared_data

Disassembly:
jl 0x40e24d
mov ecx, dword [0x7ffe026c]
xor dword [ebp - 0x28], edx
mov dword [ebp - 0x80], ecx
add ebx, dword [ebp - 0x60]
and edx, dword [ebp - 0x6c]
mov edx, 0xf
and word [ebp - 0x34], 0xb1d
cmp dword [ebp - 0x38], 0x12
jne 0x4122a1
and dword [ebp - 0x80], edx
and ebx, dword [ebp - 0x60]
lea esi, [ebp - 0x40]
add edx, 0x3bc6
sub edi, dword [ebp - 0x6c]
push esi
push dword [ebp - 0x80]
or edx, dword [ebp - 0x78]
call fcn.00403812
mov eax, dword [ebp - 0x40]
shl eax, 4
mov dword [ebp - 0x40], eax
mov ebx, 5
and edi, dword [ebp - 0x6c]
sub dword [ebp - 0x80], ebx
or ebx, ecx
add ebx, esi
mov eax, dword [ebp - 0x80]
shl eax, 2
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x48], 0x400002
jne 0x4122f6
jne 0x4122cd
push 0x419290
push dword [ebp + 0x10]
mov eax, dword [0x7ffe0270]
mov dword [ebp - 0x84], 0xd92
mov dword [ebp - 0x5c], eax
add ecx, esi
cmp dword [ebp - 0x48], 0x400002
jne 0x412321
movzx ecx, byte [eax + 0x416ca0]
mov eax, dword [ebp - 0x14]
mov edi, 0xf
cmp dword [ebp - 0x38], 0xffffff81
jne 0x412335
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
and dword [ebp - 0x5c], edi
cmp dword [ebp - 0x38], 0xffffffbb
jne 0x412351
lea eax, [ebp - 4]
push eax
mov eax, esi
and eax, 0x3ff
push 0x419402
lea eax, [ebp - 0x80]
add ecx, esi
mov ecx, 0xa8c1bf81
mov ecx, ebx
mov ecx, 0x5a7c0f7a
mov ecx, ebx
push eax
push dword [ebp - 0x5c]
cmp dword [ebp - 0x48], 0xfffffff6
jne 0x41237a
cmp esi, dword [edi + 0xc]
jb 0x412345
pop ebx
pop esi
pop edi
pop ebp
call fcn.00403853
lea edi, [ebp - 0x40]
and dword [ebp - 0x54], ebx
push edi
push dword [ebp - 0x5c]
call fcn.00403853
mov eax, dword [ebp - 0x64]
lea eax, [eax - 0xc]
push eax
push dword [ebp - 0x80]
call fcn.00403812
mov edi, dword [ebp - 0x64]
lea edi, [edi - 0x10]
push edi
push dword [ebp - 0x40]
call fcn.00403812
sub edi, esi
mov esi, dword [ebp - 0x64]
cmp dword [ebp - 0x38], 0x7e
jne 0x4123be
mov dword [esi - 0x12c], 0x11c
add dword [ebp - 0x48], 0
je 0x4123d9
lea ecx, [ecx]
push 0x6b
inc ecx
add cl, bh
and dword [ebp - 0x28], 0x276
mov ecx, dword [ebp - 0x80]
xor dword [ebp - 0x28], ecx
mov edi, dword [ebp - 0x64]
and dword [ebp - 0x60], 0xffffffd0
and dword [ebp - 0x7c], 0xcff
lea ecx, [edi - 0x12c]
mov dword [ebp - 0x80], ecx
xor edi, edx
sub ebx, dword [ebp - 0x30]
push dword [ebp - 0x80]
xor dword [ebp - 0x68], 0xf80
mov edx, dword [ebp - 0x40]
cmp dword [ebp - 0x38], 1
je 0x412425
je 0x412418
mov al, byte [ebp - 8]
push 2
mov byte [ebp + 0xc], al
mov byte [ebp + 0xd], bl
mov ebx, dword [ebp - 0x44]
add ebx, 0x634
call dword [ebx]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x40], edx
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x64]
push dword [eax - 0x18]
call fcn.00403812
xor ebx, dword [ebp - 0x34]
mov edi, 0xffff
test dword [ebp - 0x48], 0
je 0x412465
and dword [ebp - 0x3c], edi
cmp dword [ebp - 0x48], 0x62
jne 0x412477
add esp, 0xc
sar edi, 2
and edi, ebx
xor ebx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x64]
mov dword [ecx - 4], 0
mov word [ebp - 0x4c], 0xedc
or ecx, esi
and dword [ebp - 0x58], edi
add ecx, eax
mov edx, dword [ebp - 0x80]
lea eax, [edx + 0x12c4]
mov esi, dword [ebp - 0x64]
and ebx, dword [ebp - 0x28]
lea edx, [esi - 8]
mov dword [ebp - 0x80], edx
cmp dword [ebp - 0x48], 0x400002
jne 0x4124c2
cmp dword [ebp + 0x10], edi
jbe 0x412474
mov eax, dword [ebp + 0x14]
add eax, 0xb
xor edi, edx
push dword [ebp - 0x80]
and word [ebp - 0x68], 0x587
or word [ebp - 0x58], 0x2cd
or edx, edi
push 4
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x64]
xor dword [ebp - 0x78], eax
lea ecx, [edx - 4]
mov dword [ebp - 0x80], ecx
xor dword [ebp - 0x4c], edi
push dword [ebp - 0x80]
lea ecx, [esi + edi - 0x19]
add ebx, 0xe465
xor ecx, dword [ebp - 0x68]
push 0x1a
cmp dword [ebp - 0x48], 0x400002
jne 0x412518
mov dx, word [ebp - 0x18]
add esp, 0x28
mov word [esi + 0xe], dx
and word [ebp - 0x6c], 0xd9d
or dword [ebp - 0x54], 0xffffff97
push 0xffffffff
add ecx, dword [ebp - 0x2c]
and edi, dword [ebp - 0x50]
mov edx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
add esi, 0x5bc
call dword [esi]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x40], edx
and dword [ebp - 0x34], 0x59
mov edi, eax
cmp dword [ebp - 0x38], 0x400002
jne 0x412561