Function at 0x4d9278
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 edi, edx
mov ebx, eax
lea esi, [ebp - 0x144]
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4d96b8
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [esi], 0x11c
push esi
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x4d92cb
mov dword [esi], 0x114
push esi
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x4d92cb
call fcn.00404db8
jmp 0x4d96bf
cmp dword [esi + 0x10], 2
je 0x4d92db
call fcn.00404db8
jmp 0x4d96bf
test ebx, ebx
je 0x4d92e9
movzx eax, word [esi + 0x118]
mov word [ebx], ax
test edi, edi
je 0x4d92f6
movzx eax, byte [esi + 0x11a]
mov byte [edi], al
cmp dword [0x54b580], 0
je 0x4d9311
mov eax, dword [0x54b580]
mov dword [ebp - 4], eax
call fcn.00404db8
jmp 0x4d96bf
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x24
call fcn.0040396c
push 0x4d96cc
push 0x4d96f4
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040929c
test eax, eax
je 0x4d9341
lea edx, [ebp - 0x28]
push edx
call eax
jmp 0x4d934a
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo_1
cmp dword [esi + 4], 5
jne 0x4d935f
cmp dword [esi + 8], 1
jne 0x4d935f
cmp byte [esi + 0x11a], 1
je 0x4d9374
cmp dword [esi + 4], 5
jne 0x4d93b3
cmp dword [esi + 8], 2
jne 0x4d93b3
cmp byte [esi + 0x11a], 1
jne 0x4d93b3
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4d938f
sub ax, 5
je 0x4d93a7
sub ax, 3
je 0x4d939b
jmp 0x4d96a2
mov dword [ebp - 4], 1
jmp 0x4d96a2
mov dword [ebp - 4], 2
jmp 0x4d96a2
mov dword [ebp - 4], 4
jmp 0x4d96a2
cmp dword [esi + 4], 6
jne 0x4d9407
cmp dword [esi + 8], 0
jne 0x4d9407
cmp byte [esi + 0x11a], 1
jne 0x4d9407
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4d93e3
sub ax, 5
je 0x4d93fb
sub ax, 3
je 0x4d93ef
jmp 0x4d96a2
mov dword [ebp - 4], 8
jmp 0x4d96a2
mov dword [ebp - 4], 0x10
jmp 0x4d96a2
mov dword [ebp - 4], 0x20
jmp 0x4d96a2
cmp dword [esi + 4], 6
jne 0x4d945b
cmp dword [esi + 8], 1
jne 0x4d945b
cmp byte [esi + 0x11a], 1
jne 0x4d945b
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4d9437
sub ax, 5
je 0x4d944f
sub ax, 3
je 0x4d9443
jmp 0x4d96a2
mov dword [ebp - 4], 0x40
jmp 0x4d96a2
mov dword [ebp - 4], 0x80
jmp 0x4d96a2
mov dword [ebp - 4], pe_nt_image_headers32
jmp 0x4d96a2
cmp dword [esi + 4], 6
jne 0x4d94af
cmp dword [esi + 8], 2
jne 0x4d94af
cmp byte [esi + 0x11a], 1
jne 0x4d94af
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4d948b
sub ax, 5
je 0x4d94a3
sub ax, 3
je 0x4d9497
jmp 0x4d96a2
mov dword [ebp - 4], 0x200
jmp 0x4d96a2
mov dword [ebp - 4], 0x400
jmp 0x4d96a2
mov dword [ebp - 4], 0x800
jmp 0x4d96a2
cmp dword [esi + 4], 6
jne 0x4d9503
cmp dword [esi + 8], 3
jne 0x4d9503
cmp byte [esi + 0x11a], 1
jne 0x4d9503
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4d94df
sub ax, 5
je 0x4d94f7
sub ax, 3
je 0x4d94eb
jmp 0x4d96a2
mov dword [ebp - 4], 0x200000
jmp 0x4d96a2
mov dword [ebp - 4], 0x400000
jmp 0x4d96a2
mov dword [ebp - 4], 0x800000
jmp 0x4d96a2
cmp dword [esi + 4], 6
jne 0x4d9557
cmp dword [esi + 8], 4
jne 0x4d9557
cmp byte [esi + 0x11a], 1
jne 0x4d9557
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4d9533
sub ax, 5
je 0x4d954b
sub ax, 3
je 0x4d953f
jmp 0x4d96a2
mov dword [ebp - 4], 0x1000000
jmp 0x4d96a2
mov dword [ebp - 4], 0x2000000
jmp 0x4d96a2
mov dword [ebp - 4], 0x4000000
jmp 0x4d96a2
cmp dword [esi + 4], 0xa
jne 0x4d95ab
cmp dword [esi + 8], 0
jne 0x4d95ab
cmp byte [esi + 0x11a], 1
jne 0x4d95ab
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4d9587
sub ax, 5
je 0x4d959f
sub ax, 3
je 0x4d9593
jmp 0x4d96a2
mov dword [ebp - 4], 0x1000000
jmp 0x4d96a2
mov dword [ebp - 4], 0x2000000
jmp 0x4d96a2
mov dword [ebp - 4], 0x4000000
jmp 0x4d96a2
cmp dword [esi + 4], 5
jne 0x4d95ff
cmp dword [esi + 8], 2
jne 0x4d95ff
cmp byte [esi + 0x11a], 1
je 0x4d95ff
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4d95db
sub ax, 5
je 0x4d95f3
sub ax, 3
je 0x4d95e7
jmp 0x4d96a2
mov dword [ebp - 4], 0x1000
jmp 0x4d96a2
mov dword [ebp - 4], 0x2000
jmp 0x4d96a2
mov dword [ebp - 4], 0x4000
jmp 0x4d96a2
cmp dword [esi + 4], 6
jne 0x4d9614
cmp dword [esi + 8], 0
jne 0x4d9614
cmp byte [esi + 0x11a], 1
jne 0x4d9629
cmp dword [esi + 4], 6
jne 0x4d965c
cmp dword [esi + 8], 1
jne 0x4d965c
cmp byte [esi + 0x11a], 1
je 0x4d965c
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4d9641
sub ax, 5
je 0x4d9653
sub ax, 3
je 0x4d964a
jmp 0x4d96a2
mov dword [ebp - 4], 0x8000
jmp 0x4d96a2
mov dword [ebp - 4], 0x10000
jmp 0x4d96a2
mov dword [ebp - 4], 0x20000
jmp 0x4d96a2
cmp dword [esi + 4], 6
jne 0x4d96a2
cmp dword [esi + 8], 2
jne 0x4d96a2
cmp byte [esi + 0x11a], 1
je 0x4d96a2
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4d9689
sub ax, 5
je 0x4d969b
sub ax, 3
je 0x4d9692
jmp 0x4d96a2
mov dword [ebp - 4], 0x40000
jmp 0x4d96a2
mov dword [ebp - 4], 0x80000
jmp 0x4d96a2
mov dword [ebp - 4], 0x100000
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d96bf
mov eax, dword [ebp - 4]
mov dword [0x54b580], eax
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret