Function at 0x474860
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd5b6
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
test byte [0x56145c], 1
jne 0x4748cb
or dword [0x56145c], 1
push 0x110
push esi
push 0x56134c
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x561348
mov dword [0x561348], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x56134c], 6
jb 0x474ac3
mov dword [ebp - 0x468], esi
mov dword [ebp - 0x464], esi
mov dword [ebp - 0x460], esi
push 0x20019
push str.SOFTWARERegisteredApplications
push 0x80000002
lea ecx, [ebp - 0x468]
mov dword [ebp - 4], esi
call fcn.00412570
cmp eax, esi
je 0x474923
mov eax, dword [ebp - 0x468]
cmp eax, esi
je 0x47491c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x474ac5
push 0x206
lea ecx, [ebp - 0x41e]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x420], ax
call sub.MSVCR100.dll_memset
lea eax, [edi + 0x1c]
mov ebx, 8
add esp, 0xc
mov dword [ebp - 0x45c], 0x104
cmp dword [eax + 0x14], ebx
jb 0x47495a
mov eax, dword [eax]
lea edx, [ebp - 0x45c]
push edx
lea ecx, [ebp - 0x420]
push ecx
push eax
lea ecx, [ebp - 0x468]
call fcn.00434210
test eax, eax
jne 0x47490b
cmp dword [edi + 0x14], ebx
jb 0x474981
mov eax, dword [edi]
jmp 0x474983
mov eax, edi
push eax
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x47490b
push 0x4c7780
lea eax, [ebp - 0x458]
push edi
push eax
call fcn.0040ca60
push str.FileAssociations
push eax
lea ecx, [ebp - 0x43c]
push ecx
mov byte [ebp - 4], 1
call fcn.0040ca00
add esp, 0x18
cmp dword [eax + 0x14], ebx
jb 0x4749ce
mov eax, dword [eax]
push 0x20019
push eax
push 0x80000002
lea ecx, [ebp - 0x468]
call fcn.00412570
lea ecx, [ebp - 0x43c]
mov esi, eax
call fcn.004a9f30
lea ecx, [ebp - 0x458]
call fcn.004a9f30
test esi, esi
je 0x474a12
lea ecx, [ebp - 0x468]
call fcn.00414440
xor al, al
jmp 0x474ac5
mov eax, dword [edi + 0x74]
mov esi, dword [eax]
mov dword [ebp - 0x45c], esi
cmp esi, eax
je 0x474ab2
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call sub.MSVCR100.dll_memset
lea eax, [esi + 0xc]
add esp, 0xc
mov dword [ebp - 0x46c], 0x104
cmp dword [eax + 0x14], ebx
jb 0x474a57
mov eax, dword [eax]
lea ecx, [ebp - 0x46c]
push ecx
lea edx, [ebp - 0x218]
push edx
push eax
lea ecx, [ebp - 0x468]
call fcn.00434210
test eax, eax
jne 0x474ae1
cmp dword [esi + 0x3c], ebx
lea eax, [esi + 0x28]
jb 0x474a7f
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x474a00
lea ecx, [ebp - 0x45c]
call fcn.00446630
mov esi, dword [ebp - 0x45c]
cmp esi, dword [edi + 0x74]
jne 0x474a25
mov eax, dword [ebp - 0x468]
test eax, eax
je 0x474ac3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x468]
test eax, eax
je 0x47491c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x474ac5