Function at 0x6bf430
Capabilities:
Check os version

Disassembly:
push edi
pushfd
mov edi, dword [0x15607cc]
sub edi, dword [0x4464c1]
popfd
xchg dword [esp], edi
jmp 0x6bf437
push 0xffffffffffffffff
jmp 0x405895
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.006d5f10
xor ebx, ebx
mov dword [esi], 0x871360
mov dword [esp + 0x28], ebx
mov dword [esi + 0x60c], ebx
mov dword [esi + 0x610], ebx
lea edi, [esi + 0x640]
mov ecx, edi
mov byte [esp + 0x28], 1
call fcn.006d0b10
mov ecx, dword [esp + 0x30]
mov ebp, dword [ecx*4 + 0xa9b0c8]
movsx edx, word [ebp + 0x4a]
cmp dword [ebp + 0x3c], 9
mov byte [esp + 0x28], 2
mov dword [esp + 0x34], edx
jne 0x6bf4c7
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x38]
shl eax, 5
mov eax, dword [eax + 0xb5d4bc]
cmp eax, 2
mov dword [edi], eax
jl 0x6bf4c1
cmp eax, 6
jle 0x6bf4c7
mov dword [edi], 2
mov ecx, dword [esp + 0x30]
mov eax, 9
push ecx
mov ecx, esi
mov dword [esi + 0x594], eax
mov dword [esi + 0x590], eax
mov dword [esi + 0x7bc], ebx
mov word [esi + 0x7a8], bx
mov byte [esi + 0x614], bl
call fcn.006d6a40
lea edx, [esi + 0x5a0]
mov edi, edx
xor eax, eax
mov ecx, 0xa
push edx
rep stosd dword es:[edi], eax
mov edx, dword [esi + 0x18]
push edx
call fcn.004c5440
mov edx, dword [esp + 0x3c]
movzx eax, dl
mov ecx, eax
imul ecx, ecx, 0xe0
shl eax, 6
lea ecx, [ecx + 0xc2b9dc]
add eax, 0xc3491c
mov dword [esi + 0x384], ecx
add esp, 8
mov dword [esi + 0x63c], eax
mov eax, dword [ecx + 0xd0]
push edx
mov ecx, 0xc2b9c8
mov dword [esi + 0x38c], eax
call fcn.006f52d0
mov ecx, dword [0x871288]
push 1
lea edx, [esi + 0x437]
push edx
mov dword [esi + 0x388], eax
mov dword [esi + 0x740], ecx
lea eax, [esi + 0x436]
push eax
lea ecx, [esi + 0x435]
push ecx
lea edx, [esi + 0x434]
push edx
mov ecx, ebp
call fcn.004c8500
mov dword [esi + 0x798], ebx
mov dword [esi + 0x79c], ebx
mov dword [esi + 0x7a0], ebx
fld dword [ebp + 0x58]
fmul dword [0x8595ec]
mov ecx, dword [esi + 0x384]
mov byte [esi + 0x7b4], bl
fptan
mov byte [esi + 0x7b5], bl
fstp st(0)
fstp dword [esi + 0x7a4]
mov eax, dword [ecx + 4]
mov dword [esi + 0x8c], eax
mov edx, dword [ecx + 0xc]
mov dword [esi + 0x90], edx
lea eax, [ecx + 0x14]
mov edi, dword [eax]
lea edx, [esi + 0xa4]
mov dword [edx], edi
mov edi, dword [eax + 4]
mov dword [edx + 4], edi
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
mov dword [esi + 0xac], 0x3dcccccd
fld dword [ecx + 0x10]
fcomp dword [0x858c58]
fnstsw ax
test ah, 0x41
jne 0x6bf61f
fld dword [ecx + 0x10]
fdiv dword [0x871280]
fmul dword [0x858b8c]
fstp dword [esi + 0x98]
jmp 0x6bf628
mov edx, dword [ecx + 0x10]
mov dword [esi + 0x98], edx
mov dword [esi + 0x9c], 0x3d4ccccd
mov eax, dword [ecx + 0x24]
mov dword [esi + 0xa0], eax
mov dword [esi + 0x494], ebx
mov dword [esi + 0x49c], ebx
mov dword [esi + 0x4a0], ebx
mov dword [esi + 0x800], ebx
mov dword [esi + 0x4cc], ebx
mov dword [esi + 0x808], ebx
mov dword [esi + 0x7ac], 0x3f800000
mov dword [esi + 0x7b0], ebx
mov dword [esi + 0x7b8], ebx
lea ecx, [esi + 0x74e]
lea eax, [esi + 0x758]
mov edx, 2
jmp 0x6bf690
mov dword [eax - 8], ebx
mov dword [eax], ebx
mov dword [eax + 0xb4], ebx
mov dword [eax - 0x14], ebx
add eax, 4
mov byte [ecx - 2], bl
mov byte [ecx], bl
mov byte [ecx - 0xf2], bl
inc ecx
dec edx
jne 0x6bf690
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
lea eax, [esi + 0x710]
lea ecx, [esi + 0x7d0]
mov dword [esp + 0x30], 4
lea esp, [esp]
mov edi, dword [esp + 0x14]
mov edx, ecx
mov dword [edx], edi
mov edi, dword [esp + 0x18]
mov dword [edx + 4], edi
mov edi, dword [esp + 0x1c]
mov dword [edx + 8], edi
mov edi, dword [esp + 0x30]
mov edx, 0x3f800000
mov dword [eax + 0xb0], ebx
mov dword [eax], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x20], ebx
add eax, 4
add ecx, 0xc
dec edi
mov dword [esp + 0x30], edi
jne 0x6bf6e0
mov byte [esi + 0x804], bl
mov byte [esi + 0x805], bl
mov byte [esi + 0x806], bl
mov dword [esi + 0x790], ebx
mov dword [esi + 0x794], edx
mov eax, dword [ebp + 0x14]
mov edi, dword [eax + 0x2c]
cmp dword [edi + 0x10], ebx
mov ebp, 0x47c34fff
jne 0x6bf760
push ebx
push pe_nt_image_headers32
mov byte [edi + 6], 4
call fcn.0072f420
mov dword [edi + 0x10], eax
add esp, 8
mov dword [eax + 0x28], ebp
mov ecx, dword [edi + 0x10]
mov dword [ecx + 8], ebp
mov ecx, esi
call fcn.006b89b0
mov al, byte [esi + 0x3db]
mov ecx, dword [esi + 0x14]
and al, 0xfb
mov byte [esi + 0x3ba], bl
mov byte [esi + 0x3bb], bl
mov edx, dword [0xb7cb84]
mov byte [esi + 0x3db], al
mov al, byte [esi + 0x36]
and al, 7
or al, 0x10
mov byte [esi + 0x36], al
mov al, byte [esi + 0x429]
and al, 0xf0
push ecx
lea ecx, [esi + 0x5cc]
mov dword [esi + 0x3ac], edx
mov byte [esi + 0x484], bl
mov byte [esi + 0x429], al
mov byte [esi + 0x5c8], bl
call fcn.0059bbc0
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
lea edx, [esi + 0x630]
mov dword [edx], eax
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x18]
mov dword [edx + 4], ecx
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
push esi
lea ecx, [esi + 0x138]
mov dword [edx + 8], eax
call fcn.004f7670
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8