Function at 0x52038f
Capabilities:
Check os version

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x68c008
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x40]
mov esi, ecx
push 0x2000
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov edx, dword [esi + 0x88]
lea ebp, [esi + 0x84]
sar eax, 8
push eax
mov eax, dword [ebp]
sar ecx, 8
sar edx, 8
push ecx
push edx
sar eax, 8
push eax
push 0x6cb0f8
call fcn.0051c3a3
mov eax, dword [0x6cb108]
xor ebx, ebx
add esp, 0x18
cmp eax, ebx
jne 0x520447
mov ecx, dword [edi]
mov dword [esi + 0xa4], ecx
mov edx, dword [edi + 4]
mov cl, byte [esp + 0x44]
mov dword [esi + 0xa8], edx
mov al, byte [esi + 0x10e]
mov byte [esi + 0x10c], bl
and al, 0xc0
mov dword [esi + 0xfa], ebx
or al, 0x40
mov dword [esi + 0xfe], ebx
mov dword [esi + 0x102], ebx
mov dword [esi + 0x106], ebx
mov word [esi + 0x10a], bx
mov byte [esi + 0x10e], al
mov byte [esi + 0x10d], cl
jmp 0x520751
mov edx, dword [edi]
mov dword [esi + 0xa4], edx
mov eax, dword [edi + 4]
mov dword [esi + 0xa8], eax
mov cl, byte [0x6cb108]
mov byte [esi + 0x10c], cl
mov ecx, dword [0x6cb108]
cmp cl, 5
jae 0x520477
and ecx, 0xff
jmp 0x52047c
mov ecx, 5
mov al, byte [esi + 0x10e]
mov dl, al
xor dl, cl
and dl, 7
xor dl, al
mov byte [esi + 0x10e], dl
mov eax, dword [0x6cb10c]
mov ecx, dword [0x6cb110]
shl eax, 8
shl ecx, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x20]
push ebp
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], ebx
call fcn.0051d2c4
mov edi, eax
mov eax, dword [edi]
cdq
mov ecx, eax
mov eax, dword [edi + 4]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
mov edx, ecx
cmp ecx, eax
jle 0x5204d8
mov edx, eax
sar edx, 1
sub eax, edx
xor ebp, ebp
add eax, ecx
sar eax, 0xc
mov dword [esi + 0xfa], eax
mov eax, dword [0x6cb108]
dec eax
test eax, eax
jle 0x520587
mov edi, 0x6cb110
mov ecx, dword [edi - 4]
mov edx, dword [edi]
shl ecx, 8
shl edx, 8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
shl eax, 8
shl ecx, 8
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 2
call fcn.0051d2c4
mov ebx, eax
mov eax, dword [ebx]
cdq
mov ecx, eax
mov eax, dword [ebx + 4]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
mov edx, ecx
cmp ecx, eax
jle 0x520556
mov edx, eax
mov ebx, dword [esi + 0xfa]
add edi, 8
sar edx, 1
sub ecx, edx
mov byte [esp + 0x38], 0
add ecx, eax
sar ecx, 0xc
add ebx, ecx
inc ebp
mov dword [esi + 0xfa], ebx
mov ecx, dword [0x6cb108]
dec ecx
cmp ebp, ecx
jl 0x5204fc
xor ebx, ebx
mov al, byte [esi + 0x10e]
xor ebp, ebp
test al, 7
jbe 0x5205c2
mov edx, 0x6cb110
lea edi, [esi + 0xb4]
mov eax, dword [edx - 4]
mov ecx, dword [edx]
shl eax, 8
shl ecx, 8
mov dword [edi], eax
mov dword [edi + 4], ecx
mov al, byte [esi + 0x10e]
inc ebp
and eax, 7
add edx, 8
add edi, 8
cmp ebp, eax
jl 0x52059e
mov cl, byte [esi + 0x10e]
mov dword [esi + 0xfe], ebx
and ecx, 7
dec ecx
test ecx, ecx
jle 0x520672
lea ebp, [esi + 0xe6]
lea edi, [esi + 0xc0]
mov edx, dword [edi - 0xc]
mov eax, dword [edi - 8]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov ecx, dword [edi - 4]
mov edx, dword [edi]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x20]
lea ecx, [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 4
call fcn.0051d2c4
mov dword [esp + 0x40], eax
mov eax, dword [eax]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 4]
cdq
xor eax, edx
sub eax, edx
mov edx, ecx
cmp ecx, eax
jle 0x52063a
mov edx, eax
sar edx, 1
sub ecx, edx
add edi, 8
add ecx, eax
add ebp, 4
sar ecx, 0xc
mov dword [ebp - 4], ecx
mov edx, dword [esi + 0xfe]
mov al, byte [esi + 0x10e]
add edx, ecx
and eax, 7
inc ebx
dec eax
mov dword [esi + 0xfe], edx
cmp ebx, eax
mov byte [esp + 0x38], 0
jl 0x5205e6
mov bl, byte [esi + 0x10e]
xor ecx, ecx
mov cl, byte [esi + 0x10c]
and ebx, 7
xor eax, eax
dec ebx
dec ecx
mov dword [esi + 0x102], eax
cmp ebx, ecx
jge 0x52072a
lea edi, [ebx*8 + 0x6cb110]
mov edx, dword [edi - 4]
mov eax, dword [edi]
shl edx, 8
shl eax, 8
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
shl ecx, 8
shl edx, 8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x20]
lea ecx, [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 6
call fcn.0051d2c4
mov ebp, eax
mov eax, dword [ebp]
cdq
mov ecx, eax
mov eax, dword [ebp + 4]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
mov edx, ecx
cmp ecx, eax
jle 0x5206f7
mov edx, eax
sar edx, 1
sub eax, edx
xor edx, edx
mov dl, byte [esi + 0x10c]
add eax, ecx
mov ecx, dword [esi + 0x102]
add edi, 8
sar eax, 0xc
add ecx, eax
inc ebx
dec edx
mov dword [esi + 0x102], ecx
cmp ebx, edx
mov byte [esp + 0x38], 0
jl 0x52069c
xor eax, eax
mov dword [esi + 0x106], eax
mov word [esi + 0x10a], ax
mov al, byte [esi + 0x10e]
and al, 0x87
xor ebx, ebx
mov byte [esi + 0x10e], al
mov al, byte [esp + 0x44]
mov byte [esi + 0x10d], al
mov ecx, dword [0x6cb108]
xor eax, eax
cmp ecx, ebx
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
setne al
pop ebx
add esp, 0x2c
ret 8