Function at 0x414a70
Capabilities:
Check os version

Disassembly:
sub esp, 0xcc
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xbc]
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ebx, [esi + 0xc4]
mov ecx, ebx
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ebp, [esi + 0xdc]
mov ecx, ebp
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esi + 0xcc]
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esi + 0xd4]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0xe0]
test eax, eax
mov dword [esi + 0x40], eax
jne 0x414b41
mov eax, dword [esp + 0xe4]
test eax, eax
jbe 0x414aef
and eax, 0xffff
push eax
push 2
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esp + 0xe8]
test eax, eax
jbe 0x414b17
and eax, 0xffff
push eax
push 2
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, ebx
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esp + 0xec]
test eax, eax
jbe 0x414b9b
and eax, 0xffff
push eax
push 2
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, ebp
call sub.MFC42.DLL_CGdiObject::Attach
jmp 0x414b9b
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0xe8]
lea edx, [esi + 0x44]
push ecx
push edx
push edi
push eax
mov ecx, esi
call fcn.004153a0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xec]
lea eax, [esi + 0x4c]
push edx
push eax
push ebx
push ecx
mov ecx, esi
call fcn.004153a0
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0xf0]
lea ecx, [esi + 0x54]
push eax
push ecx
push ebp
push edx
mov ecx, esi
call fcn.004153a0
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x40]
mov ebx, 1
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], 0x9c
call edi
test eax, eax
jne 0x414bd5
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], 0x94
push ecx
call edi
cmp dword [esp + 0x50], 2
jne 0x414bf3
cmp dword [esp + 0x44], 5
jne 0x414bf3
mov eax, dword [esp + 0x48]
cmp eax, 2
je 0x414bf1
cmp eax, 1
jne 0x414bf3
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
and eax, 0x3ff
cmp ax, 9
jne 0x414ca5
mov eax, dword [esi + 0xc0]
lea edx, [esp + 0x28]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
add ecx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], ecx
add eax, edx
test ebx, ebx
mov dword [esp + 0x24], eax
je 0x414c66
mov ecx, dword [esp + 0x104]
lea edx, [esp + 0x18]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffa
add ecx, 0xffffffea
push ecx
push 0xfffffffffffffffd
push edx
jmp 0x414c7e
mov eax, dword [esp + 0x104]
lea ecx, [esp + 0x18]
neg eax
sbb eax, eax
and al, 0xfc
add eax, 0xffffffde
push eax
push 0xfffffffffffffffd
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
sub edx, eax
push 1
push edx
mov edx, dword [esp + 0x28]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CWnd::MoveWindow
mov eax, dword [esp + 0xf0]
test eax, eax
ja 0x414cbb
mov eax, dword [esp + 0xe4]
test eax, eax
jbe 0x414cdc
and eax, 0xffff
push eax
push 2
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esi + 0xcc]
call sub.MFC42.DLL_CGdiObject::Attach
movsx eax, word [esp + 0xfc]
mov dword [esi + 0xf0], eax
mov ax, word [esp + 0x100]
test ax, ax
jge 0x414cfb
xor eax, eax
jmp 0x414cfe
movsx eax, ax
mov word [esi + 0xe4], ax
mov eax, dword [esp + 0xf4]
test eax, eax
jbe 0x414dd2
and eax, 0xffff
push eax
push 2
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
lea edi, [esi + 0xd4]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esi + 0xec]
test eax, eax
je 0x414d48
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test edi, edi
jne 0x414d50
xor eax, eax
jmp 0x414d53
mov eax, dword [edi + 4]
push 0xffffff
push eax
mov ecx, esi
call fcn.00414de0
test eax, eax
mov dword [esi + 0xec], eax
je 0x414d95
mov ecx, dword [esi + 0x20]
push 1
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov ecx, dword [esi + 0xec]
push ecx
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
cmp word [esi + 0xf4], 0
jne 0x414dd2
test edi, edi
jne 0x414da7
xor eax, eax
jmp 0x414daa
mov eax, dword [edi + 4]
test edi, edi
je 0x414db1
mov edi, dword [edi + 4]
push 6
push eax
mov ecx, esi
call fcn.00414450
push eax
push edi
mov ecx, esi
call fcn.00414430
push eax
push 0
push 0
push 0
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetWindowPos
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret 0x28