Function at 0x429260
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4faa0e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x40aa8
call fcn.004f2630
push ebx
push esi
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [ebp - 0x1f4]
mov dword [ebp - 0x1f8], 0x94
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1f8]
xor ebx, ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x9c], bl
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x1e8], 2
jne 0x429362
cmp dword [ebp - 0x1f4], 5
jae 0x429305
mov edi, str.WINDOWSNT
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x9c]
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]
mov esi, 1
jmp 0x42938c
mov eax, dword [ebp - 0x1f0]
cmp eax, ebx
jne 0x42931c
lea edx, [ebp - 0x9c]
mov edi, str.WINDOWS2000
jmp 0x42933e
cmp eax, 1
jne 0x42932e
lea edx, [ebp - 0x9c]
mov edi, str.WINDOWSXP
jmp 0x42933e
cmp eax, 2
jb 0x42935b
lea edx, [ebp - 0x9c]
mov edi, str.WINDOWS2003
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]
mov esi, 1
jmp 0x42938c
mov edi, str.WINDOWS98
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x9c]
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]
xor esi, esi
lea ecx, [ebp - 0x278]
push ecx
call fcn.004ab6e0
add esp, 4
lea edx, [ebp - 0x104]
push edx
call fcn.00401350
add esp, 4
cmp esi, 1
jne 0x4293c1
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x40ab8]
push eax
push ecx
call fcn.00407720
jmp 0x4293d1
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x40ab8]
push edx
push eax
call fcn.00407aa0
mov ecx, dword [ebp - 0x14]
add esp, 8
mov dword [0xe56c5c], ecx
lea ecx, [ebp - 0x5c]
push 1
xor esi, esi
call fcn.004f0653
push 1
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 1
call fcn.004f0653
mov edx, dword [0x4fe4e8]
lea ecx, [ebp - 0x5c]
push edx
push 1
push str.c:endpcache_soft_length_old.txt
mov byte [ebp - 4], 2
call fcn.004f0727
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x58]
cmp dword [eax + 0x30], 0xffffffff
je 0x429463
mov edi, dword [ebp - 0x58]
push 0xa
lea edx, [ebp - 0x164]
inc edi
push 0x40
push edx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x58], edi
call fcn.004f0ae9
lea edi, [ebp - 0x164]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jle 0x429463
lea eax, [ebp - 0x164]
push eax
call fcn.004f234d
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x5c]
call fcn.004f076e
cmp dword [ebp - 0x14], esi
jne 0x4294b4
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 1
call fcn.004f0714
lea ecx, [ebp - 0xd0]
call fcn.004f05fb
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.004f0714
lea ecx, [ebp - 0x48]
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 ecx, dword [0x4fe4e8]
push ecx
push 2
push str.c:endpcache_soft_length_old.txt
lea ecx, [ebp - 0xe4]
call fcn.004f0727
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx + 4]
mov eax, dword [ebp + eax - 0xe0]
cmp dword [eax + 0x30], 0xffffffff
je 0x429507
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xd8]
call fcn.004f0458
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
lea ecx, [ebp - 0xe4]
call fcn.004f076e
lea edx, [ebp - 0x9c]
lea eax, [ebp - 0x104]
push edx
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x278]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x378]
push eax
push 0x5179c8
push edx
call fcn.004f175f
mov ecx, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x1b0]
add esp, 0x14
lea eax, [ebp - 0x378]
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
add esp, 0x1b4
cmp ebx, dword [ebp - 0x14]
jge 0x4296bb
mov edx, ebx
or ecx, 0xffffffff
shl edx, 5
add edx, ebx
xor eax, eax
shl edx, 4
mov byte [ebp - 0x378], 0
lea esi, [ebp + edx - 0x40ab8]
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jle 0x4296b5
lea eax, [ebp + edx - 0x40970]
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x124]
push eax
call fcn.00402b80
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 3
call fcn.00402d30
cmp eax, 1
jle 0x429638
lea ecx, [ebp - 0x124]
call fcn.00402c10
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x9c]
lea edx, [ebp - 0x104]
push eax
push esi
push ecx
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x378]
push eax
push 0x5179a0
push ecx
call fcn.004f175f
add esp, 0x1c
jmp 0x429674
lea edx, [ebp - 0x9c]
push esi
lea eax, [ebp - 0x104]
push edx
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x278]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x378]
push eax
push 0x51797c
push edx
call fcn.004f175f
add esp, 0x18
mov ecx, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x1b0]
lea eax, [ebp - 0x378]
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
add esp, 0x1b4
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 2
call fcn.00402ba0
inc ebx
jmp 0x42957f
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 1
call fcn.004f0714
lea ecx, [ebp - 0xd0]
call fcn.004f05fb
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.004f0714
lea ecx, [ebp - 0x48]
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