Function at 0xb16de0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0xbd6760
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0xc416ec]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0xc416ec]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
xor ebx, ebx
mov ebp, ecx
mov dword [esp + 0x18], ebx
test byte [ebp + 0xb4], 1
mov dword [esp + 0x14], ebp
je 0xb16e53
mov edi, dword [ebp + 8]
push 0xa
mov ecx, esi
call fcn.00b0ba00
mov eax, dword [edi + 0x10]
push eax
mov ecx, esi
call fcn.00b0ba00
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0xb16e4d
mov edi, dword [edi]
push edi
call fcn.00b0b880
mov dword [esp + 0x18], ebx
cmp dword [ebp + 0x10], ebx
jle 0xb16ebb
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x18]
mov ebx, dword [ecx + edx*4]
push 0x12
mov ecx, esi
call fcn.00b0ba00
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c]
mov ecx, ebx
call edx
mov edi, eax
push edi
mov ecx, esi
call fcn.00b0ba00
mov eax, dword [esi + 8]
cmp eax, edi
jl 0xb16ea3
mov ecx, dword [esi + 4]
sub eax, edi
lea edx, [ecx + edi]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
test ecx, ecx
je 0xb16ea3
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
push ecx
jmp 0xb16ea9
mov eax, dword [ebx]
mov edx, dword [eax + 0x24]
push esi
mov ecx, ebx
call edx
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [ebp + 0x10]
jl 0xb16e5c
mov eax, dword [esp + 0x14]
xor ebp, ebp
cmp dword [eax + 0x50], ebp
jle 0xb16f21
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x4c]
mov ebx, dword [edx + ebp*4]
push 0x1a
mov ecx, esi
call fcn.00b0ba00
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c]
mov ecx, ebx
call edx
mov edi, eax
push edi
mov ecx, esi
call fcn.00b0ba00
mov eax, dword [esi + 8]
cmp eax, edi
jl 0xb16f0d
mov ecx, dword [esi + 4]
sub eax, edi
lea edx, [edi + ecx]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
test ecx, ecx
je 0xb16f0d
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
push ecx
jmp 0xb16f13
mov eax, dword [ebx]
mov edx, dword [eax + 0x24]
push esi
mov ecx, ebx
call edx
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, dword [eax + 0x50]
jl 0xb16ec6
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x70], 0
mov dword [esp + 0x18], 0
jle 0xb170b8
jmp 0xb16f40
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x6c]
mov ecx, dword [esp + 0x18]
mov ebp, dword [eax + ecx*4]
mov edi, 5
cmp dword [esi + 8], edi
jl 0xb16f6b
mov eax, dword [esi + 4]
lea ecx, [eax + 1]
sub ecx, eax
mov byte [eax], 0x22
add dword [esi + 4], ecx
sub dword [esi + 8], ecx
jmp 0xb16f7f
lea edx, [esp + 0x24]
push edx
mov eax, 1
mov byte [esp + 0x28], 0x22
call fcn.00b0b880
mov eax, dword [ebp]
mov edx, dword [eax + 0x2c]
mov ecx, ebp
call edx
mov ebx, eax
cmp dword [esi + 8], edi
jl 0xb17043
mov eax, dword [esi + 4]
mov cl, bl
or cl, 0x80
mov byte [eax], cl
cmp ebx, 0x80
jb 0xb17031
mov ecx, ebx
shr ecx, 7
or cl, 0x80
mov byte [eax + 1], cl
cmp ebx, 0x4000
jb 0xb1701e
mov ecx, ebx
shr ecx, 0xe
or cl, 0x80
mov byte [eax + 2], cl
cmp ebx, 0x200000
jb 0xb1700b
mov ecx, ebx
shr ecx, 0x15
or cl, 0x80
mov byte [eax + 3], cl
cmp ebx, 0x10000000
jb 0xb16ff8
mov edx, ebx
shr edx, 0x1c
lea ecx, [eax + 5]
sub ecx, eax
mov byte [eax + 4], dl
add dword [esi + 4], ecx
sub dword [esi + 8], ecx
jmp 0xb17075
and cl, 0x7f
mov byte [eax + 3], cl
lea ecx, [eax + 4]
sub ecx, eax
add dword [esi + 4], ecx
sub dword [esi + 8], ecx
jmp 0xb17075
and cl, 0x7f
mov byte [eax + 2], cl
lea ecx, [eax + 3]
sub ecx, eax
add dword [esi + 4], ecx
sub dword [esi + 8], ecx
jmp 0xb17075
and cl, 0x7f
mov byte [eax + 1], cl
lea ecx, [eax + 2]
sub ecx, eax
add dword [esi + 4], ecx
sub dword [esi + 8], ecx
jmp 0xb17075
and cl, 0x7f
mov byte [eax], cl
lea ecx, [eax + 1]
sub ecx, eax
add dword [esi + 4], ecx
sub dword [esi + 8], ecx
jmp 0xb17075
xor edi, edi
cmp ebx, 0x7f
jbe 0xb17062
lea ebx, [ebx]
mov cl, al
or cl, 0x80
mov byte [esp + edi + 0x1c], cl
shr eax, 7
inc edi
cmp eax, 0x7f
ja 0xb17050
and al, 0x7f
lea edx, [esp + 0x1c]
mov byte [esp + edi + 0x1c], al
lea eax, [edi + 1]
push edx
call fcn.00b0b880
mov eax, dword [esi + 8]
cmp eax, ebx
jl 0xb17097
mov ecx, dword [esi + 4]
sub eax, ebx
lea edx, [ebx + ecx]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
test ecx, ecx
je 0xb17097
mov eax, dword [ebp]
mov edx, dword [eax + 0x28]
push ecx
jmp 0xb1709e
mov eax, dword [ebp]
mov edx, dword [eax + 0x24]
push esi
mov ecx, ebp
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [ecx + 0x70]
jl 0xb16f40
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x90], 0
mov dword [esp + 0x18], 0
jle 0xb1724b
mov edi, dword [esp + 0x18]
cmp dword [esi + 8], 5
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x8c]
mov ebp, dword [ecx + edi*4]
jl 0xb170fb
mov eax, dword [esi + 4]
lea ecx, [eax + 1]
sub ecx, eax
mov byte [eax], 0x2a
add dword [esi + 4], ecx
sub dword [esi + 8], ecx
jmp 0xb1710f
lea edx, [esp + 0x24]
push edx
mov eax, 1
mov byte [esp + 0x28], 0x2a
call fcn.00b0b880
mov eax, dword [ebp]
mov edx, dword [eax + 0x2c]
mov ecx, ebp
call edx
cmp dword [esi + 8], 5
mov ebx, eax
jl 0xb171d7
mov eax, dword [esi + 4]
mov cl, bl
or cl, 0x80
mov byte [eax], cl
cmp ebx, 0x80
jb 0xb171c5
mov ecx, ebx
shr ecx, 7
or cl, 0x80
mov byte [eax + 1], cl
cmp ebx, 0x4000
jb 0xb171b2
mov ecx, ebx
shr ecx, 0xe
or cl, 0x80
mov byte [eax + 2], cl
cmp ebx, 0x200000
jb 0xb1719f
mov ecx, ebx
shr ecx, 0x15
or cl, 0x80
mov byte [eax + 3], cl
cmp ebx, 0x10000000
jb 0xb1718c
mov edx, ebx
shr edx, 0x1c
lea ecx, [eax + 5]
sub ecx, eax
mov byte [eax + 4], dl
add dword [esi + 4], ecx
sub dword [esi + 8], ecx
jmp 0xb17209
and cl, 0x7f
mov byte [eax + 3], cl
lea ecx, [eax + 4]
sub ecx, eax
add dword [esi + 4], ecx
sub dword [esi + 8], ecx
jmp 0xb17209
and cl, 0x7f
mov byte [eax + 2], cl
lea ecx, [eax + 3]
sub ecx, eax
add dword [esi + 4], ecx
sub dword [esi + 8], ecx
jmp 0xb17209
and cl, 0x7f
mov byte [eax + 1], cl
lea ecx, [eax + 2]
sub ecx, eax
add dword [esi + 4], ecx
sub dword [esi + 8], ecx
jmp 0xb17209
and cl, 0x7f
mov byte [eax], cl
lea ecx, [eax + 1]
sub ecx, eax
add dword [esi + 4], ecx
sub dword [esi + 8], ecx
jmp 0xb17209
xor edi, edi
cmp ebx, 0x7f
jbe 0xb171f2
mov edi, edi
mov cl, al
or cl, 0x80
mov byte [esp + edi + 0x1c], cl
shr eax, 7
inc edi
cmp eax, 0x7f
ja 0xb171e0
and al, 0x7f
lea edx, [esp + 0x1c]
mov byte [esp + edi + 0x1c], al
lea eax, [edi + 1]
push edx
call fcn.00b0b880
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 8]
cmp eax, ebx
jl 0xb1722b
mov ecx, dword [esi + 4]
sub eax, ebx
lea edx, [ebx + ecx]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
test ecx, ecx
je 0xb1722b
mov eax, dword [ebp]
mov edx, dword [eax + 0x28]
push ecx
jmp 0xb17232
mov eax, dword [ebp]
mov edx, dword [eax + 0x24]
push esi
mov ecx, ebp
call edx
mov eax, dword [esp + 0x14]
inc edi
mov dword [esp + 0x18], edi
cmp edi, dword [eax + 0x90]
jl 0xb170d5
mov ecx, dword [esp + 0x14]
xor ebp, ebp
cmp dword [ecx + 0x30], ebp
jle 0xb172df
lea ebx, [ebx]
cmp dword [esi + 8], 5
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x2c]
mov ebx, dword [eax + ebp*4]
jl 0xb17283
mov eax, dword [esi + 4]
lea ecx, [eax + 1]
sub ecx, eax
mov byte [eax], 0x32
add dword [esi + 4], ecx
sub dword [esi + 8], ecx
jmp 0xb17297
lea ecx, [esp + 0x24]
push ecx
mov eax, 1
mov byte [esp + 0x28], 0x32
call fcn.00b0b880
mov edx, dword [ebx]
mov eax, dword [edx + 0x2c]
mov ecx, ebx
call eax
mov edi, eax
push edi
mov ecx, esi
call fcn.00b0ba00
mov eax, dword [esi + 8]
cmp eax, edi
jl 0xb172cb
mov ecx, dword [esi + 4]
sub eax, edi
lea edx, [edi + ecx]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
test ecx, ecx
je 0xb172cb
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
push ecx
jmp 0xb172d1
mov eax, dword [ebx]
mov edx, dword [eax + 0x24]
push esi
mov ecx, ebx
call edx
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, dword [eax + 0x30]
jl 0xb17260
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 0xb4]
shr ecx, 6
test cl, 1
je 0xb17313
mov eax, dword [edi + 0xac]
test eax, eax
jne 0xb17307
mov edx, dword [0xc5d9f8]
mov eax, dword [edx + 0xac]
push 7
mov ebx, eax
call fcn.00afe350
add esp, 4
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
test eax, eax
je 0xb1732e
mov edx, dword [eax]
cmp edx, dword [eax + 4]
je 0xb1732e
push esi
push ecx
call fcn.00b05560
add esp, 8
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00b68a41
add esp, 0x28
ret 4