Function at 0x4012c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x48c
push ebx
mov ebx, dword [esp + 0x494]
push ebp
push esi
push edi
push ebx
mov esi, ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 0xc
push edi
call ebp
push 8
push edi
mov dword [esi + 4], eax
call ebp
push 0xa
push edi
mov dword [esi + 8], eax
call ebp
push 0
mov dword [esi + 0xc], eax
call dword [sym.imp.USER32.dll_GetDC]
push 0x58
push edi
mov dword [esp + 0x18], eax
call ebp
push 0x5a
push edi
mov dword [esi + 0x10], eax
call ebp
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x10]
push eax
push 0
mov byte [esi + 0x3628], 0x55
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0x74
push edi
call ebp
mov dword [esp + 0x10], eax
push 0x28
fild dword [esp + 0x14]
push edi
fstp dword [esi + 0x18]
call ebp
mov dword [esp + 0x10], eax
push 0x2a
fild dword [esp + 0x14]
push edi
fstp dword [esp + 0x1c]
call ebp
mov dword [esp + 0x10], eax
push 0x28
fild dword [esp + 0x14]
push edi
fdivr dword [esp + 0x1c]
fstp dword [esi + 0x3620]
call ebp
imul eax, dword [esi + 8]
mov dword [esp + 0x14], eax
push 0x2a
fild dword [esp + 0x18]
push edi
fstp dword [esp + 0x18]
call ebp
imul eax, dword [esi + 0xc]
mov dword [esp + 0x14], eax
push edi
fild dword [esp + 0x18]
push ebx
fdivr dword [esp + 0x18]
fstp dword [esi + 0x3624]
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0xb8]
mov dword [esp + 0xb8], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0xc8]
xor ebx, ebx
cmp eax, ebx
je 0x40140c
cmp eax, 1
je 0x40140c
cmp eax, 2
jne 0x401413
mov eax, dword [esp + 0xbc]
cmp eax, 5
jae 0x4013ef
mov ecx, esi
call fcn.00401b00
mov dword [esp + 0x18], 1
jmp 0x401413
jne 0x401403
cmp dword [esp + 0xc0], ebx
jne 0x401403
mov ecx, esi
call fcn.00401b00
jmp 0x401413
mov ecx, esi
call fcn.00401ec0
jmp 0x401413
mov ecx, esi
call fcn.00401740
mov ecx, 0x80
xor eax, eax
lea edi, [esi + 0x3629]
push 0x4153c4
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esi + 0x3829]
rep stosd dword es:[edi], eax
mov ecx, 0x200
lea edi, [esi + 0x3a29]
rep stosd dword es:[edi], eax
mov ecx, 0x200
lea edi, [esi + 0x4229]
rep stosd dword es:[edi], eax
mov dword [0x419230], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x14], ebp
je 0x401475
push 0x4153b0
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x419230], eax
cmp dword [0x419230], ebx
je 0x4015c9
cmp dword [esp + 0x18], ebx
jne 0x4015c9
mov dword [esi + 0x4a2c], ebx
mov dword [esi + 0x4a30], ebx
mov ebx, esi
lea edx, [esp + 0x170]
mov eax, 0x1a8
xor edi, edi
sub ebx, edx
mov dword [esp + 0x14c], eax
mov dword [esp + 0x2f4], eax
mov dword [esp + 0x18], edi
add ebx, 0x3829
lea eax, [esp + 0x14c]
push 0
push eax
push edi
push 0
call dword [0x419230]
test byte [esp + 0x1f0], 1
je 0x4015b1
test eax, eax
je 0x4015b1
mov eax, dword [esi + 0x4a2c]
inc eax
mov dword [esi + 0x4a2c], eax
lea eax, [esp + 0x150]
mov cl, byte [eax]
mov byte [ebx + eax - 0x1e0], cl
inc eax
test cl, cl
jne 0x4014fe
lea eax, [esp + 0x170]
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x401513
xor ebp, ebp
lea ecx, [esp + 0x2f4]
push 0
push ecx
lea edx, [esp + 0x158]
push ebp
push edx
call dword [0x419230]
test byte [esp + 0x1f0], 1
je 0x4015a3
test eax, eax
je 0x4015a3
mov eax, dword [esi + 0x4a30]
lea ecx, [ebp + edi*4]
shl ecx, 7
lea edi, [esp + 0x2f8]
inc eax
lea edx, [ecx + esi]
mov dword [esi + 0x4a30], eax
mov ecx, edx
lea eax, [esp + 0x2f8]
sub ecx, edi
lea edi, [ecx + 0x3a29]
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x401575
lea ecx, [esp + 0x318]
lea eax, [esp + 0x318]
sub edx, ecx
add edx, 0x4229
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401595
mov edi, dword [esp + 0x18]
inc ebp
cmp ebp, 4
jl 0x40151f
mov ebp, dword [esp + 0x14]
inc edi
add ebx, 0x80
cmp edi, 4
mov dword [esp + 0x18], edi
jl 0x4014c1
xor ebx, ebx
jmp 0x4015da
mov eax, 1
mov dword [esi + 0x4a2c], eax
mov dword [esi + 0x4a30], eax
cmp ebp, ebx
je 0x4015e5
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, 0x320
xor eax, eax
lea edi, [esi + 0x420]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 0x320
lea edi, [esi + 0x10a0]
rep stosd dword es:[edi], eax
mov ecx, 0x320
lea edi, [esi + 0x1d20]
rep stosd dword es:[edi], eax
mov ecx, 0x320
lea edi, [esi + 0x29a0]
rep stosd dword es:[edi], eax
mov ebp, 1
xor edi, edi
mov dword [esi + 0x41c], ebx
cmp ebp, ebx
je 0x401733
lea edx, [esp + 0x1c]
mov word [esp + 0x40], 0x9c
push edx
push edi
push ebx
mov word [esp + 0x4e], bx
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
mov ebp, eax
cmp ebp, ebx
je 0x4016ca
cmp dword [esp + 0x94], 1
je 0x4016ca
mov eax, dword [esp + 0x84]
cmp eax, 4
jbe 0x4016ca
cmp dword [esp + 0x88], 0x258
jbe 0x4016ca
mov ecx, dword [esi + 0x41c]
mov dword [esi + ecx*4 + 0x420], eax
mov edx, dword [esi + 0x41c]
mov eax, dword [esp + 0x88]
mov dword [esi + edx*4 + 0x10a0], eax
mov ecx, dword [esi + 0x41c]
mov edx, dword [esp + 0x8c]
mov dword [esi + ecx*4 + 0x1d20], edx
mov eax, dword [esi + 0x41c]
mov ecx, dword [esp + 0x94]
mov dword [esi + eax*4 + 0x29a0], ecx
mov eax, dword [esi + 0x41c]
inc eax
mov dword [esi + 0x41c], eax
mov edx, dword [esp + 0x88]
mov eax, dword [esi + 8]
cmp edx, eax
jne 0x401726
mov eax, dword [esp + 0x8c]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jne 0x401726
fld dword [esi + 0x18]
call fcn.004090b0
mov ecx, dword [esp + 0x94]
cmp ecx, eax
je 0x4016fe
cmp ecx, 0x14
jae 0x401726
mov ecx, dword [esp + 0x84]
mov eax, dword [esi + 4]
cmp ecx, eax
jne 0x401726
mov dl, byte [esp + 0x90]
and dl, 2
neg dl
sbb dl, dl
and dl, 0xb
add dl, 0x4e
mov byte [esi + 0x3628], dl
inc edi
cmp edi, 0x320
jl 0x40162a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48c
ret 4