Function at 0x408390
Capabilities:
Check os version
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x432c25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6dc
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x24]
push edi
mov ecx, dword [esi + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
sub eax, ebp
mov ebx, dword [sym.imp.USER32.dll_ClientToScreen]
cdq
sub eax, edx
mov edx, dword [esp + 0x2c]
sar eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
sub eax, edx
cdq
sub eax, edx
lea edx, [esp + 0x10]
sar eax, 1
add eax, 0x28
push edx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x20]
push eax
call ebx
mov edx, dword [esi + 0x20]
mov ebp, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x18]
push ecx
push edx
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov edi, eax
test edi, edi
je 0x408685
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push eax
push ecx
push edi
call dword [sym.imp.USER32.dll_ChildWindowFromPointEx]
lea edx, [esp + 0x10]
push edx
push edi
call ebx
lea eax, [esp + 0x18]
push eax
push edi
call ebp
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
cmp eax, ebx
jne 0x408625
cmp ecx, ebx
jne 0x408625
push 4
push 0x441c38
push 0x441c08
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x408685
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push 0xf020
push 0x112
push ecx
call edi
push ebx
lea ecx, [esp + 0x3c]
call fcn.0040e3a0
lea ecx, [esp + 0x38]
mov dword [esp + 0x6f4], ebx
call sub.MFC42.DLL_CDialog::DoModal
mov edx, dword [esi + 0x20]
push ebx
push 0xf120
push 0x112
push edx
call edi
lea ecx, [esp + 0x674]
mov dword [esp + 0x6f4], 0xe
call fcn.0041ecc0
lea ecx, [esp + 0x510]
mov byte [esp + 0x6f4], 0xd
call fcn.0041d7c0
lea ecx, [esp + 0x3ac]
mov byte [esp + 0x6f4], 0xc
call fcn.0041d7c0
lea ecx, [esp + 0x248]
mov byte [esp + 0x6f4], 0xb
call fcn.0041d7c0
lea ecx, [esp + 0xe4]
mov byte [esp + 0x6f4], 0xa
call fcn.0041d7c0
mov esi, 0x436cd0
lea ecx, [esp + 0xdc]
mov byte [esp + 0x6f4], 9
mov dword [esp + 0xdc], esi
call fcn.00401810
lea ecx, [esp + 0xd4]
mov byte [esp + 0x6f4], 8
mov dword [esp + 0xd4], esi
call fcn.00401810
lea ecx, [esp + 0xcc]
mov byte [esp + 0x6f4], 7
mov dword [esp + 0xcc], esi
call fcn.00401810
lea ecx, [esp + 0xc4]
mov byte [esp + 0x6f4], 6
mov dword [esp + 0xc4], esi
call fcn.00401810
lea ecx, [esp + 0xbc]
mov byte [esp + 0x6f4], 5
mov dword [esp + 0xbc], esi
call fcn.00401810
lea ecx, [esp + 0xb4]
mov byte [esp + 0x6f4], 4
call fcn.00401770
lea ecx, [esp + 0xac]
mov byte [esp + 0x6f4], 3
call fcn.00401770
lea ecx, [esp + 0xa4]
mov byte [esp + 0x6f4], 2
call fcn.00401770
mov byte [esp + 0x6f4], 1
lea ecx, [esp + 0x9c]
call fcn.00401770
lea ecx, [esp + 0x38]
mov dword [esp + 0x6f4], 0xffffffff
call sub.MFC42.DLL_CDialog::CDialog
jmp 0x408685
cmp dword [esi + 0x16e4], ebx
je 0x40865d
push 9
mov ecx, esi
call sub.MFC42.DLL_CWnd::ShowWindow
push 5
lea ecx, [esi + 0x9d0]
mov dword [esi + 0x16e4], ebx
call sub.MFC42.DLL_CWnd::ShowWindow
push ebx
lea ecx, [esi + 0xb34]
call sub.MFC42.DLL_CWnd::ShowWindow
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
push 1
sub edx, ecx
add ecx, 0xffffff87
add edx, 0x90
push edx
mov edx, dword [esp + 0x28]
sub edx, eax
add eax, 0xfffffffc
add edx, 8
push edx
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CWnd::MoveWindow
mov ecx, dword [esp + 0x6ec]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6e8
ret