Function at 0x406f70
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x51d926
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x30]
push esi
mov esi, ecx
cmp ebx, 5
push edi
mov dword [esp + 0x20], esi
jne 0x406fb8
mov eax, dword [esp + 0x3c]
push eax
call fcn.004b9480
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
test ebx, ebx
jl 0x407481
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x407481
mov ecx, dword [esi + 0x90]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp ebx, edx
jae 0x407481
mov edi, dword [esp + 0x3c]
test edi, edi
jl 0x407481
mov esi, dword [esi + 0x8c]
lea ecx, [ebx + ebx*8]
shl ecx, 2
mov eax, dword [ecx + esi + 4]
test eax, eax
je 0x407481
mov edx, dword [ecx + esi + 8]
sub edx, eax
mov eax, 0x2aaaaaab
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edi, edx
jae 0x407481
mov ecx, dword [ecx + esi + 4]
lea esi, [edi + edi*2]
shl esi, 6
add esi, ecx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0x84]
call fcn.00442110
mov ecx, dword [esi + 0x88]
mov eax, dword [esp + 0x10]
cmp eax, ecx
je 0x40709c
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x407085
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne 0x40706f
mov ecx, 0x535108
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x40707b
mov eax, 0x535108
push ecx
push eax
call fcn.0040b850
add esp, 8
lea ecx, [esp + 0x10]
call fcn.00410fc0
mov ecx, dword [esi + 0x88]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jne 0x40705c
lea ebx, [esi + 0x98]
lea edx, [esp + 0x14]
push edx
mov ecx, ebx
call fcn.00442110
mov ecx, dword [esi + 0x9c]
mov eax, dword [esp + 0x14]
cmp eax, ecx
je 0x4070fc
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4070e5
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne 0x4070cf
mov ecx, 0x535108
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x4070db
mov eax, 0x535108
push ecx
push eax
call fcn.0040bbc0
add esp, 8
lea ecx, [esp + 0x14]
call fcn.00410fc0
mov ecx, dword [esi + 0x9c]
mov eax, dword [esp + 0x14]
cmp eax, ecx
jne 0x4070bc
push ebp
lea ebp, [esi + 0xac]
lea eax, [esp + 0x40]
mov ecx, ebp
push eax
call fcn.00442110
mov ecx, dword [esi + 0xb0]
mov eax, dword [esp + 0x40]
cmp eax, ecx
je 0x4071db
mov edi, dword [esi + 0x9c]
add eax, 0xc
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, ebx
call fcn.004cfcd0
cmp dword [esp + 0x28], edi
setne al
test al, al
mov byte [esp + 0x20], al
jne 0x4071a2
mov ecx, dword [esi + 0x9c]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x1c], eax
je 0x4071a2
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x407184
mov edx, dword [esp + 0x40]
lea ecx, [edx + 0xc]
mov edx, dword [eax + 0x48]
mov eax, dword [eax + 0x44]
test eax, eax
jne 0x407173
mov eax, 0x535108
push edx
push eax
mov eax, dword [ecx + 8]
push eax
push 0
call fcn.00416320
test eax, eax
je 0x40719d
lea ecx, [esp + 0x1c]
call fcn.00410fc0
mov ecx, dword [esi + 0x9c]
mov eax, dword [esp + 0x1c]
cmp eax, ecx
jne 0x407156
jmp 0x4071a2
mov byte [esp + 0x20], 1
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
and ecx, 0xff
add edx, 0x1c
push ecx
mov ecx, dword [esp + 0x28]
push 0
push edx
call fcn.00409a20
lea ecx, [esp + 0x40]
call fcn.004116f0
mov ecx, dword [esi + 0xb0]
mov eax, dword [esp + 0x40]
cmp eax, ecx
jne 0x407121
mov eax, dword [esi + 0x9c]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x9c]
cmp eax, ecx
je 0x407280
mov edi, dword [esi + 0xb0]
add eax, 0xc
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, ebp
call fcn.004cfcd0
cmp dword [esp + 0x28], edi
jne 0x407265
mov ecx, dword [esp + 0x10]
mov edi, dword [esi + 0xb0]
lea edx, [esp + 0x20]
lea eax, [ecx + 0x40]
mov ecx, ebp
push eax
push edx
call fcn.004cfcd0
cmp dword [esp + 0x20], edi
je 0x407265
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x24]
test edi, edi
jne 0x407241
mov edi, 0x535108
add eax, 0x40
mov ecx, ebp
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004cfcd0
mov ecx, dword [esp + 0x1c]
push 1
add ecx, 0x1c
push edi
push ecx
mov ecx, dword [esp + 0x30]
call fcn.00409a20
lea ecx, [esp + 0x10]
call fcn.00410fc0
mov ecx, dword [esi + 0x9c]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jne 0x4071f5
mov eax, dword [esp + 0x3c]
pop ebp
test eax, eax
jne 0x407362
mov eax, dword [esi + 0x5c]
test eax, eax
jbe 0x40745a
mov esi, dword [esi + 0x58]
mov edi, 0x535108
test esi, esi
je 0x4072a6
mov edi, esi
push 0xc
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x38], esi
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x30], ebx
je 0x4072e6
push edi
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call fcn.004c7e79
cmp eax, ebx
mov dword [esi], eax
jne 0x4072e8
cmp edi, ebx
je 0x4072e8
push 0x8007000e
call fcn.004c7dcc
jmp 0x4072e8
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x38], esi
jne 0x407302
push 0x8007000e
call fcn.004c7dcc
cmp esi, ebx
mov dword [esp + 0x30], 1
je 0x407312
mov eax, dword [esi]
jmp 0x407314
xor eax, eax
push ebx
push eax
push str.HKLMSOFTWAREClientsStartMenuInternet_
call fcn.004a2cd0
add esp, 0xc
cmp esi, ebx
je 0x40732b
mov eax, dword [esi]
jmp 0x40732d
xor eax, eax
push ebx
push eax
push str.HKCUSOFTWAREClientsStartMenuInternet_
call fcn.004a2cd0
add esp, 0xc
cmp esi, ebx
je 0x40745a
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40745a
mov ecx, esi
call fcn.0040d600
jmp 0x407451
cmp eax, 1
jne 0x40745a
mov eax, dword [esi + 0x5c]
test eax, eax
jbe 0x40745a
mov esi, dword [esi + 0x58]
mov edi, 0x535108
test esi, esi
je 0x407384
mov edi, esi
push 0xc
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x38], esi
test esi, esi
mov dword [esp + 0x30], 2
je 0x4073ca
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.004c7e79
test eax, eax
mov dword [esi], eax
jne 0x4073cc
test edi, edi
je 0x4073cc
push 0x8007000e
call fcn.004c7dcc
jmp 0x4073cc
xor esi, esi
test esi, esi
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x38], esi
jne 0x4073e6
push 0x8007000e
call fcn.004c7dcc
test esi, esi
mov dword [esp + 0x30], 3
je 0x4073f6
mov eax, dword [esi]
jmp 0x4073f8
xor eax, eax
push 0
push eax
push str.HKLMSOFTWAREClientsMail_
call fcn.004a2cd0
add esp, 0xc
test esi, esi
je 0x407410
mov eax, dword [esi]
jmp 0x407412
xor eax, eax
push 0
push eax
push str.HKCUSOFTWAREClientsMail_
call fcn.004a2cd0
add esp, 0xc
test esi, esi
je 0x40745a
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40745a
mov eax, dword [esi]
test eax, eax
je 0x407441
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x407451
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov ecx, dword [esp + 0x28]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8