Function at 0x4a9c70
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 0x4aa0ae
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [edi], 0x11c
push edi
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x4a9cc3
mov dword [edi], 0x114
push edi
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x4a9cc3
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x4aa0b5
cmp dword [edi + 0x10], 2
je 0x4a9cd3
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x4aa0b5
test ebx, ebx
je 0x4a9ce1
movzx eax, word [edi + 0x118]
mov word [ebx], ax
test esi, esi
je 0x4a9cee
movzx eax, byte [edi + 0x11a]
mov byte [esi], al
cmp dword [0x599860], 0
je 0x4a9d09
mov eax, dword [0x599860]
mov dword [ebp - 4], eax
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x4aa0b5
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.004028a4
push 0x4aa0c0
push 0x4aa0e8
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.00401c60
test eax, eax
je 0x4a9d37
lea edx, [ebp - 0x28]
push edx
call eax
jmp 0x4a9d40
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
cmp dword [edi + 4], 5
jne 0x4a9d55
cmp dword [edi + 8], 1
jne 0x4a9d55
cmp byte [edi + 0x11a], 1
je 0x4a9d6a
cmp dword [edi + 4], 5
jne 0x4a9da9
cmp dword [edi + 8], 2
jne 0x4a9da9
cmp byte [edi + 0x11a], 1
jne 0x4a9da9
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4a9d85
sub ax, 5
je 0x4a9d9d
sub ax, 3
je 0x4a9d91
jmp 0x4aa098
mov dword [ebp - 4], 1
jmp 0x4aa098
mov dword [ebp - 4], 2
jmp 0x4aa098
mov dword [ebp - 4], 4
jmp 0x4aa098
cmp dword [edi + 4], 6
jne 0x4a9dfd
cmp dword [edi + 8], 0
jne 0x4a9dfd
cmp byte [edi + 0x11a], 1
jne 0x4a9dfd
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4a9dd9
sub ax, 5
je 0x4a9df1
sub ax, 3
je 0x4a9de5
jmp 0x4aa098
mov dword [ebp - 4], 8
jmp 0x4aa098
mov dword [ebp - 4], 0x10
jmp 0x4aa098
mov dword [ebp - 4], 0x20
jmp 0x4aa098
cmp dword [edi + 4], 6
jne 0x4a9e51
cmp dword [edi + 8], 1
jne 0x4a9e51
cmp byte [edi + 0x11a], 1
jne 0x4a9e51
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4a9e2d
sub ax, 5
je 0x4a9e45
sub ax, 3
je 0x4a9e39
jmp 0x4aa098
mov dword [ebp - 4], 0x40
jmp 0x4aa098
mov dword [ebp - 4], 0x80
jmp 0x4aa098
mov dword [ebp - 4], pe_nt_image_headers32
jmp 0x4aa098
cmp dword [edi + 4], 6
jne 0x4a9ea5
cmp dword [edi + 8], 2
jne 0x4a9ea5
cmp byte [edi + 0x11a], 1
jne 0x4a9ea5
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4a9e81
sub ax, 5
je 0x4a9e99
sub ax, 3
je 0x4a9e8d
jmp 0x4aa098
mov dword [ebp - 4], 0x200
jmp 0x4aa098
mov dword [ebp - 4], 0x400
jmp 0x4aa098
mov dword [ebp - 4], 0x800
jmp 0x4aa098
cmp dword [edi + 4], 6
jne 0x4a9ef9
cmp dword [edi + 8], 3
jne 0x4a9ef9
cmp byte [edi + 0x11a], 1
jne 0x4a9ef9
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4a9ed5
sub ax, 5
je 0x4a9eed
sub ax, 3
je 0x4a9ee1
jmp 0x4aa098
mov dword [ebp - 4], 0x200000
jmp 0x4aa098
mov dword [ebp - 4], 0x400000
jmp 0x4aa098
mov dword [ebp - 4], 0x800000
jmp 0x4aa098
cmp dword [edi + 4], 6
jne 0x4a9f4d
cmp dword [edi + 8], 4
jne 0x4a9f4d
cmp byte [edi + 0x11a], 1
jne 0x4a9f4d
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4a9f29
sub ax, 5
je 0x4a9f41
sub ax, 3
je 0x4a9f35
jmp 0x4aa098
mov dword [ebp - 4], 0x1000000
jmp 0x4aa098
mov dword [ebp - 4], 0x2000000
jmp 0x4aa098
mov dword [ebp - 4], 0x4000000
jmp 0x4aa098
cmp dword [edi + 4], 0xa
jne 0x4a9fa1
cmp dword [edi + 8], 0
jne 0x4a9fa1
cmp byte [edi + 0x11a], 1
jne 0x4a9fa1
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4a9f7d
sub ax, 5
je 0x4a9f95
sub ax, 3
je 0x4a9f89
jmp 0x4aa098
mov dword [ebp - 4], 0x1000000
jmp 0x4aa098
mov dword [ebp - 4], 0x2000000
jmp 0x4aa098
mov dword [ebp - 4], 0x4000000
jmp 0x4aa098
cmp dword [edi + 4], 5
jne 0x4a9ff5
cmp dword [edi + 8], 2
jne 0x4a9ff5
cmp byte [edi + 0x11a], 1
je 0x4a9ff5
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4a9fd1
sub ax, 5
je 0x4a9fe9
sub ax, 3
je 0x4a9fdd
jmp 0x4aa098
mov dword [ebp - 4], 0x1000
jmp 0x4aa098
mov dword [ebp - 4], 0x2000
jmp 0x4aa098
mov dword [ebp - 4], 0x4000
jmp 0x4aa098
cmp dword [edi + 4], 6
jne 0x4aa00a
cmp dword [edi + 8], 0
jne 0x4aa00a
cmp byte [edi + 0x11a], 1
jne 0x4aa01f
cmp dword [edi + 4], 6
jne 0x4aa052
cmp dword [edi + 8], 1
jne 0x4aa052
cmp byte [edi + 0x11a], 1
je 0x4aa052
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4aa037
sub ax, 5
je 0x4aa049
sub ax, 3
je 0x4aa040
jmp 0x4aa098
mov dword [ebp - 4], 0x8000
jmp 0x4aa098
mov dword [ebp - 4], 0x10000
jmp 0x4aa098
mov dword [ebp - 4], 0x20000
jmp 0x4aa098
cmp dword [edi + 4], 6
jne 0x4aa098
cmp dword [edi + 8], 2
jne 0x4aa098
cmp byte [edi + 0x11a], 1
je 0x4aa098
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4aa07f
sub ax, 5
je 0x4aa091
sub ax, 3
je 0x4aa088
jmp 0x4aa098
mov dword [ebp - 4], 0x40000
jmp 0x4aa098
mov dword [ebp - 4], 0x80000
jmp 0x4aa098
mov dword [ebp - 4], 0x100000
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa0b5
mov eax, dword [ebp - 4]
mov dword [0x599860], eax
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret