Function at 0x403600
Capabilities:
Check os version

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43b098
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
mov ebx, 1
mov eax, edi
mov esi, ecx
and eax, ebx
cmp al, bl
jne 0x403634
mov dword [esi + 0x78], ebx
jmp 0x40364e
mov ecx, edi
and ecx, 2
cmp cl, 2
jne 0x403647
mov dword [esi + 0x78], 2
jmp 0x40364e
mov dword [esi + 0x78], 0
test edi, 0x1000
je 0x40365c
mov dword [esi + 0x8c], ebx
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetExStyle
test ah, 2
jne 0x403676
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetExStyle
test eax, 0x20000
je 0x40367c
mov dword [esi + 0x8c], ebx
mov eax, edi
xor ecx, ecx
and eax, 4
mov edx, 0x3c3c3c
cmp al, 4
mov ebp, 0xd2d2d2
jne 0x40369b
mov ecx, ebx
mov dword [esi + 0x9c], edx
jmp 0x4036c3
mov eax, edi
and eax, 5
cmp al, 5
jne 0x4036ae
mov ecx, ebx
mov dword [esi + 0x9c], ebp
jmp 0x4036c3
mov eax, edi
and eax, 6
cmp al, 6
jne 0x4036c3
mov ecx, ebx
mov dword [esi + 0x9c], 0xffffff
mov ebx, edi
xor eax, eax
and ebx, 0x11
cmp bl, 0x11
je 0x40371f
mov ebx, edi
and ebx, 0x10
cmp bl, 0x10
je 0x40371f
mov ebx, edi
and ebx, 0x12
cmp bl, 0x12
je 0x40371f
mov ebx, edi
and ebx, 8
cmp bl, 8
je 0x40371f
mov ebx, edi
and ebx, 7
cmp bl, 7
jne 0x403704
mov eax, 1
mov dword [esi + 0xa4], edx
jmp 0x40372a
mov edx, edi
and edx, 9
cmp dl, 9
jne 0x40372a
mov eax, 1
mov dword [esi + 0xa4], 0xffffff
jmp 0x40372a
mov eax, 1
mov dword [esi + 0xa4], ebp
test ecx, ecx
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
jne 0x403742
test eax, eax
je 0x4037ce
mov eax, dword [esi + 0x20]
mov ebp, dword [sym.imp.USER32.dll_GetParent]
push eax
call ebp
push eax
call sub.MFC42.DLL_CWnd::FromHandle
test eax, eax
je 0x4037ce
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x20]
push eax
call ebp
push eax
call sub.MFC42.DLL_CWnd::FromHandle
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
sub edx, eax
cmp edx, 2
jne 0x4037a9
mov edx, dword [esp + 0x18]
lea ecx, [eax + 1]
mov dword [esp + 0x1c], ecx
sub ecx, eax
push 1
push ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
push edx
push eax
push ecx
jmp 0x4037c7
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
sub ecx, ebp
cmp ecx, 2
jne 0x4037ce
lea ecx, [ebp + 1]
push 1
mov dword [esp + 0x1c], ecx
sub ecx, ebp
push edx
push ecx
push eax
push ebp
mov ecx, esi
call sub.MFC42.DLL_CWnd::MoveWindow
and edi, 0xfffeffff
push 0
or edi, 0xd
mov ecx, esi
push edi
push 0x10000
call sub.MFC42.DLL_CWnd::ModifyStyle
push 0x20
push 0
push 0x801000
mov ecx, esi
call sub.MFC42.DLL_CWnd::ModifyStyle
push 0x20
push 0
push 0x20201
mov ecx, esi
call sub.MFC42.DLL_CWnd::ModifyStyleEx
mov edx, dword [0x450ba0]
push 0
push 0
push 0
push 0
push 0
push 0x190
push 9
push edx
mov ecx, 0x450ab0
call fcn.00405980
lea ecx, [esp + 0x30]
mov dword [esi + 0x40], eax
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x30]
mov ecx, esi
push eax
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_CWnd::GetWindowTextA
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, esi
call fcn.00403aa0
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4