Function at 0x414c90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor eax, eax
mov ecx, 0x54
lea edi, [esp + 0x6c]
rep stosd dword es:[edi], eax
xor ebp, ebp
push ebp
lea eax, [esp + 0x6c]
push eax
push 0x154
push 0x29
mov dword [esp + 0x78], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x414e46
xor eax, eax
mov ecx, 0xe
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], ebp
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xa4]
cmp eax, ebp
je 0x414cfd
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 0x414dcd
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x10c]
jne 0x414dcd
mov ecx, dword [esp + 0x34]
cmp ecx, dword [esp + 0x110]
jne 0x414dcd
mov edx, dword [esp + 0x38]
cmp edx, dword [esp + 0x114]
jne 0x414dcd
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x118]
jne 0x414dcd
mov cl, byte [esp + 0x40]
cmp cl, byte [esp + 0x11c]
jne 0x414dcd
mov dl, byte [esp + 0x41]
cmp dl, byte [esp + 0x11d]
jne 0x414dcd
mov al, byte [esp + 0x42]
cmp al, byte [esp + 0x11e]
jne 0x414dcd
mov cl, byte [esp + 0x43]
cmp cl, byte [esp + 0x11f]
jne 0x414dcd
mov dl, byte [esp + 0x44]
cmp dl, byte [esp + 0x120]
jne 0x414dcd
mov al, byte [esp + 0x45]
cmp al, byte [esp + 0x121]
jne 0x414dcd
mov cl, byte [esp + 0x46]
cmp cl, byte [esp + 0x122]
jne 0x414dcd
mov dl, byte [esp + 0x47]
cmp dl, byte [esp + 0x123]
jne 0x414dcd
lea eax, [esp + 0x124]
push eax
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x414e46
lea edx, [esp + 0x108]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov edi, eax
cmp edi, ebp
je 0x414e46
mov eax, dword [esi + 0xa4]
cmp eax, ebp
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x414dfe
push eax
call ebx
test eax, eax
je 0x414dfe
mov dword [esi + 0xa4], ebp
mov eax, dword [esi + 0xa4]
cmp eax, ebp
je 0x414e0f
cmp eax, edi
je 0x414e0f
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 0x43ed40
push ebp
push 0x41c
push eax
call edi
mov ecx, dword [esi + 4]
push ebp
push ebp
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 0x43ed3c
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 0x414ed2
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_SetRectEmpty]
push 0x424
lea edx, [esp + 0x1c]
push edx
push 0xffffffffffffffff
push 0x43ed38
push ebp
call edi
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov dword [esi + 0xb0], eax
jmp 0x414edc
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 0x414fe6
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 0x414f49
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x414f49
mov al, 1
jmp 0x414f4b
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.00414990
mov eax, dword [esp + 0x1c4]
cmp eax, 5
jne 0x414f9d
cmp dword [esp + 0x1c8], 1
jae 0x414f9f
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 0x414fe6
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 0x414fcb
mov eax, dword [esp + 0x14]
test eax, eax
je 0x414fcb
mov al, 1
jmp 0x414fcd
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