Function at 0x10015290
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
push ebx
push ebp
push esi
push edi
push 0
lea eax, [esp + 0x6c]
push eax
push 0x154
push 0x29
mov esi, ecx
mov dword [esp + 0x78], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x10015437
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x100152eb
lea ecx, [esp + 0x2c]
push ecx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esp + 0x2c]
cmp edx, dword [esp + 0x108]
jne 0x100153bb
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x10c]
jne 0x100153bb
mov ecx, dword [esp + 0x34]
cmp ecx, dword [esp + 0x110]
jne 0x100153bb
mov edx, dword [esp + 0x38]
cmp edx, dword [esp + 0x114]
jne 0x100153bb
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x118]
jne 0x100153bb
mov cl, byte [esp + 0x40]
cmp cl, byte [esp + 0x11c]
jne 0x100153bb
mov dl, byte [esp + 0x41]
cmp dl, byte [esp + 0x11d]
jne 0x100153bb
mov al, byte [esp + 0x42]
cmp al, byte [esp + 0x11e]
jne 0x100153bb
mov cl, byte [esp + 0x43]
cmp cl, byte [esp + 0x11f]
jne 0x100153bb
mov dl, byte [esp + 0x44]
cmp dl, byte [esp + 0x120]
jne 0x100153bb
mov al, byte [esp + 0x45]
cmp al, byte [esp + 0x121]
jne 0x100153bb
mov cl, byte [esp + 0x46]
cmp cl, byte [esp + 0x122]
jne 0x100153bb
mov dl, byte [esp + 0x47]
cmp dl, byte [esp + 0x123]
jne 0x100153bb
lea eax, [esp + 0x124]
push eax
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10015437
lea edx, [esp + 0x108]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov edi, eax
test edi, edi
je 0x10015437
mov eax, dword [esi + 0xa4]
test eax, eax
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x100153f0
push eax
call ebx
test eax, eax
je 0x100153f0
mov dword [esi + 0xa4], 0
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x100153fd
push eax
call ebx
push 1
mov ecx, edi
push ecx
mov dword [esi + 0xa4], edi
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x30
push edx
call edi
mov eax, dword [esi + 4]
push 0x100824d0
push 0
push 0x41c
push eax
call edi
mov ecx, dword [esi + 4]
push 0
push 0
push 0x421
push ecx
call edi
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, eax
mov eax, dword [esi + 0xa4]
push eax
push ebp
call ebx
mov edi, dword [sym.imp.USER32.dll_DrawTextA]
push 0x424
lea edx, [esp + 0x1c]
push edx
push 0xffffffffffffffff
mov dword [esp + 0x20], eax
xor eax, eax
push 0x10082478
push ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call edi
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
cmp eax, 4
jge 0x100154c3
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_SetRectEmpty]
push 0x424
lea edx, [esp + 0x1c]
push edx
push 0xffffffffffffffff
push 0x100824cc
push ebp
call edi
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov dword [esi + 0xb0], eax
jmp 0x100154cd
mov dword [esi + 0xb0], 0
mov ecx, dword [esp + 0x14]
push ecx
push ebp
call ebx
lea edx, [esp + 0x1c0]
xor eax, eax
mov dword [esp + 0x1c0], 0x94
mov ecx, 0x24
lea edi, [esp + 0x1c4]
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x1c4]
cmp eax, 5
jb 0x100155d7
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0x100a
mov dword [esp + 0x24], 1
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x1001553a
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1001553a
mov al, 1
jmp 0x1001553c
xor al, al
mov cl, byte [esi + 0x85]
and al, 1
or al, 4
shl al, 1
and cl, 0xfd
or al, cl
mov byte [esi + 0x85], al
shr al, 1
not al
mov ecx, esi
and eax, 0xffffff01
push eax
call fcn.10014540
mov eax, dword [esp + 0x1c4]
cmp eax, 5
jne 0x1001558e
cmp dword [esp + 0x1c8], 1
jae 0x10015590
mov edx, dword [esp + 0x28]
push ebp
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
jbe 0x100155d7
push 0
lea edx, [esp + 0x18]
push edx
push 0
push 0x1022
mov dword [esp + 0x24], 0
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x100155bc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100155bc
mov al, 1
jmp 0x100155be
xor al, al
mov cl, byte [esi + 0x85]
xor cl, al
mov al, byte [esi + 0x85]
and cl, 1
xor al, cl
mov byte [esi + 0x85], al
mov edx, dword [esp + 0x28]
push ebp
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret