Function at 0x401320
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
lea ebx, [esi + 0x20]
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
call fcn.00402833
lea ebx, [esi + 0x4c]
call fcn.00402833
lea ebx, [esi + 0x78]
call fcn.00402833
mov dword [esi], 0x419124
mov dword [esi + 0x20], 0x419104
mov dword [esi + 0x4c], 0x4190e4
mov dword [ebx], 0x4190c4
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xc0], edi
mov dword [esi + 0xc4], 0x1c
lea eax, [esi + 0xc8]
mov dword [eax], edi
mov dword [ebp - 0x10], eax
lea eax, [esi + 0xcc]
mov dword [eax], edi
mov dword [ebp - 0x24], eax
lea eax, [esi + 0xd0]
mov dword [eax], edi
lea edi, [esi + 0xdc]
mov dword [ebp - 0x28], eax
call fcn.00401000
lea eax, [esi + 0x148]
call fcn.00401f81
xor edi, edi
mov dword [esi + 0x16c], edi
mov dword [esi + 0x180], edi
mov dword [esi + 0x184], edi
mov dword [esi + 0x188], edi
mov dword [esi + 0x18c], 3
mov dword [esi + 0x190], edi
mov dword [esi + 0x194], edi
lea eax, [esi + 0x198]
mov dword [eax], edi
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x19c]
mov dword [eax], edi
mov dword [ebp - 0x18], eax
lea eax, [esi + 0x1a0]
mov dword [eax], edi
mov dword [ebp - 0x14], eax
lea eax, [esi + 0x1a4]
mov dword [eax], edi
mov dword [esi + 0x1a8], edi
mov dword [esi + 0x1ac], edi
mov dword [esi + 0x1b0], edi
mov dword [esi + 0x1b4], edi
mov dword [esi + 0x1b8], edi
mov dword [esi + 0x1bc], edi
mov dword [esi + 0x1c8], edi
mov dword [ebp - 0x1c], eax
lea eax, [esi + 0x1d4]
mov dword [esi + 0x1cc], edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
lea ebx, [esi + 0x1e0]
mov dword [ebx], edi
lea eax, [esi + 0x1f4]
mov dword [esi + 0x1e4], edi
mov dword [esi + 0x1e8], edi
mov dword [esi + 0x1ec], edi
mov dword [esi + 0x1f0], edi
mov dword [ebp - 0x20], eax
mov word [eax], di
mov dword [esi + 0x1f8], edi
mov dword [esi + 0x1fc], edi
mov dword [esi + 0x200], edi
lea eax, [esi + 0x204]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [esi + 0x210], edi
mov dword [ebp - 0x2c], eax
mov dword [esi + 0x214], edi
mov dword [0x41d7b8], edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4014f4
and eax, 0xff
cmp eax, 5
jb 0x4014f4
xor eax, eax
inc eax
jmp 0x4014f6
xor eax, eax
push ebx
push 0x418708
push 0x17
push edi
push 0x419078
mov dword [esi + 0x1c0], eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4015a8
cmp dword [0x41d8a4], edi
jne 0x4015a8
push 0x20019
push str.SoftwareITConceptsOneCardASPanel
push SysReAllocString
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
call fcn.0040a146
test eax, eax
jne 0x40159a
lea eax, [ebp - 4]
push eax
push edi
push str.ExpandState
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], edi
call fcn.0040a114
test eax, eax
jne 0x40159a
cmp dword [ebp - 4], edi
je 0x40159a
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov esi, eax
cmp esi, edi
je 0x40159a
lea eax, [ebp - 4]
push eax
push esi
push str.ExpandState
lea eax, [ebp - 8]
push eax
call fcn.0040a114
test eax, eax
jne 0x401593
mov ebx, dword [ebx]
mov eax, dword [ebx]
push esi
push dword [ebp - 4]
push ebx
call dword [eax + 0x70]
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 8], edi
je 0x4015a8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xc]
push 0x45160011
call fcn.004134ac
mov esi, dword [ebp - 0x18]
mov dword [esp], 0x45160012
call fcn.004134ac
mov esi, dword [ebp - 0x14]
mov dword [esp], 0x45160013
call fcn.004134ac
mov esi, dword [ebp - 0x1c]
push 0x8b
call fcn.0041342b
pop ecx
pop ecx
call sub.ItMsg.dll_Ordinal_1059
mov edi, dword [ebp + 8]
shr eax, 1
and eax, 1
mov dword [edi + 0x1a8], eax
call sub.ItMsg.dll_Ordinal_1059
shr eax, 2
and eax, 1
mov dword [edi + 0x1ac], eax
mov esi, str.SoftwareITConceptsOneCardLogon
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
je 0x40162c
push 0
push str.PswOnly
push esi
push ebx
call fcn.00413e0e
add esp, 0x10
test eax, eax
je 0x40162c
xor eax, eax
inc eax
jmp 0x40162e
xor eax, eax
push 0
push str.NetworkIntegration
push esi
push ebx
mov dword [edi + 0x1b0], eax
call fcn.00413e0e
push dword [ebp - 0x20]
mov dword [edi + 0x1b4], eax
push 0
call fcn.004138f2
push 0
push str.ShowAllServices
mov esi, str.SoftwareITConceptsOneCardASPanel
push esi
push ebx
call fcn.00413e0e
push 0
push str.ShowManageIdentity
push esi
push ebx
mov dword [edi + 0x1b8], eax
call fcn.00413e0e
mov esi, 0xff000000
push esi
push 0x81
mov dword [edi + 0x1bc], eax
push 0xce
push dword [0x41b6f4]
call sub.ItMsg.dll_Ordinal_1073
add esp, 0x48
cmp dword [0x41d8a4], 0
mov dword [edi + 0x190], eax
je 0x4016f4
push esi
push 0x81
push 0x69
push dword [0x41b6f4]
call sub.ItMsg.dll_Ordinal_1073
push 0
push 0xbb9
mov dword [edi + 0x194], eax
call sub.ItMsg.dll_Ordinal_1051
add esp, 0x18
push esi
push eax
push dword [edi + 0x194]
mov dword [ebp - 0x14], eax
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
cmp dword [ebp - 0x14], 0
je 0x4016f4
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [ebp - 0x10]
push 0x13d3
call fcn.00413474
pop ecx
mov eax, esi
call fcn.0040a0ec
test al, al
je 0x401717
mov eax, dword [ebp - 0xc]
push dword [eax]
call fcn.00413a2a
and dword [ebp - 0xc], 0
push 0xc9
lea esi, [ebp - 0xc]
call fcn.0041342b
mov esi, dword [ebp - 0x24]
pop ecx
push dword [ebp - 0xc]
call fcn.0040a191
mov eax, dword [ebp - 0x28]
push 0xac
call fcn.0040a06f
push 0x66
xor esi, esi
push esi
push 9
push 0x66
call fcn.00409ffe
add esp, 0xc
push eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
cmp dword [edi + 0x1b8], esi
mov dword [edi + 0xd4], eax
jne 0x401874
push 0x20019
push str.SoftwareITConceptsOneCardASPanel
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.0040a146
test eax, eax
jne 0x401866
cmp dword [0x41d8a8], esi
mov dword [ebp - 0x10], esi
mov eax, str.HideServices.Novice
jne 0x40179e
mov eax, str.HideServices
push eax
lea esi, [ebp - 0x14]
call fcn.004021c7
push 0
push dword [ebp - 0x14]
lea eax, [ebp - 4]
push eax
lea esi, [ebp - 0x10]
call fcn.00409fb9
test eax, eax
jne 0x401859
mov eax, dword [0x41b78c]
mov ecx, 0x41b78c
call dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
add eax, 0x10
lea esi, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.00409edb
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 4]
push eax
lea esi, [ebp - 0x10]
call fcn.00409fb9
or eax, 0xffffffff
lea esi, [ebp - 8]
call fcn.00409ebb
and dword [ebp - 0x18], 0
jmp 0x401822
push edi
lea esi, [ebp - 0x28]
call fcn.0040a1bd
push eax
mov eax, dword [ebp - 0x2c]
call fcn.00413128
push dword [ebp - 0x28]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [edi - 0x10]
call fcn.00408daf
lea edi, [ebp - 8]
lea ebx, [ebp - 0x10]
lea esi, [ebp - 0x18]
push 0x41921c
call fcn.004021f6
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], 0
jne 0x4017ff
lea eax, [edi - 0x10]
call fcn.00408daf
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00408daf
mov edi, dword [ebp + 8]
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00408daf
xor esi, esi
cmp dword [ebp - 4], esi
je 0x401874
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0041511f
test eax, eax
jne 0x401885
cmp dword [edi + 0x1a8], esi
jne 0x401888
xor eax, eax
inc eax
push eax
push str.AddressTab
push str.SoftwareITConceptsOneCardSettings
push ebx
call fcn.00413e0e
add esp, 0x10
cmp dword [ebp - 0xc], esi
mov dword [edi + 0x1c4], eax
je 0x4018b0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4