Function at 0xaaf160
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0xb3176b
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [str.lmjU]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [str.lmjU]
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 0xaaf1e6
mov edx, dword [edi]
mov ecx, dword [edx + 0x28]
lea eax, [esp + 0x18]
push eax
push edi
call ecx
test eax, eax
js 0xaaf1e6
mov esi, dword [esp + 0x18]
jmp 0xaaf1e8
xor esi, esi
mov dword [esp + 0x14], ebx
cmp esi, 5
jne 0xaaf229
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 0xaaf236
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0xaaf236
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 0xaaf236
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 0xaaf296
mov eax, dword [ebp]
mov edx, dword [eax + 0x14c]
mov ecx, ebp
call edx
test al, al
jne 0xaaf268
cmp esi, 3
jne 0xaaf268
call fcn.00aaf0d0
test al, al
jne 0xaaf268
mov eax, dword [esp + 0x14]
call fcn.00aaf050
test al, al
jne 0xaaf28b
mov edx, dword [esp + 0x14]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0xaaf271
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00981d20
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [esi - 3]
cmp eax, 5
ja case.0xaaf2a2.6
jmp dword [eax*4 + 0xaaf520]
cmp dword [esp + 0x30], ebx
je case.0xaaf2a2.6
cmp dword [esp + 0x34], 8
mov edx, dword [esp + 0x20]
jae 0xaaf2c2
lea edx, [esp + 0x20]
lea esi, [esp + 0x90]
call fcn.00981e50
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.00984e90
jmp 0xaaf4c4
cmp dword [esp + 0x34], 8
mov edx, dword [esp + 0x20]
jae 0xaaf30f
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 0xaaf330
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x7c]
call fcn.00981d20
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 0xaaf384
mov eax, dword [esp + 0x74]
push eax
call fcn.00ac8a36
add esp, 4
xor ecx, ecx
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], cx
jmp 0xaaf4c4
cmp dword [esp + 0x34], 8
mov edx, dword [esp + 0x20]
jae 0xaaf3b1
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 0xaaf3d0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x44]
call fcn.00981d20
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 0xaaf421
mov eax, dword [esp + 0x3c]
push eax
call fcn.00ac8a36
add esp, 4
xor ecx, ecx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], cx
jmp 0xaaf4c4
cmp dword [esp + 0x34], 8
mov edx, dword [esp + 0x20]
jae 0xaaf448
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 0xaaf460
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x60]
call fcn.00981d20
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 0xaaf4b1
mov eax, dword [esp + 0x58]
push eax
call fcn.00ac8a36
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.0xaaf2a2.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 0xaaf4f6
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00ac8a36
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.00ac8a41
add esp, 0xa8
ret