Function at 0x41f7c6
Capabilities:
Check os version

Disassembly:
mov eax, 0x4762d1
call fcn.004680bc
sub esp, 0x254
and byte [ebp - 0x260], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x25f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x15c]
xor esi, esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x15c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41f8bf
cmp dword [ebp - 0x14c], 2
jne 0x41f8bf
cmp dword [ebp - 0x158], 5
jb 0x41f8bf
cmp dword [ebp + 0xc], 1
jne 0x41f842
push 0x2b
push dword [ebp + 8]
call fcn.0041fa31
pop ecx
pop ecx
jmp 0x41f853
cmp dword [ebp + 0xc], esi
jne 0x41f85b
push 0x26
push dword [ebp + 8]
call fcn.0041fa31
pop ecx
pop ecx
mov eax, dword [ebp + 8]
jmp 0x41fa22
lea eax, [ebp + 0xf]
push esi
push eax
lea eax, [ebp - 0x260]
mov ebx, 0x47e4b8
mov edi, 0x47e4b0
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], edi
call fcn.00405a89
push 0x495d74
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 5
call fcn.004072bf
mov esi, dword [ebp + 8]
push 0
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 0x20], edi
call fcn.0040595a
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], 1
call fcn.00407421
mov eax, esi
jmp 0x41fa22
push dword [ebp + 0xc]
lea eax, [ebp - 0x38]
push eax
call fcn.00421277
pop ecx
pop ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 1
call fcn.00420dbb
lea ecx, [ebp - 0x38]
call fcn.00406608
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
test al, al
je 0x41f917
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x38]
push eax
call fcn.00406ff2
cmp dword [eax + 0xc], esi
lea ecx, [ebp - 0x6c]
sete bl
call fcn.00407421
test bl, bl
je 0x41f9f1
mov eax, dword [ebp + 0xc]
sub eax, esi
je 0x41f970
dec eax
jne 0x41f9f1
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.0041f7c6
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0041ba5f
push dword [0x47e51c]
mov ecx, eax
add eax, 4
neg ecx
sbb ecx, ecx
push esi
and ecx, eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.00406732
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00407421
push str.Common_Files_
jmp 0x41f9e9
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.00420140
pop ecx
pop ecx
push dword [0x47e51c]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 3
neg ecx
sbb ecx, ecx
push esi
and ecx, eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.00406732
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00407421
lea eax, [ebp - 0xc8]
lea ecx, [ebp - 0x38]
push eax
call fcn.00406ff2
push dword [0x47e51c]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 4
neg ecx
sbb ecx, ecx
push esi
and ecx, eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.00406732
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 1
call fcn.00407421
push str.Program_Files
lea ecx, [ebp - 0x38]
call fcn.004072bf
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x38]
push esi
push eax
mov ecx, edi
mov dword [edi], 0x47e4b8
mov dword [edi + 0x20], 0x47e4b0
call fcn.0040595a
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], 1
call fcn.00407421
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret