Function at 0x413780
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4233f3
mov eax, dword fs:[0]
push eax
sub esp, 0x39c
mov eax, dword [0x4351b0]
xor eax, esp
mov dword [esp + 0x394], eax
push ebx
push esi
mov eax, dword [0x4351b0]
xor eax, esp
push eax
lea eax, [esp + 0x3a8]
mov dword fs:[0], eax
push 0x1f4
xor ebx, ebx
lea eax, [esp + 0x94]
mov esi, ecx
push ebx
push eax
mov dword [esp + 0x1c], esi
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
lea ecx, [esp + 0x90]
push ecx
push 0x1f8
push 0x29
mov dword [esp + 0x9c], 0x1f4
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp eax, ebx
je 0x413965
push 0x58
lea edx, [esp + 0x34]
push ebx
push edx
mov dword [esp + 0x38], ebx
call sub.MSVCR100.dll_memset
mov eax, dword [edi + 0x10]
add esp, 0xc
cmp eax, ebx
je 0x41382f
lea ecx, [esp + 0x2c]
push ecx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [esp + 0x2c]
cmp edx, dword [esp + 0x16c]
jne 0x4138ff
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x170]
jne 0x4138ff
mov ecx, dword [esp + 0x34]
cmp ecx, dword [esp + 0x174]
jne 0x4138ff
mov edx, dword [esp + 0x38]
cmp edx, dword [esp + 0x178]
jne 0x4138ff
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x17c]
jne 0x4138ff
mov cl, byte [esp + 0x40]
cmp cl, byte [esp + 0x180]
jne 0x4138ff
mov dl, byte [esp + 0x41]
cmp dl, byte [esp + 0x181]
jne 0x4138ff
mov al, byte [esp + 0x42]
cmp al, byte [esp + 0x182]
jne 0x4138ff
mov cl, byte [esp + 0x43]
cmp cl, byte [esp + 0x183]
jne 0x4138ff
mov dl, byte [esp + 0x44]
cmp dl, byte [esp + 0x184]
jne 0x4138ff
mov al, byte [esp + 0x45]
cmp al, byte [esp + 0x185]
jne 0x4138ff
mov cl, byte [esp + 0x46]
cmp cl, byte [esp + 0x186]
jne 0x4138ff
mov dl, byte [esp + 0x47]
cmp dl, byte [esp + 0x187]
jne 0x4138ff
lea eax, [esp + 0x188]
push eax
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x413965
push str.Tahoma
lea edx, [esp + 0x18c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x16c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [esp + 0xc], eax
cmp eax, ebx
je 0x413965
cmp dword [edi + 0x10], ebx
je 0x41393e
mov ecx, dword [edi + 0x10]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp eax, ebx
je 0x41393e
mov dword [edi + 0x10], ebx
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x413952
cmp eax, dword [esp + 0xc]
je 0x413952
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0xc]
push 1
push edx
push 0x30
push esi
mov dword [edi + 0x10], edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x3b0], ebx
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_GetWindowDC]
mov esi, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x3b0], 1
mov eax, dword [edi + 0x10]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x424
lea ecx, [esp + 0x20]
push ecx
push 0xffffffffffffffff
push 0x42a8f4
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x1c]
cmp edx, 4
jge 0x413a00
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
push 0x424
lea ecx, [esp + 0x20]
push ecx
push 0xffffffffffffffff
push 0x42a8f8
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x1c]
mov dword [edi + 0x14], edx
jmp 0x413a03
mov dword [edi + 0x14], ebx
mov eax, dword [esp + 0xc]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push pe_nt_image_headers32
lea ecx, [esp + 0x28c]
push ebx
push ecx
mov dword [esp + 0x290], 0x114
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [esp + 0x284]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x288]
cmp eax, 5
jne 0x413a56
cmp dword [esp + 0x28c], 1
jae 0x413a58
jmp 0x413a84
jbe 0x413a84
push ebx
lea eax, [esp + 0x10]
push eax
push ebx
push 0x1022
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp eax, ebx
je 0x413a7f
cmp dword [esp + 0xc], ebx
je 0x413a7f
mov eax, 1
jmp 0x413a81
xor eax, eax
mov byte [edi + 0x18], al
mov dword [esp + 0x3b0], 2
mov ecx, dword [esp + 0x10]
push esi
push ecx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [esp + 0x3b0], 0xffffffff
mov ecx, dword [esp + 0x3a8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x394]
xor ecx, esp
call fcn.004223ce
mov esp, ebp
pop ebp
ret