Function at 0x10085c80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f7f64
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x10142008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, 0x10146148
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x144], eax
call fcn.100e3445
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x12c]
push 0x110
push 0
push eax
mov dword [ebp - 0x130], 0x114
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10085d3f
cmp dword [ebp - 0x12c], 6
jb 0x10085d3f
lea eax, [ebp - 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.10085f70
jmp 0x10085d47
lea ecx, [ebp - 0x1c]
call fcn.10086760
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jne 0x10085d56
xor bl, bl
jmp 0x10085ece
mov ecx, dword [ebp - 0x18]
mov eax, 0x4ec4ec4f
sub ecx, dword [ebp - 0x1c]
imul ecx
mov dword [ebp - 0x140], 0
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10085ecc
xor ecx, ecx
mov dword [ebp - 0x134], ecx
mov esi, dword [ebx]
cmp esi, dword [ebx + 4]
je 0x10085e91
lea edi, [esi + 0x4c]
mov eax, dword [ebp - 0x1c]
add eax, ecx
mov dword [ebp - 0x138], eax
lea ebx, [eax + 0x38]
mov ecx, ebx
call fcn.100857a0
test al, al
je 0x10085e44
mov eax, dword [ebx + 0x10]
cmp eax, dword [edi - 4]
jne 0x10085e50
cmp dword [edi], 8
lea edx, [edi - 0x14]
jb 0x10085dc6
mov edx, dword [edx]
cmp dword [ebx + 0x14], 8
jb 0x10085dce
mov ebx, dword [ebx]
mov ecx, ebx
call fcn.1009ac00
test al, al
je 0x10085e50
mov ecx, dword [ebp - 0x138]
add ecx, 0x50
mov eax, dword [ecx + 0x10]
cmp eax, dword [edi + 0x14]
jne 0x10085e50
cmp dword [edi + 0x18], 8
lea edx, [edi + 4]
jb 0x10085df5
mov edx, dword [edx]
cmp dword [ecx + 0x14], 8
jb 0x10085dfd
mov ecx, dword [ecx]
call fcn.1009ac00
test al, al
je 0x10085e50
mov ebx, dword [ebp - 0x144]
mov edi, dword [ebx + 4]
cmp dword [ebx + 8], edi
je 0x10085e6d
mov eax, dword [esi]
lea ecx, [edi + 4]
mov dword [edi], eax
lea eax, [esi + 4]
push eax
mov dword [ebp - 0x138], edi
call fcn.1001af80
mov byte [ebp - 4], 1
lea eax, [esi + 0x1c]
push eax
lea ecx, [edi + 0x1c]
call fcn.1001af80
mov byte [ebp - 4], 0
add dword [ebx + 4], 0x34
jmp 0x10085e76
mov eax, dword [ebp - 0x138]
mov eax, dword [eax]
cmp eax, dword [esi]
je 0x10085e06
mov ebx, dword [ebp - 0x13c]
add esi, 0x68
mov ecx, dword [ebp - 0x134]
add edi, 0x68
cmp esi, dword [ebx + 4]
jne 0x10085d93
jmp 0x10085e8b
push esi
push edi
mov ecx, ebx
call fcn.10088540
mov ebx, dword [ebp - 0x13c]
lea eax, [ebp - 0x148]
push esi
push eax
mov ecx, ebx
call fcn.10086bc0
mov ecx, dword [ebp - 0x134]
mov esi, dword [ebp - 0x140]
add ecx, 0x68
mov dword [ebp - 0x134], ecx
mov eax, 0x4ec4ec4f
mov ecx, dword [ebp - 0x18]
inc esi
sub ecx, dword [ebp - 0x1c]
imul ecx
mov ecx, dword [ebp - 0x134]
sar edx, 5
mov eax, edx
mov dword [ebp - 0x140], esi
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x10085d85
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x10085f43
mov edx, dword [ebp - 0x18]
push ecx
call fcn.10088780
mov ecx, dword [ebp - 0x14]
mov eax, 0x4ec4ec4f
mov esi, dword [ebp - 0x1c]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x68
mov eax, esi
cmp ecx, 0x1000
jb 0x10085f24
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10085f24
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.100e0d65
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100e0d24
mov esp, ebp
pop ebp
ret 8