Function at 0xa51060
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xabbb28
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0xae6d50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push 0x11c
lea eax, [ebp - 0x148]
push esi
push eax
mov dword [ebp - 0x14c], esi
mov dword [edi + 0x344], esi
mov dword [edi + 0x34c], esi
mov dword [edi + 0x358], esi
call fcn.00aa4850
add esp, 0xc
lea ecx, [ebp - 0x148]
push ecx
mov dword [ebp - 0x148], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [ebp - 0x174]
push edx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x144]
mov edx, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x140]
mov dword [edi + 0x32c], eax
mov eax, dword [ebp - 0x138]
mov dword [edi + 0x338], eax
lea eax, [ebp - 0x134]
mov dword [edi + 0x334], edx
mov dword [edi + 0x330], ecx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0xa51120
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x134]
push ecx
lea ecx, [edi + 0x310]
call fcn.00a51740
mov ax, word [ebp - 0x32]
mov dx, word [ebp - 0x34]
mov cx, word [ebp - 0x30]
mov word [edi + 0x33e], ax
mov al, byte [ebp - 0x2d]
mov byte [edi + 0x343], al
movzx eax, word [ebp - 0x174]
mov word [edi + 0x33c], dx
mov dl, byte [ebp - 0x2e]
mov word [edi + 0x340], cx
mov byte [edi + 0x342], dl
cmp eax, 9
jg 0xa511e8
je 0xa511ca
cmp eax, esi
je 0xa511b0
cmp eax, 6
jne 0xa5120b
lea ecx, [edi + 0x2bc]
push ecx
mov edx, 0xac2b8c
call fcn.00a51530
mov eax, 1
mov dword [edi + 0x34c], eax
mov dword [ebp - 0x14c], eax
jmp 0xa5120b
push 3
push 0xac2b9c
lea ecx, [edi + 0x2bc]
call fcn.00a51740
mov dword [edi + 0x34c], esi
jmp 0xa5120b
push 3
push 0xac2b84
lea ecx, [edi + 0x2bc]
call fcn.00a51740
mov dword [edi + 0x34c], 1
jmp 0xa5120b
cmp eax, 0xffff
jne 0xa5120b
push 7
push 0xac2ba4
lea ecx, [edi + 0x2bc]
call fcn.00a51740
mov dword [ebp - 0x14c], 1
mov ecx, 0xac2bb4
mov ebx, 0xac2bd0
mov edx, 0x80000002
lea esi, [ebp - 0x2c]
call fcn.00a69920
lea ecx, [edi + 0x1c]
push eax
mov dword [ebp - 4], 0
call fcn.00a51560
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0xa5124b
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00a9e60d
add esp, 4
lea eax, [ebp - 0x150]
push eax
push 0x20019
push 0
push 0xac2c30
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x150]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 1
test esi, esi
jne 0xa51287
mov dword [edi + 0x358], ebx
mov eax, dword [ebp - 0x144]
cmp eax, 5
jne 0xa51394
mov eax, dword [ebp - 0x140]
test eax, eax
jne 0xa512cf
push 0xc
push 0xac2c94
mov ecx, edi
call fcn.00a51740
push 0x3b
push 0xac2cb0
lea ecx, [edi + 0x2d8]
mov dword [edi + 0x344], 0
call fcn.00a51740
jmp 0xa51470
cmp eax, ebx
jne 0xa512ec
push 0xa
push 0xac2d28
mov ecx, edi
call fcn.00a51740
mov dword [edi + 0x344], ebx
jmp 0xa51470
cmp eax, 2
jne 0xa51458
cmp byte [ebp - 0x2e], bl
jne 0xa5131a
cmp word [ebp - 0x174], 9
jne 0xa5131a
push edi
mov edx, 0xac2d40
call fcn.00a51530
mov dword [edi + 0x344], ebx
jmp 0xa51470
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call esi
test eax, eax
jne 0xa5133e
push edi
mov edx, 0xac2d78
call fcn.00a51530
mov dword [edi + 0x344], ebx
jmp 0xa51470
test dword [ebp - 0x30], 0x8000
je 0xa51372
push edi
mov edx, 0xac2da0
call fcn.00a51530
lea edx, [edi + 0x2d8]
push edx
mov edx, 0xac2cb0
mov dword [edi + 0x344], 0
call fcn.00a51530
jmp 0xa51470
push 0x59
call esi
test eax, eax
je 0xa51470
push edi
mov edx, 0xac2dc8
call fcn.00a51530
mov dword [edi + 0x344], ebx
jmp 0xa51470
cmp eax, 6
jne 0xa514c3
mov eax, dword [ebp - 0x140]
test eax, eax
jne 0xa513d7
push edi
cmp byte [ebp - 0x2e], bl
jne 0xa513c2
mov edx, 0xac2df8
call fcn.00a51530
mov dword [edi + 0x344], ebx
jmp 0xa51470
mov edx, 0xac2e14
call fcn.00a51530
mov dword [edi + 0x344], ebx
jmp 0xa51470
cmp eax, ebx
jne 0xa51405
push edi
cmp byte [ebp - 0x2e], bl
jne 0xa513f3
mov edx, 0xac2e3c
call fcn.00a51530
mov dword [edi + 0x344], ebx
jmp 0xa51470
mov edx, 0xac2e50
call fcn.00a51530
mov dword [edi + 0x344], ebx
jmp 0xa51470
cmp eax, 2
jne 0xa51453
cmp byte [ebp - 0x2e], bl
jne 0xa514b0
cmp dword [edi + 0x30], 8
lea eax, [edi + 0x1c]
jb 0xa5141e
mov eax, dword [eax]
push 0xac2e80
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
push edi
test eax, eax
je 0xa51441
mov edx, 0xac2e80
call fcn.00a51530
mov dword [edi + 0x344], ebx
jmp 0xa51470
mov edx, 0xac2e98
call fcn.00a51530
mov dword [edi + 0x344], ebx
jmp 0xa51470
cmp eax, 3
je 0xa5140a
push 0xf
push 0xac2f10
mov ecx, edi
call fcn.00a51740
mov dword [edi + 0x344], 0
cmp dword [edi + 0x2c], 0
jne 0xa51483
push 0xffffffffffffffff
push 0
push edi
lea ecx, [edi + 0x1c]
call fcn.00a515e0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [edi + 0x348], eax
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00a9e488
mov esp, ebp
pop ebp
ret
push edi
mov edx, 0xac2eac
call fcn.00a51530
mov dword [edi + 0x344], ebx
jmp 0xa51470
cmp eax, 0xa
jne 0xa51458
cmp dword [ebp - 0x140], 0
jne 0xa51458
push edi
cmp byte [ebp - 0x2e], bl
jne 0xa514e9
mov edx, 0xac2ed0
call fcn.00a51530
mov dword [edi + 0x344], ebx
jmp 0xa51470
mov edx, 0xac2ee8
call fcn.00a51530
jmp 0xa51466