Function at 0x3001deef
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4cc
push ebx
push esi
push edi
push 1
pop esi
mov dword [0x3017cc08], esi
push esi
call dword [0x3017bac0]
xor edi, edi
cmp eax, edi
mov dword [0x3017cd08], eax
je 0x30042dbe
push 0x60
pop ebx
push ebx
call dword [sym.imp.USER32.dll_SetMessageQueue]
test eax, eax
je 0x30042d86
cmp ebx, edi
je 0x30042dbe
mov eax, dword [ebp + 8]
mov dword [0x3017dd10], eax
mov eax, dword [ebp + 0xc]
mov dword [0x3017d5b0], eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xcc], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x30042dbe
cmp dword [ebp - 0xc8], 4
jb 0x3001df72
mov dword [0x3017d038], esi
cmp dword [ebp - 0xbc], 2
jne 0x3001df81
mov dword [0x3017dbf4], esi
xor eax, eax
mov ah, byte [ebp - 0xc8]
mov al, byte [ebp - 0xc4]
mov dword [ebp + 8], eax
call sub.GRINTL32.dll_Ordinal_64
cmp eax, edi
mov dword [0x3017d62c], eax
je 0x30042dbe
push esi
call fcn.3001e3c0
mov dword [0x3017d158], eax
push eax
call fcn.3001e40e
push eax
call sub.GRINTL32.dll_Ordinal_16
push dword [0x3017d158]
call dword [0x3017ba04]
push 0x10411
push esi
push esi
call sub.GRINTL32.dll_Ordinal_11
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, edi
mov esi, 0x100
jne 0x30042d96
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp + 8], 0x333
mov dword [0x3017da6c], eax
jl 0x30042dc5
mov ecx, dword [ebp + 0x10]
mov ax, word [ecx]
cmp ax, 0x2f
je 0x3001e010
cmp ax, 0x2d
jne 0x3001e016
push ecx
call fcn.3001e461
mov esi, 0x3017db40
mov dword [0x3017d17c], esi
push 0x29
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x30042df8
push 0x82
push 0x102cc
push 0x3017dd20
call fcn.30028b60
push esi
push 0x3017a01c
call dword [0x3017bedc]
cmp dword [0x3017dbf4], edi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f02
mov dword [0x3017f120], 0x3017e360
push edi
je 0x3001e088
call esi
cmp dword [0x3017dbf4], edi
push 0x7f00
mov dword [0x3017dca4], eax
push edi
je 0x3001e08f
call esi
jmp 0x3001e094
call fcn.30019b82
jmp 0x3001e071
call fcn.30019b82
cmp dword [0x3017dbf4], edi
push 0x7f01
mov dword [0x3017d20c], eax
push edi
jne 0x3001e15b
call fcn.30019b82
cmp dword [0x3017dbf4], edi
push 0x7f85
mov dword [0x3017cc5c], eax
push edi
je 0x3001e162
call esi
cmp dword [0x3017dbf4], edi
push 0x7f84
mov dword [0x3017d070], eax
push edi
je 0x3001e16c
call esi
cmp dword [0x3017d734], edi
mov dword [0x3017d080], eax
jne 0x30042e02
mov eax, dword [0x3017cd08]
mov ecx, dword [eax + 0x54]
mov dword [0x3017f35c], ecx
mov edx, dword [eax + 0x78]
mov dword [0x3017f7bc], edx
mov esi, dword [eax + 0x74]
sub esi, ecx
mov dword [0x3017f3dc], esi
mov ecx, dword [eax + 0x8c]
sub ecx, edx
cmp dword [0x3017d5b0], edi
mov dword [0x3017f4d0], ecx
mov eax, dword [eax + 0x7c]
mov dword [0x3017e758], eax
jne 0x3001e20f
mov eax, dword [0x3017dd10]
xor ebx, ebx
cmp word [0x3001e370], di
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x30], edi
jbe 0x3001e20f
mov esi, 0x3001e304
jmp 0x3001e1bf
call esi
jmp 0x3001e0b0
call fcn.30019b82
jmp 0x3001e0c9
call fcn.30019b82
jmp 0x3001e0e2
movzx ecx, word [esi]
cmp dword [0x3017dbf4], edi
push ecx
push eax
jne 0x3001e18a
call fcn.30019c32
jmp 0x3001e190
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x24], eax
jmp 0x3001e1cc
mov dword [ebp - 0x20], edi
jmp 0x3001e1de
call dword [sym.imp.USER32.dll_RegisterClassW]
movzx eax, ax
cmp eax, edi
je 0x30042e56
movzx eax, word [0x3001e370]
inc ebx
add esi, 0x1c
cmp ebx, eax
jge 0x3001e20f
mov eax, dword [0x3017dd10]
mov ecx, dword [esi - 4]
cmp dword [esi], edi
mov dword [ebp - 0x14], ecx
jne 0x3001e176
mov dword [ebp - 0x24], edi
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
cmp eax, edi
mov dword [ebp - 0x34], ecx
je 0x3001e195
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp dword [0x3017d734], edi
jne 0x30042e23
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
cmp dword [0x3017dbf4], edi
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
jne 0x3001e19a
call fcn.30019ba4
jmp 0x3001e1a0
mov dword [0x3017e494], 0x30169680
mov dword [0x3017e4e4], 0x30097881
mov dword [0x3017d16c], 1
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
cmp ebx, edi
je 0x3001e266
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xc
push ebx
call esi
push 0xe
mov edx, eax
push ebx
mov dword [ebp + 8], edx
call esi
mov ecx, dword [ebp + 8]
imul ecx, eax
cmp ecx, 4
jl 0x30042e43
push ebx
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
push dword [ebp + 0x10]
xor esi, esi
push 0xd
push 0xc
call fcn.3001e4b8
test eax, eax
jne 0x30042e4e
push esi
push 0x3017a01c
push str.Graph
call fcn.3001e548
test eax, eax
je 0x30042dbe
lea eax, [ebp - 0x10]
push eax
call fcn.3001e578
push edi
push dword [0x3017dd10]
cmp dword [0x3017dbf4], edi
push edi
push edi
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0xcf0000
push 0x3017db40
push 0x3001e374
push edi
je 0x3001e2d3
call dword [sym.imp.USER32.dll_CreateWindowExW]
jmp 0x3001e2d8
call fcn.30019c54
cmp eax, edi
mov dword [0x3017d99c], eax
je 0x30042e56
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.3001e765
mov dword [0x3017cc08], edi
pop edi
pop esi
pop ebx
leave
ret 0x10
sub ebx, 8
cmp ebx, edi
jle 0x3001df2c
jmp 0x3001df1d
push esi
push eax
lea eax, [ebp - 0x2cc]
push eax
call fcn.30028b60
push 0x14
push 0x3017a01c
lea eax, [ebp - 0x2cc]
push eax
push edi
call ebx
cmp eax, 6
jne 0x3001dfe6
xor eax, eax
jmp 0x3001e2f6
push esi
push 0x73
lea eax, [ebp - 0x4cc]
push eax
call fcn.30028b60
push esi
push 0x74
lea eax, [ebp - 0x2cc]
push eax
call fcn.30028b60
push 0x10
lea eax, [ebp - 0x2cc]
push eax
lea eax, [ebp - 0x4cc]
push eax
push edi
call ebx
jmp 0x30042dbe
call fcn.3014f2ef
jmp 0x3001e031
cmp dword [0x3017dbf4], edi
push 0x7f77
push edi
jne 0x30042e1f
call fcn.30019b82
mov dword [0x3017d5f0], eax
jmp 0x3001e0f3
call esi
jmp 0x30042e15
cmp ecx, 0x3016426e
jne 0x3001e1ea
mov eax, dword [0x3017d5f0]
mov dword [ebp - 0x34], 0x301642bd
mov dword [ebp - 0x20], eax
jmp 0x3001e1ea
mov dword [0x3017d16c], edi
jmp 0x3001e25e
push 1
pop esi
jmp 0x3001e27d
call fcn.30097710
jmp 0x30042dbe