Function at 0x503650
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x664ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x384
push ebx
push esi
push edi
push 0x1f0
xor ebx, ebx
lea eax, [ebp - 0x278]
push ebx
push eax
mov esi, ecx
call fcn.006100a0
add esp, 0xc
push ebx
lea ecx, [ebp - 0x27c]
push ecx
push 0x1f4
push 0x29
mov dword [ebp - 0x27c], 0x1f4
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp eax, ebx
je 0x5037e8
push 0x58
lea edx, [ebp - 0x84]
push ebx
push edx
mov dword [ebp - 0x88], ebx
call fcn.006100a0
mov eax, dword [esi + 0x10]
add esp, 0xc
cmp eax, ebx
je 0x5036e0
lea ecx, [ebp - 0x88]
push ecx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [ebp - 0x88]
cmp edx, dword [ebp - 0x19c]
jne 0x503796
mov eax, dword [ebp - 0x84]
cmp eax, dword [ebp - 0x198]
jne 0x503796
mov ecx, dword [ebp - 0x80]
cmp ecx, dword [ebp - 0x194]
jne 0x503796
mov edx, dword [ebp - 0x7c]
cmp edx, dword [ebp - 0x190]
jne 0x503796
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x18c]
jne 0x503796
mov cl, byte [ebp - 0x74]
cmp cl, byte [ebp - 0x188]
jne 0x503796
mov dl, byte [ebp - 0x73]
cmp dl, byte [ebp - 0x187]
jne 0x503796
mov al, byte [ebp - 0x72]
cmp al, byte [ebp - 0x186]
jne 0x503796
mov cl, byte [ebp - 0x71]
cmp cl, byte [ebp - 0x185]
jne 0x503796
mov dl, byte [ebp - 0x70]
cmp dl, byte [ebp - 0x184]
jne 0x503796
mov al, byte [ebp - 0x6f]
cmp al, byte [ebp - 0x183]
jne 0x503796
mov cl, byte [ebp - 0x6e]
cmp cl, byte [ebp - 0x182]
jne 0x503796
mov dl, byte [ebp - 0x6d]
cmp dl, byte [ebp - 0x181]
jne 0x503796
lea eax, [ebp - 0x180]
push eax
lea ecx, [ebp - 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x5037e8
lea edx, [ebp - 0x19c]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov edi, eax
cmp edi, ebx
je 0x5037e8
cmp dword [esi + 0x10], ebx
je 0x5037bf
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp eax, ebx
je 0x5037bf
mov dword [esi + 0x10], ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x5037d1
cmp eax, edi
je 0x5037d1
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 1
mov eax, edi
push eax
mov dword [esi + 0x10], edi
mov ecx, dword [esi - 0x248]
push 0x30
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, ebx
je 0x5037f4
lea eax, [esi - 0x24c]
jmp 0x5037f6
xor eax, eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edi, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x10]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x424
lea edx, [ebp - 0x20]
push edx
push 0xffffffffffffffff
push 0x671160
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
cmp eax, 4
jge 0x503880
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetRectEmpty]
push 0x424
lea edx, [ebp - 0x20]
push edx
push 0xffffffffffffffff
push 0x67115c
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
mov dword [esi + 0x14], eax
jmp 0x503883
mov dword [esi + 0x14], ebx
mov ecx, dword [ebp - 0x10]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push pe_nt_image_headers32
lea edx, [ebp - 0x38c]
push ebx
push edx
mov dword [ebp - 0x390], 0x114
call fcn.006100a0
add esp, 0xc
lea eax, [ebp - 0x390]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x38c]
cmp eax, 5
jne 0x5038d0
cmp dword [ebp - 0x388], 1
jae 0x5038d2
jmp 0x5038fb
jbe 0x5038fb
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 0x1022
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp eax, ebx
je 0x5038f6
cmp dword [ebp - 0x10], ebx
je 0x5038f6
mov eax, 1
jmp 0x5038f8
xor eax, eax
mov byte [esi + 0x18], al
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
push edi
push edx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret