Function at 0x5030309
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x4e8
lea ebp, [esp - 4]
mov eax, dword [0x509ddfc]
xor eax, ebp
mov dword [ebp + 0x4e8], eax
push 0x80
mov eax, 0x50735e5
call fcn.050702f7
mov eax, dword [ebp + 0x4f4]
mov edi, edx
xor ebx, ebx
cmp edi, ebx
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], edi
je 0x503037f
push str.DISPLAY
push edi
call sub.MSVCR80.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x503037c
push str.display
push edi
call sub.MSVCR80.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x503037c
push str.Display
push edi
call sub.MSVCR80.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x503037f
mov dword [ebp - 0x18], ebx
lea eax, [ebp + 0x350]
push eax
mov dword [ebp + 0x350], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x50303a1
xor al, al
jmp 0x5030632
cmp dword [ebp + 0x360], 2
jne 0x50303b7
cmp dword [ebp + 0x354], 5
jae 0x50305ef
mov ecx, esi
call fcn.050144f6
test al, al
je 0x503039a
cmp dword [esi + 0xbc], ebx
je 0x50305e3
cmp dword [esi + 0xb8], ebx
je 0x50305e3
push str.user32.dll
mov byte [ebp - 0x12], bl
mov byte [ebp - 0x11], bl
mov byte [ebp - 0x13], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x50304c0
push 0x507b678
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x50304b2
mov esi, 0x1a8
push esi
lea eax, [ebp + 0x1a8]
push ebx
push eax
mov byte [ebp - 0x12], 1
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp + 0x1a8]
push eax
mov dword [ebp + 0x1a8], esi
mov dword [ebp - 0x28], ebx
push ebx
jmp 0x503047e
cmp dword [ebp - 0x18], ebx
jne 0x5030452
mov eax, dword [ebp + 0x24c]
shr eax, 2
and al, 1
mov byte [ebp - 0x11], al
jmp 0x503046c
push dword [ebp - 0x18]
lea eax, [ebp + 0x1ac]
push eax
call sub.MSVCR80.dll_strcmp
neg eax
sbb al, al
pop ecx
inc al
pop ecx
mov byte [ebp - 0x11], al
cmp al, bl
jne 0x5030487
inc dword [ebp - 0x28]
push ebx
lea eax, [ebp + 0x1a8]
push eax
push dword [ebp - 0x28]
push ebx
call edi
test eax, eax
jne 0x503043d
jmp 0x50304af
push esi
lea eax, [ebp]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp]
push eax
push ebx
lea eax, [ebp + 0x1ac]
push eax
mov dword [ebp], esi
call edi
test eax, eax
je 0x50304af
mov byte [ebp - 0x13], 1
mov esi, dword [ebp - 0x1c]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebp - 0x13], bl
jne 0x50304e7
mov ecx, esi
call fcn.05014609
cmp byte [ebp - 0x12], bl
je 0x50304e0
cmp byte [ebp - 0x11], bl
jne 0x50304e0
cmp dword [ebp - 0x18], ebx
je 0x50304e0
push 0x7061726d
call fcn.05004c30
push 0x67656e20
jmp 0x50304db
mov eax, dword [esi + 0xb8]
lea ecx, [ebp - 0x30]
push ecx
push dword [ebp - 0x20]
mov edi, 0x104
push ebx
mov dword [ebp - 0x30], edi
call eax
test eax, eax
je 0x503051a
push 0x507a6cc
push dword [ebp - 0x20]
call fcn.050268a4
test al, al
pop ecx
pop ecx
mov byte [ebp - 0x11], 1
jne 0x503051d
mov byte [ebp - 0x11], bl
push 0x58
pop esi
push esi
lea eax, [ebp - 0x8c]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp byte [ebp - 0x11], bl
lea eax, [ebp + 0xa8]
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], 0x300
mov dword [ebp - 0x84], 0x21
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x68], 0x6d6e7472
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x12], bl
je 0x50305ce
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xbc]
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp + 0x3e4]
push ecx
lea ecx, [ebp - 0x8c]
push ecx
push ebx
mov dword [ebp - 4], ebx
call eax
cmp eax, ebx
setne byte [ebp - 0x11]
or dword [ebp - 4], 0xffffffff
jmp 0x50305aa
cmp byte [ebp - 0x11], bl
je 0x50305ce
cmp dword [ebp - 0x2c], 1
jb 0x50305ce
lea eax, [ebp + 0x3e4]
push eax
push dword [ebp - 0x20]
call fcn.050268a4
test al, al
pop ecx
pop ecx
mov byte [ebp - 0x11], 1
jne 0x50305d1
mov byte [ebp - 0x11], bl
mov ecx, dword [ebp - 0x1c]
call fcn.05014609
cmp byte [ebp - 0x12], bl
jne 0x50305ef
mov al, byte [ebp - 0x11]
jmp 0x5030632
mov ecx, esi
call fcn.05014609
jmp 0x503039a
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x50305fb
mov eax, str.DISPLAY
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, eax
cmp esi, ebx
je 0x50304d6
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
push esi
mov dword [ebp - 0x24], 0x104
call dword [sym.imp.GDI32.dll_GetICMProfileA]
test eax, eax
push esi
setne bl
call dword [sym.imp.GDI32.dll_DeleteDC]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4e8]
xor ecx, ebp
call fcn.05070186
add ebp, 0x4ec
leave
ret