Function at 0x4b5ed0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x513228
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x572bb0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x24], ebx
call fcn.00460220
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4b5f1e
push 0x80004005
call fcn.004712d0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x48], 0
mov byte [esp + 0x17], 0
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4b5f53
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov esi, dword [ebp + 8]
mov ecx, esi
push str.type
mov byte [esp + 0x4c], 1
mov byte [esp + 0x1a], 0
call fcn.0048ad90
cmp eax, 0x57a1b0
je 0x4b66d3
push str.type
mov ecx, esi
call fcn.0048ad90
mov al, byte [eax + 8]
cmp al, 1
je 0x4b5fa8
cmp al, 2
je 0x4b5fa8
cmp al, 5
je 0x4b5fa8
cmp al, 3
jne 0x4b66d3
push str.type
mov ecx, esi
call fcn.0048ad90
mov ecx, eax
call fcn.0048a570
mov ebx, eax
mov ecx, esi
push 0x551930
mov dword [esp + 0x34], ebx
call fcn.0048ad90
cmp eax, 0x57a1b0
je 0x4b65fc
push 0x551930
mov ecx, esi
call fcn.0048ad90
cmp byte [eax + 8], 4
jne 0x4b65fc
push 0x551930
mov ecx, esi
call fcn.0048ad90
mov edi, eax
cmp byte [edi + 8], 4
je 0x4b6019
push 0x2a9
push str...WebInstallerUtilsjson_value.cpp
push str.type___stringValue
call fcn.004edc00
add esp, 0xc
mov edx, dword [edi]
test edx, edx
jne 0x4b6023
xor ecx, ecx
jmp 0x4b6031
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b6028
sub ecx, edi
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.0047e3b0
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x28]
call fcn.0047da90
push str.public
mov ecx, esi
call fcn.0048ad90
cmp eax, 0x57a1b0
je 0x4b6085
push str.public
mov ecx, esi
call fcn.0048ad90
cmp byte [eax + 8], 5
jne 0x4b6085
push str.public
mov ecx, esi
call fcn.0048ad90
mov ecx, eax
call fcn.0048a850
mov byte [esp + 0x16], al
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4b60a1
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x48], 0xa
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
setbe byte [esp + 0x15]
cmp byte [esp + 0x16], 0
je 0x4b6363
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4b60e8
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x48], 0xb
or ebx, 0xffffffff
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4b6199
call fcn.00460220
xor ecx, ecx
mov edx, eax
cmp byte [esp + 0x15], cl
jne 0x4b6169
test edx, edx
setne cl
test ecx, ecx
jne 0x4b612c
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
push ecx
mov ecx, esp
mov byte [esp + 0x4c], 0xc
push str.PUBLIC
lea esi, [esp + 0x34]
call fcn.00471bb0
mov ecx, esi
call fcn.0047ca10
mov esi, dword [esp + 0x30]
add esp, 4
push esi
push str._sDesktop
jmp 0x4b6301
test edx, edx
setne cl
test ecx, ecx
jne 0x4b617c
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
push ecx
mov ecx, esp
mov byte [esp + 0x4c], 0xd
push str.ALLUSERSPROFILE
jmp 0x4b6147
cmp eax, 1
jne 0x4b6251
call fcn.00460220
xor ecx, ecx
mov edx, eax
cmp byte [esp + 0x15], cl
jne 0x4b6201
test edx, edx
setne cl
test ecx, ecx
jne 0x4b61c4
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
push ecx
mov ecx, esp
mov byte [esp + 0x4c], 0xe
push str.PROGRAMDATA
lea esi, [esp + 0x34]
call fcn.00471bb0
mov ecx, esi
call fcn.0047ca10
mov esi, dword [esp + 0x30]
add esp, 4
push esi
push str._sMicrosoftWindowsStart_MenuPrograms
jmp 0x4b6301
test edx, edx
setne cl
test ecx, ecx
jne 0x4b6214
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
push ecx
mov ecx, esp
mov byte [esp + 0x4c], 0xf
push str.ALLUSERSPROFILE
lea esi, [esp + 0x34]
call fcn.00471bb0
mov ecx, esi
call fcn.0047ca10
mov esi, dword [esp + 0x30]
add esp, 4
push esi
push str._sStart_MenuPrograms
jmp 0x4b6301
cmp eax, 2
jne 0x4b632c
call fcn.00460220
xor ecx, ecx
mov edx, eax
cmp byte [esp + 0x15], cl
jne 0x4b62b6
test edx, edx
setne cl
test ecx, ecx
jne 0x4b627c
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
push ecx
mov ecx, esp
mov byte [esp + 0x4c], 0x10
push str.PROGRAMDATA
lea esi, [esp + 0x34]
call fcn.00471bb0
mov ecx, esi
call fcn.0047ca10
mov esi, dword [esp + 0x30]
add esp, 4
push esi
push str._sMicrosoftWindowsStart_MenuProgramsStartup
jmp 0x4b6301
test edx, edx
setne cl
test ecx, ecx
jne 0x4b62c9
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
push ecx
mov ecx, esp
mov byte [esp + 0x4c], 0x11
push str.ALLUSERSPROFILE
lea esi, [esp + 0x34]
call fcn.00471bb0
mov ecx, esi
call fcn.0047ca10
mov esi, dword [esp + 0x30]
add esp, 4
push esi
push str._sStart_MenuProgramsStartup
lea eax, [esp + 0x20]
push eax
call fcn.00472d30
add esi, 0xfffffff0
mov byte [esp + 0x54], 0xb
mov ecx, ebx
add esp, 0xc
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b632c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
mov esi, dword [esp + 0x18]
push edi
push esi
push str._s_s.lnk
push eax
call fcn.00472d30
add esi, 0xfffffff0
mov byte [esp + 0x58], 0xa
add esp, 0x10
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b63b7
mov ecx, dword [esi]
push esi
jmp 0x4b63b2
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.004bd730
mov byte [esp + 0x48], 0x12
lea eax, [esp + 0x20]
mov edi, dword [esp + 0x1c]
push edi
push dword [esp + 0x30]
push str._s_s.lnk
push eax
call fcn.00472d30
mov byte [esp + 0x58], 0xa
or ebx, 0xffffffff
mov edx, dword [esp + 0x3c]
add esp, 0x10
add edx, 0xfffffff0
mov eax, ebx
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4b63b7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x20]
add esi, 0xfffffff0
push ecx
mov dword [esp + 0x1c], esp
mov dword [esp + 0x3c], esi
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x4b63ea
cmp ecx, dword [esi]
jne 0x4b63ea
mov ecx, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4b642f
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edx, eax
mov dword [esp + 0x30], edx
test edx, edx
jne 0x4b6402
call fcn.004722b0
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.004ea853
mov ecx, dword [esp + 0x40]
add esp, 0x10
lea eax, [ecx + 0x10]
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
call fcn.004bd640
test al, al
jne 0x4b65d8
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4b648d
push str.DeleteDTSCError
lea ecx, [esp + 0x34]
call fcn.00471bb0
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0x13
call fcn.00474280
mov byte [esp + 0x48], 0xa
mov ecx, ebx
mov edx, dword [esp + 0x30]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b64bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4b64bc
cmp eax, 1
jne 0x4b64bc
push str.DeleteSMSCError
lea ecx, [esp + 0x34]
call fcn.00471bb0
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0x14
call fcn.00474280
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0xa
call fcn.00471d10
push str.deleteFile_error
lea ecx, [esp + 0x30]
call fcn.00471c70
push str.deleteShortcut
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0x15
call fcn.00471bb0
mov byte [esp + 0x48], 0x16
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4b64fe
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
lea eax, [esp + 0x2c]
mov byte [esp + 0x48], 0x17
push eax
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x38]
call fcn.00472fc0
add esp, 4
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x48], 0x18
cmp dword [ecx + 0xc], 0
je 0x4b6546
push 2
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [ecx + 8]
push eax
call fcn.00473100
mov byte [esp + 0x48], 0x17
mov ecx, ebx
mov edx, dword [esp + 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b6568
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [esp + 0x48], 0x16
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b6586
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x48], 0x15
mov ecx, ebx
mov edx, dword [esp + 0x30]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b65a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x48], 0xa
mov ecx, ebx
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b65ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x48], 1
mov edx, dword [esp + 0x38]
jmp 0x4b67ca
mov byte [esp + 0x17], 1
lea eax, [esi + 0xc]
mov byte [esp + 0x48], 1
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b67e0
mov ecx, dword [esi]
push esi
jmp 0x4b67db
push str.name_error
lea ecx, [esp + 0x30]
call fcn.00471c70
push str.deleteShortcut
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 6
call fcn.00471bb0
mov byte [esp + 0x48], 7
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4b663e
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x38], esi
lea eax, [esp + 0x2c]
mov byte [esp + 0x48], 8
push eax
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x38]
call fcn.00472fc0
add esp, 4
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x48], 9
cmp dword [ecx + 0xc], 0
je 0x4b6686
push 2
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [ecx + 8]
push eax
call fcn.00473100
mov byte [esp + 0x48], 8
or ebx, 0xffffffff
mov edx, dword [esp + 0x34]
mov eax, ebx
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4b66ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [esp + 0x48], 7
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b66c9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x48], 6
jmp 0x4b67a1
push str.type_error
lea ecx, [esp + 0x30]
call fcn.00471c70
push str.deleteShortcut
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 2
call fcn.00471bb0
mov byte [esp + 0x48], 3
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4b6715
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x38], esi
lea eax, [esp + 0x2c]
mov byte [esp + 0x48], 4
push eax
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x38]
call fcn.00472fc0
add esp, 4
mov byte [esp + 0x48], 5
cmp dword [ebx + 0xc], 0
je 0x4b6759
push 2
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [ebx + 8]
push eax
call fcn.00473100
mov byte [esp + 0x48], 4
or ebx, 0xffffffff
mov edx, dword [esp + 0x34]
mov eax, ebx
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4b677e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [esp + 0x48], 3
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b679c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x48], 2
mov edx, dword [esp + 0x30]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b67be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x48], 1
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b67e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [esp + 0x48], 0
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b67fe
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4b6818
mov eax, 0xb
mov word [ecx], ax
mov al, byte [esp + 0x17]
movzx eax, al
mov word [ecx + 8], ax
mov dword [esp + 0x48], 0xffffffff
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4b683b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8