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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x4d2fe0
push ecx
push ebx
push esi
xor eax, eax
push ebp
push 0x4d35e9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d35f8
call sub.kernel32.dll_GetModuleHandleW
mov ebx, eax
push 0x4d3614
push ebx
call fcn.00413eb4
mov dword [0x69d0f8], eax
cmp dword [0x69d0f8], 0
jne 0x4d3027
mov eax, 0x4d2de0
mov dword [0x69d0f8], eax
push 0x4d3634
push ebx
call fcn.00413eb4
mov dword [0x69d0fc], eax
cmp dword [0x69d0fc], 0
jne 0x4d304a
mov eax, 0x413f7c
mov dword [0x69d0fc], eax
push 0x4d3674
push ebx
call fcn.00413eb4
mov esi, eax
xor eax, eax
mov dword [ebp - 0x18], eax
test esi, esi
je 0x4d3076
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call esi
test eax, eax
je 0x4d3076
cmp dword [ebp - 0x18], 0
jne 0x4d307a
xor eax, eax
jmp 0x4d307c
mov al, 1
mov byte [0x69cfb0], al
mov eax, 0x69cfb4
xor ecx, ecx
mov edx, 0x24
call dword [0x6997fc]
cmp byte [0x69cfb0], 0
je 0x4d30a9
push 0x4d3694
push ebx
call fcn.00413eb4
jmp 0x4d30ad
xor edx, edx
mov eax, edx
test eax, eax
je 0x4d30ba
push 0x69cfb4
call eax
jmp 0x4d30c4
push 0x69cfb4
call sub.kernel32.dll_GetSystemInfo
mov eax, 0xa
call fcn.004072c0
cmp eax, 0x100000
jbe 0x4d30eb
cmp dword [0x69cfbc], 0x100000
ja 0x4d30eb
mov dword [0x69cfbc], 0x100000
call fcn.004072dc
mov dword [0x69cfd8], 0x11c
push 0x69cfd8
call sub.kernel32.dll_GetVersionExW
xor ebx, ebx
mov eax, dword [0x69cfdc]
sub eax, 5
je 0x4d311a
dec eax
je 0x4d315d
sub eax, 4
je 0x4d3196
jmp case.default.0x4d3167
mov eax, dword [0x69cfe0]
sub eax, 1
jb 0x4d312b
je 0x4d312f
dec eax
je 0x4d3133
jmp case.default.0x4d3167
mov bl, 1
jmp case.default.0x4d3167
mov bl, 2
jmp case.default.0x4d3167
cmp byte [0x69d0f2], 1
jne 0x4d314a
cmp word [0x69cfb4], 9
jne 0x4d314a
mov bl, 3
jmp case.default.0x4d3167
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
jne 0x4d3159
mov bl, 4
jmp case.default.0x4d3167
mov bl, 5
jmp case.default.0x4d3167
mov eax, dword [0x69cfe0]
cmp eax, 4
ja case.default.0x4d3167
jmp dword [eax*4 + 0x4d316e]
mov bl, 6
jmp case.default.0x4d3167
mov bl, 0xa
jmp case.default.0x4d3167
mov bl, 0xe
jmp case.default.0x4d3167
mov bl, 0x12
jmp case.default.0x4d3167
mov bl, 0x16
jmp case.default.0x4d3167
mov bl, 0x16
cmp bl, 6
jb 0x4d31e1
cmp byte [0x69d0f2], 1
je 0x4d31be
add bl, 2
cmp bl, 0x18
jne 0x4d31d1
cmp dword [0x69cfe4], 0x4563
jb 0x4d31d1
mov bl, 0x1c
jmp 0x4d31d1
cmp bl, 0x16
jne 0x4d31d1
cmp dword [0x69cfe4], 0x55f0
jb 0x4d31d1
mov bl, 0x1a
cmp word [0x69cfb4], 9
jne 0x4d31e1
cmp bl, 0x1c
jae 0x4d31e1
inc ebx
mov byte [0x69d0f4], bl
movzx esi, word [0x69d0ec]
test si, si
jne 0x4d3247
mov eax, 0x69cf9c
call fcn.0040b348
push eax
movzx eax, bl
mov eax, dword [eax*4 + 0x685e40]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0xb
mov eax, dword [0x69cfdc]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
mov eax, dword [0x69cfe0]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
mov eax, dword [0x69cfe4]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x38]
mov ecx, 3
mov eax, 0x4d36c8
call fcn.004d25ac
jmp 0x4d32a3
mov eax, 0x69cf9c
call fcn.0040b348
push eax
movzx eax, bl
mov eax, dword [eax*4 + 0x685e40]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0xb
movzx eax, si
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0
mov eax, dword [0x69cfdc]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0
mov eax, dword [0x69cfe0]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0
mov eax, dword [0x69cfe4]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
lea edx, [ebp - 0x60]
mov ecx, 4
mov eax, 0x4d36e8
call fcn.004d25ac
movzx eax, bl
shl eax, 8
inc eax
mov dword [0x69cfac], eax
push 0
lea eax, [ebp - 4]
mov ecx, 0x4d370c
mov edx, 0x80000002
call fcn.004d2e18
test al, al
je 0x4d32f3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
mov cl, 1
mov edx, 0x4d3748
call fcn.004d2ebc
cmp dword [ebp - 8], 0
jne 0x4d32f3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
mov cl, 1
mov edx, 0x4d377c
call fcn.004d2ebc
push 1
lea eax, [ebp - 4]
mov ecx, 0x4d37a0
mov edx, 0x80000002
call fcn.004d2e18
test al, al
je 0x4d3370
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
mov cl, 1
mov edx, 0x4d37d0
call fcn.004d2ebc
cmp dword [ebp - 0xc], 0
je 0x4d3331
lea eax, [ebp - 0xc]
mov edx, 0x4d3804
call fcn.0040bb00
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
mov cl, 1
mov edx, 0x4d3814
call fcn.004d2ebc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
mov cl, 1
mov edx, 0x4d3844
call fcn.004d2ebc
cmp dword [ebp - 0x14], 0
jne 0x4d3370
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
mov cl, 1
mov edx, 0x4d386c
call fcn.004d2ebc
cmp dword [ebp - 0x10], 0
je 0x4d337c
cmp dword [ebp - 0x14], 0
jne 0x4d33c6
push 1
lea eax, [ebp - 4]
mov ecx, 0x4d3890
mov edx, 0x80000002
call fcn.004d2e18
test al, al
je 0x4d33c6
cmp dword [ebp - 0x10], 0
jne 0x4d33ad
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
mov cl, 1
mov edx, 0x4d38b8
call fcn.004d2ebc
cmp dword [ebp - 0x14], 0
jne 0x4d33c6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
mov cl, 1
mov edx, 0x4d38e8
call fcn.004d2ebc
lea eax, [ebp - 4]
call fcn.004d2eac
cmp dword [ebp - 0x14], 0
je 0x4d3411
mov eax, 0x69cfa8
call fcn.0040b348
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0xb
lea edx, [ebp - 0x78]
mov ecx, 2
mov eax, 0x4d3918
call fcn.004d25ac
jmp 0x4d344b
mov eax, 0x69cfa8
call fcn.0040b348
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0xb
lea edx, [ebp - 0x88]
mov ecx, 1
mov eax, 0x4d392c
call fcn.004d25ac
cmp dword [ebp - 8], 0
jne 0x4d3483
lea edx, [ebp - 0x8c]
mov eax, 0x4d393c
call fcn.004303d0
mov edx, dword [ebp - 0x8c]
mov eax, edx
test eax, eax
je 0x4d3472
sub eax, 4
mov eax, dword [eax]
movzx ecx, byte [0x4d3968]
push ecx
lea ecx, [ebp - 8]
xchg edx, eax
call fcn.004cf9c0
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 8]
call fcn.004d1dac
mov edx, dword [ebp - 0x90]
lea eax, [ebp - 8]
call fcn.0040b7fc
mov eax, 0x69cfa4
call fcn.0040b348
push eax
mov eax, dword [0x69cfc8]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0xb
lea edx, [ebp - 0x88]
mov ecx, 1
mov eax, 0x4d3978
call fcn.004d25ac
push 0x4d3984
call sub.kernel32.dll_LoadLibraryW
mov ebx, eax
test ebx, ebx
jbe 0x4d355e
push 0x4d3998
push ebx
call fcn.00413eb4
mov esi, eax
test esi, esi
je 0x4d3558
call esi
mov edx, eax
lea eax, [ebp - 0xa0]
mov ecx, 0xfde9
call fcn.0040ba3c
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0x9c]
call fcn.004d1dac
mov ecx, dword [ebp - 0x9c]
lea eax, [ebp - 0x98]
mov edx, 0x4d39c8
call fcn.0040bb58
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
call fcn.004d1dac
mov edx, dword [ebp - 0x94]
mov eax, 0x69cfa0
call fcn.0040b7b0
push ebx
call sub.kernel32.dll_FreeLibrary
cmp dword [0x69cfa0], 0
je 0x4d35b1
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [0x69cf9c]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0xb
mov eax, dword [0x69cfa0]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0xb
lea edx, [ebp - 0x88]
mov ecx, 1
mov eax, 0x4d39dc
call fcn.004d2400
mov edx, dword [ebp - 0xa4]
mov eax, 0x69cf9c
call fcn.0040b7b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d35f0
lea eax, [ebp - 0xa4]
mov edx, 6
call fcn.0040b3bc
lea eax, [ebp - 0x8c]
call fcn.0040b324
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.0040b3bc
pop eax
jmp eax