Function at 0x474a70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee660
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x541100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xe
lea eax, [ebp - 0x128]
xor esi, esi
push eax
mov ecx, edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x13c], esi
call fcn.00422a16
mov eax, dword [eax]
push str._CAMEYO_VAR_
push eax
call fcn.004ccf60
add esp, 8
cmp eax, esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x128]
sete bl
add eax, 0xfffffff0
or esi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x474af5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x474b1f
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x474b18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4750fc
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
cmp eax, 3
jl 0x474af9
test eax, eax
jle 0x474b46
push 0x25
push ecx
call fcn.004cdc18
add esp, 8
test eax, eax
je 0x474b46
mov ecx, dword [edi]
sub eax, ecx
sar eax, 1
cmp eax, esi
jne 0x474b67
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jle 0x474af9
push 0x5c
push eax
call fcn.004cdc18
add esp, 8
test eax, eax
je 0x474af9
mov ecx, dword [edi]
sub eax, ecx
sar eax, 1
cmp eax, esi
je 0x474af9
mov eax, dword [ecx - 0xc]
cmp eax, 4
jle 0x474bf5
cmp eax, 1
jge 0x474b82
push 0x80070057
call fcn.00420000
movzx edx, word [ecx + 2]
cmp dx, 0x3a
jne 0x474bf5
cmp eax, 2
jge 0x474b9b
push 0x80070057
call fcn.00420000
movzx edx, word [ecx + 4]
cmp dx, 0x5c
jne 0x474bf5
cmp eax, 4
jle 0x474bf5
add ecx, 8
push 0x7e
push ecx
call fcn.004cdc18
add esp, 8
test eax, eax
je 0x474bf5
sub eax, dword [edi]
sar eax, 1
js 0x474bf5
push 0xa28
call fcn.004cd074
add esp, 4
mov ebx, eax
mov eax, dword [edi]
push 0x514
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x474bec
push ebx
mov ecx, edi
call fcn.00422880
push ebx
call fcn.004ccf97
add esp, 4
test byte [0x54786c], 1
jne 0x474c3d
or dword [0x54786c], 1
call fcn.004bdbe3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x474c1f
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
push 0x4f8e40
mov dword [0x547868], eax
call fcn.004cd8dc
add esp, 4
mov eax, dword [ebp + 8]
push 0x5c
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x134], esp
mov esi, esp
push eax
call fcn.00423475
lea ecx, [ebp - 0x128]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00477bf0
mov eax, dword [eax]
push str.RegistryMACHINESOFTWAREMicrosoftWindowsCurrentVersionInstallerUserDataS_1_5_18Components
push eax
call fcn.004cca64
add esp, 0x14
test eax, eax
mov eax, dword [ebp - 0x128]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x474c9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x474f32
mov ecx, dword [0x547868]
mov eax, dword [ecx - 0xc]
test eax, eax
jne 0x474df6
push 0x110
push eax
lea edx, [ebp - 0x120]
push edx
mov dword [ebp - 0x124], 0x114
call fcn.004cd900
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, 2
cmp dword [ebp - 0x114], ecx
jne 0x474d04
mov eax, dword [ebp - 0x120]
cmp eax, 6
jne 0x474d29
cmp dword [ebp - 0x11c], ecx
jae 0x474d2b
lea ecx, [ebp - 0x12c]
push ecx
call fcn.004768d0
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jge 0x474d80
push 0x80070057
call fcn.00420000
jbe 0x474d04
lea ecx, [ebp - 0x12c]
push ecx
call fcn.004768d0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jge 0x474d50
push 0x80070057
call fcn.00420000
movzx eax, word [eax]
movzx edx, ax
push edx
lea eax, [ebp - 0x128]
push str._c:_
push eax
call fcn.004777e0
add esp, 0xc
push eax
mov ecx, 0x547868
mov byte [ebp - 4], 3
call fcn.00422f41
mov byte [ebp - 4], 2
jmp 0x474dae
movzx eax, word [eax]
movzx edx, ax
push edx
lea eax, [ebp - 0x128]
push 0x51b398
push eax
call fcn.004777e0
add esp, 0xc
push eax
mov ecx, 0x547868
mov byte [ebp - 4], 5
call fcn.00422f41
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x128]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x474dd0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x12c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x474df6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x547868]
push 0
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x134], esp
mov esi, esp
push eax
call fcn.00423475
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 6
mov eax, dword [edi]
sub eax, 0x10
mov dword [ebp - 0x140], esp
mov esi, esp
push eax
call fcn.00423475
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 0
call fcn.0047bf00
add esp, 0xc
test eax, eax
je 0x474f32
mov edx, dword [edi]
mov eax, dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x134], esp
push edx
mov edx, dword [0x547868]
push eax
push edx
push str.RegExport_ExpandVariablizePath:_InstallerUserDataComponentsSpecialPrefix_s_found_in__s:__s
push ecx
call fcn.004777e0
add esp, 0x14
call fcn.00474a00
lea eax, [ebp - 0x134]
push eax
call fcn.004768d0
add esp, 8
mov bl, 7
mov byte [ebp - 4], bl
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jge 0x474e97
push 0x80070057
call fcn.00420000
movzx eax, word [eax]
movzx ecx, ax
push ecx
lea edx, [ebp - 0x140]
push 0x504824
push edx
call fcn.004777e0
add esp, 0xc
mov byte [ebp - 4], 8
mov eax, dword [eax]
push eax
mov eax, dword [0x547868]
push eax
push edi
call fcn.0042994b
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x140]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x474eea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x134]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x474f10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
push ecx
mov ecx, esp
mov dword [ebp - 0x128], esp
push edx
push str.RegExport_ExpandVariablizePath:_transforming_to:__s
push ecx
call fcn.004777e0
add esp, 0xc
call fcn.00474a00
add esp, 4
mov eax, dword [edi]
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x130], 0
jmp 0x474f50
mov ecx, dword [ebp - 0x130]
mov ecx, dword [ecx + 0x54311c]
cmp word [ecx], 0
je 0x4750b5
cmp word [ecx + 2], 0
je 0x4750b5
cmp dword [eax - 0xc], 2
jle 0x4750b5
xor ebx, ebx
mov dword [ebp - 0x138], 4
jmp 0x474f90
mov edx, dword [ebp - 0x130]
mov edx, dword [edx + 0x54311c]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x474fa1
mov ecx, dword [ebp - 0x138]
sub eax, esi
mov esi, dword [ebp - 0x12c]
sar eax, 1
add eax, 0xfffffffe
push eax
add edx, 4
add esi, ecx
push edx
push esi
call fcn.004cf6d6
add esp, 0xc
test eax, eax
jne 0x47509d
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x12c]
movzx eax, word [edx + eax - 4]
lea ecx, [eax - 0x61]
cmp cx, 0x19
ja 0x474fff
add eax, 0xffffffe0
movzx edx, ax
mov dword [ebp - 0x128], edx
jmp 0x475008
movzx eax, ax
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x130]
mov eax, dword [ecx + 0x54311c]
movzx ecx, word [eax]
lea edx, [ecx - 0x61]
cmp dx, 0x19
ja 0x475023
add ecx, 0xffffffe0
movzx ecx, cx
cmp word [ebp - 0x128], cx
jne 0x47509d
movzx ecx, word [esi - 2]
lea edx, [ecx - 0x61]
cmp dx, 0x19
ja 0x47503f
add ecx, 0xffffffe0
movzx edx, cx
movzx ecx, word [eax + 2]
lea esi, [ecx - 0x61]
cmp si, 0x19
ja 0x475052
add ecx, 0xffffffe0
movzx ecx, cx
cmp dx, cx
jne 0x47509d
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x475060
sub eax, edx
push ebx
sar eax, 1
push edi
call fcn.004228be
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax + 0x543110]
push ecx
push edi
mov eax, ebx
call fcn.00443e8e
mov edx, dword [edi]
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x13c], 1
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
add dword [ebp - 0x138], 2
inc ebx
lea edx, [ebx + 2]
cmp edx, ecx
jl 0x474f90
mov ecx, dword [ebp - 0x130]
add ecx, 0x10
cmp ecx, 0x250
mov dword [ebp - 0x130], ecx
jl 0x474f50
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4750f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cc3b2
mov esp, ebp
pop ebp
ret