Function at 0x471270
Capabilities:
Check os version
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb653
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x450
push ebx
push esi
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [ebp - 0x1d8]
mov dword [ebp - 0x1dc], 0x94
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1dc]
mov dword [ebp - 4], 0
push eax
mov byte [ebp - 0xe8], 0
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x1cc]
mov ebx, 2
cmp eax, ebx
jne 0x471327
cmp dword [ebp - 0x1d8], 5
jae 0x4712ed
lea edx, [ebp - 0xe8]
mov edi, str.WINDOWSNT
jmp 0x471332
mov eax, dword [ebp - 0x1d4]
test eax, eax
jne 0x471304
lea edx, [ebp - 0xe8]
mov edi, str.WINDOWS2000
jmp 0x471332
cmp eax, 1
jne 0x471316
lea edx, [ebp - 0xe8]
mov edi, str.WINDOWSXP
jmp 0x471332
cmp eax, ebx
jb 0x47134f
lea edx, [ebp - 0xe8]
mov edi, str.WINDOWS2003
jmp 0x471332
lea edx, [ebp - 0xe8]
mov edi, str.WINDOWS98
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x25c]
push ecx
call fcn.004ab6e0
add esp, 4
lea edx, [ebp - 0x108]
push edx
call fcn.00401350
add esp, 4
lea ecx, [ebp - 0xa8]
xor esi, esi
mov byte [ebp - 0x148], 0
push 1
call fcn.004f0653
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.004f0653
mov eax, dword [0x4fe4e8]
lea ecx, [ebp - 0xa8]
push eax
push 1
push str.c:endpcachepatch_length_old.txt
mov byte [ebp - 4], bl
call fcn.004f0727
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + edx - 0xa4]
cmp dword [eax + 0x30], 0xffffffff
je 0x471461
mov edi, dword [ebp - 0xa4]
push 0xa
lea eax, [ebp - 0x148]
inc edi
push 0x40
push eax
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa4], edi
call fcn.004f0ae9
lea edi, [ebp - 0x148]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x471410
lea ecx, [ebp - 0x148]
push ecx
call fcn.004f234d
add esp, 4
mov esi, eax
jmp 0x471461
mov edx, dword [0x4fe4e8]
lea ecx, [ebp - 0x60]
push edx
push ebx
push str.c:endpcachepatch_length_old.txt
call fcn.004f0727
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x5c]
cmp dword [eax + 0x30], 0xffffffff
je 0x471457
push 0x51c2b8
lea ecx, [ebp - 0x54]
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
lea ecx, [ebp - 0x60]
call fcn.004f076e
xor esi, esi
lea ecx, [ebp - 0xa8]
call fcn.004f076e
cmp dword [0xe56d60], esi
jne 0x4714b8
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.004f0714
lea ecx, [ebp - 0x4c]
call fcn.004f05fb
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0
call fcn.004f0714
lea ecx, [ebp - 0x94]
call fcn.004f05fb
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x4fe4e8]
lea ecx, [ebp - 0x60]
push edx
push ebx
push str.c:endpcachepatch_length_old.txt
call fcn.004f0727
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x5c]
cmp dword [eax + 0x30], 0xffffffff
je 0x471501
mov edx, dword [0xe56d60]
lea ecx, [ebp - 0x54]
push edx
call fcn.004f0ba3
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
lea ecx, [ebp - 0x60]
call fcn.004f076e
lea eax, [ebp - 0xe8]
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x108]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x25c]
push eax
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [ebp - 0x35c]
push str._s__s___s
push eax
call fcn.004f175f
mov edx, dword [ebp + 0x1b4]
mov eax, dword [ebp + 0x1b0]
add esp, 0x14
lea ecx, [ebp - 0x35c]
lea esi, [ebp + 8]
push ecx
push edx
push eax
mov ecx, 0x6a
sub esp, 0x1a8
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404410
add esp, 0x1b4
lea ecx, [ebp - 0x14]
xor ebx, ebx
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotFix
push closesocket
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x471661
mov ecx, 0x100
lea edx, [ebp - 0x45c]
mov eax, ebx
push ecx
push edx
push eax
mov eax, dword [ebp - 0x14]
inc ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x471656
lea edi, [ebp - 0x45c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jle 0x4715a6
lea ecx, [ebp - 0x45c]
lea edx, [ebp - 0xe8]
push ecx
lea eax, [ebp - 0x108]
push edx
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x25c]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x35c]
push eax
push 0x522bf8
push edx
call fcn.004f175f
mov ecx, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x1b0]
add esp, 0x18
lea eax, [ebp - 0x35c]
lea esi, [ebp + 8]
push eax
push ecx
push edx
mov ecx, 0x6a
sub esp, 0x1a8
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404410
mov eax, dword [ebp - 0x18]
add esp, 0x1b4
cmp eax, 0x103
jne 0x4715a6
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.004f0714
lea ecx, [ebp - 0x4c]
call fcn.004f05fb
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0
call fcn.004f0714
lea ecx, [ebp - 0x94]
call fcn.004f05fb
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret