Function at 0x541a90
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x571dc4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebp
xor ebp, ebp
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0x10], ebp
mov edi, dword [0x5cb0b8]
lea ecx, [esp + 0x10]
push ecx
push edi
mov eax, dword [edi]
mov dword [esp + 0x40], ebp
call dword [eax + 0xc0]
cmp dword [esp + 0x10], ebp
je 0x541f08
mov edx, dword [0x5d2ac0]
push ebx
mov ebx, 0x5d2ac0
push esi
mov ecx, ebx
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ebx
call dword [edx + 4]
mov eax, dword [0x5cb048]
mov byte [esp + 0x40], 1
cmp eax, ebp
jne 0x541b61
cmp dword [0x5cb044], ebp
jne 0x541b61
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov byte [esp + 0x40], 2
je 0x541b36
push ebp
mov ecx, eax
call fcn.00414150
jmp 0x541b38
xor eax, eax
mov dword [0x5cb044], eax
mov eax, dword [0x5b4b90]
push eax
push 0x406940
mov ecx, 0x5d0190
mov byte [esp + 0x48], 1
call fcn.00406500
mov dword [0x5cb048], 1
mov edx, dword [0x5d2ac0]
mov esi, dword [0x5cb044]
mov ecx, ebx
mov byte [esp + 0x40], 0
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [eax + 0xb8]
cmp dword [esp + 0x20], ebp
je 0x541b9c
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x5c]
jmp 0x541baa
mov edx, dword [edi]
lea eax, [esp + 0x1c]
push eax
push edi
call dword [edx + 0xa4]
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xffffffff
je 0x541c1c
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x18]
lea esi, [esp + 0x14]
push esi
push ecx
mov edx, dword [eax]
push eax
mov byte [esp + 0x4c], 3
call dword [edx + 0x28]
test eax, eax
mov eax, dword [esp + 0x14]
jl 0x541c0d
cmp eax, ebp
je 0x541c0d
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 0xc
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x541c01
cmp eax, 0xc
je 0x541c01
cmp eax, 1
mov dword [esp + 0x10], ebp
jne 0x541c09
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov byte [esp + 0x40], 0
je 0x541c1c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebp
mov edi, eax
jne 0x541cc4
mov edx, dword [0x5d2ac0]
mov ecx, ebx
mov dword [esp + 0x28], ebx
call dword [edx + 4]
mov eax, dword [0x5cb048]
mov byte [esp + 0x40], 4
cmp eax, ebp
jne 0x541c9e
cmp dword [0x5cb044], ebp
jne 0x541c9e
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov byte [esp + 0x40], 5
je 0x541c73
push ebp
mov ecx, eax
call fcn.00414150
jmp 0x541c75
xor eax, eax
mov dword [0x5cb044], eax
mov eax, dword [0x5b4b90]
push eax
push 0x406940
mov ecx, 0x5d0190
mov byte [esp + 0x48], 4
call fcn.00406500
mov dword [0x5cb048], 1
mov edx, dword [0x5d2ac0]
mov esi, dword [0x5cb044]
mov ecx, ebx
mov byte [esp + 0x40], 0
call dword [edx + 8]
mov ecx, esi
call fcn.00478020
test al, al
je 0x541cc4
mov edi, 1
mov eax, dword [0x5d2ac0]
mov ecx, ebx
mov dword [esp + 0x28], ebx
call dword [eax + 4]
mov eax, dword [0x5cb048]
mov bl, 6
cmp eax, ebp
mov byte [esp + 0x40], bl
jne 0x541d38
cmp dword [0x5cb044], ebp
jne 0x541d38
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov byte [esp + 0x40], 7
je 0x541d0d
push ebp
mov ecx, eax
call fcn.00414150
jmp 0x541d0f
xor eax, eax
mov ecx, dword [0x5b4b90]
mov byte [esp + 0x40], bl
push ecx
push 0x406940
mov ecx, 0x5d0190
mov dword [0x5cb044], eax
call fcn.00406500
mov dword [0x5cb048], 1
mov edx, dword [0x5d2ac0]
mov esi, dword [0x5cb044]
mov ecx, 0x5d2ac0
mov byte [esp + 0x40], 0
call dword [edx + 8]
mov ecx, esi
call fcn.0047cc70
cmp eax, 4
je 0x541d66
cmp eax, 5
jne 0x541eb8
cmp dword [esp + 0x20], ebp
jne 0x541d75
xor ebx, ebx
xor edi, edi
jmp 0x541ebc
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
mov eax, dword [0x5d2ac0]
mov ecx, 0x5d2ac0
mov byte [esp + 0x40], 9
mov dword [esp + 0x30], 0x5d2ac0
call dword [eax + 4]
mov eax, dword [0x5cb048]
mov bl, 0xa
cmp eax, ebp
mov byte [esp + 0x40], bl
jne 0x541dfd
cmp dword [0x5cb044], ebp
jne 0x541dfd
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebp
mov byte [esp + 0x40], 0xb
je 0x541dd2
push ebp
mov ecx, eax
call fcn.00414150
jmp 0x541dd4
xor eax, eax
mov ecx, dword [0x5b4b90]
mov byte [esp + 0x40], bl
push ecx
push 0x406940
mov ecx, 0x5d0190
mov dword [0x5cb044], eax
call fcn.00406500
mov dword [0x5cb048], 1
mov edx, dword [0x5d2ac0]
mov esi, dword [0x5cb044]
mov ecx, 0x5d2ac0
mov byte [esp + 0x40], 9
call dword [edx + 8]
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.00473910
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x541e38
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push eax
call dword [ecx + 0xac]
mov ecx, dword [esp + 0x28]
xor eax, eax
cmp ecx, ebp
mov dword [esp + 0x14], eax
je 0x541e59
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
push 0x5b5cc0
push ecx
call dword [eax]
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov byte [esp + 0x40], 0xc
je 0x541e83
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebp
je 0x541e76
cmp eax, 0xc
je 0x541e76
cmp eax, 1
jne 0x541e7f
mov edi, 1
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov byte [esp + 0x40], 9
je 0x541e92
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x40], 8
cmp eax, ebp
je 0x541ea5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
mov byte [esp + 0x40], 0
cmp eax, ebp
je 0x541eb8
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
push ebx
push 0x4b5
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem_1
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push ebx
push 0x4b6
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem_1
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push edi
mov ecx, esi
call fcn.005418c0
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebp
mov dword [esp + 0x3c], 0xffffffff
pop ebx
je 0x541f08
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x30]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x34
ret