Function at 0xbff160
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0xc8176b
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0xcf16ec]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0xcf16ec]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc4]
mov ebp, dword [esp + 0xc0]
mov edi, ecx
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], cx
mov dword [esp + 0xb8], ebx
cmp edi, ebx
je 0xbff1e6
mov edx, dword [edi]
mov ecx, dword [edx + 0x28]
lea eax, [esp + 0x18]
push eax
push edi
call ecx
test eax, eax
js 0xbff1e6
mov esi, dword [esp + 0x18]
jmp 0xbff1e8
xor esi, esi
mov dword [esp + 0x14], ebx
cmp esi, 5
jne 0xbff229
mov edx, dword [edi]
mov ecx, dword [edx + 0x34]
lea eax, [esp + 0x18]
push eax
push edi
mov dword [esp + 0x20], ebx
call ecx
test eax, eax
js 0xbff236
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0xbff236
mov edx, dword [eax]
mov edx, dword [edx + 0x68]
lea ecx, [esp + 0x14]
push ecx
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0xbff236
mov eax, dword [edi]
mov edx, dword [eax + 0x68]
lea ecx, [esp + 0x14]
push ecx
push edi
call edx
cmp dword [esp + 0x14], ebx
je 0xbff296
mov eax, dword [ebp]
mov edx, dword [eax + 0x14c]
mov ecx, ebp
call edx
test al, al
jne 0xbff268
cmp esi, 3
jne 0xbff268
call fcn.00bff0d0
test al, al
jne 0xbff268
mov eax, dword [esp + 0x14]
call fcn.00bff050
test al, al
jne 0xbff28b
mov edx, dword [esp + 0x14]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0xbff271
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00ad1d20
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [esi - 3]
cmp eax, 5
ja case.0xbff2a2.6
jmp dword [eax*4 + 0xbff520]
cmp dword [esp + 0x30], ebx
je case.0xbff2a2.6
cmp dword [esp + 0x34], 8
mov edx, dword [esp + 0x20]
jae 0xbff2c2
lea edx, [esp + 0x20]
lea esi, [esp + 0x90]
call fcn.00ad1e50
mov byte [esp + 0xb8], 1
mov edx, dword [ebp]
mov edx, dword [edx + 0x11c]
mov eax, esi
push eax
mov ecx, ebp
call edx
lea ecx, [esp + 0x90]
mov esi, eax
mov byte [esp + 0xb8], bl
call fcn.00ad4e90
jmp 0xbff4c4
cmp dword [esp + 0x34], 8
mov edx, dword [esp + 0x20]
jae 0xbff30f
lea edx, [esp + 0x20]
xor eax, eax
mov word [esp + 0x74], ax
mov eax, edx
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0xbff330
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x7c]
call fcn.00ad1d20
mov byte [esp + 0xb8], 2
mov edx, dword [ebp]
mov edx, dword [edx + 0x11c]
lea eax, [esp + 0x74]
push eax
mov ecx, ebp
call edx
mov byte [esp + 0xb8], bl
cmp dword [esp + 0x88], 8
mov esi, eax
jb 0xbff384
mov eax, dword [esp + 0x74]
push eax
call fcn.00c18a36
add esp, 4
xor ecx, ecx
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], cx
jmp 0xbff4c4
cmp dword [esp + 0x34], 8
mov edx, dword [esp + 0x20]
jae 0xbff3b1
lea edx, [esp + 0x20]
xor eax, eax
mov word [esp + 0x3c], ax
mov eax, edx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0xbff3d0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x44]
call fcn.00ad1d20
mov byte [esp + 0xb8], 3
mov edx, dword [ebp]
mov edx, dword [edx + 0x12c]
lea eax, [esp + 0x3c]
push eax
mov ecx, ebp
call edx
mov byte [esp + 0xb8], bl
cmp dword [esp + 0x50], 8
mov esi, eax
jb 0xbff421
mov eax, dword [esp + 0x3c]
push eax
call fcn.00c18a36
add esp, 4
xor ecx, ecx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], cx
jmp 0xbff4c4
cmp dword [esp + 0x34], 8
mov edx, dword [esp + 0x20]
jae 0xbff448
lea edx, [esp + 0x20]
xor eax, eax
mov word [esp + 0x58], ax
mov eax, edx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0xbff460
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x60]
call fcn.00ad1d20
mov byte [esp + 0xb8], 4
mov edx, dword [ebp]
mov edx, dword [edx + 0x124]
lea eax, [esp + 0x58]
push eax
mov ecx, ebp
call edx
mov byte [esp + 0xb8], bl
cmp dword [esp + 0x6c], 8
mov esi, eax
jb 0xbff4b1
mov eax, dword [esp + 0x58]
push eax
call fcn.00c18a36
add esp, 4
xor ecx, ecx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], cx
cmp esi, ebx
je case.0xbff2a2.6
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xac]
push esi
call eax
mov dword [esp + 0xb8], 0xffffffff
cmp dword [esp + 0x34], 8
jb 0xbff4f6
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00c18a36
add esp, 4
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00c18a41
add esp, 0xa8
ret