Function at 0x1001862d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
push edi
mov esi, ecx
push 0x54
xor eax, eax
pop ecx
lea edi, [ebp - 0x1a8]
rep stosd dword es:[edi], eax
xor ebx, ebx
lea ecx, [ebp - 0x1ac]
mov eax, 0x154
push ebx
push ecx
push eax
push 0x29
mov dword [ebp - 0x1ac], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x10018798
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
mov dword [ebp - 0x58], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x1001868f
lea ecx, [ebp - 0x58]
push ecx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x10c]
jne 0x1001873f
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x108]
jne 0x1001873f
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x104]
jne 0x1001873f
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x100]
jne 0x1001873f
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0xfc]
jne 0x1001873f
mov al, byte [ebp - 0x44]
cmp al, byte [ebp - 0xf8]
jne 0x1001873f
mov al, byte [ebp - 0x43]
cmp al, byte [ebp - 0xf7]
jne 0x1001873f
mov al, byte [ebp - 0x42]
cmp al, byte [ebp - 0xf6]
jne 0x1001873f
mov al, byte [ebp - 0x41]
cmp al, byte [ebp - 0xf5]
jne 0x1001873f
mov al, byte [ebp - 0x40]
cmp al, byte [ebp - 0xf4]
jne 0x1001873f
mov al, byte [ebp - 0x3f]
cmp al, byte [ebp - 0xf3]
jne 0x1001873f
mov al, byte [ebp - 0x3e]
cmp al, byte [ebp - 0xf2]
jne 0x1001873f
mov al, byte [ebp - 0x3d]
cmp al, byte [ebp - 0xf1]
jne 0x1001873f
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10018798
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10018798
cmp dword [esi + 0x10], ebx
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x1001876a
push dword [esi + 0x10]
call edi
test eax, eax
je 0x1001876a
mov dword [esi + 0x10], ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x10018779
cmp eax, dword [ebp - 4]
je 0x10018779
push eax
call edi
mov eax, dword [ebp - 4]
push 1
mov dword [esi + 0x10], eax
push eax
mov eax, esi
lea ecx, [esi - 0x24]
neg eax
sbb eax, eax
push 0x30
and eax, ecx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, esi
lea ecx, [esi - 0x24]
neg eax
sbb eax, eax
mov dword [ebp - 0xc], ebx
and eax, ecx
mov eax, dword [eax + 4]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push dword [esi + 0x10]
mov dword [ebp - 0xc], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
mov ebx, 0x424
mov edi, dword [sym.imp.USER32.dll_DrawTextA]
lea eax, [ebp - 0x1c]
push ebx
push eax
push 0xffffffffffffffff
push 0x100220d4
push dword [ebp - 0xc]
call edi
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
cmp eax, 4
jge 0x1001881e
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
lea eax, [ebp - 0x1c]
push ebx
push eax
push 0xffffffffffffffff
push 0x10022920
push dword [ebp - 0xc]
call edi
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
xor ebx, ebx
mov dword [esi + 0x14], eax
jmp 0x10018823
xor ebx, ebx
mov dword [esi + 0x14], ebx
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x24
xor eax, eax
pop ecx
lea edi, [ebp - 0x23c]
mov dword [ebp - 0x240], 0x94
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x23c], 5
jne 0x1001886c
cmp dword [ebp - 0x238], 1
jae 0x1001886e
cmp dword [ebp - 0x23c], 5
jbe 0x10018895
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 0x1022
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x10018890
cmp dword [ebp - 4], ebx
je 0x10018890
push 1
pop eax
jmp 0x10018892
xor eax, eax
mov byte [esi + 0x18], al
lea ecx, [ebp - 0xc]
call fcn.100188a2
pop edi
pop esi
pop ebx
leave
ret