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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
lea edi, [ebp - 0x144]
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4aa35a
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [edi], 0x11c
push edi
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x4a9f6f
mov dword [edi], 0x114
push edi
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x4a9f6f
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x4aa361
cmp dword [edi + 0x10], 2
je 0x4a9f7f
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x4aa361
test ebx, ebx
je 0x4a9f8d
movzx eax, word [edi + 0x118]
mov word [ebx], ax
test esi, esi
je 0x4a9f9a
movzx eax, byte [edi + 0x11a]
mov byte [esi], al
cmp dword [0x590860], 0
je 0x4a9fb5
mov eax, dword [0x590860]
mov dword [ebp - 4], eax
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x4aa361
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.0040288c
push 0x4aa36c
push 0x4aa394
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.00401c48
test eax, eax
je 0x4a9fe3
lea edx, [ebp - 0x28]
push edx
call eax
jmp 0x4a9fec
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
cmp dword [edi + 4], 5
jne 0x4aa001
cmp dword [edi + 8], 1
jne 0x4aa001
cmp byte [edi + 0x11a], 1
je 0x4aa016
cmp dword [edi + 4], 5
jne 0x4aa055
cmp dword [edi + 8], 2
jne 0x4aa055
cmp byte [edi + 0x11a], 1
jne 0x4aa055
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4aa031
sub ax, 5
je 0x4aa049
sub ax, 3
je 0x4aa03d
jmp 0x4aa344
mov dword [ebp - 4], 1
jmp 0x4aa344
mov dword [ebp - 4], 2
jmp 0x4aa344
mov dword [ebp - 4], 4
jmp 0x4aa344
cmp dword [edi + 4], 6
jne 0x4aa0a9
cmp dword [edi + 8], 0
jne 0x4aa0a9
cmp byte [edi + 0x11a], 1
jne 0x4aa0a9
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4aa085
sub ax, 5
je 0x4aa09d
sub ax, 3
je 0x4aa091
jmp 0x4aa344
mov dword [ebp - 4], 8
jmp 0x4aa344
mov dword [ebp - 4], 0x10
jmp 0x4aa344
mov dword [ebp - 4], 0x20
jmp 0x4aa344
cmp dword [edi + 4], 6
jne 0x4aa0fd
cmp dword [edi + 8], 1
jne 0x4aa0fd
cmp byte [edi + 0x11a], 1
jne 0x4aa0fd
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4aa0d9
sub ax, 5
je 0x4aa0f1
sub ax, 3
je 0x4aa0e5
jmp 0x4aa344
mov dword [ebp - 4], 0x40
jmp 0x4aa344
mov dword [ebp - 4], 0x80
jmp 0x4aa344
mov dword [ebp - 4], pe_nt_image_headers32
jmp 0x4aa344
cmp dword [edi + 4], 6
jne 0x4aa151
cmp dword [edi + 8], 2
jne 0x4aa151
cmp byte [edi + 0x11a], 1
jne 0x4aa151
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4aa12d
sub ax, 5
je 0x4aa145
sub ax, 3
je 0x4aa139
jmp 0x4aa344
mov dword [ebp - 4], 0x200
jmp 0x4aa344
mov dword [ebp - 4], 0x400
jmp 0x4aa344
mov dword [ebp - 4], 0x800
jmp 0x4aa344
cmp dword [edi + 4], 6
jne 0x4aa1a5
cmp dword [edi + 8], 3
jne 0x4aa1a5
cmp byte [edi + 0x11a], 1
jne 0x4aa1a5
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4aa181
sub ax, 5
je 0x4aa199
sub ax, 3
je 0x4aa18d
jmp 0x4aa344
mov dword [ebp - 4], 0x200000
jmp 0x4aa344
mov dword [ebp - 4], 0x400000
jmp 0x4aa344
mov dword [ebp - 4], 0x800000
jmp 0x4aa344
cmp dword [edi + 4], 6
jne 0x4aa1f9
cmp dword [edi + 8], 4
jne 0x4aa1f9
cmp byte [edi + 0x11a], 1
jne 0x4aa1f9
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4aa1d5
sub ax, 5
je 0x4aa1ed
sub ax, 3
je 0x4aa1e1
jmp 0x4aa344
mov dword [ebp - 4], 0x1000000
jmp 0x4aa344
mov dword [ebp - 4], 0x2000000
jmp 0x4aa344
mov dword [ebp - 4], 0x4000000
jmp 0x4aa344
cmp dword [edi + 4], 0xa
jne 0x4aa24d
cmp dword [edi + 8], 0
jne 0x4aa24d
cmp byte [edi + 0x11a], 1
jne 0x4aa24d
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4aa229
sub ax, 5
je 0x4aa241
sub ax, 3
je 0x4aa235
jmp 0x4aa344
mov dword [ebp - 4], 0x1000000
jmp 0x4aa344
mov dword [ebp - 4], 0x2000000
jmp 0x4aa344
mov dword [ebp - 4], 0x4000000
jmp 0x4aa344
cmp dword [edi + 4], 5
jne 0x4aa2a1
cmp dword [edi + 8], 2
jne 0x4aa2a1
cmp byte [edi + 0x11a], 1
je 0x4aa2a1
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4aa27d
sub ax, 5
je 0x4aa295
sub ax, 3
je 0x4aa289
jmp 0x4aa344
mov dword [ebp - 4], 0x1000
jmp 0x4aa344
mov dword [ebp - 4], 0x2000
jmp 0x4aa344
mov dword [ebp - 4], 0x4000
jmp 0x4aa344
cmp dword [edi + 4], 6
jne 0x4aa2b6
cmp dword [edi + 8], 0
jne 0x4aa2b6
cmp byte [edi + 0x11a], 1
jne 0x4aa2cb
cmp dword [edi + 4], 6
jne 0x4aa2fe
cmp dword [edi + 8], 1
jne 0x4aa2fe
cmp byte [edi + 0x11a], 1
je 0x4aa2fe
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4aa2e3
sub ax, 5
je 0x4aa2f5
sub ax, 3
je 0x4aa2ec
jmp 0x4aa344
mov dword [ebp - 4], 0x8000
jmp 0x4aa344
mov dword [ebp - 4], 0x10000
jmp 0x4aa344
mov dword [ebp - 4], 0x20000
jmp 0x4aa344
cmp dword [edi + 4], 6
jne 0x4aa344
cmp dword [edi + 8], 2
jne 0x4aa344
cmp byte [edi + 0x11a], 1
je 0x4aa344
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4aa32b
sub ax, 5
je 0x4aa33d
sub ax, 3
je 0x4aa334
jmp 0x4aa344
mov dword [ebp - 4], 0x40000
jmp 0x4aa344
mov dword [ebp - 4], 0x80000
jmp 0x4aa344
mov dword [ebp - 4], 0x100000
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa361
mov eax, dword [ebp - 4]
mov dword [0x590860], eax
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret