Function at 0x4122e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e51ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x2c], esi
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx + 0x210]
mov ebx, dword [eax]
mov dword [esp + 0x30], ebx
mov ebp, dword [eax + 4]
mov dword [esp + 0x34], ebp
call fcn.004a94e0
mov ecx, dword [esp + 0x32]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x20]
and ecx, 0xffff
mov dword [esp + 0x30], ecx
push 0
mov esi, dword [eax + 0x40]
mov edx, dword [esi + 0xe4]
mov edi, dword [edx + ecx*4]
mov ecx, dword [ebp + 4]
mov ebp, dword [ecx]
lea ecx, [eax + 0x1fc]
call fcn.00417ac0
cmp bl, 2
jne 0x412683
mov ecx, dword [edi + 0x98]
xor eax, eax
cmp ecx, eax
mov ebx, 1
je 0x4123c8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
push 0xa1e6
lea ecx, [esp + 0x18]
mov dword [esp + 0x1d4], 0
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 0x14]
push 0
push 4
push edx
call sub.MFC42.DLL_AfxMessageBox
cmp eax, 6
je 0x4123aa
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x1d0], 0xffffffff
call fcn.004e2712
test ebx, ebx
je 0x4127a6
xor eax, eax
mov dword [esp + 0x18], 0x4f57c0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov ecx, edi
push eax
push ebp
mov dword [esp + 0x1d8], 1
call fcn.00468530
mov ebp, eax
test ebp, ebp
jl 0x41249b
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push 0
mov edx, dword [ecx + 0x20]
lea ecx, [edi + 0x54]
mov eax, dword [edx + 0x134]
test eax, eax
je 0x41248f
call fcn.00417070
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0xd4]
push eax
mov eax, dword [esi + 0xd0]
push ecx
mov ecx, dword [esi + 0xcc]
push edx
mov edx, dword [esi + 0xc8]
push eax
push ecx
push edx
mov ecx, edi
call fcn.0045b0e0
test ax, ax
jge 0x412494
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
push 0xa293
lea ecx, [esp + 0x18]
mov byte [esp + 0x1d4], 2
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x14]
push 0
push 0
push eax
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x14]
mov byte [esp + 0x1d0], 1
call fcn.004e2712
jmp 0x412494
call fcn.00417070
mov ecx, edi
call fcn.0045afe0
cmp ebp, 1
jne 0x412633
lea ecx, [esp + 0x50]
call fcn.0045a2d0
sub esp, 0xbc
mov bl, 3
mov ecx, esp
mov dword [esp + 0xd0], esp
push edi
mov byte [esp + 0x290], bl
call fcn.0045a3a0
lea ecx, [esp + 0x1c8]
push ecx
lea ecx, [esp + 0x110]
call fcn.0045a950
lea ecx, [esp + 0x10c]
call fcn.0045ae80
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x98]
call fcn.004163d0
mov eax, dword [esp + 0x20]
xor edi, edi
test eax, eax
jle 0x41252e
sub esp, 0x14
lea ecx, [esp + 0x2c]
mov edx, esp
mov dword [esp + 0x28], esp
push edi
push edx
call fcn.00416560
lea ecx, [esp + 0xa4]
call fcn.00416650
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
jl 0x412505
mov eax, dword [esp + 0x98]
lea edx, [esp + 0x3c]
mov word [esp + 0x5c], 0
lea ecx, [eax - 1]
dec eax
mov word [esp + 0x5e], cx
push eax
push edx
lea ecx, [esp + 0x98]
call fcn.00416560
mov eax, dword [esp + 0x48]
mov byte [esp + 0x1d0], 4
cmp eax, 0xa
jne 0x412577
mov eax, dword [esp + 0x98]
add eax, 0xfffffffe
mov word [esp + 0x5e], ax
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xac]
call fcn.00417070
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
mov eax, dword [esi + 0xd4]
push ecx
mov ecx, dword [esi + 0xd0]
push edx
mov edx, dword [esi + 0xcc]
push eax
mov eax, dword [esi + 0xc8]
push ecx
push edx
push eax
lea ecx, [esp + 0x68]
call fcn.0045b0e0
test ax, ax
jge 0x4125f7
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
push 0xa293
lea ecx, [esp + 0x18]
mov byte [esp + 0x1d4], 5
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x14]
push 0
push 0
push ecx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x14]
mov byte [esp + 0x1d0], 4
call fcn.004e2712
lea ecx, [esp + 0x50]
call fcn.0045afe0
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x50]
inc eax
push edx
push eax
mov ecx, esi
call fcn.0048b5b0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1d0], bl
call fcn.004ba050
lea ecx, [esp + 0x50]
mov byte [esp + 0x1d0], 1
call fcn.0045ae80
mov dword [esp + 0x18], 0x4f57c0
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x1d0], 6
test esi, esi
je 0x412673
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41266a
lea edi, [eax]
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx]
add esi, 0x14
dec edi
jne 0x412658
mov esi, dword [esp + 0x1c]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x1d0], 0xffffffff
jmp 0x4127a6
cmp bl, 3
jne 0x4127a6
xor ebx, ebx
mov dword [esp + 0x18], 0x4f5778
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x18]
mov ecx, edi
push eax
push ebp
mov dword [esp + 0x1d8], 7
call fcn.00469e60
mov ecx, edi
mov ebp, eax
call fcn.0045afe0
cmp ebp, ebx
je 0x412754
lea ecx, [esp + 0x3c]
mov dword [edi + 0x98], 1
call sub.MFC42.DLL_CObArray::CObArray
mov dword [esp + 0x3c], 0x4f57d4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x44]
mov byte [esp + 0x1d8], 8
call sub.MFC42.DLL_CObArray::SetSize
movsx edx, word [edi + 8]
lea ecx, [esp + 0x3c]
lea eax, [esp + 0x18]
push ecx
push 1
push edx
push eax
mov ecx, esi
call fcn.004861d0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
inc edx
mov edi, dword [ecx]
mov ecx, esi
push edi
push edx
call fcn.0048b5b0
cmp edi, ebx
je 0x412737
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CObArray::SetSize
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1d0], 7
call fcn.004e2844
mov dword [esp + 0x18], 0x4f5778
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x1d0], 9
cmp esi, ebx
je 0x412793
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x41278a
lea edi, [eax]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx]
add esi, 0x30
dec edi
jne 0x412779
mov esi, dword [esp + 0x1c]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x1d0], 0xffffffff
mov dword [esp + 0x18], 0x4f4f00
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4127ba
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x20]
call fcn.004a9520
mov ecx, dword [esp + 0x2c]
push 1
push 0
mov edx, dword [ecx + 0x20]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x1c8]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret